  | | | particle alignment | particle alignment 2004-07-05 - By Felix Gebhardt
Back
Hi David, glad it helped.
For getting the cloud reference you could do:
set oCloud = ActiveSceneRoot.findchild("cloud") set oPart = oCloud.ActivePrimitive.Particles
Should be a lot faster.
Cheers, Felix
David Barosin wrote: > Thanks Kim, Ahmidou, and Felix you are all 'the man' ;) > > Felix that's a nice solution. I really appreciate it. > > I think I figured out the caching part. I just duplicated the cloud and > got rid of the scripted Op and deforms. I then added a simple event > script to it. > '''''''''''''''''''''''''''''''''' > ''this should be set to run on every frame with the script context on Per > Cloud > > selectObj "cloud" > set oObj = selection(0) > > set oPart = oObj.ActivePrimitive.Particles > > inParticleCollection.PositionArray = oPart.PositionArray > inParticleCollection.RotationArray = oPart.RotationArray > ''''''''''''''''''''''''''''''''''''' > This seemed to do the trick to let me cache it to disk and load it back > in. The selectObj part of the script slows it down a bit but I don't know > a way around it. > > > Regards, > -Dave > > -- -- Original Message -- -- > From: "Felix Gebhardt" <gebhardt@(protected)> > To: <XSI@(protected)> > Sent: Sunday, July 04, 2004 7:39 AM > Subject: Re: particle alignment > > >> Hi David, >> >> I've put the scene here >> http://www.sukio.de/resources/PostDeformRotationFix.zip for you to have a >> look at it. This OP relies on the last evaluated frame, so if you want to >> render it on multiple machines it's not going to work correctly. You >> might try to copy over and cache the result to a second cloud that has a >> bigger or equal particle count though. >> >> I have seen Dave's version in the Siggraph03 material. It puts the static >> array into the OP's user data so you could have multiple clouds without >> changing the variable name of the tempcache. Maybe you could ask where >> they did put the FX_Seminar Data. >> >> Good luck with it, >> Felix >> >> >> >> Ahmidou wrote: >>> Hi >>> Felix did it , maybe he can give you some directions...see there: >>> http://www.sukio.de/gallery/RotFix.htm >>> >>> >>> >>> David Barosin wrote: >>> >>>> Has anyone figured out a way to get particles to realign their >>>> orientation after being deformed. >>>> >>>> You can check 'align with velocity' which is good till the particle >>>> goes through a deformation. It would be great to have the particle >>>> re-calculate velocity after all deforms (or have a separate deformed >>>> velocity) to use for particle alignment. >>>> >>> >>> >>> >>> --- >>> Unsubscribe? Mail Majordomo@(protected) with the following text in >>> body: unsubscribe xsi >> >> --- >> Unsubscribe? Mail Majordomo@(protected) with the following text in >> body: unsubscribe xsi >> > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |