Skip to content
Ben Heasly edited this page Aug 21, 2015 · 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

The executive script MakeMaterialSphere.m produced the images above. It is located at here:

(path-to-RenderToolbox3)/ExampleScenes/MaterialSphere/MakeMaterialSphere.m

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.

The executive script MakeMaterialSphereBumps.m produces 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 plugin](Remodeler Plugin API). The plugin modifies the vertex positions and normals of the sphere model, on the fly, in Matlab.

The executive script MakeMaterialSphereRemodeled.m produces the variant images below.

Above, PBRT rendered the scene.

Above, Mitsuba rendered the scene.

Clone this wiki locally