I painted a Landscape with Mathematics
Channel:Inigo Quilez · Length:42:00 · Published:2022-04-10 · Views:815045
Summary
Inigo Quilez live-paints a mountain landscape using only math in a shader, building up from a basic polynomial noise surface through fractal terrain, lighting and atmosphere. The code runs in real time on Shadertoy so viewers can edit it as they follow along.
Why HN recommends it
HN commenters point to it as the best demonstration of procedural graphics from a master, accessible to beginners yet deep enough for advanced viewers.
My favorite video of his is Painting a Landscape with Maths. — HN, 2023
Demoscene & retrocomputing · Computer graphics & rendering · Creative coding & generative art
Subtitles (excerpt)
hi welcome back certainly glad you could join me today my name is Inigo kiles and I thought that today we would do a fantastic painting that it's lot of fun not by using traditional paint or brushes or digital ones but by using mathematics instead that's right indeed we will Define colors and shapes through formulas that when composed together into one large formula will result in this mathematical painting that you see so I tell you what let me run all the formulas across the screen that you will need to do this painting along with me today and while I do that let me assure you that painting with maths is not difficult if done one step at a time as we are going to do today and it's most definitely lots of fun so let's erase all this mathematical paint to get the canvas ready to go so we can start from the beginning plotting a 2d surface F that is just some linear function of X and C the two horizontal coordinates of space as you see I'm using Y for the direction today and I hope I don't annoy the viewers that are in the Cup team too much now such a linear function is a polinomial of degree one but if we progressively increase the degree of the polinomial we can provide our surface with more and more undulations and
On Hacker News
Indeed, Inigo Quilez is "the guy" for this kind of stuff. He co-created ShaderToy and has worked on effects and modeling for multiple Pixar films. My favorite video of his is Painting a Landscape with Maths. [VIDEO] He deserves to have at least as many subscribers as other math YouTube channels like Verisatium and 3Blue1Brown. — fasterik, 2023-08
>It looks really good for such a simple algorithm. I love this! If you like that, you should check out Inigo Quilez [VIDEO] Here is the shadertoy link with code [LINK] — thewanderer1983, 2025-01
I just finished watching a live-coding session (from 2 years ago) by Inigo Quilez (ex Pixar), where he constructs an entire ray-marched landscape using only maths (mostly SDFs) in pure GPU shader code. The stream: [VIDEO] The demo: [LINK] — tombh, 2024-08
Welcome to the Internet, superMayo! If you want to see what the Masters can do with shaders, let me introduce you to Inigo Quilez and his shader art: [VIDEO] EDIT: I did not notice you are the author of this article. It's very well done, and I've been looking for more approachable and interactive tutorials on the arts of shader coding. — sph, 2023-10
Good to see high quality articles gaining traction. If the article looks too verbose, be sure to check out, as the author cites, Inigo Quilez's videos Painting a Landscape with Maths - [VIDEO] Painting a Character with Maths - [LINK] Bonus: Painting with Maths in Google Sheets - [LINK] — antegamisou, 2023-09
Related videos
- Painting a Character with Maths · Inigo Quilez · 24:46
- Dennis Gustafsson – Parallelizing the physics solver – BSC 2025 · Better Software Conference · 1:07:08
- Rowan Atkinson on free speech · The Christian Institute · 9:25
- Ross's Game Dungeon: Deus Ex · Accursed Farms · 39:52
- "Programming a 144-computer chip to minimize power" - Chuck Moore (2013) · Strange Loop Conference · 40:12
- Positive Affirmations for Site Reliability Engineers · KRAZAM · 4:00
- Why Don't You Want To Do Anything After Binging 4 Hours of YouTube Videos... · HealthyGamerGG · 22:09
- Prof. Robert Lustig - 'Sugar, metabolic syndrome, and cancer' · Low Carb Down Under · 57:42
- We Are The Art | Brandon Sanderson’s Keynote Speech · Brandon Sanderson · 18:35
- Segmented Displays · Posy · 13:55
- "What UNIX Cost Us" - Benno Rice (LCA 2020) · linux.conf.au · 34:14
- Saifedean Ammous: Bitcoin, Anarchy, and Austrian Economics | Lex Fridman Podcast #284 · Lex Fridman · 4:14:40
- Stephen Fry on American vs British Comedy · anc6368 · 4:19
- DjangoCon 2008 Keynote: Cal Henderson · Google for Developers · 1:02:43
- Aphex Twin - T69 Collapse · Aphex Twin · 5:19
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- The largest campaign ever to stop publishers destroying games · Accursed Farms · 31:24
- 8 Bit & '8 Bitish' Graphics-Outside the Box · GDC Festival of Gaming · 1:25:34
- IBM Selectric Typewriter & its digital to analogue converter · engineerguy · 3:05
- Crash Bandicoot Co-Creator Andy Gavin: Extended Interview | Ars Technica · Ars Technica · 2:13:39