Results 1 to 3 of 3

Thread: Problem with DirectX Common Framework (Clootie)

  1. #1

    Problem with DirectX Common Framework (Clootie)

    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.

  2. #2

    Problem with DirectX Common Framework (Clootie)

    You need to disable Z-buffer functionality (as it seems you are not using it: not clearing; and drawing triangles at the same depth):
    [pascal] pd3dDevice.SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    [/pascal]
    There are only 10 types of people in this world; those who understand binary and those who don't.

  3. #3

    Problem with DirectX Common Framework (Clootie)

    Yes, that was it. I didn't notice that Common Framework enable Z-buffer by default.

    I'll remember this from now on

    Tnx!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •