PA 3 FAQ
- Q: How to test all the scens at once ?
- A: Add "./TEST_B/" as a command line argument, or if you want to test on a single scene, use "./TEST_B/any_scene_name.xml".
- Q: Do I have to debug my cone again ?
- A: We won't be testing the cone primitive for this assignment (none of the scenes will have cones).
- Q: Why does it run so slow ?
- A: In order to run (in reasonable time) some of the more complex scenes with multiple light bounces,
you first need to have your AABB working. Though for "Test4-glass-AA4.xml" it might still take a
couple of hours, as it uses 16 samples per pixel and you have a single complex glass object.
- Q: What to do for the TriangleMesh normals ?
- A: If no normal was set, this means that you have to calculate one by interpolating the vertices normals, using the barycentric coordinates as weights. We have this "mode", so that we can handle triangles, that are used to tessellate higher order surfaces: imagine a small triangle, part of a sphere tessellation. In this case one can find the normals of the 3 vertices analytically, and in order to get better approximation for normals, corresponding to points inside the triangle, you need to interpolate the ones you know. So, when a normal was set for you, you can think of this triangle as belonging to a planar part of the object (aka. the normal is the same for all points of the triangle). Also, remember to normalize the normal that you return!