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);
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.