Billboard Example 1

Source


#VRML 2.0 utf8

Viewpoint { position 0 0 5 }

Billboard {
   axisOfRotation 0 1 0
   children [
      DirectionalLight {
            direction 0 0 -1
      }

      Transform {
	 translation 0 0 0
	 rotation 1 0 0 1.25
	 children [
	   Shape {
	       geometry Cone {
		  bottomRadius  1
		  height        3
		  side		TRUE
		  bottom	TRUE
	       }
	       appearance Appearance {
	   	  material Material {
		     diffuseColor  1.0 0.1 0.1
  		  }
	       }
	   }
 	 ]
      }
   ]
}