If I apply 2 quat on the same vector in the same line or in two instruction,
the result is the same...

so q = q1*q2 look the 2 rotation accumulation, depending of the order of
course.

thanks,
   Vincent.

2008/10/31 Paul Melis <[EMAIL PROTECTED]>

> Vincent Bourdier wrote:
>
>> Hi
>>
>> I was not sure that the * operator would compute the quaternion that I'm
>> looking for.
>> I looked in the sources, but the code is very hard to understand for me.
>>
> It probably does what you expect: compute a combined quaternion.
> Just try it with 2 rotations like 90 around X and 90 around Y and transform
> a single vec3 to check
>
> Paul
>
>>
>> If you are sure, I will do it of course.
>> thanks
>>  Vincent.
>>
>> 2008/10/31 Paul Melis <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
>>
>>    Vincent Bourdier wrote:
>>
>>        Hi,
>>
>>        This a math problem, depending on OSG.
>>
>>        I need to apply 2 rotation to a vector. I would be very simple
>>        if I can cumulate the 2 quat in one.
>>        How to do it ? Do Osg implement a method to combine two
>>        rotations ?
>>
>>    Can't you simply multiply them? I.e
>>    osg::Quat q1, q2, qf;
>>    // set q1 and q2
>>    qf = q1 * q2;
>>
>>    Paul
>>
>>
>>        thanks.
>>
>>        Regards,
>>
>>          Vincent.
>>
>>  ------------------------------------------------------------------------
>>
>>        _______________________________________________
>>        osg-users mailing list
>>        osg-users@lists.openscenegraph.org
>>        <mailto:osg-users@lists.openscenegraph.org>
>>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>>    _______________________________________________
>>    osg-users mailing list
>>    osg-users@lists.openscenegraph.org
>>    <mailto: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

Reply via email to