Render cloudy/thick liquid.


#1

Hi,
I’m stuck on this one. I’ve done some searching but I can’t seem to find the answer. I’d like to render a liquid that is darker where there is more liquid and lighter where there is less. Render a liquid that takes into consideration how much of it there is.


As you can see, the liquid is lighter where there is less in the neck of the bottle, and darker in the middle of the bottle where there is more.

I’m trying to use mia_material but it doesn’t seem to distinguish thickness of the material. Any ideas how to solve this? Something like a transparent SSS material? I tried hooking an sss material into mib_transparency and mib_refract but no luck.

If anyone knows how to render a liquid like this it would be very helpful. In mental ray for maya please.

Thanks.


#2

You can set a max distance in the refraction, and color at max distance. This will make your liquid darker where there is more volume.

Regards,
Mike


#3

You know, I was just playing with that setting. Thank you! It looks like i can’t have the entire inside of the bottle modeled or it breaks the max distance setting on the liquid. I removed the bottom internal bottle part and it appears to be working. It looks like it’s down to fine tuning now. Thanks!


#4

I would model the liquid seperately. This way you can have a glass material and a liquid material.

Regards,
Mike


#5

Great, thanks for the help. Here’s my result


#6

You are doing something wrong here, the glass should not look like a separate object around the liquid. If you look at a photo, you’ll see that the liquid goes right up to the edge with no glass surround to be seen. To do this with mental ray, you need to model the liquid/glass interface as a single separate piece, not as a liquid bit right next to a glass bit. See page 51 of the arch design guide for more information. Further up, page 49 has useful information about the density issue you were talking about originally.


#7

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.