WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Plane faces main View (https://forum.worldviz.com/showthread.php?t=2127)

jaylocco 07-01-2009 07:51 PM

Plane faces main View
 
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.

Code:

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..


All times are GMT -7. The time now is 05:34 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC