Hi,
I am currently trying to upgrade from DX8 to managed DX9. I wrote a very small program that loaded a simple sphere (created in Milkshape), and renderened it to the screen, nothing else... Anyway, when I implemented the Z-Buffer:
d3dpp.EnableAutoDepthStencil = True ''// Depth stencil
d3dpp.AutoDepthStencilFormat = DepthFormat.D16
I got very strange results (very pixelly looking... its hard to explain). Any way, I then realized I forgot to clear the buffer (hehe...), but when I do that, I get no display... The code to do that is:
D3DDevice.Clear(ClearFlags.Target or ClearFlags.ZBuffer, Color.Black, 0, 0)
I assume I did something wrong, but I don''t know what... Any help is greatly appreciated.