FrameBegin 1 Format 400 300 1 PixelSamples 4 4 ShadingInterpolation "smooth" Display "Baking AO" "framebuffer" "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 ShadingRate 10 # to avoid too many values in occ cache file Attribute "visibility" "trace" 1 # make objects visible to eye Attribute "trace" "bias" 0.005 Surface "occsurfwrite" "filename" "scene.ocf" "samples" 1024 Attribute "irradiance" "filemode" "w" "handle" "scene.ocf" color [ 1 1 1 ] # White ground plane AttributeBegin Polygon "P" [ -5 0 5 5 0 5 5 0 -5 -5 0 -5 ] AttributeEnd # sphere AttributeBegin 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 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