Skip to content

ofBox 3dPrimitive winding order inconsistent #2676

@tgfrerer

Description

@tgfrerer

All primitives but ofBoxPrimitive appear to be in CW winding order, resulting in front faces to be culled instead of backfaces, when glCullFace is enabled.

test case:

https://gist.github.com/tgfrerer/7417271

test case render

screenshot 2013-11-11 17 46 57

related issues

We have dealt with winding isssues in the past, with #2263 being the most recent.
There is a vintage open issue addressing this: #745

thoughts

I could fix/unify this, but i think it's worth discussing which winding order we adopt as standard. I'd personally be for going with the OpenGL standard of CCW for front-facing triangles, which would mean to bring everyting in line with ofBoxPrimitive. my main reason being that these kind of special cases could make oF a bit more difficult to learn / and code harder to port.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions