# # Each model can be controlled with the following paramters # #----------------------------------------------------------------------------- # for sphere # # "tx" : translate in x axis # "ty" : translate in y axis # "tz" : translate in z axis # # "cr" : red component of diffuss color (default is 1) # "cg" : green component of diffuss color (default is 1) # "cb" : blue component of diffuss color (default is 1) # # "sr" : red component of specular color (default is 1) # "sg" : green component of specular color (default is 1) # "sb" : blue component of specular color (default is 1) # "shininess" : controls how shiny this model is (default is 128) # # "er" : red component of emission color (default is 0) # "eg" : green component of emission color (default is 0) # "eb" : blue component of emission color (default is 0) # # "Tr" : red component of Transparency color (default is 0) # "Tg" : green component of Transparency color (default is 0) # "Tb" : blue component of Transparency color (default is 0) # "RI" : refractive_index (default is 1) # # "Rr" : red component of reflectiveness color (default is 0) # "Rg" : green component of reflectiveness color (default is 0) # "Rb" : blue component of reflectiveness color (default is 0) # # ----------------------------------------------------------------------------- # # # ----------------------------------------------------------------------------- # for model # # "tx" : translate in x axis # "ty" : translate in y axis # "tz" : translate in z axis # "rx" : rotate around x axis # "ry" : rotate around y axis # "rz" : rotate around z axis # "scale" : uniform scaling # # "cr" : red component of diffuss color (default is 1) # "cg" : green component of diffuss color (default is 1) # "cb" : blue component of diffuss color (default is 1) # # "sr" : red component of specular color (default is 1) # "sg" : green component of specular color (default is 1) # "sb" : blue component of specular color (default is 1) # "shininess" : controls how shiny this model is (default is 128) # # "er" : red component of emission color (default is 0) # "eg" : green component of emission color (default is 0) # "eb" : blue component of emission color (default is 0) # # ----------------------------------------------------------------------------- # # # ----------------------------------------------------------------------------- # for image # # two positive integer numbers follow: width and height # by default they are both 100 # "width" : width of the image (default is 100) # "height" : height of the image (default is 100) # "n" : number of rays per pixel (default is 10) # "max_ray_depth" : max depth of rays in the rendering tree # ----------------------------------------------------------------------------- # # # ----------------------------------------------------------------------------- # for light # # global ligth parameters. note that individual lights are defined as models or spheres # that have non-zero emission color. # # "ar" : red component of ambient color (default is 0) # "ag" : green component of ambient color (default is 0) # "ab" : blue component of ambient color (default is 0) # "sample_size" : sample size per area light # # ----------------------------------------------------------------------------- image 1 n=100 width=680 height=680 max_ray_depth=5 light ar=0.2 ag=0.5 ab=0.2 sample_size=100 camera type=perspective tx=0 ty=100 tz=100 viewx=-50 viewy=-50 vieww=100 viewh=100 near=50 model 3 models/floor.obj ty=-100 cr=1.0 cg=1.0 cb=1.0 scale=1000 sr=0 sg=0 sb=0 models/light.obj ty=60 tz=70 tx=10 er=0.50 eg=0.50 eb=0.50 scale=10 models/box.obj tx=-40 tz=20 ty=-5 ry=1.14 scale=5 cg=0.75 cr=0.75 cb=0.5 sphere 3 cr=0.8 cg=0.1 cb=0.1 tx=0 tz=-60 r=40 ty=25 Rr=0.25 Rg=0.25 Rb=0.25 cr=0.0 cg=0.5 cb=0.5 tx=30 ty=15 r=30 tz=30 RI=1.025 Tr=0.85 Tg=0.85 Tb=0.85 Rr=0.15 Rg=0.15 Rb=0.15 cr=0.5 cg=0 cb=0.5 tx=-40 ty=0 r=15 tz=50 Rr=0.5 Rg=0.5 Rb=0.5 RI=1.0 Tr=0.5 Tg=0.5 Tb=0.5