View Full Version : Getting particles to NOT stick to vertices on a goal
peterlorenz 02-26-2009, 01:19 PM How do I get my particles to spread out over a goal surface?
Right now they go for the vertices or cv's.
It is fine if they just spread out and stay there, but it would be great if they could move around a little on the surface - kind of adding a random factor to their position.
Thanx,
Peter
|
|
Cheesestraws
02-26-2009, 01:39 PM
Add goalU and goalV attributes to the particles and set them to random values between 0-1 in their creation expression, you can then change their goalU and goalV values in the before/after dynamics expressions to get them to move over the surface.
peterlorenz
02-26-2009, 03:43 PM
Thanx for the very quick reply.
Your answer put me on the right track, but I still have a few problems..
I typed in this under creation..
particleShape1.goalV = rand (0,10);
particleShape1.goalU = rand (0,10);
Yes, I know - I wrote 0,10 and not 0,1. That's because that seemed to make them spread out more. I'm using a nurbs sphere as emitter/goal, and when I write 0,1, the particles seem to stick to one area of the sphere.
Under Runtime Before Dynamics I wrote:
particleShape1.goalV = rand (0,time);
particleShape1.goalU = rand (0,time);
Any ideas? As you can probably see from the above, I'm not very skilled when it comes to scripting, so unfortunately I need any help to be quite precise..
Aikiman
02-26-2009, 07:46 PM
You have to rebuild the nurbs surface since with nurbs the UVs get mapped to a span or section by default not the whole object. Use the rebuild option and set reduce on with 0-1 Parameter range in both U & V.
CGTalk Moderation
02-26-2009, 07:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.