Sign in to follow this  
Vithushan Kumanan

Help - Textures

Recommended Posts

If i look at the distance the texture seems to be fuzzy[flickering]. If i use mipmapping the view distance for texture is short and rest is grey. How can i increase view distance while maintaining texture quality[without the flickering]. Please Help -I'm a new member

 

 

[attachment=23122:1.png]

 

As you can see in the distance it is blured out after using mipmaps. However how can i increase the view distance before it blurs out and avoid flickering in the process?

Share this post


Link to post
Share on other sites

Your problem based on your description seems to be z-fighting.

 

Video on the problem as well: http://www.youtube.com/watch?v=9AcCrF_nX-I

 

Simple solution is to play around with the near and far planes on the code managing your projection matrix (whether you are using gluPerspective() or even better with modern OpenGL setting up your own MVP matrix and sending it to the GPU).

Share this post


Link to post
Share on other sites

Try anisotropic filtering instead of linear or whatever you're using... It is supposed to be used together with mipmapping. Anisotropic filtering also has a parameter called "anisotropy", which can be specified as 1x-16x, and I guess you could say a higher value for anisotropy will "increase the blur distance". Technically, it reduces the level of blurriness everywhere based on the viewing angle, not just in the distance, but the effect is the same as your explanation of pushing back the blur.

Edited by tonemgub

Share this post


Link to post
Share on other sites

bilinear-trilinear-anisotropic, but even with most precise filtering, tilling naively textures in scenario you presented to extend to large space of depth will result in experience you see. Some people fight it with procedural texture coordinates by distance that is suitable for noisy textures such as rocks. If you are far from a hill where texture would happen to be tilled 100 times, procedural texture cordinates are a good overcome.

Share this post


Link to post
Share on other sites

If you are far from a hill where texture would happen to be tilled 100 times, procedural texture cordinates are a good overcome.

Do you have examples of this? The only thing I can find about "procedural texture coordinates" is about assigning texture coordinates to a sphere...

Anyway, it seems to me that his problem is clearly caused by the filtering mode. Anisotropic filtering would yield the best results. Bilinear and trilinear won't get rid of the blur he is describing, because they don't take the viewing angle into consideration. Bilinear and trilinear sampling will only blend between mipmaps better, AFAIK.

Edited by tonemgub

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