Introduction to 3D Graphics and VRML

[ Previous | Index | Next ]


Transformation (cont...)

Scaling

  • Vertices multiplied by a sclaing factor to scale an object
  • Denoted as S(X,Y,Z), where X,Y,Z are scale factors
  • Can also be used to deform objects

VRML Scaling Example

#VRML V1.0 ascii

Material  { diffuseColor 1   0   0   }
Scale     { scaleFactor  0.5 0.5 0.5 }
Cube      { depth 2 height 2 width 2 }

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