Game Development Community

Target Ring

by Rodney (OldRod) Burns · in Torque Game Engine · 05/19/2005 (5:12 am) · 4 replies

In the screenshots for the RTS pack, it shows a target ring on the ground under selected units.

I don't have the RTS pack, so I can't see how that was done. So I'm wondering if anyone has implemented something similar for Torque? Or can someone point me in the direction of how to do this?

I have implemented the Object Selection resource and got it working with a bounding box showing up on the selected object, so I'm good up to that point. Now I have a ring graphic in a .png file that I want to display on the ground under the selected unit (with the graphic conforming to changes in the terrain if possible).

I've searched the forums and resources, but haven't come up with anything like that yet. Anyone know how to go about this? ;)

Thanks!

#1
05/19/2005 (6:00 am)
What you want is to look into gluDisk, google it and search here for it im sure theres something about it somewhere
#2
05/19/2005 (3:27 pm)
Thanks, I'll give that a look :)
#3
05/19/2005 (3:41 pm)
Look at the shadow code (game/shadow.cc/h). You could pretty easily replace the generic shadow texture (which is just a round black smudge) with a ring texture and then simply change the shadow direction to straight down so that the ring will be around the objects base. This will give you a very convincing highlight ring that will conform well to any surface in Torque (the RTS's selection ring only works on terrain).
#4
05/19/2005 (4:35 pm)
I might be wrong, but if memory serves me there is a decal applied to the ground in the Realms War code too.

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|EGTGE


Edit: More specifically, a special location marker. I can't recal if this was for spawns, power-ups, or what, but I'm sure there was some kind of rune marked on the ground. The same concept could be applied to your ring marker.

=)