Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > DirectX > Z Buffer In DX8


Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2003, 03:41 PM
lo_ol's Avatar
lo_ol lo_ol is offline
Newcomer
 
Join Date: Dec 2002
Posts: 13
Unhappy Z Buffer In DX8


Hi All

I work in DX8 when i put this code

Code:
Device.Clear(0, ByVal 0&, D3DCLEAR_TARGET Or D3DCLEAR_ZBUFFER, &HFF, 1#, 0)
i got Error

anyone help me plz
__________________
For x = 0 to 100000000
Print "visualbasicforum is Best of site"

next
Reply With Quote
  #2  
Old 03-03-2003, 07:05 AM
Machaira's Avatar
Machaira Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

Uhh, what's the error?
Reply With Quote
  #3  
Old 03-03-2003, 10:46 AM
lo_ol's Avatar
lo_ol lo_ol is offline
Newcomer
 
Join Date: Dec 2002
Posts: 13
Default

hi Machaira

the error is Automation Error


thanks
__________________
For x = 0 to 100000000
Print "visualbasicforum is Best of site"

next
Reply With Quote
  #4  
Old 03-03-2003, 11:34 AM
Machaira's Avatar
Machaira Machaira is offline
Jedi Coder

* Expert *
 
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
Default

Are you sure the device was actually created?
Reply With Quote
  #5  
Old 03-04-2003, 03:33 AM
Gamer256's Avatar
Gamer256 Gamer256 is offline
Junior Contributor
 
Join Date: Oct 2002
Location: Ter Aar City (NL)
Posts: 270
Default

You have created the device, but without ZBuffer (Otherwise the error would be something like ~ not set).

If you create the device, use the .DepthStencilFormat = D3DFMT_D16 of your D3DPRESENT_PARAMETERS. Also, set the .EnableAutoDepthStencil to 1.

If this won't work, try removing the "Or D3DCLEAR_ZBUFFER".
__________________
My site contains some Direct3D Samples. Check it!
Reply With Quote
  #6  
Old 03-04-2003, 02:21 PM
lo_ol's Avatar
lo_ol lo_ol is offline
Newcomer
 
Join Date: Dec 2002
Posts: 13
Talking

Very thanks Gamer256

i found the error

i dont use the .DepthStencilFormat = D3DFMT_D16


very thanks again
__________________
For x = 0 to 100000000
Print "visualbasicforum is Best of site"

next
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending bitmap or other files over winsock piggybank1974 Communications 7 03-02-2003 06:08 AM
event buffer fred General 2 02-06-2003 03:59 AM
Single BLT buffer Chazz569 Game Programming 7 11-16-2002 09:41 AM
Byte pointer to a buffer receiving a structure? esmithz General 3 09-17-2002 08:12 PM
Printing Information (Specifically tables)... MarkVB6 General 10 08-23-2002 03:54 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->