![]() |
#1
|
|||
|
|||
![]()
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.. ![]() |
#2
|
|||
|
|||
You can use billboarding for this.
Code:
tree = viz.add('tree.jpg') quad = viz.addTexQuad() quad.texture(tree) quad.billboard(viz.BILLBOARD_YAXIS) |
#3
|
|||
|
|||
Waa..it works perfectly..thank you so much..
|
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wide-angle view | Brett Lindberg | Vizard | 8 | 09-04-2009 04:57 PM |
View | nlfrnassimi | Vizard | 0 | 03-17-2009 02:01 AM |
View | nlfrnassimi | Vizard | 4 | 03-12-2009 05:25 AM |
I need help with the Far Clip Plane... | k_iwan | Vizard | 3 | 03-13-2007 04:54 AM |
problem with stereo mode | shivanangel | Vizard | 3 | 10-17-2006 09:58 AM |