Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knockerpulsar/raytracer
Experimenting with creating a CPU raytracer.
https://github.com/knockerpulsar/raytracer
Last synced: 3 months ago
JSON representation
Experimenting with creating a CPU raytracer.
- Host: GitHub
- URL: https://github.com/knockerpulsar/raytracer
- Owner: KnockerPulsar
- Created: 2022-02-05T16:23:52.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T17:46:23.000Z (11 months ago)
- Last Synced: 2024-03-02T01:38:31.971Z (11 months ago)
- Language: C++
- Homepage:
- Size: 57.1 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# raytracer
Experimenting with creating a CPU raytracer. Main resources:
- [_Ray Tracing in One Weekend_](https://raytracing.github.io/books/RayTracingInOneWeekend.html)
- [_Ray Tracing: The Next Week_](https://raytracing.github.io/books/RayTracingTheNextWeek.html)# Showcase
![Cornell](./screenshots/cornell.png)
*Cornell box. This version added support for quads, boxes, lights, textures, and more! Rendered with 10k samples and 50 bounces*![Weekend final](./screenshots/weekend_final.png)
*Showcase of an earlier version of the renderer, implements all of "Raytracing in one weekend"'s core functions + multi-threading*![Texture mapping](./screenshots/two_spheres.png)
*Texture mapping for spheres!*![Screenshot with glass, metallic, and diffuse balls](./screenshots/screenshot.png)
*Earlier version with glass, metallic, and diffuse balls. Notice how the glass ball is hollow?*# Features
- Currently renders only spheres (more to come).
- Three material types: diffuse, metallic, dielectric.
- Supports spatial acceleration with BVHs.
- Texture mapping.# Dependencies
- [raylib](https://github.com/raysan5/raylib) for drawing and Vector3 class library
- [glm](https://github.com/g-truc/glm) for transforms
- [rlImGui](https://github.com/raylib-extras/rlImGui) for imgui support
- [nlohmann-json](https://github.com/nlohmann/json) for json support