Point Camera Code

BlitzMax Forums/BlitzMax Programming/Point Camera Code

VIP3R(Posted 2006) [#1]
I'm using the OpenGL gluLookAt() function to point a camera in 3D, but it's twitching a lot if the object isn't in motion or upside-down.

I need the equivelent of PointEntity() in Blitz3D.

There was a function here somewhere called TurnToFace() or something like that but I can't find it anywhere.

Does anyone know where it's hiding or have a similar function?


Haramanai(Posted 2006) [#2]
Check out this page from the online Blue Book.
gluLookAt
And the "glFrustum" , "gluPerspective"


boomboommax(Posted 2006) [#3]
you should really use a matrix, else you will get bitten in the ass before long


Haramanai(Posted 2006) [#4]
Gimbal lock


VIP3R(Posted 2006) [#5]
I've got rid of the gluLookAt() twitching now, thanks Haramanai :)

Next I need to work out the camera pivot stuff...