Aligned billboard patch uploaded to tracker

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Aligned billboard patch uploaded to tracker

Post by rogerborg »

Link.

I suggest adding this as a core scene node, as there have been many requests for this. It can be used for (e.g.) aligned decals like trees, or for 3D line (beam or bolt) effects.

Three types of facing are provided: opposite camera, facing camera from centre point, facing camera from end points. The last mode enables fairly seamless chains of billboards which can be used to build a 'trail' effect (e.g. like in Homeworld) without using cross-polygons or other solid objects.

Texture translation is provided, allowing textures to be "flowed" along billboards.

Sample app 12, terrain, has been modified to demonstrate the use of aligned billboards. The black pylons look scrappy, but they are just there to demonstrate the functionality. The beams are a bit nicer.

Comments, suggestions, bug reports are very welcome. Building and testing on non-Windows platforms would be very useful.

Sample screenshot:

Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I guess it won't be a complete project so I thought it would better fit this forum.
Thanks for this, it will be indeed very useful. I'll test it under Linux.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Super, thanks. Checking the archives, there have been several posts of aligned billboard classes before, using user-defined scene nodes, but I feel this is basic enough that it should be done as a core scene node.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Wow there are so many awesome things lately! Irrlicht rocks :)
Post Reply