Draw Circle on Mouseclick

02/05/2015 23:47 TheOriginalDarklord#1
Greetings everyone,

i catch the Frontbuffer using a custom DLL i inject into a 3D application

(LoL and SC2 in my example)

it works pretty fine.

Now to my question:

I tried to draw a circle on mouseclick using Primitives but even if it getz displayed it doesnt follow

the object i clicked on (e.g. units)

Any idea how to get it stick to the clicked object?
02/06/2015 23:08 alpines#2
You need to read the position of the object and calculate the position of the 3d model on your 2d screen. After that simply redraw the circle everytime but don't forget to clear the buffer before you draw, otherwise it'll fill the screen.
02/07/2015 17:24 TheOriginalDarklord#3
Figured that much my problem was that basicly had to click the object again

every time the circle needs to be drawn it wasn`t following the object. It was

just sitting there at the position the object was before. Basicly

my problem atm is that i am unable to get position of the Object after it

moved unless i do it manually every frame despite having it classified (so my

program knows what it is and how it lookz like).

Going to look through my Code again maybe i missed something even though

nothing came up after debugging.

Thx for replying ill post the solution if i can get it done.
02/10/2015 08:19 palani3#4
go in vb(visual basic)
and see you will do