|
|
#version 3.5;
#declare use_cleaner=0;
#declare use_radiosity=2; // 1=load, 2=save
global_settings{
radiosity{
#if (use_radiosity=2)
// save settigns
pretrace_start .04 pretrace_end .01
count 150
nearest_count 20 error_bound .25
recursion_limit 1
save_file "data.rad"
#else
// load settings
pretrace_start 1 pretrace_end 1
always_sample off
error_bound .25
recursion_limit 2
load_file "data.rad"
#end
}
}
#default{texture{finish{ambient 0}}}
// textures
#if (use_cleaner)
#declare t_cleaner=
texture{pigment{rgbt .95}} // this is the bug/feature
#declare White_Paint=
texture{pigment{rgb 1}}
texture{t_cleaner}
#declare Red_Paint=
texture{pigment{rgb <1,0,0>}}
texture{t_cleaner}
#declare Green_Paint=
texture{pigment{rgb <0,1,0>}}
texture{t_cleaner}
#else
#declare White_Paint=
texture{pigment{rgb 1}}
#declare Red_Paint=
texture{pigment{rgb <1,0,0>}}
#declare Green_Paint=
texture{pigment{rgb <0,1,0>}}
#end
// test room
box{-.5,.5 hollow
scale <500,250,500>
texture{White_Paint}
translate 125*y
}
// test objects
sphere{0,50
texture{Red_Paint}
translate <63,50,99>
}
cylinder{0,100*y,30
texture{Green_Paint}
translate <-73,0,120>
}
// ambient lights
box{-.5,.5
scale <100,5,25>
pigment{rgb 1}
finish{ambient sqrt(100*25)}
translate <0,247.5,50>
}
box{-.5,.5
scale <100,5,25>
pigment{rgb 1}
finish{ambient sqrt(100*25)}
translate <0,247.5,-50>
}
camera{
location <100,160,-240>
direction 1.8*z
look_at <0,40,250>
}
Post a reply to this message
|
|