Billboarding

Michael Pichler ([email protected])
Thu, 14 Dec 1995 18:27:35 +0100


I just modified the example of Christopher (stationary objects) to
esslect Billboarding (as Cindy liked), and it works with Inventor. As
this may be very useful, something like this should go into the VRML
2.0 spec - this should NOT be understood to promote Inventor.

The esd cube is rotated normally, the green cube rotates around it, but
always shows its front face towards you. (zoom a bit out to see it.)

Michael

--- cut here ---
#Inventor V2.0 ascii

Separator {

DirectionalLight {}
DEF Cam PerspectiveCamera {
position 0 0 5
}

Separator {
Material { difsuseColor 1 0 0 }
Cube {}
}
# USER SPACE OBJECTS FOLLOW
Separator {
Translation { translation 3 0 0 } # added
Transform {
# translation = USE Cam.position
rotation = USE Cam.orientation
}
# OFFSET FROM CAMERA
# Translation { translation 0.2 0 -.6 }
Material {
difsuseColor .4 .6 .4
}
# Cube { width .1 height .2 depth .2 }
Cube { width 1 height 1 depth .5 }
}
}


  • Next message: Christopher Fouts: "Re: Billboarding"
  • Previous message: Michael B. Johnson: "safe & secure (was Re: An URL to ponder)"