///////////////////////////////////////// // Second version of the scene file format // // - It allows you to add comments like this one // - Syntax itself is hopefully self explanatory // - Name of the objects and attributes are defined inside the executable /////////////////////////////////////// // Global scene and viewpoint // /////////////////////////////////////// Scene { // make sure the version and the executable match ! Version.Major = 1; Version.Minor = 1; // output image dimension Image.Width = 512; Image.Height = 512; // Count the objects in the scene // description will follow NumberOfMaterials = 4; NumberOfSpheres = 9; NumberOfPlanes = 0; NumberOfLights = 2; } /////////////////////////////////////// // List of materials // /////////////////////////////////////// Material0 { Diffuse = 1.0, 0.0, 0.0; Reflection = 0.99; Specular = 1.0, 1.0, 1.0; Power = 10; } Material1 { Diffuse = 0.0, 1.0, 0.0; Reflection = 0.99; Specular = 1.0, 1.0, 1.0; Power = 60; } Material2 { Diffuse = 0.0, 0.0, 1.0; Reflection = 0.99; Specular = 1.0, 1.0, 1.0; Power = 100; } Material3 { Diffuse = 1.0, 1.0, 1.0; Reflection = 0.9; Specular = 1.0, 1.0, 1.0; Power = 60; } /////////////////////////////////////// // List of spheres // /////////////////////////////////////// Sphere0 { Center = -300,-300,-200; Size = 125.0; Material.Id = 2; } Sphere1 { Center = 0,-300,-200; Size = 125.0; Material.Id = 2; } Sphere2 { Center = 300,-300,-200; Size = 125.0; Material.Id = 2; } Sphere3 { Center = -300, 0, -200; Size = 125.0; Material.Id = 3; } Sphere4 { Center = 0, 0, -200; Size = 125.0; Material.Id = 3; } Sphere5 { Center = 300, 0, -200; Size = 125.0; Material.Id = 3; } Sphere6 { Center = -300, 300, -200; Size = 125; Material.Id = 1; } Sphere7 { Center = 0, 300, -200; Size = 125.0; Material.Id = 1; } Sphere8 { Center = 300, 300, -200; Size = 125.0; Material.Id = 1; } /////////////////////////////////////// // List of Planes // NOTE: normal for plane is taken as the vector perpendicular to // the line v1->v3. The Plane0 { v0 = 0.0, 0.0, 300.0; v1 = 400.0, 0.0, 300.0; v2 = 400.0, 400.0, 300.0; width = 400; height = 400; Material.Id = 1; normal = 0.0, 0.0, 1.0; } /////////////////////////////////////// // List of lights // /////////////////////////////////////// Light0 { Position = -300.0, 0.0, -400; Intensity = 4.0, 4.0, 4.0 ; } Light1 { Position = 200.0, 200.0, -1000; Intensity = 0.4, 0.4, 0.4 ; }