Game Development Community

Drawing a targeting circle on the ground under a entity?

by Chris · in Torque Game Engine Advanced · 01/21/2009 (12:04 pm) · 6 replies

Is this built in to TGEA? I would like to see a example of a targeting cursor under a actor like wow or other games do it.

Thanks!

#1
01/21/2009 (12:30 pm)
AFX does this. I forget what it's called, but if you don't want to spend the money for the pack, take a look at it and do a search for what they call the targeting circle icon thing. There should be a resource out there that shows how to do it.
#2
01/21/2009 (12:59 pm)
search for " GLU "
#3
01/21/2009 (3:06 pm)
Spending money for a working solution is not a problem long as it all works right.

#4
01/22/2009 (2:10 pm)
AFX works like a charm
#5
01/22/2009 (4:21 pm)
Yeah have a look at the AFX pack, there are examples on the page that show the selections and you can create some pretty stunning selections.
#6
01/23/2009 (1:34 am)
The way to do this, is basically by using the various ClippedPolyList/buldPolyList functionality in the engine. Essentially you give a clipper a set of clip planes (6 if you want an enclosed box clip, but you can pass it less), and objects that implement buildPolyList will give you the geometry inside the planes back.

From there it's pretty easy to draw the verts with whatever texture you want. This is only a simplified overview, though, there's quite a few difficult issues with doing this well. I suggest buying AFX if you need this quickly.

I own AFX and I can attest to the fact that it's awesome and completely worth the cash.