Download Print

Transcript
Introduction to X3D - eXtensible 3D
Firstly, we combine Wörmls head, eyes and hut within
a Transform node and translate all these objects 1.0
towards the top of the scene. Then we can build the
body of Wörml below the head.
We define a Material node with diffuseColor red (1
0 0). We use DEF to name the box "Box". Naming a
geometric object allows reusing this object later on.
The Coordinate node contains all the indexed spatial
coordinates in the attribute point. In the attribute
coordIndex of the IndexedFaceSet node all the faces
of the box are defined. Each face consists of four
spatial coordinates and the first coordinate is listed at
the end again. We end a face definition with -1.
For the orange box we reuse and translate the red
box. We can use the definition of the red box by
calling it - USE="Box"- and assign the colour orange
(Material node, diffuseColour 1 0.5 0). We then move
this orange box 0.3 towards the bottom of the scene
using a Transform node.
Only pictures can be viewed in the PDF
version! For Flash etc. see online version.
Only screenshots of animations will be
displayed. [link]
http://www.e-cartouche.ch - Version from: 21.9.2007
24