Advertisement

OpenGL Texturing Headaches...

Started by September 10, 2000 01:21 PM
0 comments, last by AnCcE 24 years, 3 months ago
I''m working on a simple terrain editor for a game... anyway, GL_TEXTURE_MAG_FILTER and GL_TEXTURE_MIN_FILTER are both GL_LINEAR, textures are set to repeat, and I KNOW all the texture coordinates I''m feeding it (glTexCoord2f) are correct. However, when I move the camera so that a polygon is very close to the screen but at an angle such that only a bit of it is showing, the texture goes haywire, getting stretched, crunched, and mapped wrong for no apparent reason. No environment state variables are changing or anything, it just goes weird. any ideas? Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
Hi there, I''m AnCcE, and you''d be too if you weren''t somebody else.
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
note my spelling mightn''t be right

This topic is closed to new replies.

Advertisement