Introduction to 3D Graphics and VRML

[ Previous | Index | Next ]


Transformation

Translation

  • Used to position an object by specifying its location relative to a fixed point
  • Denoted as T(X,Y,Z)

VRML Translation Example

#VRML V1.0 ascii

Material  { diffuseColor 1   0   0   }
Transform { translation  2   2   0   }
Cube      { depth 2 height 2 width 2 }

Author: Michael Louka (mlouka@sn.no)
Last Updated: 19 November 1996