Skip to content
0:00 / 0:00

#shadertoy#glsl#signeddistancefunctions

Making a heart with Maths

Inigo Quilez

114K subscribers • 6 videos on Hallway

YouTube
  • Recommended by 2 people: 2 on Hacker News.
  • Presented by Inigo Quilez, co-creator of Shadertoy

Intermediate. Assumes working knowledge.

111K views9 years ago2 recommendations

Graphics and audioRenderingCreative codingMath for programmers

Inigo Quilez demonstrates how to procedurally generate a 3D heart shape using signed distance functions and GLSL shaders on Shadertoy.

How to create a simple heart with mathematics. Support this channel: patreon.com/inigoquilez Code and real-time version: shadertoy.com/view/4lK3Rc Tutorials on maths , art, SDFs and computer graphics: iquilezles.org Donate: paypal.com/paypalme/SMOOTHSTEPLLC Subscribe: youtube.com/c/inigoquilez Support: patreon.com/inigoquilez Twitter: twitter.com/iquilezles Facebook: facebook.com/inigo.quilez

Why it's here

2 people recommend this

What people say. Recommended as an excellent, highly enjoyable introduction to procedural graphics, shaders, and signed distance functions.

eggyon Hacker News • Recommends

On “Articles on fractals, computer graphics, mathematics, demoscene and more”

His YouTube tutorial where he creates the beating heart composited on live video as he explains it is a great introduction for beginners and younger people 1. I've learned so much from his sharing of his techniques and knowledge. Thanks Inigo! 1 link to this video

isoprophlexon Hacker News • Recommends

On “Wolfram Alpha: {y = Re(sqrt(abs(x)(1-abs(x)))), y = Re(-sqrt(1-sqrt(abs(x))))}”

Highly recommended video by Iquilez, in a similar vein: link to this video Watching the guy hack away at graphics is super enjoyable

userbinatoron Hacker News • Mentions

On “Plotting hearts with Python and C”

I was expecting it to be the same algorithm in two different languages, but the Python version is a mathematical description whereas the C version is RLE-compressed. Relatedly, there is this video on how to procedurally generate a 3D heart: link to this video