Re: [osg-users] multiple rotation with Quat

2008-10-31 Thread Vincent Bourdier
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

Re: [osg-users] multiple rotation with Quat

2008-10-31 Thread Paul Melis
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 aroun

Re: [osg-users] multiple rotation with Quat

2008-10-31 Thread Vincent Bourdier
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. If you are sure, I will do it of course. thanks Vincent. 2008/10/31 Paul Melis <[EMAIL PROTECTED]> > Vincent Bourdier wrote: > >> H

Re: [osg-users] multiple rotation with Quat

2008-10-31 Thread Paul Melis
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;

[osg-users] multiple rotation with Quat

2008-10-31 Thread Vincent Bourdier
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 ? thanks. Regards, Vincent. ___ osg-us