https://github.com/blackmann/3dr
https://github.com/blackmann/3dr
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blackmann/3dr
- Owner: blackmann
- Created: 2023-01-11T18:49:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T12:34:16.000Z (over 3 years ago)
- Last Synced: 2025-06-27T10:47:25.530Z (12 months ago)
- Language: Zig
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 3dr - SDL2 3D Renderer in zig ⚡️
This is an attempt to use my experience in Blender and the basics I've learned from [pikuma.com/3d-graphics-programming](https://pikuma.com/courses/learn-3d-computer-graphics-programming) to develop a 3d renderer (a very basic one) with some few interactions.
As at this moment, I'm only 25% into the course and just know how to draw lines/triangles (with perspective) and project them into a [color] buffer. Also the course is taught in C which has some code structuring that I'm uncomfortable with.
I've tried to come up with my [API] design and apply the main principles.
## Testing
When testing a module, do
```sh
zig test src/lib/engine.zig -lSDL2 -I/opt/homebrew/include -L/opt/homebrew/lib
```