Jump to content

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

Link to comment
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
Link to comment
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
Link to comment
Share on other sites

  • 5 months later...
On 8/29/2020 at 9:25 AM, Atom said:

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

Do you have this hip file I can look at? I'm not getting as cool of an effect when I try to mix flip

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