Aversis logo   

FREE Vray Tutorial - Render glass and liquid [2]

 

Please don't translate or copy these tutorials elsewhere. I don't like the tutorials to float around in 10 different versions and places on the net. Feel free to link to this page of course! (see also Terms of Use)

Before you start

If you discovered this Vray tutorial page through a direct link or search engine, please note that you're on page 2 of the tutorial! Please complete page 1 first if you haven't done so.

Page 1 - Page 2 - Page 3

Water object

Unhide the 'water outside' object and do a test render.

Free Vray Tutorial | Rendering glass and liquid with Vray

This 'water' object currently has a white opaque material applied.

Free Vray Tutorial | Rendering glass and liquid with Vray

Water material

Copy the glass material to a new slot and rename it 'water'.

Free Vray Tutorial | Rendering glass and liquid with Vray

Apply the water material to the water object, and hit render. As you can see, the water doesn't look very tasty...

Free Vray Tutorial | Rendering glass and liquid with Vray

Water material

First, change the IOR to 1,33. This the correct IOR value for water. Then make the fog color a lot brighter, as in the second screenshot. We don't want to darken the thick parts as with the glass material, so set the fog bias to 0 again.

Free Vray Tutorial | Rendering glass and liquid with Vray

Now render again, this looks more like it!

Free Vray Tutorial | Rendering glass and liquid with Vray

How to model the Water object!?

In order to render realistic liquid inside a glass, there is a small trick you need to take care of...

First of all, because of adhesive forces, the water surface will be curved where it touches the glass. So if you want realistic results, you have to model this effect. If you zoom in on the edges of the water object, you will see it has a slight curve, it is not simply a straight cap!

Then there is an even more important detail when modeling the water object. The screenshot below shows 3 ways to model it.

The first one is to model the water surface smaller than the glass inside surface. As you can see in the render below it, this doesn't give the desired effect. Take a look at a real glass filled with water, this is not how it should look like!

The third image shows the water object modeled exactly against the inside glass surface. This means that the water object and glass object intersect each other, and as you can see in the rendered example, this results in strange looking effects.

The middle image is how it should be. You make sure that the upward curve touches the inside of the glass, and then you model the rest of the water sides LARGER than the inside surface of the glass. In this case it is just 0.1mm larger, which is already enough. The rendering below shows that this is the way it should be modeled.

Free Vray Tutorial | Rendering glass and liquid with Vray

So keep these 2 tips in mind when modeling your liquids inside a glass.

Red wine material

Copy the water material to a new slot and rename it 'red wine'.

Free Vray Tutorial | Rendering glass and liquid with Vray

To better see the materials in the editor, click the background button for each material:

Free Vray Tutorial | Rendering glass and liquid with Vray

Change the fog color to a light, not too saturated red color.

Free Vray Tutorial | Rendering glass and liquid with Vray

Hit render and behold, the water is turned into red wine! (More like a cheap rosé though)

Free Vray Tutorial | Rendering glass and liquid with Vray

Red wine is darker

Change the fog color to 0.05, to make the wine darker. This isn't perfect yet, but you get the point.

Free Vray Tutorial | Rendering glass and liquid with Vray

If you want, play around with fog color and fog multiplier to get various effects.

You can find this scene here, in case you got lost it's a good thing to carry on from here.

Free Vray Tutorial | Rendering glass and liquid with Vray
Page 1 - Page 2 - Page 3
Back to Vray tutorials page

AVERSIS 3D

• Home
• Terms of use - free stuff
• Terms of use - HDRI
• Terms of use - Tutorials
• Terms of use - Vray Materials
• Terms of use - Textures

• Visit us on Facebook
• Subscribe to our newsletter

AVERSIS SHOP

• Vray tutorials
• Individual HDRI maps
• HDRI Collections
• Vray Materials
• Textures

FREE STUFF

• HDRI maps
• Vray tutorials
• Rhinoceros tutorials
• Photoshop tutorials
• Vray Materials
• Textures

CONTACT

If you have any problems regarding the Aversis shop, don't hesitate to contact us through email at info(at)aversis.be

©2016 | AVERSIS 3D

All rights reserved. No part of this website may be reproduced without written permission from Aversis 3D