Hi Andy,
This is what I'm doing
MATH::CTransformation trans;
//rotate the mesh
trans.SetRotationFromXYZAngles(currentParticle.rotation);
//resize the mesh
trans.SetScalingFromValues(currentParticle.size,
currentParticle.size, currentParticle.size);
//reposition the mesh
trans.SetTranslation(currentParticle.position);
vertices[k].MulByTransformationInPlace(trans);
If the particle stays still then it doesn't spin (which further leads
me to believe it's a rotation information problem). The particle
information there isn't in standard format - it's a struct I created
myself from the particle information which I cached to file.
Cheers,
Alan.
On 7/20/05, Andrew Nicholas <andy(at)andynicholas.com> wrote:
>
> Have you tried using the SetFromXYZAngles function for the siRotation or
> siTransform objects?
>
> > but is it Euler? is it XYZ rotation order? YZX? ZYX? etc?
>
> That's always bothered me too. So far, I've not found anything in the docs
> that says what rotation order the function uses.
>
> Andy
>
>
>
>
> > It says somewhere it's radians.
> >
> > but is it Euler? is it XYZ rotation order? YZX? ZYX? etc?
> >
> > Is it in world space? object space? etc etc
> >
> > any why the spinning?
> >
> > I'm starting to sound boring... oh wait - that happened a long time ago.
> >
> > Cheers,
> >
> > Alan.
> >
> > On 7/20/05, kim aldis <kim(at)aldis.org.uk> wrote:
> >> Degrees/radians?
> >>
> >> > -----Original Message-----
> >> > From: owner-xsi(at)Softimage.COM
> >> > [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Alan Jones
> >> > Sent: 20 July 2005 11:25
> >> > To: xsi(at)Softimage.COM
> >> > Subject: Particle Rotation
> >> >
> >> > Hi All,
> >> >
> >> > Does anyone know the format of the particle rotation
> >> > information? I can't find anywhere in the docs that gives
> >> > more detail than it being a CVector3.
> >> >
> >> > My problem is that I've cached the data, but when I apply the
> >> > rotation to objects they slowly spin. I've checked the cloud
> >> > by applying instances and they don't suffer the spinning.
> >> >
> >> > Any ideas?
> >> >
> >> > Cheers,
> >> >
> >> > Alan.
> >> >
> >> > ---
> >> > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following
> >> > text in body:
> >> > unsubscribe xsi
> >> >
> >> >
> >>
> >> ---
> >> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> >> body:
> >> unsubscribe xsi
> >>
> >
> > ---
> > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> > unsubscribe xsi
> >
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi