4 ms·
Ray Tracing in One Weekend
- phkahler 11y agoThe sections listed don't cover acceleration structures. Thats critical to performance on scenes of any complexity. Otherwise it looks like a decent introduction.
- dyarosla 11y agoThey do mention BVH and then the image in the link goes on to mention KD-trees. It's a ray tracer in a weekend. This I think is plenty to start with.
- phkahler 11y agoI missed the mention of BVH - good enough. At the end it says something about performance, which can't be achieved without something like that.
- oh_sigh 11y agoMaybe that can be on day 3...
- douche 11y agoBTW, if you have Kindle Unlimited, you can read it for free. I think I know what I'm doing this weekend...
- GuiA 11y agoAuthor, any way I can buy it as a PDF?
- generic_user 11y agoIts a shame. I have his ray tracing book and would still buy this as a pdf because I enjoy his writing.
- petershirley 11y agoNot at present I am afraid. But I will confess I mainly pushed toward getting it done and went with kindle because I knew that platform. I will do some homework on this.
- melling 11y ago"Since then I have written a bunch of ray tracers in Pascal, Fortran, Scheme, C, C++, Java, and most recently Swift (which is awesome for writing ray tracers). " What makes Swift so good for writing ray tracers?
- roskilli 11y agoLikely the strong generics while still being terse and inbuilt functional methods on collection types. Also being able to add extensions to any class is super helpful.
- petershirley 11y agoYa I think you got it. I just dabbled with swift and wrote my experiences here: http://psgraphics.blogspot.com/2014/09/inheritance-for-swift-ray-tracer.html?m=1 http://psgraphics.blogspot.com/2014/09/inheritance-for-swift...
- K0nserv 11y agoI've also been writing a ray tracer in Swift. Would love to look at yours if it's Open Source. The core rendering logic for mine is here[0]. I also started building a .obj loader for Swift[1]. Will definitely be buying the book. 0: https://github.com/k0nserv/SwiftTracer-Core https://github.com/k0nserv/SwiftTracer-Core 1: https://github.com/k0nserv/SwiftObjLoader https://github.com/k0nserv/SwiftObjLoader
- PhasmaFelis 11y agoWhat is the benefit of writing a bunch of different raytracers? Is it just an exercise to practice a new language and reenforce your understanding of raytracing fundamentals, or is there actually a notable difference?
- berkut 11y ago32 years is quite a long time in computing terms! Both the computing tech and raytracing/graphics theory and algorithms have changed significantly over that time, with better algorithms and much more powerful computing resources allowing more brute-force/accurate stuff to be more practically done. Writing a raytracer/renderer is also rather addictive, and it's quite cool writing something which produces something else (as is writing compilers).
- sxp 11y agoIf you want to learn more, the best raytracing book is http://www.pbrt.org/ http://www.pbrt.org/ which goes into immense details about various techniques and won an Academy Award. The renderer described in the book is also available online: https://github.com/mmp/pbrt-v3 https://github.com/mmp/pbrt-v3
- alkonaut 11y agoNote that the pbrt-v3 code is the updated code corresponding to the soon-to-be-released 3rd edition of the book, but the book available in bookstores is still the 2nd ed. If you like me plan on buying the book soon, you probably want to wait just a little while for 3rd ed which is due any time now.
- generic_user 11y agoThis looks like a slimmed down version of the book Realistic Ray Tracing writen by the same author Peter Shirley. The book is still very short ~200 pages and develops a raytracer. http://www.amazon.com/Realistic-Tracing-Second-Peter-Shirley/dp/1568814615/ref=sr_1_4?s=books&ie=UTF8&qid=1453952161&sr=1-4&keywords=Ray+Tracing+Peter+Shirley http://www.amazon.com/Realistic-Tracing-Second-Peter-Shirley... He has also written one of my favorite general introductions to computer graphics if your looking for a usable survey text that has most of the basic formulas. http://www.amazon.com/Fundamentals-Computer-Graphics-Fourth-Marschner/dp/1482229390/ref=sr_1_1?s=books&ie=UTF8&qid=1453952450&sr=1-1 http://www.amazon.com/Fundamentals-Computer-Graphics-Fourth-...
- corysama 11y agoThe author wrote a short blog post about the process of speed-writing the book. http://psgraphics.blogspot.com/2016/01/process-for-speed-writing-book.html http://psgraphics.blogspot.com/2016/01/process-for-speed-wri...
- phodo 11y agoInteresting idea of speed writing... "speed book", "agile book". Removes inertia and barriers to creation. I read through the book (just a skim for _now_). Very well done. I wonder if we will see more of this trend for certain byte-sized topics. (<-- ...see what I did there? )
- amelius 11y agoIs this leveraging the GPU? Or is it more about the theory of computing realistic images, without regard to performance?
- dahart 11y agoThe latter, it's about getting quick wins, getting up and running as fast as possible, and having enough of a framework and enough fun by the end to be motivated and capable of exploring any of the advanced topics for research or production rendering that might tickle your fancy.