Jump to content
  • Advertisement
Sign in to follow this  
Effron

Trouble with "near" texture distortion

This topic is 3937 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I created a large "ground" quad and mapped a texture 10000x10000 GL_REPEAT After applying the following parameter: glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST); the back (far side) of the texture appears normal, but the near portion is all distorted. I tried every variation I can find for glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,...); Also tried glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); and also all the glTexEnvi modes... still no luck. Im not super experienced with texturing theory, but to me all that would seem necessary to me is glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST_MIPMAP_NEAREST); Details: gluPerspective with gluLookAt 10000x100000 quad, 10000x10000 texCoords texture loaded as mipmap Thanks for any assistance

Share this post


Link to post
Share on other sites
Advertisement
The image is 256x256

A screenshot can be found here:
http://img401.imageshack.us/img401/6973/distortionla3.jpg

Share this post


Link to post
Share on other sites
It's either your magnification filter (double-check that you set it properly to LINEAR, not sure the exact commands in open gl), or else your texture coords are tiled way too high and you're getting precision loss in your UVs.

Share this post


Link to post
Share on other sites
Yeah, it was just too big I guess. I tried all (6) mag filters to no avail
But I changed the quad size from 10,000 x 10,000 to 1,000 x 1,000 so ill just make 10 of those quads instead I guess.

Thanks !

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!