Jump to content

particles driven by vectorfield


Recommended Posts

I am looking for a way to control particles in a way that they move around obstacles with different shapes. Because the obstacles vary and the particles should slide on a surface I do not know how I can achieve this. Searching the web I found some methods which use vector fields to drive particles. My question is now how can I create a field like in the links below but rather for more obstacles?

Any help would be appreciated!

link1

link2

obstacles.hipnc

Link to comment
Share on other sites

Thank you Macha for the file! It helps me to understand how I can drive particles by vectors. But my problem still is how to create a field around more than one obstacle and tangent to the surface.

Do you believe this is possible with your second method?

Thank you!

Link to comment
Share on other sites

To do this properly in sops might be very difficult because -I guess- you need a correct gradient flow of the object, some other flow of vectors around it. Moreover, it needs to be directed. Mere tangents will probably work somehow, but not really correctly. You could try edge force in the point sop and see how that goes.

The dops method definitely works but it is the other way around from what you describe. The field isn't there from the start but rather the smoke (in that case) creates a velocity field that you then bring back into pops and advect your particles with.

So the question really is whether you want a workable solution or wether you are just curious how to do it the way you described it. I think both are possible ultimately, if you are smart enough (so, not me then, yet)

Edited by Macha
Link to comment
Share on other sites

To do this properly in sops might be very difficult because -I guess- you need a correct gradient flow of the object, some other flow of vectors around it. Moreover, it needs to be directed. Mere tangents will probably work somehow, but not really correctly. You could try edge force in the point sop and see how that goes.

The dops method definitely works but it is the other way around from what you describe. The field isn't there from the start but rather the smoke (in that case) creates a velocity field that you then bring back into pops and advect your particles with.

So the question really is whether you want a workable solution or wether you are just curious how to do it the way you described it. I think both are possible ultimately, if you are smart enough (so, not me then, yet)

Thank you Macha for your answer!

I would like to do something I have seen in this paper link

It is on page 16.

Link to comment
Share on other sites

as macha said, the question is mainly what´s the intention of doing this!

if you are interested in the effect of flowing particles around objects you don´t need vectorfields. and if vectorfields are the thing you will get familiar with then your example is probably not the best. but reading through your posts i guess the question is more related to the second point, right?

if so, one possible solution would be to compute "pseudo" bent normals pointing in the average direction of unoccluded samples. should work well if your pointcount is not too high. another possibility is using an attribtransfer-sop what will be faster but less accurate.

hth.

petz

vectorfield.hipnc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...