Sign in to follow this  
Effron

Trouble with "near" texture distortion

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
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

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