Results 1 to 2 of 2

Thread: Using a Z-Buffer in Windowed Mode [Resolved]

Threaded View

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Resolved Using a Z-Buffer in Windowed Mode [Resolved]

    Does anyone know how to use a ZBuffer in Windowed mode? I can use one in Full screen but if I run it in Windowed mode I get an error when the following line is called:
    VB Code:
    1. D3DDevice.Clear 0, ByVal 0, D3DCLEAR_TARGET Or D3DCLEAR_ZBUFFER, BColor, 1#, 0
    So I removed the "Or D3DCLEAR_ZBUFFER" and now nothing apears(well apart from a blank area the color of BColor). However if I remove the line that enables the ZBuffer:
    VB Code:
    1. D3DDevice.SetRenderState D3DRS_ZENABLE, 1
    Then now it works but you can see both sides(Basicaly theres no ZBuffer anymore).

    Is there someting I'm missing? Thanx for any help.
    Last edited by Electroman; Sep 20th, 2004 at 09:12 AM.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

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



Click Here to Expand Forum to Full Width