tinyrenderer
tiny-renderer
| tinyrenderer | tiny-renderer | |
|---|---|---|
| 67 | 2 | |
| 23,657 | 183 | |
| 0.8% | 1.1% | |
| 7.4 | 10.0 | |
| 7 months ago | over 7 years ago | |
| C++ | Python | |
| GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tinyrenderer
-
Ask HN: What Are You Working On? (March 2026)
I got this itch too when I came across tinyrenderer [1] and worked through the early lessons through shading, but didn't quite finish the texture mapping yet [2]. It was fun to work in pure C from first principles, even side-questing to write a simple TGA file reader and writer.
I'd be very interested to see your tutorial when it's done!
[1] https://haqr.eu/tinyrenderer
- Rendering graphics in 500 lines of bare C++
-
Rasterizer Project - Part: BASIC_END
https://haqr.eu/tinyrenderer/ https://www.cs.cmu.edu/~kmcrane/Projects/ModelRepository/ @article{crane2013robust, title={Robust fairing via conformal curvature flow}, author={Crane, Keenan and Pinkall, Ulrich and Schr{\"o}der, Peter}, journal={ACM Transactions on Graphics (TOG)}, volume={32}, number={4}, pages={1--10}, year={2013}, publisher={ACM New York, NY, USA} }
- Playing with Code
- Tiny renderer or how OpenGL works: software rendering in 500 lines of code
-
TinyCompiler: A Compiler in a Week-End
That sounds interesting! He seems to have four tiny renderers pinned on his GitHub page; is https://github.com/ssloy/tinyrenderer the one you're recommending? What do you like about it?
-
How to Become a Software Engineer ?
C++: How OpenGL works: software rendering in 500 lines of code
-
From scratch OpenGL and shaders with raw Xlib
I don’t think that exists (I sure would like for it to), but until it does you could amuse yourself with:
- A 500-line (non-OpenGL-compatible) 3D rasterizer: https://github.com/ssloy/tinyrenderer/wiki.
- A “hello Wayland” app written in C without libwayland or anything else: https://gaultier.github.io/blog/wayland_from_scratch.html.
- A “hello X11” app written in x86-64 assembly(!) without libX11, libxcb, or anything else: https://gaultier.github.io/blog/x11_x64.html.
-
Tiny Compiler – Writing a Compiler in a Weekend
the tinyrenderer[1] project has been on my todos forever now. glad to see the author is writing more self-paced programming projects.
[1]: https://github.com/ssloy/tinyrenderer
-
Is there space in this field for extreme cases like mine ?
- Game development - Unity3D project based learning in C#: https://learn.unity.com/ - Graphics - There was another user on r/GraphicsProgramming the other day (who teaches Computer Graphics at his university) that linked their lecture series for the entry year of their course here: https://tamats.com/learn/realtime-graphics/ - Project based learning: https://github.com/ssloy/tinyrenderer/wiki - Rendering API tutorials: https://vulkan-tutorial.com/, https://learnopengl.com/
tiny-renderer
-
Olive.c: a simple graphics library that does not have any dependencies
Cool use of Webassemly. See also the 500 line https://github.com/ssloy/tinyrenderer or the 100 line Python/numpy version https://github.com/rougier/tiny-renderer
Both cpu renderers with texture mapping and Wavefront obj import without further dependencies.
- Introduction to GPUs with OpenGL
What are some alternatives?
sokol - minimal cross-platform standalone C headers
aoc-2020 - Advent of Code 2020 in 25 Different Languages
deko3d - Homebrew low level graphics API for Nintendo Switch (Nvidia Tegra X1)
xplain - Interactive demos
Rasterizer_Project
SuperSimpleGraphics - An SVG generating single header file C library appropriate for "intro to programming" classes in C/C++.