Jump to content
Sign in to follow this  
Vinz

Mixing colors in small scale Flip sim (Mantra)

Recommended Posts

Hello Everyone

I am mixing fluid colors in a pretty simple small scale flip simulation. To that point things behave as expected.

This is the problem that I encounter:

I set the desired color to my emitter (let's say it is required to match an existing product), the Cd attribute is then transferred between neighboring particles throughout the solve. Ok there.

The problem is that, as the colored fluid dilutes inside the clear liquid, the colored fluid then darkens unacceptably and the two never really blend into each other (I believe in real world, the darker color would remain the same or lighten as it dilutes into a clear liquid, depending on the viscosity). 

This is partly due to the 'at distance' control of the 'transparency color' but in my case I can only set it correctly to either the stream (thin) or to the contained fluid (deep) but not both. Also I am not yet capable to build shaders among other advanced techniques.

I would need the color to match a rose pink troughout the simulation.

 

Is anyone able to manipulate some attributes upstream or knows how to render this correctly.

 

Many thanks

V

 

Here is a simplified Hip sim easier to move around

https://www.dropbox.com/sh/26nzu9mve1ztcmb/AAD3mw4w1hX9O1sXpgeGaDLZa?dl=0

 

 

 

 

Active_Render.0040.0.jpg

Share this post


Link to post
Share on other sites

Inside the SopSolver inside the dopnetwork try moving the display flag to the attribute transfer. Without that, I don't think your Cd transfer is actually working.

Also, you may want to add Cd to the list of interpolated attributes under the Reseeding TAB of the FLIP solver.

flip_cd_mix.gif

Edited by Atom
  • Like 1

Share this post


Link to post
Share on other sites

I just did like you said.. Dude! It works!!

Here is a render of the same frame (no other changes)

 

Thank you again for sharing your great knowledge

 

The Hip file link is up to date for the community

 

Active_Render.0040.0_V2.jpg

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×