Lock billboard group rotation axis.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Lock billboard group rotation axis.

Post by Olby »

Billboards are great to quickly render grass, trees and such.
It would be ideal if we can have an additional command such as BillboardGroupLockAxis(GroupID, x, y, z).
If you set 1 for one or more axis PB should lock it and prevent billboards from rotating on that axis.

To justify this request run the BillboardGrass.pb example.
If the camera is moved above the ground billboards will face it and make the grass look unnatural. If we lock both the X and Z axis using the BillboardGroupLockAxis() grass would look more natural and still face the front instead of the top. Using combination of one or more axis-locked billboard groups a more natural environment can be achieved.

Same goes for flat-trees. Once you are above them it would look silly if they face the camera (including the trunks :)).
Image

Please consider. Thanks!
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: Lock billboard group rotation axis.

Post by Bananenfreak »

Eeh, this is a Future Request, or? Place it in the right section...

btw: +1.
Image
User avatar
DK_PETER
Addict
Addict
Posts: 904
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: Lock billboard group rotation axis.

Post by DK_PETER »

+1 from me too.
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
Post Reply