Help - Textures

Started by
3 comments, last by tonemgub 9 years, 8 months ago

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?

Advertisement

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

Video on the problem as well:

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

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.

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.


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.

This topic is closed to new replies.

Advertisement