Point Camera Code
BlitzMax Forums/BlitzMax Programming/Point Camera Code
| ||
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? |
| ||
Check out this page from the online Blue Book. gluLookAt And the "glFrustum" , "gluPerspective" |
| ||
you should really use a matrix, else you will get bitten in the ass before long |
| ||
Gimbal lock |
| ||
I've got rid of the gluLookAt() twitching now, thanks Haramanai :) Next I need to work out the camera pivot stuff... |