# ray-tracing-cpp **Repository Path**: kingfish404/ray-tracing-cpp ## Basic Information - **Project Name**: ray-tracing-cpp - **Description**: Ray tracing render by cpp. - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-16 - **Last Updated**: 2024-12-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Ray Tracing [_Ray Tracing in One Weekend_](https://raytracing.github.io/books/RayTracingInOneWeekend.html) ## Run ```shell # command tested pass in macOS 12.2 [MBP13 2020 Intel] ./run-unix.sh # run code and wait for long. ./run-unix.sh s # run code and wait for little. # the output image is ./build/image.ppm ``` ## Output Original output file is `images/x-x.ppm` When Surface Normals and Multiple Objects Down ![](images/1-6.jpeg) When Diffuse Materials Down ![](images/1-8.jpeg) When Matel Down ![](images/1-9.jpeg) Final Render (may cost lots of time) ![](images/1-13.jpeg) ## Different - Parallelism speed up, 4 thread speed up 2x+. - Functional Programming support. - Code base on C++17. ## Next Plan - [ ] The next [week](https://raytracing.github.io/books/RayTracingTheNextWeek.html). - [ ] Camera controler add. - [ ] Web preview support by wasm. ## License MIT Thanks for [_Ray Tracing in One Weekend_](https://raytracing.github.io/books/RayTracingInOneWeekend.html) project authors' work.