SoMaterialBindingface Property |
Applies materials to different faces of an object.
Namespace: OIV.Inventor.Nodes
This enum specifies whether to apply the material to the front faces, the back faces, or both. It is particularly useful for applying different materials to each side of a non-closed surface, allowing for distinct appearances on either side.
For closed surfaces, the use of FRONT_AND_BACK is generally sufficient, except where a OIV.Inventor.Nodes.SoClipPlane is used. This ensures that the material is applied to both the front and back faces, providing a consistent appearance.
Notes:
If you specify a material for one side only, the other side uses the default material values (see OIV.Inventor.Nodes.SoMaterial).
If you enable face culling, only the front faces are rendered (see OIV.Inventor.Nodes.SoShapeHints), even if a material is specified for the back faces. The same applies to front face culling.
If you disable two-sided lighting (see OIV.Inventor.Nodes.SoShapeHints), the front material is applied to both front and back faces.
If you specify colors using OIV.Inventor.Nodes.SoVertexProperty.orderedRGBA or OIV.Inventor.Nodes.SoBufferedShape.colorBuffer, you can only specify one set of colors. The current value of OIV.Inventor.Nodes.SoMaterialBinding.face on state determines which faces the color buffer impacts.
To visualize only the front or back faces, use the OIV.Inventor.Nodes.SoShapeHints.shapeType field. The enum SOLID activates back face culling and INNER_SOLID activates front face culling.
. Default is FRONT_AND_BACK.
![]() |
---|
Field available since Open Inventor 2025.1 |