PDA

View Full Version : Plane faces main View


jaylocco
07-01-2009, 07:51 PM
Hi, I am making a landscape full of trees.In order to minimizes the program, I intend to add a vertical plane with a tree image and later clone it to several trees and scatter them.The thing is, how to make every each of them to always rotate on its position and face our view. so that they will seem like 3d trees. Or are there any better ways to do it?
Thanks in advance..;)

Jeff
07-02-2009, 12:42 PM
You can use billboarding for this.

tree = viz.add('tree.jpg')

quad = viz.addTexQuad()
quad.texture(tree)
quad.billboard(viz.BILLBOARD_YAXIS)

jaylocco
07-05-2009, 08:21 PM
Waa..it works perfectly..thank you so much..