eonil
eonil

Reputation: 86005

What's the de facto standard of triangle winding direction in OpenGL?

We have two options in triangle winding direction,

  1. clock-wise
  2. counter-clockwise

Anyway converting between them could take some cost. I want to avoid conversion as much as possible, and to do that, I need to know de facto standard of winding direction. I think there's one because many big corporations are using OpenGL, and I think if there's one direction which is used by most of them, that's de facto standard.

If there's no such thing, please let me know.

Upvotes: 24

Views: 12509

Answers (2)

Vaughn Cato
Vaughn Cato

Reputation: 64308

The OpenGL Programming guide says "By convention, polygons whose vertices appear in counterclockwise order on the screen are called front-facing."

Upvotes: 29

JWWalker
JWWalker

Reputation: 22707

The documentation on glFrontFace says that the default is GL_CCW.

Upvotes: 17

Related Questions