PDA

View Full Version : particle goals not based on vertex number


tauism
08-23-2006, 05:04 PM
is it possible to have particles that have a goal where it is not attracted to the vertices number but rather by their proximity to the surface?

for example, i have an omni emitter emitting particles which have a big sphere which surrounds the emitter as its goal. What happens is that the particles get attracted to the lowest vertex numbers first so they all go downwards instead of outwards in a sphere shape.

now i'm not wanting to create this effect, just an example of my question whether i can have particles which are attracted to a surface based on proximity rather than vertex number.

apoc519
08-23-2006, 06:35 PM
you can use a ClosestPointOnSurface node and query the closest UV point of the goal object and set the goalU and GoalV to that. It's a bit tricky though.

I think the best way to go about it is to call a precedure from your runtime expression

here's a thread where I was working on something kind of similar using the CPS node

http://forums.cgsociety.org/showthread.php?t=321026&highlight=magnet

also

http://forums.cgsociety.org/showthread.php?t=320623&highlight=magnet

You could always create a random goalU and goalV. This wont go to the nearest surface point but at least all the particles wont be going to the exact same point

tauism
08-27-2006, 08:04 AM
alright, thanks

CGTalk Moderation
08-27-2006, 08:04 AM
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.