Raycaster Project Issue - Triangle Ray collision


#1

Hello, for my c++ class I am trying to create a simple raycaster and am having some issues. For some reason I keep getting just 1 white pixel instead of the triangle I am expecting. Could someone tell me what I am doing wrong? I ziped the entire project but the main area in question is located in PrimTriangle.cpp.

I am using the algorithm explained here: http://www.scratchapixel.com/old/lessons/3d-basic-lessons/lesson-9-ray-triangle-intersection/ray-triangle-intersection-geometric-solution/

Any help would be appreciated!

https://www.dropbox.com/s/uc8bah3d3z72lr4/RayCaster2.zip?dl=0

James S.