500 Lines or Less A 3D Modeller
myth_drannon
103 points
21 comments
November 13, 2026
Related Discussions
Found 5 related stories in 42.9ms across 3,874 title embeddings via pgvector HNSW
- Show HN: Build a PC in 3D in the Browser ozaiworld · 62 pts · November 08, 2026 · 47% similar
- Show HN: Aircad – Professional drafting and 3D modeling in the browser peetle · 36 pts · November 10, 2026 · 46% similar
- How to CAD Almost Anything o4c · 389 pts · November 17, 2026 · 43% similar
- Computer Graphics from Scratch ibobev · 24 pts · November 17, 2026 · 43% similar
- Show HN: Squishy 3D helpers powered by Three.js prathje · 12 pts · October 28, 2026 · 42% similar
Discussion Highlights (8 comments)
italiansolider
Based legacy Open-GL enjoyer.
knollimar
Using a big library like OpenGL and then playing code golf seems at ends. Cool writeup but these always confuse me
omoikane
The code appears to be here (about ~903 lines): https://github.com/aosabook/500lines/tree/master/modeller/co...
jasonjmcghee
Another great read is Daniel Hooper’s write up on his SDF 3D modeler ShapeUp. https://news.ycombinator.com/item?id=40239164 It’s about 2k lines and was built in a week… but it uses raylib which is a fundamentally different task, but i still find it interesting.
Krei-se
Beware brave traveler, this great read will make you think oh that's not so hard! In the jungle of 3000+ lines spaghetti renderer-code you will be tangled in RenderTargets and concatenated ShaderCode with your boots in quicksands of BindGroups. Only the noble get to see the light after fixing their struct alignment traps!! 10/10 though, can recommend to get caught up
nnevatie
Is this released in 2026? It looks like it came from 20 years ago, to be quite honest.
forgotpwd16
The entire "Architecture of Open Source Applications" is amazing, and among those "500 Lines or Less" is imo the most enjoyable. Many, that can perhaps be considered fundamental (e.g. databases, crawler, etc), projects from plan to implementation, Most in Python, but also CLisp, Clojure, JS, Julia.
bentt
We must preserve pages and projects like this. In 5 years this will look like hand editing x86 ASM to most programmers.