WTString3D Lab

What's Happening

Version 3.0 of the Web Driver adds the ability to create and modify 3d text objects in script, exposed through the WTString3D object. While you could certainly create your own 3d text in 3dsmax or other modeling tools, the Web Driver's 3d text is much simpler to use, and more importantly for web-based content, creates text without needing to download any geometry files.

Prior to Web Driver 3.0, 3d text objects were only available in WTStudio.

The WTString3D object gives you access to the following text properties:

This lab demonstrates how to set various properties of the 3d text object, as well as how to change the positions of individual letters. Use the controls to the right of the Web Driver window to adjust properties of the 3d text, or click and drag individual letters to change their positions. If you wish to examine the effects of setting text quality, pressing space while the web driver window has focus will toggle wireframe mode. To rotate the 3d text object, left click and drag in the scene (in a spot where there are no letters). Right click and drag to zoom.

Key Methods Used

WT::createString3d, WTString3d::setText, WTString3d::setTextFace, WTString3d::setTextProperties

Points to Remember