Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Maxon Cinema 4D Using emitters with rigid body dynamics

  • Using emitters with rigid body dynamics

    Posted by Matt Rossi on August 12, 2024 at 8:42 pm

    Hi Everyone,


    My goal

    I’m hoping to model air particles that rise to the top of a box and obey rigid body dynamics with each other and the box. Ideally, for each particle, as it smoothly ramps up to a faster vibration, it also rises in the y direction and changes color from blue to orange.

    My big question

    I know this is a complex question, so for those of you with experience, the TL;DR is that I’m having many issues with this set up, and I’m wondering if it’s possible to do this without Expresso.

    My approach

    I’m trying to accomplish this by emitting the particles with a mesh emitter (single shot, zero velocity) into volume of a box. For the vibration and y-position increase, I have the particles emitted into a noise shader. If they’re in the white part of the shader, they are subjected to two field forces that both increase their y position and make them vibrate. From the start, I have a condition to check if the particles have any velocity. If they do, I first set their lifetime to 0, then switch group them into another group to turn them from blue to red based on their lifetime, which now corresponds to how long they’ve been moving.

    The problem

    This work well, except for the rigid body part. The issue is that I can’t just add a rigid body tag to these particles to make them collide with each other; and if I try to use a cloner, I can’t use switch groups. So, I’m at a bit of a loss at how to approach this.

    <b style=”background-color: var(–bb-content-background-color); font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”>

    <b style=”background-color: var(–bb-content-background-color); font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”>I’d appreciate any insights you might have! Happy to share screenshots or project files.


    Thanks,

    Matt

    Kouraib Abdmalek
    replied 1 year, 2 months ago
    3 Members · 7 Replies
  • 7 Replies
  • Kouraib Abdmalek

    August 13, 2024 at 12:08 pm

    Hi Matt,

    Your presentation of the problem was very clear as usual but I couldn’t understand why you couldn’t add a rigid body tag to these particles. As long as you are using an emitter you should be able to make the particles collide with each other and at the same time with another surface as in the tutorial below, so maybe you could post your file here to let me have a closer look or you could send the file to my email.

    alasma3i10@gmail.com

    https://www.youtube.com/watch?v=yuPRQgQUQVM

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Matt Rossi

    August 13, 2024 at 12:42 pm

    Hey! Thanks.

    The issue is that I can’t use a cloner because the cloner doesn’t allow me to use a switch group, which is how I’m trying to start turning the particles from blue to red as they increase in height/vibration.

    Do you know if there’s a way to make the particles rigid bodies with each other without using a cloner?

    Happy to share the project file if it would still be helpful.

  • Kouraib Abdmalek

    August 13, 2024 at 3:12 pm

    It was clear from the beginning that you were talking about the problem with the cloner. I apologize for not paying attention. You could bypass this by applying the rigid tag to the object, then making it a child of the emitter, then dragging the rigid tag from the object to the emitter as in the attached file. I hope this is what you are looking for.

  • Matt Rossi

    August 13, 2024 at 7:18 pm

    No worries! Thanks for the help. 🙂

    I also misspoke: it’s totally possible to use a switch group with a cloner. The solution is in this video at 15 min: https://www.youtube.com/watch?v=XkXzzt1Iti8.

    It’s surprisingly hard to find the official documentation for such a seemingly important concept! I’ll let you know if this works within the context of my specific goal.

  • Kouraib Abdmalek

    August 14, 2024 at 8:46 am

    Glad you found it, so there is something preventing you from using the rigged tag on the emitter directly, waiting to hear about your succeed in applying this to your scene. Good luck!

  • Bartosz Matynia

    April 8, 2025 at 1:31 pm

    Hey guys 🙂
    Thanks for sharing this tutorials.

    Everything is working great when I follow them.
    But I am not able to bake the result into anything. Caching it in the Bullet does not work and exporting into Allembic also gives me nothing.

    Any Ideas?

  • Kouraib Abdmalek

    April 9, 2025 at 11:07 am

    Hi Bartosz,

    You will find in this tutorial the way to bake your scene then you can do the conversion properly, if that don’t work for you please share your file with us so we could check it for you.

    https://www.youtube.com/watch?v=0-Spn5-g3qM&pp=ygUTYmFrZSBhcyBhbGVtYmljIGM0ZA%3D%3D

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy