Jump to content
  • Advertisement

Archived

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

genne

orientation of vertices

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

When giving opengl vertices to form, for example, a polygon, what''s the default orientation to use? Clockwise, or counter-clockwise? I know it works both ways, but one of them is supposed to be the default one, isn''t it?

Share this post


Link to post
Share on other sites
Advertisement
Actually it only works both ways as long as backface-culling is of (you might consider switching that on for performance; didn´t get much result of it though). I´m not 100% sure, but from other experiences I´d say anti-clockwise is default.

Share this post


Link to post
Share on other sites
You wan set the frontface winding with gl_FrontFace(arg) where arg is GL_CW or GL_CCW.. but you''re right the default value of that is GL_CCW

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!