Writing Things Out

Text • Attributes

A two-line Text string using the default FontStyle settings (no FontStyle node listed).

Text node is a simple method for displaying text but you'll need a FontStyle node if you want more than a basic look.

FontStyle

 

Rotate the vrignette to view the geometry.

<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>