Shaders for Coloured Water or liquid

   13067   6   3
User Avatar
Member
127 posts
Joined: 11月 2008
Offline
hey i'm working on a fluid particle simulation where i need the fluid to be coloured red or orange like an Ink.. i.e a bit transparent and yet retaining the colour and water type look….right now i have a normal “Basic Liquid” shader on it, which i guess, is over-riding the colour info, this is making it look worse that some sort of clay(..my renders are not showing any transparency in the material)


Any help will be greatly appreciated..
thanks
Bhavesh Pandey.

https://bhaveshpandey.io [bhaveshpandey.io]
User Avatar
Member
127 posts
Joined: 11月 2008
Offline
hey here's a test file….i have left a BASIC LIQUID shader in the Shop

What I have Done:

i have just added a color node to the particle node and promoted it up to the Particle Fluid Surfacer..

What I want:

i want to make this look like a coloured liquid..
I tried my way thorugh it and was a bit successful..i just multiplied the color i wanted in the BASIC LIQUID shader network..
the issue is that if i have another set of particle fluid and i wished to mix their colors, using the above method will be a pain..

I want the shader to consider the Cd attribute on the Particle Surface while rendering..

any help would be great
cheers

Attachments:
test.hip (397.5 KB)

Bhavesh Pandey.

https://bhaveshpandey.io [bhaveshpandey.io]
User Avatar
Member
696 posts
Joined: 3月 2006
Offline
Instead of multiplying Cd, I'd use an attribute create so that it acts as the attenuation color. Any parameter that exists already on a material can be overwritten with a parameter from sops.

Attachments:
atten.jpg (63.1 KB)

Stephen Tucker
VFXTD
User Avatar
Member
127 posts
Joined: 11月 2008
Offline
hey Stephen thanks a lot..

your render is definitely lookin far far better than mine

is atten a global variable which could be used to over ride colour info??

could you post the hip file??

thanks a lot
Bhavesh Pandey.

https://bhaveshpandey.io [bhaveshpandey.io]
User Avatar
Member
696 posts
Joined: 3月 2006
Offline
Any parameter that exists inside a material can be automatically overwritten by a point attribute with the same name. Cd tends to be the standard for color, but in the case of the liquid shader, we want to use attenuation instead of diffuse.

I also turned up the attenuation amount on the material to something like 5 I think.

Attachments:
test_attenuation.hip (398.2 KB)

Stephen Tucker
VFXTD
User Avatar
Member
252 posts
Joined: 7月 2005
Offline
This doesn't seem to work in PBR for me. It works in MicroPolygon, though. Is this a bug? (H11.0.807)

Thanks,
Craig
User Avatar
Member
31 posts
Joined: 12月 2011
Offline
What is i want to change the color. or even play with specularities??
  • Quick Links