Re: [osg-users] Camera Behavior
John Galt writes: In the left window, the camera is supposed to be fixed at a point and only rotate about Z axis. How ever it seems to me like the camera while rotating about the Zaxis is also revolving in an orbit about the point (0,0,2). That's the thing that I'm not sure about. Can you place three more dolls at 90º, -90º and 180º to confirm that? -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Camera Behavior
John Galt writes: Even if that is the case, Believe me, it is: http://www.opengl.org/wiki/GluLookAt_code when my eye is fixed and center is changing, should I see the view as a camera that is rotating about a fixed point? Why is it that I am seeing the camera rotate about a moving point? I think it is difficult to see if you are rotating about a moving point or not. The best action to take is to check the numbers. Look at the matrix of the camera you built and see what the translational part looks like. Check also that your camera is not influenced by any transformation above it in the scene graph. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Camera Behavior
Hi, Here's the video of what is happening with my camera: http://www.youtube.com/watch?v=_7tfZuRgyYE Thank you! Cheers, John -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26494#26494 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Camera Behavior
John Galt writes: Here's the video of what is happening with my camera: http://www.youtube.com/watch?v=_7tfZuRgyYE Difficult to say... The camera seems to be moving properly, since the doll is being rotated accordingly. The white and blue colors could be a clipping issue with a plane at Z=0. Try to raise the camera (eyeZ 0) in order to see if it changes anything. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Camera Behavior
Alberto Luaces wrote: John Galt writes: Here's the video of what is happening with my camera: http://www.youtube.com/watch?v=_7tfZuRgyYE Difficult to say... The camera seems to be moving properly, since the doll is being rotated accordingly. The white and blue colors could be a clipping issue with a plane at Z=0. Try to raise the camera (eyeZ 0) in order to see if it changes anything. -- Alberto ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Post generated by Mail2Forum The camera is supposed to be fixed at (0,0,2). The camera's view frustum is supposed to be aligned as the frustum shown in the right view window. In the left window, the camera is supposed to be fixed at a point and only rotate about Z axis. How ever it seems to me like the camera while rotating about the Zaxis is also revolving in an orbit about the point (0,0,2). -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26497#26497 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Camera Behavior
John Galt writes: Hi, I have setup my view as view-getCamera()-setViewMatrixAsLookAt(eye, center, up); eye, center and up are osg::Vec3 elements. I have my eye and up as constant. When I change my center vector, the Camera's position is changing! Can anyone explain why? Shouldn't the camera's position (X,Y,Z) be fixed if the eye vector is constant? John, eye and center are not vectors but points. When you use them in setViewMatrixAsLookAt, you actually mean from eye to center. -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Camera Behavior
Alberto Luaces wrote: John Galt writes: Hi, I have setup my view as view-getCamera()-setViewMatrixAsLookAt(eye, center, up); eye, center and up are osg::Vec3 elements. I have my eye and up as constant. When I change my center vector, the Camera's position is changing! Can anyone explain why? Shouldn't the camera's position (X,Y,Z) be fixed if the eye vector is constant? John, eye and center are not vectors but points. When you use them in setViewMatrixAsLookAt, you actually mean from eye to center. -- Alberto ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Post generated by Mail2Forum Hi Alberto, Even if that is the case, when my eye is fixed and center is changing, should I see the view as a camera that is rotating about a fixed point? Why is it that I am seeing the camera rotate about a moving point? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26447#26447 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org