Sunday, February 13, 2011

Project

I have now implemented triangle primitive. To test for intersections, I find the plane the triangle lies in and then see if the point the ray intersects with the plane is in triangle. It is not the fastest, but it will do for now. A faster method involves using barycentric coordinates.

I am currently contemplating implementing a class to read Wavefront 3D obj files but it might be too much work and I think I should focus more on the kd-tree part of this project.

No comments:

Post a Comment