WMRS_part0_introduction_april_2008.pdf

Writing mental ray shaders
by Andy Kopra
Introduction
Writing mental ray shaders
Writing mental ray shaders
Introduction
Writing mental ray shaders
Introduction
Structure
Writing mental ray shaders
Introduction
Structure
Color
Writing mental ray shaders
Introduction
Structure
Color
Light
Writing mental ray shaders
Introduction
Structure
Color
Light
Shape
Writing mental ray shaders
Introduction
Structure
Color
Light
Shape
Space
Writing mental ray shaders
Introduction
Structure
Color
Light
Shape
Space
Image
Czar's Waiting Room, Main Railway Station, Helsinki (Eliel Saarinen, 1910, watercolor)
What is "rendering"?
What is "rendering"?
A description of a scene...
What is "rendering"?
A description of a scene...
Object geometries
What is "rendering"?
A description of a scene...
Object geometries
Visual properties of objects
What is "rendering"?
A description of a scene...
Object geometries
Visual properties of objects
Lighting and atmospheric environment
What is "rendering"?
A description of a scene...
Object geometries
Visual properties of objects
Lighting and atmospheric environment
Simulation of a camera
What is "rendering"?
A description of a scene...
Object geometries
Visual properties of objects
Lighting and atmospheric environment
Simulation of a camera
...is processed to produce a picture.
What is "rendering"?
A description of a scene...
Object geometries
Visual properties of objects
Lighting and atmospheric environment
Simulation of a camera
...is processed to produce a picture.
Algorithmic parameters
What is "rendering"?
A description of a scene...
Object geometries
Visual properties of objects
Lighting and atmospheric environment
Simulation of a camera
...is processed to produce a picture.
Algorithmic parameters
Output image specifications
http://www.phys.ufl.edu/~avery/course/3400/gallery/gallery_camera.html
Draughtsman Drawing a Recumbent Woman (Albrecht Durer, 1525, woodcut)
A light illuminates the scene
An observer samples the illuminated scene
mental ray
mental ray
shaders
vendor
application
mental ray
shaders
vendor
application
standalone
mental ray
mental ray
shaders
vendor
application
standalone
mental ray
mental ray
application
shaders
mental ray
base shaders
scene file
vendor
application
standalone
mental ray
mental ray
application
shaders
mental ray
base shaders
scene file
vendor
application
standalone
mental ray
.mi file
mental ray
application
shaders
mental ray
base shaders
.xsi file
standalone
mental ray
XSI
.mi file
mental ray
sibase.so(.dll)
shaders
mental ray
base shaders
.3ds file
standalone
mental ray
3ds max
.mi file
mental ray
3dsmax7.dll
shaders
mental ray
base shaders
.ma/.mb file
standalone
mental ray
Maya
.mi file
mental ray
mayabase.so(.dll)
shaders
mental ray
base shaders
.hip file
standalone
mental ray
Houdini
.mi file
mental ray
Houdini
shaders
mental ray
base shaders
ray intro.mi
ray -shadow on intro.mi
ray -shadow on -globillum on intro.mi
ray -shadow on -globillum on -caustic on intro.mi
ray -shadow on -globillum on -caustic on -volume on intro.mi
Exercise 1: Rendering and displaying a scene
1. In a terminal window (Command Prompt in Windows, the
Terminal app in OS X, or a shell in Linux), go the
MRT/scenes directory.
2. From the command line, check version: ray -version
3. Check licensing status: ray -v and exit by entering
<control>-C.
4. Render the scene: ray intro.mi
5. View the rendered scene: imf_disp intro.tif &
6. Render: ray intro.mi -shadow on
7. Render: ray intro.mi -shadow on -caustic on
8. Render: ray intro.mi -shadow on -caustic on -globillum
on -volume on
9. Find verbose on statement in intro.mi, equivalent to -v 5
10. Increase debugging information: ray -v 6 intro.mi
Composition VIII (Wassily Kandinsky, 1923, oil)