• Create Account

# Necr0Potenc3

Member Since 22 Apr 2004
Offline Last Active Oct 17 2012 12:40 AM

### In Topic: Please check how my game runs

22 August 2005 - 03:36 AM

solid 59-60 FPS for me

geforce mx420
athlon xp 3200
512mb ram

### In Topic: Possible?

18 August 2005 - 10:48 PM

well, if you're still in doubt check this thread
http://www.gamedev.net/community/forums/topic.asp?topic_id=339864

### In Topic: how to calculate the angle

18 August 2005 - 03:45 AM

are they points or vectors?
you cant calculate angles between points, so I'm assuming you're talking about vectors

to avoid confusion, v1 is v and v2 is w. the formula is:
arccos(t) = (v.w) / (|v|.|w|)

in other words:
arccos(t) = (vx*wx + vy*wy + vz*wz) / (sqrt(vx² + vy² + xz² ) * sqrt(wx² + wy² + wz² ))

sqrt being square root

### In Topic: Draw lines over other OpenGL games?

16 August 2005 - 08:43 PM

an easier method

you'll probably need the hDC of the window which is being drawn, but thats easy to be obtained (GetDC)

here are the main steps:

1 - use windows hooking (SetWindowsHookEx) on the target window
2 - inside your window hooking function, write a handler for WM_PAINT. inside this handler, do any changes to the window

I just can't remember if its:

case WM_PAINT:
DrawStuff();
CallOriginal();

or the inverse. I'm not even sure if you actually need to call the original window proc since most apps draw stuff on the idle time. you'll have to check it yourself

TOO EASY!! (army voice)
leave API hooking for other stuff

going to the army base now, gonna get myself a taste of not so easy stuff =]

### In Topic: glPushMatrix doubt

14 August 2005 - 08:36 AM

as you said, glLoadIdentity resets the matrix

thats why I dont understand why glPushMatrix is used if we can just reset the current matrix. maybe there's something I missed

PARTNERS