Search code examples
openinventorcoin3d

How does open inventor / coin3d enable two-sided rendering like OpenGL?


Coin3D uses single-sided rendering by default like the image below:


(source: gitee.com)

How does open inventor / coin3d enable two-sided rendering like OpenGL?


Solution

  • SoShapeHints is the answer, but this summary may be clearer:

    • Two-sided lighting and backface culling are disabled by default.
    • Two-sided lighting: enabled if not solid and ordered vertices.
      Set vertexOrdering to COUNTERCLOCKWISE (usually) or CLOCKWISE.
    • Backface culling: enabled if solid and ordered vertices.
      Set shapeType to SOLID.