PDA

View Full Version : Problem with DirectX Common Framework (Clootie)



Srki_82
29-01-2006, 04:19 PM
I try to make simple scene with 2 rectangles but i don't get expected output:

http://www.geocities.com/srki_82/D3DError.JPG

The source code is here:

http://www.geocities.com/srki_82/D3DTut8.zip

What is wrong with code I wrote?

BTW: I have code which don't use Common Framework and that one works nice.

Clootie
29-01-2006, 10:35 PM
You need to disable Z-buffer functionality (as it seems you are not using it: not clearing; and drawing triangles at the same depth):
pd3dDevice.SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);

Srki_82
30-01-2006, 07:17 AM
Yes, that was it. I didn't notice that Common Framework enable Z-buffer by default.

I'll remember this from now on :)

Tnx!