sio2CameraRender bug ?
2 posters
sio2CameraRender bug ?
Hello!
I think there is a small bug in sio2RenderCamera. If you try to build a top view (like the one in Blender) camera the transformation matrix is "O" and after the glTransformRender( camera->transform ); everything is fubared
Tested with the following code:
Shouldn't be something like:
I think there is a small bug in sio2RenderCamera. If you try to build a top view (like the one in Blender) camera the transformation matrix is "O" and after the glTransformRender( camera->transform ); everything is fubared
Tested with the following code:
- Code:
camera = glCameraInit("Camera");
camera->transform->loc->x = 0.0f;
camera->transform->loc->y = 0.0f;
camera->transform->loc->z = 10.0f;
camera->transform->dir->x = 0.0f;
camera->transform->dir->y = 0.0f;
camera->transform->dir->z = -1.0f;
Shouldn't be something like:
- Code:
if(camera->transform->dir->y != camera->transform->dir->y)
{
// compute camera transform matrix
...
// render matrix
...
}
//translate to camera position
...
glDisable- Posts : 3
Join date : 2009-03-11
Re: sio2CameraRender bug ?
Hummm Im aware of this problem but haven't find a fix that can fit in every situation, you'll get the same problem with gluLookAt
Permissions in this forum:
You cannot reply to topics in this forum
|
|