Showing an icon over a unit or group of units
by Novack · in Torque Game Engine · 09/08/2007 (12:05 am) · 4 replies
Im working on a squad system for the RTS kit, but right now, I have this question that would be useful for the general population ;)
I want to show an icon/bitmap over the squad (or even over a unit) a la Company of Heroes, here are some screenshots:
Here are the icons (the parachute on this case)

The same shot from a different angle, as you can see, the icons are always the same size, and always follow (front to) the camera:

So, I dont now how to begin, initially I have this two problems:
1) how to show that shape, always on front of the camera
2) how to make the shape always on top of a player (or at the center of mass -average distance- , of a group of players)
What would be a good approach to achieving these results?
I want to show an icon/bitmap over the squad (or even over a unit) a la Company of Heroes, here are some screenshots:
Here are the icons (the parachute on this case)

The same shot from a different angle, as you can see, the icons are always the same size, and always follow (front to) the camera:

So, I dont now how to begin, initially I have this two problems:
1) how to show that shape, always on front of the camera
2) how to make the shape always on top of a player (or at the center of mass -average distance- , of a group of players)
What would be a good approach to achieving these results?
About the author
http://cyberiansoftware.com.ar/
#2
09/10/2007 (4:51 pm)
Now that looks good!
#3
09/21/2007 (6:52 am)
Good resource!, i was thinkin to, that you can use a billboard, and atach them to a object or player node...
#4
Im planning to add an squad health bar, just like the pics above (the pics are from Company of Heroes). I dont know exactly how yet, beacuse I didnt work on that (on the RTS world we are a little busy these days), but I wanna make it, so someday soon Ill be working on this.
09/21/2007 (9:31 am)
Yes, Orion made a fantastic resource, and it works wonderfully.Im planning to add an squad health bar, just like the pics above (the pics are from Company of Heroes). I dont know exactly how yet, beacuse I didnt work on that (on the RTS world we are a little busy these days), but I wanna make it, so someday soon Ill be working on this.
Torque 3D Owner Novack
CyberianSoftware
Gui3DProjectionCtrl
Synopsis:
This control is meant to be merely a container for other controls. What's neat is that it's easy to 'attach' this control to a point in world-space or, more interestingly, to an object such as a player.
Thanks anyway