# As usual, this type of line are comment, that you just could forget # Position of the eye : x y z eye: 0 3 10 # Point you are looking at (will be in the center of the generated image) lookat: 0 -1 0 # up direction up: 0 1 0 # Field of view in degree fov: 30 # Size in pixel of the produced image size: 320 200 # Colour of the background (Red, Green, Blue value between 0 and 1) background: 0.2 0.8 0.9 # Description of a light, # Field 1 : unique ID of the light # Field 2-4 : Colour of the light (Red, Green, Blue value between 0 and 1) # Field 5 : type of the light : ambient, directional or point # Field 6-8 : none for ambient light, direction vector of the light # for a directional light, or center of the light for a point one light: light1 1 1 1 ambient light: light2 1 1 1 directional -1 -2 -1 light: light3 0.5 0.5 0.5 point -1 2 -1 # Description of a surface # Field 1 : unique ID of the surface # Field 2-4 : Kar Kag Kab : K ambiant, for r g and b # Field 5-7 : Kdr Kdg Kdb : K diffuse, for r g and b # Field 8-10 : Ksr Ksg Ksb : K specular, for r g and b # Field 11-12 : NSr NSg NSb : N shiny, for r g and b # Field 13 : Kr reflection # Field 14 : Kt refraction # Field 13 : n indice or the material (for the refraction angle) surface: surface1 0.85 0.1 0.4 0.28 0.08 0.32 0.14 0.04 0.16 10.0 10.0 10.0 0.0 0.0 1.0 sphere: sphere1 surface1 -2 -6 -2 1.5 sphere: sphere2 surface1 0 -6 -2 1.5 sphere: sphere3 surface1 2 -6 -2 1.5 sphere: sphere4 surface1 -1 -6 -1 1.5 sphere: sphere5 surface1 1 -6 -1 1.5 sphere: sphere6 surface1 -2 -6 0 1.5 sphere: sphere7 surface1 0 -3 0 1.5 sphere: sphere8 surface1 2 -3 0 1.5 sphere: sphere9 surface1 -1 -3 1 1.5 sphere: sphere10 surface1 1 -3 1 1.5 sphere: sphere11 surface1 -2 -3 2 1.5 sphere: sphere12 surface1 0 -3 2 1.5 sphere: sphere13 surface1 2 -3 2 1.5 surface: surface2 0.35 0.1 0.1 0.28 0.08 0.08 0.14 0.04 0.04 3.0 3.0 3.0 0.0 0.0 1.0 sphere: sphere31 surface2 -1 -3 -2 1.5 sphere: sphere32 surface2 1 -3 -2 1.5 sphere: sphere33 surface2 -3 -3 -1 1.5 sphere: sphere34 surface2 0 -3 -1 1.5 sphere: sphere35 surface2 3 -3 -1 1.5 sphere: sphere36 surface2 -1 -3 0 1.5 sphere: sphere37 surface2 1 -3 0 1.5 sphere: sphere38 surface2 -3 -3 1 1.5 sphere: sphere39 surface2 0 -3 1 1.5 sphere: sphere40 surface2 3 -3 1 1.5 sphere: sphere41 surface2 -1 -3 2 1.5 sphere: sphere42 surface2 1 -3 2 1.5 surface: surface3 0.04 0.04 0.04 0.04 0.04 0.04 0.24 0.244 0.24 100.0 100.0 10.0 0.8 0.0 1.0 sphere: sphere50 surface3 0 1 0 1