Re: [osg-users] camera postion problem
Hi Wiebe, would you please tell me how you got NodeTrackerManipulator to work? I do not seem to be setting it up correctly and it is not working for me. Thanks! Allen -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=14181#14181 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] camera postion problem
Hi Thanks for the help, I found the problem this morning. There where some matrices mixed up. Grtz Wiebe On Mon, 2008-11-10 at 13:52 +, Robert Osfield wrote: Hi Wiebe, Only you know what the right position is for your app. This is once you have the model matrix that the codes provide is all boils down basic a vector maths question, it's not my role to teach you this, there are plenty of books that do this. Robert. On Mon, Nov 10, 2008 at 1:43 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: hi, I have tried to use the NodeTrackerManipulator as well but i can't get it in the right place. If you could tell me how to rotate the camera to the right position maybe this could be a solution. For the trackball manipulator it is possible to set the rotation. I haven't found a way to do this with the NodeTrackerManipulator. Grtz Wiebe On Mon, 2008-11-10 at 13:37 +, Robert Osfield wrote: Hi Wiebe, I'm afraid I'm not familiar with this particular tutorial code so answer a question on it would have learn it first, which puts me one step behind where you are already. The osgGA library has a similar class call NodeTrackerManipulator which might not server your purpose exactly might be a better base. I wrote NodeTrackerManipulator so am a little better on off understanding what on earth it's supposed to do front. Robert. On Mon, Nov 10, 2008 at 1:19 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: I have used the follow node tutorial to get the track the node. http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/CameraControlNodeFollowing This seems to be working fine. But a look at the wrong site off the ship. Therefore i have changed the getInverseMatrix() to the following: m = m_matrix * osg::Matrixd::rotate(osg::DegreesToRadians(180.0),osg::Vec3(1,0,0)); I was expecting to look at the top of the ship, but it is the bottom and it looks like the area is mirrored. I thing the wrong movements off the mouse is a side affect off the wrong orientation off the camera. Wiebe On Mon, 2008-11-10 at 13:03 +, Robert Osfield wrote: Hi Wiebe, I'm afraid your email lacks enough information to be able to comment. You have to start by explaining how you are trying to track the node in the scene, and how this relates to how you are managing mouse movements. Robert. On Mon, Nov 10, 2008 at 12:53 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: Hi users, I try to track a node in a scene. This scene is a area with a ship. The node i try to follow is the ship. All seems oke but the complete scene seems to be mirrored. Even the mousse movents in x direction are inverse. Wiebe ing. Wiebe Hoekstra Software Engineer Maritime Simulation Group mailto:[EMAIL PROTECTED] T +31 317 49 35 19 MARIN 2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands T +31 317 49 39 11, F +31 317 49 32 45, I http://www.marin.nl/ MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org
Re: [osg-users] camera postion problem
I have used the follow node tutorial to get the track the node. http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/CameraControlNodeFollowing This seems to be working fine. But a look at the wrong site off the ship. Therefore i have changed the getInverseMatrix() to the following: m = m_matrix * osg::Matrixd::rotate(osg::DegreesToRadians(180.0),osg::Vec3(1,0,0)); I was expecting to look at the top of the ship, but it is the bottom and it looks like the area is mirrored. I thing the wrong movements off the mouse is a side affect off the wrong orientation off the camera. Wiebe On Mon, 2008-11-10 at 13:03 +, Robert Osfield wrote: Hi Wiebe, I'm afraid your email lacks enough information to be able to comment. You have to start by explaining how you are trying to track the node in the scene, and how this relates to how you are managing mouse movements. Robert. On Mon, Nov 10, 2008 at 12:53 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: Hi users, I try to track a node in a scene. This scene is a area with a ship. The node i try to follow is the ship. All seems oke but the complete scene seems to be mirrored. Even the mousse movents in x direction are inverse. Wiebe ing. Wiebe Hoekstra Software Engineer Maritime Simulation Group mailto:[EMAIL PROTECTED] T +31 317 49 35 19 MARIN 2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands T +31 317 49 39 11, F +31 317 49 32 45, I http://www.marin.nl/ MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] camera postion problem
Hi Wiebe, I'm afraid your email lacks enough information to be able to comment. You have to start by explaining how you are trying to track the node in the scene, and how this relates to how you are managing mouse movements. Robert. On Mon, Nov 10, 2008 at 12:53 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: Hi users, I try to track a node in a scene. This scene is a area with a ship. The node i try to follow is the ship. All seems oke but the complete scene seems to be mirrored. Even the mousse movents in x direction are inverse. Wiebe ing. Wiebe Hoekstra Software Engineer Maritime Simulation Group mailto:[EMAIL PROTECTED] T +31 317 49 35 19 MARIN 2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands T +31 317 49 39 11, F +31 317 49 32 45, I http://www.marin.nl/ MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] camera postion problem
Hi Wiebe, Only you know what the right position is for your app. This is once you have the model matrix that the codes provide is all boils down basic a vector maths question, it's not my role to teach you this, there are plenty of books that do this. Robert. On Mon, Nov 10, 2008 at 1:43 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: hi, I have tried to use the NodeTrackerManipulator as well but i can't get it in the right place. If you could tell me how to rotate the camera to the right position maybe this could be a solution. For the trackball manipulator it is possible to set the rotation. I haven't found a way to do this with the NodeTrackerManipulator. Grtz Wiebe On Mon, 2008-11-10 at 13:37 +, Robert Osfield wrote: Hi Wiebe, I'm afraid I'm not familiar with this particular tutorial code so answer a question on it would have learn it first, which puts me one step behind where you are already. The osgGA library has a similar class call NodeTrackerManipulator which might not server your purpose exactly might be a better base. I wrote NodeTrackerManipulator so am a little better on off understanding what on earth it's supposed to do front. Robert. On Mon, Nov 10, 2008 at 1:19 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: I have used the follow node tutorial to get the track the node. http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/CameraControlNodeFollowing This seems to be working fine. But a look at the wrong site off the ship. Therefore i have changed the getInverseMatrix() to the following: m = m_matrix * osg::Matrixd::rotate(osg::DegreesToRadians(180.0),osg::Vec3(1,0,0)); I was expecting to look at the top of the ship, but it is the bottom and it looks like the area is mirrored. I thing the wrong movements off the mouse is a side affect off the wrong orientation off the camera. Wiebe On Mon, 2008-11-10 at 13:03 +, Robert Osfield wrote: Hi Wiebe, I'm afraid your email lacks enough information to be able to comment. You have to start by explaining how you are trying to track the node in the scene, and how this relates to how you are managing mouse movements. Robert. On Mon, Nov 10, 2008 at 12:53 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: Hi users, I try to track a node in a scene. This scene is a area with a ship. The node i try to follow is the ship. All seems oke but the complete scene seems to be mirrored. Even the mousse movents in x direction are inverse. Wiebe ing. Wiebe Hoekstra Software Engineer Maritime Simulation Group mailto:[EMAIL PROTECTED] T +31 317 49 35 19 MARIN 2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands T +31 317 49 39 11, F +31 317 49 32 45, I http://www.marin.nl/ MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] camera postion problem
Hi Wiebe, I'm afraid I'm not familiar with this particular tutorial code so answer a question on it would have learn it first, which puts me one step behind where you are already. The osgGA library has a similar class call NodeTrackerManipulator which might not server your purpose exactly might be a better base. I wrote NodeTrackerManipulator so am a little better on off understanding what on earth it's supposed to do front. Robert. On Mon, Nov 10, 2008 at 1:19 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: I have used the follow node tutorial to get the track the node. http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/CameraControlNodeFollowing This seems to be working fine. But a look at the wrong site off the ship. Therefore i have changed the getInverseMatrix() to the following: m = m_matrix * osg::Matrixd::rotate(osg::DegreesToRadians(180.0),osg::Vec3(1,0,0)); I was expecting to look at the top of the ship, but it is the bottom and it looks like the area is mirrored. I thing the wrong movements off the mouse is a side affect off the wrong orientation off the camera. Wiebe On Mon, 2008-11-10 at 13:03 +, Robert Osfield wrote: Hi Wiebe, I'm afraid your email lacks enough information to be able to comment. You have to start by explaining how you are trying to track the node in the scene, and how this relates to how you are managing mouse movements. Robert. On Mon, Nov 10, 2008 at 12:53 PM, Wiebe Hoekstra [EMAIL PROTECTED] wrote: Hi users, I try to track a node in a scene. This scene is a area with a ship. The node i try to follow is the ship. All seems oke but the complete scene seems to be mirrored. Even the mousse movents in x direction are inverse. Wiebe ing. Wiebe Hoekstra Software Engineer Maritime Simulation Group mailto:[EMAIL PROTECTED] T +31 317 49 35 19 MARIN 2, Haagsteeg, P.O. Box 28, 6700 AA Wageningen, The Netherlands T +31 317 49 39 11, F +31 317 49 32 45, I http://www.marin.nl/ MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. MARIN webnews: FPSO JIP Week FPSO Research Forum, November 10-14, Bilbao This e-mail may be confidential, privileged and/or protected by copyright. If you are not the intended recipient, you should return it to the sender immediately and delete your copy from your system. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org