ssloy/tinyrenderer
View on GitHub ↗ ★ 24,490 C++
A brief computer graphics / rendering course
55 mentions on Hacker News by 43 people: 7 stories, 48 comments · first 2016-03-10 · latest 2025-06-25
20082026
-
…. * Tiny renderer or how OpenGL works: software rendering in 500 lines of code: https://github.com/ssloy/tinyrenderer/wiki ) * TinyRaytracer: Understandable RayTracing in 256 lines of bare C++: https://github.com/ssloy/tinyraytracer/wiki
comment by ibobev · 2025-06-25 · in Playing with Code -
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?
comment by kragen · 2025-02-21 · in TinyCompiler: A compiler in a week-end -
…TinyRenderer, loading Obj files, texture mapping, clipping, and vertex/pixel shaders on CPU only: https://github.com/ssloy/tinyrenderer
comment by erwincoumans · 2024-11-02 · in Implementing a Tiny CPU Rasterizer -
…it does you could amuse yourself with: - A 500-line (non-OpenGL-compatible) software rasterizer: https://github.com/ssloy/tinyrenderer/wiki . - A “hello Wayland” app written in C without libwayland or anything else:…
comment by mananaysiempre · 2024-03-30 · in From scratch OpenGL and shaders with raw Xlib -
…my todos forever now. glad to see the author is writing more self-paced programming projects. [1]: https://github.com/ssloy/tinyrenderer
comment by blondin · 2024-01-13 · in Tiny Compiler – Writing a Compiler in a Weekend -
…for implementing 3D rendering from scratch. On that I cannot recommend enough is this github repo: https://github.com/ssloy/tinyrenderer/wiki/Lesson-0:-getting... If you are more of a visual learner, this guy is also a treasure trove:…
comment by torginus · 2023-11-23 · in How do I become a graphics programmer? -
…conceptual understanding of what shaders are actually doing, I would highly recommend this course: https://github.com/ssloy/tinyrenderer In the course you will build a purely CPU-based renderer that simulates the way OpenGL shaders work. I…
comment by zffr · 2023-11-23 · in How do I become a graphics programmer? -
…have mentioned ray-tracing in one weekend Complimentary to that I would recommend TinyRenderer https://github.com/ssloy/tinyrenderer/wiki This one is a CPU-based rasterizing renderer, it gives you a good understanding of what a GPU…
comment by fgeahfeaha · 2023-07-24 · in Ask HN: What books or courses do you know similar to "From Nand to Tetris"? -
been on my 3D todo list for a while. you might also like these: https://github.com/ssloy/tinyrenderer https://github.com/zauonlok/renderer
comment by blondin · 2023-01-22 · in 3D game shaders for beginners: step-by-step guide to SSAO, lighting, and more -
https://github.com/ssloy/tinyrenderer/wiki/Lesson-0:-getting...
comment by slmjkdbtl · 2022-12-29 · in Learning Modern 3D Graphics Programming (2012) -
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…
comment by erwincoumans · 2022-09-22 · in Olive.c: a simple graphics library that does not have any dependencies -
…rasterization concepts and implementation check out 500 lines C++ TinyRenderer and its wiki here: https://github.com/ssloy/tinyrenderer and the 100 lines Python version (only numpy dependency) here: https://github.com/rougier/tiny-renderer…
comment by erwincoumans · 2022-06-06 · in Source code for 4kb demoscene production “Elevated” released (2016) -
another nice resource is https://github.com/ssloy/tinyrenderer/wiki The wiki is nice and it has a functional renderer with cpu vertex/pixel shaders, texture mapping and obj loader. A Python version is just 100 lines:…
comment by erwincoumans · 2022-03-07 · in Introduction to GPUs with OpenGL -
…reimplement the fundamentals. It's been awhile, but a few common, imho approachable, sources are: https://github.com/ssloy/tinyrenderer/wiki - a rasterizer that starts with drawing a line https://raytracing.github.io/ - a basic raytracer…
comment by pfranz · 2022-01-01 · in Finding your home in game graphics programming -
…vertex and pixel shaders, texture mapping, shadows etc, with articles explaining how things work: https://github.com/ssloy/tinyrenderer
comment by erwincoumans · 2022-01-01 · in Finding your home in game graphics programming -
…on the frontpage of Hacker News? This is just someone going through the tinyrenderer tutorial at https://github.com/ssloy/tinyrenderer/wiki It hardly qualifies as hacking, and it's definitely not news-worthy.
comment by creativemonkeys · 2021-09-09 · in Work in progress 3D renderer using SDL2(just for learning, only shows wireframe) -
…s://gabrielgambetta.com/computer-graphics-from-scratch/ Another link I found interesting is this one: https://github.com/ssloy/tinyrenderer/wiki
comment by wernsey · 2021-03-23 · in Multithreading for Game Engines -
…to learn are what Vector and Fragment shaders are. I think this course is a good intro for it: https://github.com/ssloy/tinyrenderer Lastly, when you are ready to start writing real graphics code, you might want to consider using something…
comment by zffr · 2021-02-16 · in Ask HN: How to self-learn graphics programming? -
…Graphics From Scratch! https://raytracing.github.io/ -- Ray Tracing in One Weekend book series https://github.com/ssloy/tinyrenderer/wiki -- tinyrenderer, tinyraycaster, tinyraytracer http://www.pbr-book.org/ -- Physically Based Rendering…
comment by pfranz · 2020-12-30 · in Learn 3D Computer Graphics Programming from Scratch -
…The tiny{raytracer,renderer,kaboom} series: https://github.com/ssloy/tinyraytracer & https://github.com/ssloy/tinyrenderer & https://github.com/ssloy/tinykaboom Ray tracing a tiny procedural planet: https://casual-effects.com/research/McGui…
comment by goranmoomin · 2020-12-01 · in Raytracing in One Weekend (2016) -
Maybe this would be a good start! https://github.com/ssloy/tinyrenderer It covers how graphics libraries like OpenGL go from triangles to screen coordinates, and how they "shade" pixels in those triangles to create an image.
comment by vivekseth · 2020-10-02 · in A trip through the Graphics Pipeline (2011) -
For rasterization I would recommend the Tiny Renderer mini-course ( https://github.com/ssloy/tinyrenderer/wiki ). It aims to teach you how OpenGL works by having you implement your own OpenGL-like software rasterizer. It is a fantastic…
comment by fesoliveira · 2020-02-18 · in Ray Tracing Essentials, Part 1: Basics of Ray Tracing -
https://github.com/ssloy/tinyrenderer/wiki This tutorial is super good for making a simple rasterizing renderer. https://github.com/hatsunearu/tinyrendere-rs I implemented some of it in rust!
comment by hatsunearu · 2019-12-09 · in Triangle Rasterization in Practice -
…famous and easy to follow. This should enter the awesome-graphics list as a must read code! [1] - https://github.com/ssloy/tinyrenderer
comment by fesoliveira · 2019-10-28 · in 3D graphics rendering pipeline. Implemented in JavaScript. Run in a terminal -
Anyone know how this guide compares to tinyrenderer? https://github.com/ssloy/tinyrenderer/wiki/Lesson-0:-getting...
comment by frenchie14 · 2019-04-05 · in Computer Graphics from Scratch (2017) -
Especially his Tiny Renderer: https://github.com/ssloy/tinyrenderer
comment by azhenley · 2019-02-15 · in Build your own old-school 3D shooter in a weekend -
…seen takes on before, but he's got some great angles and insights hidden in each post. Start here: https://github.com/ssloy/tinyrenderer/wiki/Lesson-1:-Bresenh...
comment by lbj · 2019-01-27 · in KABOOM in 180 lines of bare C++ -
…to studying this. The author has also written an impressive OpenGL-like renderer in just 500 lines: https://github.com/ssloy/tinyrenderer/wiki
comment by winter_blue · 2019-01-21 · in Lines of bare C++: raytracing made simple -
If you dig software rendering: https://github.com/ssloy/tinyrenderer https://www.youtube.com/watch?v=HQYsFshbkYw https://www.youtube.com/watch?v=Y_vvC2G7vRo&list=PLEETnX-uPt... https://www.amazon.com/Tricks-Programming-Gurus-Advanced-Gra...
comment by openbasic · 2019-01-11 · in Retro game engine for developers that enjoy creating games like it's 1997 -
…No need to go full shit ape and creation of 3D images in bmp is excellent exercise you should try. https://github.com/ssloy/tinyrenderer
comment by slezyr · 2019-01-04 · in Thoughts on Modern C++ and Game Dev -
Write your own software renderer, and learn how the principles of computer rendering work: https://github.com/ssloy/tinyrenderer The wiki has lessons in detail: https://github.com/ssloy/tinyrenderer/wiki/Lesson-1:-Bresenh...
comment by ccajas · 2018-03-17 · in Ask HN: “Write your own” or “Build your own” software projects -
Tiny Renderer or how OpenGL works: software rendering in 500 lines of code https://github.com/ssloy/tinyrenderer
comment by buzzier · 2018-03-07 · in A Tiny Wolfenstein-Like Software Engine -
…readable intro for background on the subject. [1] https://news.ycombinator.com/item?id=15595137 [2] https://github.com/ssloy/tinyrenderer/wiki/
comment by aidos · 2017-11-01 · in The Book of Shaders -
You might be interested in https://github.com/ssloy/tinyrenderer/wiki
comment by Jach · 2017-11-01 · in Show HN: WebGL Voxel Engine -
The wiki contains instructional material, https://github.com/ssloy/tinyrenderer/wiki
comment by brudgers · 2017-10-05 · in Tiny Renderer: Rendering with OpenGL in 500 Lines of Code -
And if you do want to try it, I recommend this as a starting point: https://github.com/ssloy/tinyrenderer/ - straightforward and satisfying to get a 3D model up on screen. It really helped me start building an understanding of how the a…
comment by mrspeaker · 2017-07-30 · in Ubershaders: A Ridiculous Solution to an Impossible Problem -
One of the other commenters mentioned this: https://github.com/ssloy/tinyrenderer/wiki If you’re interested in learning graphics, this is a great place to start!
comment by vivekseth · 2017-07-16 · in Show HN: 3D Renderer Built using 2D HTML Canvas -
…I've been getting into writing a software 3D renderer thanks to this fantastic set of tutorials: https://github.com/ssloy/tinyrenderer/wiki . Here's my creepy 3D rendering: http://mrspeaker.net/dev/head2/ It's not using a real z-buffer…
comment by mrspeaker · 2017-07-15 · in Show HN: 3D Renderer Built using 2D HTML Canvas -
How OpenGL works: software renderer in 500 lines of code https://github.com/ssloy/tinyrenderer/wiki https://news.ycombinator.com/item?id=11264469
comment by buzzier · 2017-01-21 · in The lost art of 3D rendering without shaders -
Another interesting project to take away some magic: https://github.com/ssloy/tinyrenderer/wiki
comment by Jach · 2016-11-28 · in LaiNES – Cycle-accurate NES emulator in around 1000 lines of code -
This is a really fun way to build your own (raterization based) renderer step-by-step: https://github.com/ssloy/tinyrenderer/wiki
comment by santaclaus · 2016-10-29 · in Casual Introduction to Low-Level Graphics Programming -
…function "triangle" in [1]. 33 lines of code which do, somewhat slowly, what GPUs do rapidly. [1] https://github.com/ssloy/tinyrenderer/blob/master/our_gl.cpp
comment by Animats · 2016-09-27 · in How OpenGL works: software rendering in 500 lines of code -
The link should be changed to https://github.com/ssloy/tinyrenderer/wiki since that seems to be the primary entry point for the repo/tutorial.
comment by rav · 2016-09-27 · in How OpenGL works: software rendering in 500 lines of code -
…[2] https://www.amazon.com/_/dp/B01CO7PQ8C [3] https://www.amazon.com/_/dp/B01DN58P8C [4] https://github.com/ssloy/tinyrenderer/wiki [5] https://thebookofshaders.com/
comment by TACIXAT · 2016-05-22 · in Scratchapixel: Computer Graphics Programming from Scratch -
Another tutorial from first principles. https://github.com/ssloy/tinyrenderer/wiki
comment by damptowel · 2016-05-21 · in Scratchapixel: Computer Graphics Programming from Scratch -
Let me cite one thing: https://github.com/ssloy/tinyrenderer/wiki/Lesson-6:-Shaders... "Recall that all my source code here is meant to be compared with yours. Do not use my code, write your own. I am a bad programmer." If you want to…
comment by haqreu · 2016-03-11 · in How OpenGL works: software renderer in 500 lines of code -
https://github.com/ssloy/tinyrenderer/blob/master/geometry.c... What's going on there with the template<> template<> ?
comment by jahnu · 2016-03-11 · in How OpenGL works: software renderer in 500 lines of code -
…texturing, depth-stencil operations, blending, compute shaders and efficient memory management. [0] https://github.com/ssloy/tinyrenderer/blob/master/our_gl.cpp... edit: Someone in reddit pointed out that this is a translation of a Russian…
comment by exDM69 · 2016-03-11 · in How OpenGL works: software renderer in 500 lines of code