A Quick Intro to Creating Realistic Fluids in X-Particles 4

April 20, 2018

This short Cinema 4D tutorial will show you how to use the OpenVDB Mesher in X-Particles 4 to create realistic liquid movement.

Let’s setup a quick fluid simulation in Cinema 4D using X-Particles 4. It’s a flash, because XP4 has a new xpEmitter and OpenVDB Mesher that makes things easy. Ready? Let’s get to it.


Creating Fluids with X-Particles 4 in Cinema 4D

Open up Cinema 4D with your copy of X-Particles installed. (If you don’t have Insydium’s X-Particles 4, you can license a copy in our store.)

Click on the X-Particles menu and select xpSystem. You can hit play and see that X-Particles 4 automatically adds an Emitter ready to go.

A Quick Intro to Creating Realistic Fluids in X-Particles 4 - xpsystem

Select xpSystem and head down into the Generators and Objects menu. In the Dynamics dropdown, select FLIP Domain. This will make your particles start to behave like fluid. For added realism, you’ll want to add gravity.

A Quick Intro to Creating Realistic Fluids in X-Particles 4 - Flip Domain

With xpSystem still selected head to the Modifiers menu and click on the Motion Modifiers dropdown. Then select Gravity.

A Quick Intro to Creating Realistic Fluids in X-Particles 4 - gravity

Now we want to add the new mesher to make our particles look like fluid. In xpSystem, head back down to Generators and Objects.

Click the Generator Objects dropdown and select OpenVDB Mesher. You have to have XP4 to have access to this tool. 

A Quick Intro to Creating Realistic Fluids in X-Particles 4 - OpenVDB Mesher

In the OpenVDB Mesher, pull your xpEmitter into your sources. Now, to clean this up we need way more particles.

Select xpEmitter and increase the Birthrate of your particles. In this example, I’m going to bump this up to 40,000.

A Quick Intro to Creating Realistic Fluids in X-Particles 4 - Birthrate

Head back into the OpenVDB Mesher, and let’s adjust some settings for a better look.

Adjust to Voxel size to change the particle’s smoothness. Then adjust the Point Radius to adjust the size of the spheres.

Working with these two tools will give your more or less detail, depending on your settings.

A Quick Intro to Creating Realistic Fluids in X-Particles 4 - Voxel Point

In the Filters tab of the OpenVDB Mesher, you can stack filters to adjust the look. I’m gonna select Use Filters, which will give me a Median filter.

I’m going to add a Gaussian filter. If you adjust the width of the filter, you can get the particles smoother, but I don’t want to over do it. I don’t want to sacrifice smoothness over detail.

A Quick Intro to Creating Realistic Fluids in X-Particles 4 - Gaussian Filter

That will get you started with fluids in XP4. Keep playing around, like I do in this tutorial by adding shapes. Hope you found this helpful.


Want more on X-Particles? Head over to our tutorials page for a ton of free XP videos. If you are ready to take a deep dive, I also have to recommend the incredible Gorilla Guide to X-Particles with Jon Bosley. It’s a real master series that covers all things X-Particles, including a new XP4 appendix. There’s over 20 hours in professional training ready for you to stream.

Tutorial Focus:  , ,
Software:  
Educator:  

2 Comments
  • Il est un bon tutorial, merci.

  • indetail@powerup.com.au September 24, 2018 at 6:30 pm

    R20 crashes when adding the emitter to the XPOVDMesher. Is there different process?

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.





    Everyday Material Collection: Get 350+ Materials and Save $100 Before Friday 11/16SAVE $100