Hi Jason,
Sorry, I did not know that would actually do that, so I won't do that
again (except for this one explaining my ignorance), please accept my
apologies.
No worries, I didn't want to sound to harsh. See my answer to you
question below.
Cheers
Sebastian
Cheers
Jason
From: Sebastian Messerschmidt <[email protected]
<mailto:[email protected]>>
Reply-To: OpenSceneGraph Users <[email protected]
<mailto:[email protected]>>
Date: Wed, 11 Jun 2014 08:40:40 +0200
To: OpenSceneGraph Users <[email protected]
<mailto:[email protected]>>
Subject: Re: [osg-users] Matrix makeLookAt and getLookAt
Hi Jason,
Please don't hijack threads by replying to them and simply changing
the subject. Apart from being considered rude it will reduce chances
someone actually answering ;-)
Hi all,
Just a simple question, I have now found a need to use LookAt
functions, but I don't understand something, I create a matrix using
lookAt, but when I call getlookAt, it does not give the same results
back I originally used when creating it. Any ideas?
Code :
osg::Vec3d eye(0.0, -89.0, 0.0);
osg::Vec3d cnt(0.0, 0.0, 0.0);
osg::Vec3d up(0.0, 1.0, 0.0);
M.makeLookAt(eye, cnt, up);
M.getLookAt(eye, cnt, up, 89.0);
The results I get are all --1.#IND0000000000000 (not a number)
It is rather obvious that the up and the eye vector are parallel. In
order create a valid view matrix they should be perpendicular.
cheers
Sebastian
Cheers
Jason
PS: I am attending Sig-graph 2014 this year, so it will be great to
finally meet some of the wizards from OSG.
Internet Email Confidentiality Footer: This email and any files
transmitted with it contain privileged/confidential information
intended for the addressee. Neither the confidentiality of nor any
privilege in the email is waived, lost or destroyed by reason that it
has been transmitted other than to the addressee. If you are not the
addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message
to anyone. In such case, you should destroy this message, and notify
us immediately.
_______________________________________________
osg-users mailing list
[email protected]http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Internet Email Confidentiality Footer: This email and any files
transmitted with it contain privileged/confidential information
intended for the addressee. Neither the confidentiality of nor any
privilege in the email is waived, lost or destroyed by reason that it
has been transmitted other than to the addressee. If you are not the
addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message
to anyone. In such case, you should destroy this message, and notify
us immediately.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org