Redesigned the distance check with interfaces. Also fixed so that objects only are rendered if they're are in LOS of the light. Multiple lights does hoever not work, yet.
Fixed some bugs with camera etc. It almost works, however, I now know how to program a recursive raytracing algoritm. Starting on that.
now it works as intended, probably. Starting to break code away in functions. Moved triangles away and it works. Starting on spheres now.
It works. now I just have to fix refraction thingy, also look over local shading and light addition on the material
Added psedocode in .txt
Trying to make it non-recursive, should be easy. But I'm failing somewhere on the way. Not sure how and why.
I think I got a hang of it now. But as soon as I add code for multiple jumps the color on the FIRST SPHERE AND TRIANGLE is lost. Whaat
Missed to save a file, check last commit.
Added some comments and removed old code. Same problems exists though
Rewrote 'jump' function so that it uses spherehit and trianglehit variables instead of distance variables only
Trying to find the bug. Unsuccessful
NOW IT WORKS  JIPPIIEEE
Returned to the for loop in trace and it all works now EXCEPT for non reflective. Everything is always 100 %reflective. Even though the factor should be 0
Now objects is ONLY reflective in another objects reflection
Now reflection works as intended. Also removed quite the batch of the ComputeHelp file