Hi, as far as I know the getRotate function assumes an orthogonal matrix (at least when returning a quat). You can find a few threads of discussion regarding the getRotate function if you search the lists.
Also have a look at the workings and code of: osgunittests quat there the getRotate function is tested quite extensively. At the moment you would have to unscale your matrix first before using getRotate. At some stage I made a patch to do this in getRotate, but it caused quite a slowdown and then again did not cater for things like reflections ... It turns out there are quite a few corner cases and the function cannot guess at user intention, but I agree that the limitations should be documented. Maybe if I have time, or maybe if you have? regards jp Robert Penn Taylor wrote: > Does getRotate() on a matrix with scale components return the pure > rotation? Is a full decompose() the more reliable (correct?) way to get > the rotation out of a non-orthogonal matrix? Is this documented anywhere? > > As a side issue, why are tricky little functions Matrix::rotate(), > Matrix::setRotate() and Matrix::makeRotate() so casually undocumented? > Maybe I'm particularly dense when it comes to interpreting a function's > purpose from its name, but a single line next to each in the header > could make things so much more obvious. > > -Penn Taylor > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

