PDA

View Full Version : I have some problems



Dr Meduza
02-05-2003, 06:09 AM
I have a problem I see objects with is under other object and is rendered after it :?

Harry Hunt
02-05-2003, 12:46 PM
Add

EnableAutoDepthStencil := true;
AutoDepthStencilFormat := D3DFMT_D16;

to your Direct3D PresentParams. Looks like you need a Z-Buffer.

Also, when you call Direct3DDevice.Clear, do it like this:

Direct3DDevice.Clear(0, nil, D3DCLEAR_TARGET or D3DCLEAR_ZBUFFER, FillColor, 1.0, 0);

Dr Meduza
05-05-2003, 05:10 AM
It work :D Thanks