I painted a Landscape with Mathematics

Channel:Inigo Quilez · Length:42:00 · Published:2022-04-10 · Views:815045

Watch on YouTube

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