Ray tracing from scratch [C++ & SDL2]
Ray tracing from scratch [C++ & SDL2] Welcome to my new series on building a ray tracer from scratch in C++ with the SDL2 library! Follow me in this 'code with me' style series as I build a simple but functional ray tracer from scratch in C++. As far as possible, I use only the standard libraries, with the addition of SDL2 to allow the display of the final image in a window. In this first episode I give a basic introduction to how ray tracing works and then go on to put together the basic code that is going to form the core structure of the final project. The SDL2 library can be downloaded from: https://www.libsdl.org/ ********************************** The code from all of the episodes in this series is available on the QuantitativeBytes GitHub at: https://github.com/QuantitativeBytes/qbRayTrace ********************************** Other episodes in the ray tracing series: Episode 2 (Camera Geometry): https://youtu.be/KBK6g6RFgdA Episode 3 (Ray-Sphere intersections): https://youtu.be/8fWZM8hCX5E Episode 4 (Basic lighting): https://youtu.be/dUtkihuUvvo Episode 5 (Geometric transforms): https://youtu.be/-Apu2BNp3t8 Episode 6 (Planes & Shadows): https://youtu.be/9K9ZYq6KgFY Episode 7 (Simple materials): https://youtu.be/F5vIgpRF_Qo ********************************** You can also follow QuantitativeBytes on Facebook: www.facebook.com/QuantitativeBytes #raytracing ********************************** As with all of my videos, I show the code that I have developed to solve the particular problems that I need to solve, with the hope that it may provide sufficient background and inspiration to allow you to go on to develop your own code if you wish to. My code may not be the most appropriate solution to the problem you are trying to solve, so I urge you to consider the problem carefully and decide for yourself on the most appropriate solution. I make every effort to ensure that my code works as it should and is free of bugs, but of course I cannot provide any guarantees. If you use my code as shown, I strongly encourage you to make sure that you test it thoroughly to ensure that it works as you need it to. If you find a bug, do please let me know in the comments! **********************************
Download
0 formatsNo download links available.