Z-BUFFER LES GOOOOOORender Time - 3sUpdate: The loop didnt stop after finding an intersection which lead the program to update the same pixel. Set a return after intersection and that fixed everything. Also left a negative somewhere that caused the original image to be upside down.NOTE: These took in the radii directly, BUT in assignment 2 the ray intersections are all done in object space so the spheres are treated as if theyre all centered at the origin with radii of 1. Its been done.
IT WORKED!!!!!!
TRIED SOMETHING! So basically the node traversal did as intended and did in fact go through all the nodes, but the final render was just overwriting everything. Thats also why the original render is there in the background lol.
Upside down and only rendering the last node too
Even got the Z -Buffer for the simple one going
Had something going with the simple xml
Had the basic stuff running.