/RTX

C++ RayTracer made following Ray Tracing In One Weekend book series

Primary LanguageC++

RTX: Raytracer

A C++ RayTracer made following the Ray Tracing in One Weekend and Ray Tracing: The Next Week books, both avalible at https://raytracing.github.io/

Output Pictures

Render of many spheres

Render of a foggy scene

Render of Cornell Box

Features:

  • Anti-Aliasing
  • Bounding-Volume Hierarchies
  • Camera with adjustable position and attributes
  • Checkered Texture
  • Depth of Field
  • Fog and Smoke
  • Image Textures
  • Lights
  • Multiple Materials:
    • Matte (Lambertian)
    • Metal with adjustable level of reflectiveness
    • Glass
  • Multiple Object Shapes: Boxes and SPHERES!!
  • Rotatable Objects

How to use

Import the .sln file using Visual Studio and build the program. Then go to the output directory and click RTX.exe and it will output a output.ppm image file in the same directory. You can also run it from the command line and give a different filename as the first argument to output to a different file.