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

Backface culling?

Started by colinisinhere Oct 16, 2003 at 6:28 PM 1 replies 300+ views
Original Post
colinisinhere
colinisinhere
From what i''ve heard, it is a method of only showing polygons facing the camera and not showing the back faces. Is this done through Opengl/DirectX or programmed in the engine? And if its done with OpenGL how do you enable it?
S1CA
S1CA
And in DirectX: dev->SetRenderState( D3DRS_CULLMODE, D3DCULL_CCW );

On all graphics hardware manufactured since around 1996/7, backface culling has been performed by the HARDWARE. So neither OpenGL or DirectX actually do the work, your graphics card does (when it''s assembling vertices and indices into polygons).


BTW: Backface culling, what it does and how to use it is fully documented in the documentation for both DirectX and OpenGL.

--
Simon O''Connor
3D Game Programmer &
Microsoft DirectX MVP
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

Topic Locked

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

Sign in to reply to this topic.