Titania X3D Editor

Bring Colours to Your Life.

Titania v4.3.3

Bring Colours to Your Life.

X3D Reference

Building primitive shapes

Motivation

Shapes are the building blocks of a X3D world. Primitive Shapes are standard building blocks:

Syntax: Shape

  • A Shape node builds a shape
    • appearance - color and texture
    • geometry - form, or structure

XML Encoding

Classic Encoding

Specifying appearance

  • Shape appearance is described by appearance nodes
  • For now, we'll use nodes to create a shaded white appearance:

XML Encoding

Classic Encoding

Specifying geometry

Shape geometry is built with geometry nodes:

XML Encoding

Classic Encoding

  • Geometry node fields control dimensions
    • Dimensions usually in meters, but can be anything

A sample primitive shape

XML Encoding

Classic Encoding

Building multiple shapes

  • Shapes are built centered in the world
  • A X3D file can contain multiple shapes
  • Shapes overlap when built at the same location

A sample file with multiple shapes

XML Encoding

Classic Encoding

Summary

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.