2 ms·
I like the walls made of spheres! The real Cornell box is about 2 feet cubed IIRC... that would make the units of this scene file something close to centimeters
by dahart 10y ago
I like the walls made of spheres! The real Cornell box is about 2 feet cubed IIRC... that would make the units of this scene file something close to centimeters... which would mean the walls are spheres with a diameter of about 1.2 miles.
Last time I saw the box in person, I made sure to leave some fingerprints. :P
> Realistic Ray Tracing, by Peter Shirley
> Almost 100% of smallpt is derived from this book.
FWIW, Peter Shirley distilled all the fun parts of Realistic Ray Tracing into an easy quick e-book available for $3, or free with the trial. "Ray Tracing in One Weekend."
https://www.amazon.com/gp/product/B01B5AODD8/ https://www.amazon.com/gp/product/B01B5AODD8/
Blog post about it w/ more code & lots of resources: http://in1weekend.blogspot.com/2016/01/ray-tracing-in-one-weekend.html http://in1weekend.blogspot.com/2016/01/ray-tracing-in-one-we...
- generic_user 10y agoThanks for posting the blog. I know Shirley's books but I had not seen the blog.
- dahart 10y agoSurely. :) That blog is actually for his e-books. Here's his real blog: http://psgraphics.blogspot.com/ http://psgraphics.blogspot.com/
- melling 10y agoHere are 3 Swift ports: https://github.com/mebmichael/InOneWeekendSwift https://github.com/mebmichael/InOneWeekendSwift - Swift port https://github.com/Ceroce/SwiftRay https://github.com/Ceroce/SwiftRay - Swift port - Swift port http://mhorga.org/2016/03/21/ray-tracing-in-a-swift-playground.html http://mhorga.org/2016/03/21/ray-tracing-in-a-swift-playgrou... - Swift port I added them to my ray tracing resources: https://github.com/melling/ComputerGraphics/blob/master/ray_tracing.org https://github.com/melling/ComputerGraphics/blob/master/ray_...