#version HMCCS155FALL2002 /* * test case to check for proper group transformation handling. orange * sphere should be in center of scene, unwarped. green sphere should * be in upper right hand corner, slightly smaller than the orange * sphere, with some shadow on it. purple sphere should be on the left, * stretched in the Y direction and flattened in the Z direction. be sure * to check for appropriate specular highlights. */ #background 0.0 0.0 0.0 #ambient 0.0 0.0 0.0 #camera -3.0 0.0 0.0 // position 1.0 0.0 0.0 // facing 0.0 1.0 0.0 // up 30.0 // heightAngle #light_point -n PointLight1 -- 1.0 1.0 1.0 // color -3.0 1.0 1.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_point -n PointLight2 -- 1.0 1.0 1.0 // color -3.0 -1.0 1.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_point -n PointLight3 -- 1.0 1.0 1.0 // color -3.0 -1.0 -1.0 // position 1.0 0.0 0.0 // const, linear, quad atten #light_point -n PointLight4 -- 1.0 1.0 1.0 // color 6.0 0.0 0.0 // position 1.0 0.0 0.0 // const, linear, quad atten #material -n mOrange -- 0.6 0.3 0.1 // ambient 0.6 0.3 0.1 // diffuse 1.0 1.0 1.0 // specular 0.0 0.0 0.0 // emissive 0.9 0.0 0.0 // kspec ktrans refind #material -n mGreen -- 0.1 0.6 0.3 // ambient 0.1 0.6 0.3 // diffuse 1.0 1.0 1.0 // specular 0.0 0.0 0.0 // emissive 0.9 0.0 0.0 // kspec ktrans refind #material -n mPurple -- 0.3 0.1 0.6 // ambient 0.3 0.1 0.6 // diffuse 1.0 1.0 1.0 // specular 0.0 0.0 0.0 // emissive 0.9 0.0 0.0 // kspec ktrans refind #group_begin -n Group1 -- 1.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 0.0 1.0 1.0 0.0 0.0 0.0 1.0 #sphere -n Sphere1 -m mGreen -- 0.0 0.0 0.0 // position 0.5 // radius #group_end #group_begin -n Group3 -- 1.0 0.0 0.0 0.0 0.0 0.0 -1.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 1.0 #sphere -n Sphere1 -m mOrange -- 0.0 0.0 0.0 // position 0.5 // radius #group_begin -n Group2 -- 0.5 0.0 0.0 0.0 0.0 1.2 0.0 -1.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 1.0 #sphere -n Sphere1 -m mPurple -- 0.0 0.0 0.0 // position 0.5 // radius #group_end #group_end #rayfile_end