dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

Mirror and bunny runtime #56

Open kevinjrliang opened 1 year ago

kevinjrliang commented 1 year ago

I've looked at some previous posts and they're rendering much faster than what I'm seeing. With max recursion set to 10, it takes me about 1 minute to render inside a sphere, and everything else takes under 30 seconds. But even with recursion set to 1, it takes me about 1.5 hours to render mirror. Is this due to my machine, or is something wrong with my implementation? I am also using the release build.

Edit: It took me 2.5 hours to render bunny with recursion 1.

panuelosj commented 1 year ago

Likely has to do with implementation. If your ray-triangle intersects had reasonable runtime from A2, I'd maybe look at if your recursion is doing what you want here.