Writing Things Out
Node
Text • Attributes
Description
A two-line Text string using the default FontStyle settings (no FontStyle node listed).
VRIGNETTE Notes
Text node is a simple method for displaying text but you'll need a FontStyle node if you want more than a basic look.
Other Nodes
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="X3D Text Example"> </worldInfo> <navigationInfo headlight="true"> </navigationInfo> <viewpoint position="2.25 0.0 12.0" orientation="0 0 1 0.15" centerOfRotation="0.0 0.0 0.0"> </viewpoint> <shape> <appearance> <material diffuseColor="0.90 0.30 0.15" specularColor="0.25 0.25 .025" shininess="0.15"> </material> </appearance> <text solid="false" maxExtent="20" length="15.0 10.0" string='"X3D Text" "Example"'> </text> </shape> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>