Hacker GitHub

← All repos

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

Mentions per year 55 mentions · busiest year 2016 (13)
20082026
  1. …. * 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
  2. ▲ 3
    Tiny renderer or how OpenGL works: software rendering in 500 lines of code
    story by Tomte · 2025-03-13 · 0 comments
  3. 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
  4. …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
  5. …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
  6. …my todos forever now. glad to see the author is writing more self-paced programming projects. [1]: https://github.com/ssloy/tinyrenderer
  7. …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?
  8. …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…
  9. …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…
  10. been on my 3D todo list for a while. you might also like these: https://github.com/ssloy/tinyrenderer https://github.com/zauonlok/renderer
  11. https://github.com/ssloy/tinyrenderer/wiki/Lesson-0:-getting...
  12. 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…
  13. …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…
  14. ▲ 328
    TinyRenderer – how OpenGL works: software rendering in 500 lines of code
    story by graderjs · 2022-03-15 · 38 comments
  15. 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
  16. …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…
  17. …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
  18. …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.
  19. …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
  20. …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…
  21. …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…
  22. …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)
  23. 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)
  24. 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…
  25. 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
  26. …famous and easy to follow. This should enter the awesome-graphics list as a must read code! [1] - https://github.com/ssloy/tinyrenderer
  27. 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)
  28. Especially his Tiny Renderer: https://github.com/ssloy/tinyrenderer
  29. …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++
  30. …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
  31. 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...
  32. …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
  33. 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...
  34. 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
  35. …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
  36. You might be interested in https://github.com/ssloy/tinyrenderer/wiki
    comment by Jach · 2017-11-01 · in Show HN: WebGL Voxel Engine
  37. The wiki contains instructional material, https://github.com/ssloy/tinyrenderer/wiki
  38. ▲ 2
    Tiny Renderer: Rendering with OpenGL in 500 Lines of Code
    story by Cieplak · 2017-10-05 · 0 comments
  39. 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…
  40. 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!
  41. …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…
  42. How OpenGL works: software renderer in 500 lines of code https://github.com/ssloy/tinyrenderer/wiki https://news.ycombinator.com/item?id=11264469
  43. Another interesting project to take away some magic: https://github.com/ssloy/tinyrenderer/wiki
  44. This is a really fun way to build your own (raterization based) renderer step-by-step: https://github.com/ssloy/tinyrenderer/wiki
  45. …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
  46. 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.
  47. ▲ 133
    How OpenGL works: software rendering in 500 lines of code
    story by WoodenChair · 2016-09-26 · 11 comments
  48. …[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/
  49. Another tutorial from first principles. https://github.com/ssloy/tinyrenderer/wiki
  50. 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…