Skip to main content
GameDev.net gamedev.net
🔒 Locked

zbuffer (Direct3D)

Started by drago Oct 27, 1999 at 1:39 PM 1 replies 850+ views
Original Post
drago
drago
Is it necessary to have a zbuffer if you use Direct3D only as DirectDraw with hardware supported sfx. I'm not planning to use the z-axis...

------------------
Drago

osu!
Cruxis
Cruxis
No. ZBuffering is only good when you want
to sort the nearest and far away polygons.
If you dont intend to use the Z axis you
shouldnt need to use the Zbuffers.
mhkrause
mhkrause
You can disable z-buffering by setting the D3DRENDERSTATE_ZBUFFERENABLE state to FALSE.

You may want to use Z-buffer in the 2D app though, it could be any easy way to support multiple layers, parallax scrolling, etc. Just make sure all your polygons for a single layer have the same z.

Topic Locked

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

Sign in to reply to this topic.