Table of Contents Previous Chapter Details Viewpoint Slideshow Next Chapter Details X3D Resources

X3D Example Archives: VRML 2.0 Sourcebook, Chapter 05 - Positioning Shapes

This chapter describes how to position shapes within an X-Y-Z world coordinate system by adding a parent Transform node. Rotations about each axis are counter-clockwise using the right-hand rule. Nested Transform nodes can translate, rotate and scale shapes relative to each other in 3D space.

These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.

Figure 05.11 Nested Archways With Axes
X3D Scenes Descriptions
Figure 05.03b Cylinder Translation Translating +2 units along the X axis, 1 unit along Y axis, and building a cylinder.
Figure 05.03b Cylinder Translation With Axes Translating +2 units along the X axis, 1 unit along Y axis, and building a cylinder, with coordinate axes superimposed to show X3D/VRML directions
Figure 05.04b Cylinder Translation Translating -2 units along the X axis, 1 unit along Y axis, and building a cylinder.
Figure 05.04b Cylinder Translation With Axes Translating -2 units along the X axis, 1 unit along Y axis, and building a cylinder, with coordinate axes superimposed to show X3D/VRML directions
Figure 05.10 Archway Building an archway using multiple, translated coordinate systems.
Figure 05.10 Archway With Axes Building an archway using multiple, translated coordinate systems, with coordinate axes superimposed to show X3D/VRML directions
Figure 05.11 Nested Archways Nesting coordinate systems.
Figure 05.11 Nested Archways With Axes Nesting coordinate systems, coordinate axes superimposed to show X3D/VRML directions.

Online at http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter05-PositioningShapes

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter05-PositioningShapes

Table of Contents Previous Chapter Details Viewpoint Slideshow Next Chapter Details X3D Resources

Also available: current and archived nightly builds and distributions of these examples, all published under an Open-Source License.

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.