Skip to content

MaterialSphere

Ben Heasly edited this page Oct 17, 2016 · 7 revisions

The MaterialSphere recipe renders a sphere in three different materials.

Above, PBRT rendered the scene.

Above, Mitsuba rendered the scene.

Description

The parent scene contains a mesh approximation of a sphere illuminated by a point light. The recipe produces a family of 3 renderer-native scene files and renderings, each with a different sphere material: red matte, green Ward material, and gold metal. Note that PBRT and Mitsuba use different microfacet models, so their "metals" are not exactly the same.

Rendering

Use the script rtbMakeMaterialSphere.m to produce the images above.

Bump Map Variant

MaterialSphereBumps is a variant of the MaterialSphere recipe that adds bumps to the sphere. The bumps are taken from an image of the earth and applied to the sphere as a bump map. Note that PBRT and Mitsuba seem to treat bump maps differently, so their bumps are not the same size and shape.

Use the script rtbMakeMaterialSphereBumps.m to produce the variant images below.

Above, PBRT rendered the scene.

Above, Mitsuba rendered the scene.

Remodeled Variant

MaterialSphereRemodeled is a variant of the MaterialSphere recipe that uses a remodeler hook function to modify vertices on the fly during batch processing.

Use the script rtbMakeMaterialSphereRemodeled.m to produce the variant images below.

Above, PBRT rendered the scene.

Above, Mitsuba rendered the scene.

Clone this wiki locally