Game Development Community

Billboarding not working on animmated objects.

by Harvey Greensall · in Torque 3D Professional · 12/18/2009 (6:42 am) · 4 replies

Hey All,

Does anyone know if the billboarding is okay in T3D? OUr flags and pennants in Buccaneer are billboarded to face the camera ( would be even better if we could billboard them all to face a wind direction TBH ) anyhow, they no longer billboard. I can billboard other objects but the flags are animated using bones and it seems that a boned object cannot billboard to the camera anymore...

Does anyone know if the billboarding code has changed at all. I've spent a day trying to find an art hack around the problem, but with no progress.

Any advice would be great !!

#1
12/18/2009 (1:47 pm)
Probably not what you're looking for but how about a custom billboard (non-automatic) using a simple animated texture (IFL). It'll be far enough away that you could get away with that.
#2
12/18/2009 (2:58 pm)
If you can not do it with billboarding,then you can create a new class (that renders mesh - see source -> T3D -> examples),pull the camera position,calculate the eye vector,then create orient from dir (mathutils), and operate setrendertransform() each frame.
This will achieve the same functionality.
#3
12/19/2009 (2:02 am)
@Harvey

Sounds possible that it was broken during T3D development.

To be clear your looking for a submesh of the DTS shape to be camera aligned.... correct?
#4
12/21/2009 (12:54 pm)
I think that sounds correct Tom yes,,,

How do I host an image on the forum? I can take a screnshot of my hierarchy if you like, and post it here...