---
title: "Best Practices - The Milk"
canonical: "https://rmanwiki-27.pixar.com/space/RU/619708417/Best%20Practices%20-%20The%20Milk"
format: markdown
---
![CookiesNMilk_new_Banner.jpg](media://51254ba8-1882-43e0-a3d8-352a372118cf)

## The Milk

The milk surface is actually simple to create. The PxrSurface pages provide a helpful table of data used to make everyday items using Subsurface Scattering. Populate the parameters under the Subsurface rollout with the correct color values.


![milkNCookies_milkAngleA.jpg](media://cc574c6f-d2c4-47a6-aa58-8136188918fc)


After this, there are two simple ways to control the result you require:

- Gain - use this to control the weight of the effect artistically
- Post Tint - use this to create chocolate milk!

Another control users may have to adjust, but typically only once, is the Mean Free Path Distance. This option controls the amount of scattering distance based on scene units. It's essential to set this parameter to a reasonable value to avoid issues such as noise.

For milk, the light that enters the liquid will only scatter a certain distance into the medium before it is absorbed. This means a more realistic value follows that understanding. If the value is too low, the light doesn't scatter enough, and the object appears more solid. 

If it's too large, then it will scatter light too far and introduce noise or artifacts. In the case of the milk, 1.0 is chosen based on the scene scale and how far light may travel into the liquid medium. 

A very high setting, say 10 or 15, is actually outside the container as measured in scene units. That's not realistic since this means the scattering travels beyond the liquid itself and even the glass container. While it may be pleasing, it will be slower, introduce noise, and not be realistic for milk. Users who spend too much time tuning this measurement while ignoring the scene scale may experience frustration trying to re-balance the other controls to compensate.

For materials not listed in the table, you can start with something in the table that best matches your target look and then alter the color and gain appropriately. The recommendation for Mean Free Path Distance remains the same, however.


---

### <span style="color: #4c9aff">Next Steps</span>

A short and sweet lesson on creating the milk!  Next, let’s do the cookies.


---

![RenderManUniversity_logo_Small.png](media://67c303a7-afee-477f-bc42-75220730ae81)