Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


One sided faces

This topic is 5940 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have noticed in most 3d programs that the faces have only one side so that if your looking at the back of it, its invisible. Does anyone know how I can set up Direct 3d to do this or why other programs do it? ( does it increase performance?) Thanks for your time, Dave

Share this post

Link to post
Share on other sites
pd3ddevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_XXX);
where XXX is CW, CCW, or NONE.

This is called backface culling. For the most part, you don''t want to see the geometry from their back sides. i.e.: if you''re drawing a box, you only want to see the front side of it, not the font and the back side. Sometimes you do want to have both, but then you really need to draw the back side first and the front side last, so that whatever is in the back does not appear above what is on the front.

Backface culling should increase performance because you don''t have to render as much data.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!