RE: [SPAM] Deforming particle instances

Date : Fri, 3 Mar 2006 18:26:37 -0000
To : "'XSI(at)Softimage.COM'" <XSI(at)Softimage.COM>
From : Juan Brockhaus <Juan(at)glassworks.co.uk>
Subject : RE: [SPAM] Deforming particle instances
Hi Adam,

unfortunatly the velocity vectors of particles are not 'deformed' with the
deformer.

a while ago I used this particle event to let the cloud with the event to
follow another cloud.

to the particle cloud you have to create a new event,choose script and
execute evrry n frame.
your target cloud has to be named in this case "cloud_T" and has to have the
same amount of particles like your following cloud.
there's a rnd factor which you can skip and the *10 defines how fast they
follow the other cloud.
could also be linked to a slider...

hope that helps,

cheers,

Juan


event-script in vb:
===================================

set scn_root = Application.ActiveProject.ActiveScene.Root

set cloud_a = scn_root.FindChild("cloud_T")

posList  = inParticleCollection.PositionArray
veloList = inParticleCollection.velocityArray

posList_a = cloud_a.Particles.PositionArray

set cloud_a_trnsfrm = cloud_a.Kinematics.Global.Transform

rnd(-1)

for a = 0 to inParticleCollection.Count - 1

	'store original position
	origposx = posList(0,a)
	origposy = posList(1,a)
	origposz = posList(2,a)


	set global_prtlc_a_pos = XSIMath.MapObjectPositionToWorldSpace(
cloud_a_trnsfrm, cloud_a.Particles(a).Position )

	'set new position
	posList(0,a) = global_prtlc_a_pos.x
	posList(1,a) = global_prtlc_a_pos.y
	posList(2,a) = global_prtlc_a_pos.z

	'get direction
	dirx = posList(0,a) - origposx
	diry = posList(1,a) - origposy
	dirz = posList(2,a) - origposz


	veloList(0,a) = dirx * rnd * 10
	veloList(1,a) = diry * rnd * 10
	veloList(2,a) = dirz * rnd * 10
	
next


'apply the changes
inParticleCollection.VelocityArray = veloList


===================================
===================================
end of script
===================================
===================================



-----Original Message-----
From: Adam Seeley [mailto:adam.seeley(at)clearpost.co.uk]
Sent: 03 March 2006 18:13
To: XSI(at)Softimage.COM
Subject: RE: [SPAM] Deforming particle instances


Hi Morgan,

Well you would have thought that would do the trick but nope.

Adam.

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf
Of Morgan Evans
Sent: 03 March 2006 17:52
To: XSI(at)Softimage.COM
Subject: RE: [SPAM] Deforming particle instances


Adam,

In PType -> General -> under rotation velocity there is a tick box for
"Align on Velocity". This will get the particle facing the direction you
want. Once you've ticked that, goto instancing and make sure that
Rotation is set to "From Particle". That should do the trick. 

Be careful to make sure that the object you are instancing is facing the
correct direction first. Try putting the object under a null and then
rotating it to guarantee that it is pointing the way you want.

Morgan

Character TD, Passion Pictures

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Adam Seeley
Sent: 03 March 2006 17:32
To: XSI(at)Softimage.COM
Subject: [SPAM] Deforming particle instances

Hi,

Is there a way to get the instances on a particle cloud to follow the
actual direction of the particles after a deformation applied to the
cloud?

I thought this function had been added but I may have dreamt that.

There used to be a scipt around to update the motion vectors of a
particle cloud but I'm having trouble finding that as well!

Any help thankfuly recieved.

Ta much,

Adam.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---
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

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---
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.