Jump to content
  • Advertisement

Archived

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

jgb_irish

Triangle front or back facing??

This topic is 5815 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

Given the screen space coordinates of a triangle in counter clockwise order, how would you determine if the triangle is front or back facing?

Share this post


Link to post
Share on other sites
Advertisement
Could you clarify your question a bit?

Usually when the back face culling is implemented in screen space, you perform a test to see if the winding order of the vertices is clockwise or counter-clockwise (the coordinate system (LH/RH) will determine which of these two is front-facing).

You say that you already know the triangle''s vertices are counter-clockwise in screen space so I don''t understand what you''re asking.

Share this post


Link to post
Share on other sites
At least in OpenGL, you can specify either clockwise or
counter-clockwise as the "front" (GL_CW, GL_CCW). So the
question is, which one are you using as the "front"? Since
you already know your triangle is counter-clockwise...


~~~~
Kami no Itte ga ore ni zettai naru!

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!