-------------------------------------------- student : awchau graded by : Damian Isla time : Wed Nov 17 1:52:37 EST 1999 problem set: ivray -------------------------------------------- Eye ray generation (0-2): 2 Cone, cyl, poly isection (0-2): 2 Shadow (0-1): 0.5 Reflection (0-2): 2 Transmission (0-2): 1 Shading (0-2): 2 Supersampling and jittering (0-2): 0 Statistics (0-1): 0 Exactitude (0-1): 1 total (0-15): 11.5 -------------------------------------------- notes: Good job on tough problem set! There were just a few little problems but nothing serious. You definitely had the right idea throughout: You almost got transmission right, but it turns out that when you check whether to do transmission, you're just checking weight and not not weight*obj->transparency. So basically everything is transparent! A little problem with shadows: you're calculating the distance to the light incorrectly. Specifically, the line } while ( (RayCast(sray, octree, hitobject)) && (trans > 0) && (dx*dx*dy*dy*dz*dz < distToLight)); should be something more like } while ( (RayCast(sray, octree, hitobject)) && (trans > 0) && (dx*dx*dy*dy*dz*dz < distToLight*distToLight)); By the way: I gave you 0 for Jittering/Supersampling and the statistics because I couldn't find a RayTrace.C in what you turned in. If you didn't get to these, that's fine. But if you did get to them, and you just forgot to turn in your version of RayTrace.C, please let me know (naimad) - you can put it in a publicly accessible place on Athena and then I can take a look at it and adjust your grade accordingly. Sound good? --------------------------------------------