Recommended Posts

Sorry for the double post, just realised this was more appropriate in this forum:
I'm having trouble with the Moller-Trumbore ray/triangle alogirithm. It's not giving me correct results, so I thought I'd try it out in a simple demo with a single triangle, ( (-1, -1, 2 ), (1, -1, 2), (0, 1, 2) ) and a ray fired from the origin (0, 0, 0), up the z-axis (0, 0, 1).
Well the results I'm getting tell me that the ray is parallel to the plane of the triangle (i.e. the determinant is 0). Can someone please tell me what the stupid mistake I'm making is!