Skip to main content
gamedev.net
🔒 Locked

d3d z-buffer

Started by miodragsm 1 reply 300+ views
Original Post
miodragsm
miodragsm
How to read from z-buffer (create lockable z-buffer ) in d3d8.1
Namethatnobodyelsetook
Namethatnobodyelsetook
Use depth format D3DFMT_D16_LOCKABLE or D3DFMT_D32F_LOCKABLE.

[edited by - namethatnobodyelsetook on August 5, 2003 1:48:19 PM]
RapidStunna
RapidStunna
If you try to access the z-buffer, you''re not guarenteed:

1.) access. Some cards won''t allow you to get to it
2.) the correct data. Sometimes you''ll get random data.

And sometimes it may work, but don''t depend on it. So your best bet would be to find another solution to your problem without locking the z-buffer.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.