Open yi1z opened 1 year ago
Anyone encounters this problem?
Also have this problem currently. Have not been able to figure out the issue yet.
I fixed my issue and I believe it was with the returned n in Triangle.cpp.
I had this same issue too, and my other two files seem to give the correct output. What helped you find the solution? I have stared at the calculation for n in Triangle.cpp but it seems correct. (I got the formula from https://www.khronos.org/opengl/wiki/Calculating_a_Surface_Normal)
Issue #14 helped with my solution. Hopefully, it will be something similar for you.
Thanks, I didn't think we needed to normalize since when I did that for the sphere, it messed things up.
Issue #14 helped with my solution. Hopefully, it will be something similar for you.
Thx man this really helps!!