Sign in to follow this  

Trouble with "near" texture distortion

This topic is 3573 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
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

This topic is 3573 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this