#VRML V2.0 utf8 # #
#[return] #

#ex-billboard.wrl
# example of Billboard node 
# Last Modified 17-Sept-97

# The example defines a red box inside a group. This box is at (0,0,0)
#  and will be viewed from the defined Viewpoint position (see Viewpoint
#  node below). Inside the Billboard node 2 others cubes are defined ( the
#  green and blue ones). The billboard feature aligns both boxes to the
#  viewer so that their sides can not be seen anymore. 

Viewpoint {
   position -9 0 18
   orientation 0 1 0 -.75
         }

Group {
   children[
   Shape {
      geometry Box {}
      appearance Appearance {
			material Material {
			diffuseColor .8 0 0
					   }
		             }
	  }
            ]
       }

Billboard {
  axisOfRotation 0 1 0
  children [
	Transform {
	   translation 3 .5  1
	   children [
		# Defining a green box 	
		Shape { 
		    geometry Box {} 
	            appearance Appearance {
				material Material {
					  diffuseColor 0 .8 0
					           }
				           }
			}
		Transform {
			translation -5.2 3 1
			# Defining the blue box
			children Shape { 
				geometry Box {}
				appearance Appearance {
					material Material {
					diffuseColor 0 0 .8
		                                           }
				                       }
			                }
		          }
	             ]
                    }
           ]
      }

#