# mental ray scene file from "Writing mental ray shaders" # http://www.writingshaders.com/scene_catalog.html verbose on link "contour.so" $include "contour.mi" link "lambert.so" $include "lambert.mi" link "texture_uv.so" $include "texture_uv.mi" link "threshold_volume.so" $include "threshold_volume.mi" link "point_light_shadow.so" $include "point_light_shadow.mi" link "transparent.so" $include "transparent.mi" link "c_distance_store.so" $include "c_distance_store.mi" link "c_distance_contrast.so" $include "c_distance_contrast.mi" link "c_contour.so" $include "c_contour.mi" options "opt" object space samples 0 2 trace depth 6 6 6 contrast .05 .05 .05 volume on autovolume on contour store "c_distance_store" () contour contrast "c_distance_contrast" ("distance" .05) end options camera "cam" output "contour,rgba" "contour_composite" () output "rgba" "tif" "volume_1A.tif" focal 1.5 aperture 1 aspect 1 resolution 300 300 end camera instance "camera-instance" "cam" transform 0.792329 0.0 0.610094 0.0 0.0 1.0 0.0 0.0 -0.610094 0.0 0.792329 0.0 0.063386 0.0 -4.999598 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 material "sphere_volume" volume "threshold_volume" ( "color" .7 .7 1, "radius" 1, "unit_density" 1, "density_threshold" 0, "march_increment" .1 ) 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 material "outline" "transparent" ( "transparency" .6 .6 .6 ) contour "c_contour" ( "width" .5, "color" 1 0 0 1 ) 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.050 -0.0150 1.0 tag 1 globillum on globillum 3 end instance instance "cube-2" geometry "bw_cube" ("name" "cube") material "outline" transform 0.497512 0.0 0.0 0.0 0.0 0.497512 0.0 0.0 0.0 0.0 0.497512 0.0 0.0 -0.049751 -0.014925 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 100.0 0.0 0.0 0.0 0.0 0.10 0.0 0.0 100.0 0.0 1.0 tag 3 globillum on globillum 3 end instance instance "cube-4" 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 100.0 -0.0 1.0 tag 4 globillum on globillum 3 end instance instgroup "root" "camera-instance" "light1-i" "light2-i" "cube-1" "cube-2" "cube-3" "cube-4" end instgroup render "root" "camera-instance" "opt"