PREVIOUS   NEXT   CONTENTS   HOME 

2.4.2 A very simple example of a VRML file

Figure 5 - in VRML

A very simple example of VRML file
Figure 6. A very simple example of a VRML file

 #VRML v1.0 ascii
 # lollipop tree. A very simple example of VRML.
 
 #start world
 Separator {
 
 
 #set colour to brown
 Material {diffuseColor  0.40 0.07 0.00}
 
 #Draw tree trunk using a cylinder
 Cylinder{	height 1
 radius 0.1}
 
 #Move up
 Transform{translation 0 0.5 0}
 
 #set colour to green
 Material {diffuseColor  0.00 0.07 0.00}
 
 #Draw tree canopy using a sphere
 Sphere {radius .5}
 
 
 #end world
 }
 
 

 PREVIOUS   NEXT   CONTENTS   HOME 

© Internet Archaeology URL: http://intarch.ac.uk/journal/issue1/gillings/part9b.html
Last updated: Tue Sep 5 1996