Archived

This topic is now archived and is closed to further replies.

RavNaz

Texture shimmering BSP engine

Recommended Posts

In my BSP engine whenever you get a certain distance away from any wall the textures start to shimmer / flicker and you can kinda make out where the surface has been split by the BSP tree. Anyone know how to fix this??

Share this post


Link to post
Share on other sites
Erm... as you explained it, it rather sounds like a z-buffer problem. If

a) Some other object close behind the object with your texture "shimmers" through your texture

and/or
b) The things become better if you use WBuffering instead (in D3D it is setRenderState(D3DRS_ZBUFFER, D3DZB_USEW) or something alike)

this is a problem of the mesh (the distances of object are too short) or of your near/far clipping plane. Set the near clipping plane as far away as possible and the far clipping plane as near as possible.

If it doesnt work, please explain the "shimmer/flicker" more precisely

Share this post


Link to post
Share on other sites
If its only the texture itself shimmering, you could try using mip-mapping. That will really cut down on texture aliasing as you''re experiencing it. This type of aliasing is caused by downsizing textures as distance from them increases. Mip-mapping fixes this by using pre-downsized versions of each texture for different distances. If, however, you are seeing objects through other objects, chock is right and you have a z-buffer issue. Good luck.

"You are too useless. And now I must beat you." - English subtitle in a Honk Kong Movie.

Share this post


Link to post
Share on other sites