PDA

View Full Version : use sprite in 3d tbgl?



kryton9
23-06-2010, 01:48
Guys, can the new sprites be used with tbgl in 3d window, as in billboards/posters instead of manually making a quad in tbgl?

It would be neat to use sprite as an entity, either child or as own object.

Another nice feature would be perhaps an enumeration for auto face towards the camera, or some other object or given position.

Michael Hartlef
23-06-2010, 06:01
No, they can't be used as billboards.

kryton9
23-06-2010, 06:11
Thanks for the quick reply Mike.

Petr Schreiber
23-06-2010, 07:38
Hi Kent,

interesting idea. Regarding facing the camera, you can do that for range of entities like this:


TBGL_EntitySetTarget( SceneID, EntityIDFrom, EntityIDTo, EntityToLookAt )



Petr

kryton9
24-06-2010, 02:39
Nice command Petr, thanks for jarring my memory.

Michael Hartlef
24-06-2010, 10:00
And if you just create a quad then you have a auto orienting billboard.