Re: Particle Rotation

Date : Wed, 20 Jul 2005 13:06:36 +0100
To : XSI(at)Softimage.COM
From : Alan Jones <skyphyr(at)gmail.com>
Subject : Re: Particle Rotation
Decided to go back to my data source to double check. When you're
writing off the rotation to file - be sure to use the rotation array
to pull the data from rather than the position one...

I'm sure to be hit by everyone for this. 

Cheers,

Alan.

On 7/20/05, Alan Jones <skyphyr(at)gmail.com> wrote:
> 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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.