https://github.com/hellerve/render
Rendering experiments in Carp
https://github.com/hellerve/render
Last synced: 7 months ago
JSON representation
Rendering experiments in Carp
- Host: GitHub
- URL: https://github.com/hellerve/render
- Owner: hellerve
- Created: 2019-12-23T02:19:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T19:13:18.000Z (about 6 years ago)
- Last Synced: 2025-04-05T22:43:52.728Z (12 months ago)
- Size: 1.09 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# render
wherein I build 3D rendering tools in Carp, based on [this book](https://www.gabrielgambetta.com/computer-graphics-from-scratch/).
## Raytracer
I built a simple software raytracer with
- ambient, point, and positional light,
- spheres as shapes (which is lame, I know),
- shadows,
- reflection, and
- varying opacity (without refraction for now).
It’s very simple and just about 150 lines of Carp, including the final dumping
into a PPM file (I was using SDL at first, but rendering in SDL based on points
is extremely slow).
Here’s an unexciting example picture:

## Rasterizer
TODO
Have fun!