Note that this was done with 4x supersampling (16 samples per pixel).
The only real interesting snag I hit was when I briefly didn't realize that using the previous ray's point of intersection as the origin for the reflection ray wouldn't work. For obvious reasons, the reflection ray will sometimes decide that the closest intersecting object is the object that it's reflecting off of because of that. Adding to the reflecting ray's origin an extremely small EPSILON value of 0.00001 in the direction of the outgoing ray solved this problem.
Extra #1
I got sick of the boring backdrop, so I added to the scene a bit now that there's a use for it with reflections:
This one has super sampling
Here's one without, you can see the randomness of the rays picked per cone much clearer but the picture isn't as nice.
These were taken with a +/- 5 degree spread for each cone.
No comments:
Post a Comment