I'm looking for a way to get OpenGL to draw a texture with
linear/affine mapping and not perspective correct. The reason is that
i want to render a reflection of a part of my scene. This reflection
is rendered to a texture, so it is already perspective correct. If I
render this reflection texture using perspective-correct texture
mapping it will end up looking distorted.
Assuming this is fixed-function, I'm not sure there's a way to *force*
affine mapping, but... have you tried
glHint(GL_PERSPECTIVE_CORRECTION_HINT,GL_FASTEST) right after
glBindTexture? GL_FASTEST should in theory give you affine mapping,
whereas GL_NICEST should always give you perspective mapping, but as
you can see it's just a glHint, not a requirement...
HTH,
Dario
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden