Titania X3D Editor

Bring Colours to Your Life.

Titania v4.3.3

Bring Colours to Your Life.

X3D Reference

Grouping nodes

Motivation

You can group shapes to compose complex shapes

X3D has several grouping nodes, including:

XML Encoding

Classic Encoding

Syntax: Group

The Group node creates a basic group.

  • Every child node in the group is displayed.

XML Encoding

Classic Encoding

Syntax: Switch

The Switch group node creates a switched group

  • Only one child node in the group is displayed
  • You select which child
    • Children implicitly numbered from 0
    • A -1 selects no children

XML Encoding

Classic Encoding

Syntax: Transform

The Transform group node creates a group with its own coordinate system.

  • Every child node in the group is displayed.

XML Encoding

Classic Encoding

Syntax: Billboard

The Billboard group node creates a group with a special coordinate system.

  • Every child node in the group is displayed.
  • The coordinate system is turned to face viewer.

XML Encoding

Classic Encoding

Billboard rotation axes

  • A rotation axis defines a pole to rotate round
  • Similar to a Transform node's rotation field, but no angle (auto computed)
  • A standard rotation axis limits rotation to spin about that axis
  • A zero rotation axis enables rotation around any axis
Rotate about Axis
X-Axis 1.0 0.0 0.0
Y-Axis 0.0 1.0 0.0
Z-Axis 0.0 0.0 1.0
Any Axis 0.0 0.0 0.0

A sample billboard group

XML Encoding

Classic Encoding

Syntax: Anchor

An Anchor node creates a group that acts as a clickable anchor

  • Every child node in the group is displayed
  • Clicking any child follows a URL
  • A description names the anchor

XML Encoding

Classic Encoding

Syntax: Inline

An Inline node creates a special group from another X3D file's contents

  • Children read from file selected by a URL
  • Every child node in group is displayed

XML Encoding

Classic Encoding

Summary

  • The Group node creates a basic group
  • The Switch node creates a group with 1 choice used
  • The Transform node creates a group with a new coordinate system
  • The Billboard node creates a group with a coordinate system that rotates to face the viewer
  • The Anchor node creates a clickable group
    • Clicking any child in the group loads a URL
  • The Inline node creates a special group loaded from another X3D file

Cookies and other Technologies

By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.