Hi,
For those Math gifted/talented people in the forum (you know who you are )
Its a way to have a zgelibrary function to mimic/clone the GLU Camera LookAt ?
Something like Lookat( x, y, z) and then change the rotations of the camera to correctly look at that position/model ?
Thanks in advance,
Lupo
PS Bring the Quaternions!!!
Camera lookat
Moderator: Moderators
Camera lookat
Close, but not there yet.
Thinking a bit
Maybe its better to think in some kind of camera component/behaviour?
Like:
- Follow that model.
- First Person
- Overtheshoulder
- Panoramic
Like:
- Follow that model.
- First Person
- Overtheshoulder
- Panoramic
Close, but not there yet.
Hi Lupo,
You said it .. bring on the quaternions, you really need them for a gluLookAt type of function. However, when your game has a constant up axis, the math is actually very easy.
1st / 3rd person cameras I personally see as a scripting job instead of a generic component, as every game requires a ( slightly ) different implementation. A camera component on the other hand is one of the first things I requested about two years ago when first starting out with ZGE
*Although with the recently added OnBeginRenderPass it has become very easy to implement your own camera management system.
K
You said it .. bring on the quaternions, you really need them for a gluLookAt type of function. However, when your game has a constant up axis, the math is actually very easy.
1st / 3rd person cameras I personally see as a scripting job instead of a generic component, as every game requires a ( slightly ) different implementation. A camera component on the other hand is one of the first things I requested about two years ago when first starting out with ZGE
*Although with the recently added OnBeginRenderPass it has become very easy to implement your own camera management system.
K