Vizard 7 » Tutorials & Examples » 3D models » Text nodes » Tutorial: 2D & 3D text
7.7

Tutorial: 2D & 3D text

Vizard supports 3D text, 2D text, and screen text. In this tutorial we'll learn how to create each of these objects and use text commands to change their properties.

This content is discussed in more detail in the reference section.

Setting up a text world

If you have trouble getting the code in this tutorial to work, you can find the complete example script text.py in the \tutorials\3Dmodels directory.

 

Add the following initial code to your script:

import viz
import vizact

viz.setMultiSample(4)
viz.fov(60)
viz.go()

gallery = viz.addChild('gallery.osgb')

Setting up a text world

Creating text

Changing the font

Changing the message