# # Each model/object can be controlled with the following paramters # #----------------------------------------------------------------------------- # for sphere # # "r" : radius # "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) # ----------------------------------------------------------------------------- # # ----------------------------------------------------------------------------- # for camera # # type : either perspective (default) or orthogonal # "tx" : translate in x axis # "ty" : translate in y axis # "tz" : translate in z axis # "lookatx" : look at position.x # "lookaty" : look at position.y # "lookatz" : look at position.z # "upx" : up vector x coordinate # "upy" : up vector y coordinate # "upz" : up vector z coordinate # "viewx" : viewport lower left corner x (int) # "viewy" : viewport lower left corner y (int) # "vieww" : viewport width (positive int) # "viewh" : viewport height (positive int) # "near" : near plane distance (positive float) # "far" : far plane distance (positive float) image n=1 width=500 height=500 camera type=perspective tx=0 ty=0 tz=100 viewx=-50 viewy=-50 vieww=100 viewh=100 near=50 sphere 7 r=20 cr=1.0 cg=0; cb=0.0 tx=-25 shininess=1000 r=20 cr=0.0 cg=1.0; cb=0.0 tx=25 shininess=100 r=20 cr=0.0 cg=0.0; cb=1.0 tx=-25 ty=40 shininess=10000 tz=20 r=20 cr=1.0 cg=1.0; cb=0.0 tx=25 ty=40 shininess=10 tz=10 r=20 cr=0.0 cg=1.0; cb=1.0 tx=-25 ty=-40 tz=-20 sr=0 sg=0 sb=0 r=20 cr=1.0 cg=0.0; cb=1.0 tx=25 ty=-40 tz=-50 sr=0 sg=1 sb=0 r=0.01 tx=1000 ty=1000 tz=100 er=1.0 eg=1.0 eb=1.0 #this is your light