Jump to content

Mushroom growing system


Recommended Posts

I created a particle system that grows mushrooms but I'm struggling with 2 issues:

1. The caps follow the growing path, but spin in an unwanted way and flip at the end. ( particle orientation )

2. What can be done to prevent them from interesting each other. I want to grow thousands of them and can see this as a big issue. 
I know I can increase the ground surface and have spawn less, but is there a way to have them super dense and minimize intersections? 

Thanks!

mushroom_system_v001.hip

Link to comment
Share on other sites

1. The orient attribute is driven by velocity, which becomes very shaky towards the end. This is because of the wind force. Here's a visualisation of velocity (sorry for the bad quality gif):

vel_shaky.gif.f96636a2ee5abbad2a820b1ac64da0f9.gif

 

If you reduce the effect of the wind force as the particles slow down then velocity will be more stable:

vel_stable.gif.5aa7436be5ad221afd2ff92604bca1ca.gif

I used a VEXpression on the wind node to reduce the amplitude over time but you could achieve the same effect in multiple ways.

2. You could try POP Steer Avoid or other crowd dynamics nodes. And/or scatter points on the source geometry before the DOP network, set their @pscale and use a point relax. Then the points will be spaced enough before the sim starts.

Link to comment
Share on other sites

The VEXpression I used on the pop wind node was:

amp *= 1 - clamp(@age/3, 0, 1);

Dividing by 3 because they all seem to stop before their age reaches 3 seconds.

I didn't notice them spinning before, sorry. If you wire the align node right into the matrix to quaternion the rotation will stop, although I'm not familiar enough with matrix maths to know why.

Here's the scene file:

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