mip_grayball

 
 
 

Category: mental ray > Texture

Shader Family: Environment

Output: Color

This shader does a texture lookup based on the direction of the surface normal. It will map the normal vector direction to a point on the gray ball and retrieve its color. The parameters are identical to those used by the mip_mirrorball shader (refer to this shader for all parameter descriptions).

Problem/Solution Description

In the visual effects industry, it is common to shoot a picture of a mirror ball (also known as a light probe) on set, as well as a gray ball for lighting reference.

Ideally, you shoot these at multiple exposures and use a tool to combine them into a single high dynamic range image and/or unwrap the mirrored/gray ball into a spherical environment map.

However, it is often difficult to regain the proper orientation of the spherical map such that it matches the camera used to render the CG scene. Furthermore, a single photo of a mirror/gray ball contains poor data for certain angles that you want to avoid seeing in the final render.

The mip_grayball and mip_mirrorball shaders are intended to simplify a particular special case where the mirror/gray ball is already shot from the exact camera angle from which the final image will be rendered. These shaders use the mental ray camera coordinate space and apply the mirror/gray ball in this space, hence the orientation of the reflections will always "stick" to the rendering camera.