# mental ray scene file from "Writing mental ray shaders" # http://www.writingshaders.com/scene_catalog.html verbose on link "lambert.so" $include "lambert.mi" link "texture_uv.so" $include "texture_uv.mi" link "parameter_volume.so" $include "parameter_volume.mi" link "voxel_density.so" $include "voxel_density.mi" link "point_light_shadow.so" $include "point_light_shadow.mi" options "opt" object space contrast .1 .1 .1 1 samples 0 2 volume on trace on shadow segments autovolume on end options camera "cam" output "rgba" "tif" "volume_6.tif" focal 1.5 aperture 1 aspect 1 resolution 300 300 end camera instance "camera-instance" "cam" transform 1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 -4.0 1.0 end instance light "light1" "point_light_shadow" ( "light_color" .7 .7 .3 1 ) origin 1 5 0 end light instance "light1-i" "light1" end instance light "light2" "point_light_shadow" ( "light_color" .3 .3 .7 1 ) origin -1 5 0 end light instance "light2-i" "light2" end instance shader "spheres" "voxel_density" ( "filename" "three_over_one.vol" ) material "sphere_volume" volume "parameter_volume" ( "density_shader" "spheres", "unit_density" 1, "march_increment" .01, "lights" ["light1-i", "light2-i"] ) end material color texture "diamond" "diamond.tif" shader "grid" "texture_uv" ( "tex" "diamond", "u_scale" 20, "v_scale" 20 ) material "gray" "lambert" ( "lights" ["light1-i", "light2-i"], "diffuse" = "grid" ) end material instance "cube-1" geometry "bw_cube" ("name" "cube") material "sphere_volume" transform 0.50 0.0 0.0 0.0 0.0 0.50 0.0 0.0 0.0 0.0 0.50 0.0 0.0 -0.20 0.0 1.0 tag 1 globillum on globillum 3 end instance instance "cube-2" geometry "bw_cube" ("name" "cube") material "gray" transform 0.10 0.0 0.0 0.0 0.0 100.0 0.0 0.0 0.0 0.0 0.10 0.0 0.0 100.0 0.010 1.0 tag 2 globillum on globillum 3 end instance instance "cube-3" geometry "bw_cube" ("name" "cube") material "gray" transform 0.10 0.0 0.0 0.0 0.0 -0.000004 -0.10 0.0 0.0 100.0 -0.0 0.0 0.0 110.0 -0.0 1.0 tag 3 globillum on globillum 3 end instance instgroup "root" "camera-instance" "light1-i" "light2-i" "cube-1" "cube-2" "cube-3" end instgroup render "root" "camera-instance" "opt"