# Build a 3D Modeller in Just 500 Lines of Python

Original title: 500 Lines or Less A 3D Modeller

> Hacker News story 50483431 · language: en · submitted 2026-11-13
> Web version: https://zeli.app/story/50483431
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 102 · by [myth_drannon](<https://news.ycombinator.com/user?id=myth_drannon>) · 💬 21
[original](<https://aosabook.org/en/500L/a-3d-modeller.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50483431>)

## Summary

Erick Dransch walks through building a working 3D modelling tool in 500 lines of Python, covering the three essentials every CAD program needs: a data structure to represent the design, a way to draw it on a 2D screen, and a method to interact with it. Using Legacy OpenGL and GLUT, he explains coordinate spaces, transformation matrices, and the rendering pipeline, then shows how a Scene class ties it all together.

## Key quote

> Humans are innately creative. We continuously design and build novel, useful, and interesting things.

## HN discussion (21 comments)

### [omoikane](<https://news.ycombinator.com/item?id=50504118>)

> The code appears to be here (about ~903 lines):
>
> https://github.com/aosabook/500lines/tree/master/modeller/co...

### [knollimar](<https://news.ycombinator.com/item?id=50503566>)

> Using a big library like OpenGL and then playing code golf seems at ends. Cool writeup but these always confuse me

### [jasonjmcghee](<https://news.ycombinator.com/item?id=50504318>)

> 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.

---

## Cite

- Page: https://zeli.app/story/50483431
- Date: 2026-11-13
- Source: aosabook.org (https://aosabook.org/en/500L/a-3d-modeller.html)
- Hacker News: https://news.ycombinator.com/item?id=50483431

## Other languages

- zh: https://zeli.app/zh/story/50483431 · markdown: https://zeli.app/zh/story/50483431.md
- ja: https://zeli.app/ja/story/50483431 · markdown: https://zeli.app/ja/story/50483431.md
- ko: https://zeli.app/ko/story/50483431 · markdown: https://zeli.app/ko/story/50483431.md
- de: https://zeli.app/de/story/50483431 · markdown: https://zeli.app/de/story/50483431.md
- es: https://zeli.app/es/story/50483431 · markdown: https://zeli.app/es/story/50483431.md
- ru: https://zeli.app/ru/story/50483431 · markdown: https://zeli.app/ru/story/50483431.md
