Jump to content

particle erosion file


pclaes

Recommended Posts

Hi,

This is a file I put together to show how I did the erosion effect two years ago. I was asked if I could share the hip so here it is. It's been a while since I did that and I lost the original file so I rebuilt it.

It's not that hard to do, basically it's all driven by a sopsolver and some particles.

The particles collide with the surface and "erode" and "deposit" a bit of material. I visualized it using red and blue. Blue was eroding, red was depositing.

So initially the particle is empty and ready to pick up material, so it starts of blue. When it collides a trigger occurs and the blue starts to go to zero and the red starts to increase, after a while the blue is zero and the red also starts to go to zero, this suggests the particle has evaporated and deposited all the material that it has picked up. In the meantime the particle has been moving over the surface and it has been transferring those colors to the surface inside a sopsolver in dops.

Those transferred colors are driving displacements. Blue will represent the amount of inward displacement, red represents the amount of outward displacement. And when you mix in some noise in the displacement shader at rendertime, driven by the color, it gives a fairly interesting erosion effect.

It is important to not just erode, but also deposit material to make it more believable, that mass needs to go somewhere. And the shape of the erosion and depositing can change based on the forces you apply to your particles. You could also do this completely with volumes and build an isosurface from that volume. That way you would be able to carve out holes in the mesh rather than just displace the surfaces.

I did not do the shader, but that is easy enough, just use the color to drive the displacement amount.

Have fun learning.

Edit: let's see if I can input the vimeo too:

Guess not...

http://vimeo.com/24145987

particle_erosion_02.hip

Edited by pclaes
  • Like 3
Link to comment
Share on other sites

  • 9 months later...

hi Peter!

thanks for sharing the file with us. I had just looked at this post lately... But I was wondering how do we bring the color to the shop for the displacement shader to be able to use it? I am always confused how to bring those information across dop, sop, shop etc.. Do you mind to show us how please?

its always fun learning from you.

Shandy

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 2 years later...

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