Titania X3D Editor

It starts with you!

Titania v3.0.4

It starts with you!

X3D Reference

TwoSidedMaterial

TwoSidedMaterial

TwoSidedMaterial specifies surface rendering properties for associated geometry nodes, for outer (front) and inner (back) sides of polygons. Material attributes are used by the X3D lighting equations during rendering.

The TwoSidedMaterial node belongs to the Shape component and its container field is material. It is available since X3D version 3.2 or later.

Hierarchy

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

SFBool [in, out] separateBackColor FALSE

SeparateBackColor determines whether separate Material values are used for back faces.

Warning

Backface Material values are ignored unless you set separateBackColor='true'

SFFloat [in, out] ambientIntensity 0.2 [0,1]

How much ambient omnidirectional light is reflected from all light sources. Interchange profile hint: this field may be ignored, applying the default value regardless.

SFColor [in, out] diffuseColor 0.8 0.8 0.8 [0,1]

How much direct, angle-dependent light is reflected from all light sources.

Hint

Only emissiveColor affects IndexedLineSet, LineSet and PointSet.

SFColor [in, out] specularColor 0 0 0 [0,1]

Specular highlights are brightness reflections (example: shiny spots on an apple). Interchange profile hint: this field may be ignored, applying the default value regardless.

SFColor [in, out] emissiveColor 0 0 0 [0,1]

How much glowing light is emitted from this object.

Hints

EmissiveColors glow even when all lights are off. Reset diffuseColor from default (.8 .8 .8) to (0 0 0) to avoid washout. Only emissiveColor affects IndexedLineSet, LineSet and PointSet.

Warning

Bright emissiveColor values can wash out other colors and some textures.

SFFloat [in, out] shininess 0.2 [0,1]

Lower shininess values provide soft specular glows, while higher values result in sharper, smaller highlights. Interchange profile hint: this field may be ignored, applying the default value regardless.

SFFloat [in, out] transparency [0,1]

How "clear" an object is: 1.0 is completely transparent, 0.0 is completely opaque. Interchange profile hint: transparency < .5 opaque, transparency > .5 transparent.

SFFloat [in, out] backAmbientIntensity 0.2 [0,1]

How much ambient omnidirectional light is reflected from all light sources. Interchange profile hint: this field may be ignored, applying the default value regardless.

SFColor [in, out] backDiffuseColor 0.8 0.8 0.8 [0,1]

How much direct, angle-dependent light is reflected from all light sources.

Hint

Only emissiveColor affects IndexedLineSet, LineSet and PointSet.

SFColor [in, out] backSpecularColor 0 0 0 [0,1]

Specular highlights are brightness reflections (example: shiny spots on an apple). Interchange profile hint: this field may be ignored, applying the default value regardless.

SFColor [in, out] backEmissiveColor 0 0 0 [0,1]

How much glowing light is emitted from this object.

Hints

EmissiveColors glow even when all lights are off. Reset diffuseColor from default (.8 .8 .8) to (0 0 0) to avoid washout. Only emissiveColor affects IndexedLineSet, LineSet and PointSet.

Warning

Bright emissiveColor values can wash out other colors and some textures.

SFFloat [in, out] backShininess 0.2 [0,1]

Lower shininess values provide soft specular glows, while higher values result in sharper, smaller highlights. Interchange profile hint: this field may be ignored, applying the default value regardless.

SFFloat [in, out] backTransparency [0,1]

How "clear" an object is: 1.0 is completely transparent, 0.0 is completely opaque. Interchange profile hint: transparency < .5 opaque, transparency > .5 transparent.

Description

Hints

  • Include <component name='Shape' level='4'/>
  • Insert Shape and Appearance nodes before adding material.
  • DEF/USE copies of a single node can provide a similar "look + feel" style for related shapes in a scene.

Browser Compatibility

Titania X_ITE
yes yes