Re: [osg-users] Transformations using Quat and Mat

2017-11-14 Thread tianzjyh
Hi, Maurus, I think it's the order of the multiplies. It should be like vec*MatA*MatB, If you want to apply an osg::Matrix on a osg::Vec. But I do not quiet know why osg::Quat does not obey this: for a osg::Quat, the form quat * vec is used.___

[osg-users] Transformations using Quat and Mat

2017-11-14 Thread Michael Maurus
Hello everyboy, currently, I am trying to get some transformations working to display a cylinder as a line of sight. As you can see in the code below, I want to get the rotation represented by the Quaternion q into the Matrix mat, but neither preMultRotate using the quat nor multiplying as a

Re: [osg-users] Transformations

2009-07-23 Thread Pau Moreno
Hi, It was the loading of the rotation Matrix, the Y-up Rotation just rotates 90 degrees on the wrong axis, but the animation was still working OK :) Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15319#15319

Re: [osg-users] Transformations

2009-07-22 Thread Ulrich Hertlein
Hi Pau, On 21/7/09 10:12 PM, Pau Moreno wrote: Thank you very much Ulrich!! It works! I don't know why the other things I've tried didn't work but now is working!!! Out of curiosity, what was the issue? The loading of the existing matrix into osg::Matrix or the order of transformation or

Re: [osg-users] Transformations

2009-07-21 Thread Pau Moreno
Hi, Thank you very much Ulrich!! It works! I don't know why the other things I've tried didn't work but now is working!!! Thank you! Cheers, Pau -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15195#15195

Re: [osg-users] Transformations

2009-07-18 Thread Pau Moreno
Hi Ümit, I try to use osg::Switch to insert all the data I have in the files( each file in a separate node with his own transform matrix ), so I can switch the nodes in each frame, but I don't know why it seems that the second and following data I insert accumulates the previous matrix

Re: [osg-users] Transformations

2009-07-18 Thread Ulrich Hertlein
On 17/7/09 8:19 PM, Pau Moreno Font wrote: I'm trying to change my OGL code to OSG but I'm having really problems with the transformations... I have 174 data files that each contains a cloud of points, a vector3 with the translartion, and the matrix of rotation of each cloud. So in OGL, i just

[osg-users] Transformations

2009-07-17 Thread Pau Moreno Font
Hi, I'm trying to change my OGL code to OSG but I'm having really problems with the transformations... I have 174 data files that each contains a cloud of points, a vector3 with the translartion, and the matrix of rotation of each cloud. So in OGL, i just do: { LoadFile( x++)

Re: [osg-users] Transformations

2009-07-17 Thread Ümit Uzun
Hi Paul; So in OSG first of all I try to do it with a osg::Switch but seems that this node accumulate the transformations... is that right? What do you mean about osg::Switch. It's not specific feaute on accumulating trasformation for osg::Switch as I know. It actual target is switching node