This component defines nodes for rendering 3D text.
See also X3D specification of the Text component.
For complete demos and tests of these features,
text subdirectory inside our VRML/X3D demo models.
Most important properties (size, spacing, justify (including 2nd justify for vertical), family, style) are handled fully.
TODO: But some properties are ignored for now:
Text: length, maxExtent are ignored (and handled like they had default values, which means that the text is not stretched).
Text is "clickable" within
Although I didn't find any mention in the specifications that I should
do this, many VRML models seem to assume this.
We make an ultra-simple triangulation of the text
(just taking 2 triangles to cover whole text, you don't want
to produce real triangles for text node, as text node would have
a lot of triangles!).
TODO: unfortunately, for now these triangles also participate in collision detection, while spec says that text shouldn't collide.