I am using
Visual Basic 6.0 with Service Pack 5 and
DirectX 8.1. I have created a mesh representing a
terrain. There are many large bumps and surface features
so it looks great until I rotate it. When I rotate, many
things that are below suddenly appear on top and many
things are are on top will suddenly be under the terrain.
It is like DirectX draws the mountain and then draws the
surface behind the mountain on top of the mountain. I am
using the sample classes that come with the SDK for
cd3dframe and cd3dmesh. Also, I am using the d3dutil.bas
and d3dinit.bas files with some modifications to the
d3dutil_setupdefaultscene. I have the zbuffer enabled and
CCW culling with no clipping. Also, though I am using
lights, I have colored each of my vertices using diffuse
and I have applied a white material to my terrain mesh.
Any opinions on why my mountains and valleys are giving me
trouble?
Thanks!
Matthew Hanna