Home Artists Posts Import Register

Content

Hey All,

A while ago I made a video on how to construct a Koch Snowflake, which is a 2d fractal. Someone asked me how something like this could be turned into 3d. It turns out there are a bunch of different ways that you could do this, and this video will show some approaches you could take.

As always, let me know what you think!

Martijn

Files

How to turn your 2d fractal into 3d!

A while ago someone asked me if its possible to turn a 2d Koch Snowflake into 3d. I thought about it for a bit and came up with a few ways to do this. In this video we'll go over some of those ways! ========== Timetable ========== 0:00 - Intro 0:40 - Setup 5:57 - 2d Koch Distance 10:48 - Implementation in 3d 14:40 - Straight Intersection 17:43 - Material 18:50 - Revolution 24:10 - Blend with Sphere 28:25 - Outro ========== Social Media Links ========== Twitter: @The_ArtOfCode Facebook: https://www.facebook.com/groups/theartofcode/ Patreon: https://www.patreon.com/TheArtOfCode ShaderToy: https://www.shadertoy.com/user/BigWIngs PayPal Donation: https://paypal.me/theartofcode FX Hash (NFTs): https://www.fxhash.xyz/u/The%20Art%20of%20Code ========== If you want to follow along ========== Starting point: https://www.shadertoy.com/view/WtGXDD Koch Snowflake: https://www.shadertoy.com/view/tdcGDj End Result: https://www.shadertoy.com/view/sdtcR2 ========== Other videos to watch ========== ShaderToy for complete beginners: https://youtu.be/u5HAYVHsasc Writing a ray marcher: https://youtu.be/PGtv-dBi2wE Raymarching operators (Booleans etc): https://youtu.be/AfKGMUDWfuE Distance functions for 3d primitives (torus, cylinder etc): https://youtu.be/Ff0jJyyiVyw Creating a Koch snowflake: https://youtu.be/il_Qg9AqQkE

Comments

Anonymous

Thank you(!)

Anonymous

Hi! I created a wrapper to use the shadertoy code in an openGL application. Does not support channels, but it's interesting if you want to take one of this snippets outside the browser and add interactivity as a standallone application https://github.com/WEREMSOFT/glfw-load-opengl-funcitons