RE: texel alignment rules
"Laurent Auneau" <[email protected]>
| Newsgroups | gmane.games.devel.opengl |
|---|---|
| Organization | Fat City Network Services, San Diego, California |
| Message-ID | <[email protected]> |
Hi Chris,
In OpenGL, the texel is centered around the mapping coordinates, so you
dont need any offset
as simple as it can be.
Laurent
_____
De : [email protected] [mailto:[email protected]] De la part de
Chris Haarmeijer
Envoyé : jeudi 24 mars 2005 11:58
À : Multiple recipients of list OPENGL-GAMEDEV-L
Objet : texel alignment rules
Hi,
I was wondering. I'm trying to align texel with pixels on screen (i.e: i've
rendered the complete scene to a texture, and now want to render this
texture again using a fullscreen quad). In DirectX, the texel alignment
rules are to bias the screen space coordinates with -0.5 pixel. What is the
value in OpenGL? I now get my texture rendered nicely using offsets in
DirectX, but not in OpenGL....
Chris
---
Keep IT Simple Software
B: Brouwerijstraat 1, 7523 XC Enschede
P: P.O.Box 548, 7500 AM Enschede, The Netherlands
W: http://www.keepitsimple.nl
E: mailto:[email protected]
T: +31 53 4356687