FrameBegin 1 Format 400 300 1 PixelSamples 4 4 ShadingInterpolation "smooth" Display "sphereBoxPhong.tiff" "file" "rgba" # render image to buffer Projection "perspective" "fov" 22 //Exposure 1.0 2.2 Translate 0 -0.5 8 Rotate -40 1 0 0 Rotate -20 0 1 0 WorldBegin Attribute "visibility" "trace" 1 # make objects visible to eye Attribute "trace" "bias" 0.005 LightSource "pointlight" 1 "from" [0 2 0] "intensity" 4 Surface "mtorPhong" # White ground plane AttributeBegin Color [1 1 1] Polygon "P" [ -5 0 5 5 0 5 5 0 -5 -5 0 -5 ] AttributeEnd # sphere AttributeBegin Color 1 0 0 Translate -0.7 0.5 0 Sphere 0.5 -0.5 0.5 360 AttributeEnd # box AttributeBegin Translate 0.3 0.01 0 Rotate -30 0 1 0 Color [0 1 0] Polygon "P" [ 0 0 0 0 0 1 0 1 1 0 1 0 ] # left side Polygon "P" [ 1 1 0 1 1 1 1 0 1 1 0 0 ] # right side Polygon "P" [ 0 1 0 1 1 0 1 0 0 0 0 0 ] # front side Polygon "P" [ 0 0 1 1 0 1 1 1 1 0 1 1 ] # back side Polygon "P" [ 0 1 1 1 1 1 1 1 0 0 1 0 ] # top AttributeEnd WorldEnd FrameEnd