/* =============================================================== */ /* CS175 : Computer Graphics Asst6 : Ray Tracer Name : Date : Filename : test1.in Description : Ray-tracer test file */ /* =============================================================== */ /* Test file for the renderer : */ /* General comments : 1 : Orientation : ^ Y-axis | | | +-------> Z-axis / / / X-axis 2 : Parameters : Order of color specifications : Ambient Diffuse Reflect Distribution Specularity */ /* WORLD section : */ World { Camera { Eye < 0.0, 0.0, 0.0 > Lookat < 0.0, 0.0, -1.0 > Up < 0.0, 1.0, 0.0 > fovy <20.0> AR<1.0> } Size <500> Output " 3ball31.tga " Depth < 3 > Background Rgb <0.0, 0.0, 0.0> CAmbient < Rgb <0.5, 0.5, 0.5> > /* Supersample */ } Lens { <0.95238> <-0.5> <0.2> <0.0> <3> <4> <1> } /* LIGHTS section : */ Lights { /*PointLight { <100.0, 0.0, 100.0> }*/ PointLight { <0.0, 100.0, 0.0> Rgb <0.3, 0.3, 0.3> } /*PointLight { <0.0, 0.0, 100.0> }*/ PointLight { <50.0, 50.0, -10.0> Rgb <0.3, 0.3, 0.3> } PointLight { <-30.0, 80.0, 0.0> } } /* OBJECTS Section : */ Sphere { <-1.5, 0.0, -20.0> <1.0> Pigment { Specs { CAmbient < Rgb <0.0, 0.0, 0.2> > CDiffuse < Rgb <0.0, 0.6, 0.0> > KMirror <0.6> KN <100.0> CSpecular < Rgb <1.0, 1.0, 1.0> > } } } Sphere { <3.0, 1.5, -30.0> <1.0> Pigment { Specs { CAmbient < Rgb <0.6, 0.0, 0.0> > CDiffuse < Rgb <0.1, 0.0, 0.0> > KMirror <0.8> KN <200.0> CSpecular < Rgb <1.0, 1.0, 1.0> > } } } Sphere { <-2.0, 10.0, -100.0> <3.0> Pigment { Specs { CAmbient < Rgb <0.0, 0.0, 0.6> > CDiffuse < Rgb <0.2, 0.2, 0.2> > KMirror <0.3> KN <100.0> CSpecular > } } } /* Triangle { <-200.0, -200.0, -110.0> < 200.0, -200.0, -110.0> < 200.0, 200.0, -110.0> Pigment { Specs { CAmbient < Rgb <0.0, 0.0, 0.0> > CDiffuse < Rgb <0.6, 0.6, 0.0> > KMirror <0.3> KN <400.0> CSpecular < Rgb <1.0, 1.0, 1.0> > } } } Triangle { <-200.0, -200.0, -110.0> < 200.0, 200.0, -110.0> <-200.0, 200.0, -110.0> Pigment { Specs { CAmbient < Rgb <0.0, 0.0, 0.0> > CDiffuse < Rgb <0.6, 0.6, 0.0> > KMirror <0.3> KN <400.0> CSpecular < Rgb <1.0, 1.0, 1.0> > } } } */ Triangle { < 0.0, -0.0, -1000.0> < 20.0, -5.0, -10.0> < -20.0, -5.0, -10.0> Pigment { Specs { CAmbient < Rgb <0.0, 0.0, 0.0> > CDiffuse < Texture Mudmap > KMirror <0.3> KN <400.0> CSpecular < Rgb <1.0, 1.0, 1.0> > } } }