Future to the fantasy ★ ★
Titania
X3D Editor
Version
3.0

Meta Data

The META statement is fully supported.

Use meta data to give additional information with your scene:

#X3D V3.0 utf8 Titania V0.7.0

META "comment" "World of Titania"
META "created" "Mon, 05 May 2014 10:24:07 GMT"
META "creator" "John Doe"
META "generator" "Titania V0.7.0, titania.create3000.de"
META "modified" "Mon, 09 Jun 2014 10:40:41 GMT"
META "title" "Plane sphere"

Transform {
  children Shape {
    geometry Sphere { }
  }
}

Prototyping

Protoyping is full supported. This includes PROTO statement as well as the EXTERNPROTO statement, nested protos and multiple field reference by the IS statement.

Rotor PROTO that generates value_changed events for one cycle:

PROTO Rotor [
  inputOutput    SFTime     cycleInterval 1
  inputOutput    SFBool     loop FALSE
  inputOutput    SFTime     startTime 0
  inputOutput    SFTime     stopTime 0
  outputOnly     SFRotation value_changed
]
{

  DEF Timer TimeSensor {
    cycleInterval IS cycleInterval
    loop IS loop
    startTime IS startTime
    stopTime IS stopTime
  }

  DEF Rotator OrientationInterpolator {
    key [ 0, 0.25, 0.5, 0.75, 1 ]
    keyValue [ 0 0 1 0, 0 0 1 1.5708, 0 0 1 3.14159, 0 0 1 4.71239, 0 0 1 0 ]
    value_changed IS value_changed
  }

  ROUTE Timer.fraction_changed TO Rotator.set_fraction
}

Routing

The ROUTE statement is full supported.

Route output fields to input fields to generate a rotating box:

DEF Fast Rotor {
loop TRUE
}

DEF WhiteBox Transform {
children Shape {
geometry Box { }
}
}

ROUTE Fast.value_changed TO WhiteBox.set_rotation

EXPORT/IMPORT

The EXPORT/IMPORT statements are full supported.

EXPORT statement:

DEF WhiteBox Transform {
children Shape {
geometry Box { }
}
}

EXPORT
WhiteBox

Import statement:

The named node »WhiteBox« is now exported and can be used when this file is imported by an Inline node:

DEF Slow Rotor {
cycleInterval 10
loop TRUE
}

DEF World Inline {
  url "whitebox.wrl"
}

IMPORT World.WhiteBox

ROUTE Slow.value_changed TO WhiteBox.set_rotation

The named node »WhiteBox« is here imported and routes to this node can be created. Note: imported nodes cannot be used in the USE statement.

JavaScript

The full X3D standard and VRMLScript standard is supported by Titania.