Build Your Own Pixel Shader Snail
Written by David Conrad   
Sunday, 03 January 2016

How hard is it to create an animated 3D realistic snail? If you use ShaderToy and have lots of imagination it's not as difficult as you might think. See how it was made and try it out. 

ShaderToy is an interactive graphics environment that runs in the browser and lets you try out ideas. If you take a look at the demos on the site then you should be impressed, but it can take some time to work out exactly what is going on. 

Inigo Quilez, one of the people who implemented ShaderToy, has a nice example for you. Take a look at the following video of a snail:

 

 

You should be impressed. The video is of the realtime graphics that the program generates. If you want to see it for real visit:

https://www.shadertoy.com/view/ld3Gz2

and see if you can run it.

If you are running Windows then this might not be as easy as you suspect because both Firefox and Chrome have WebGL disabled by default. So far I have only managed to make it work on Firefox which was done by typing about:config in the address box and searching for webgl. I found I had to set webgl.force-enable to true - even though this should be unnecessary.

 

firefoxgl

 

If everything works after this you should be able to load the demo, see the code and the graphics that it produces in the top left-hand window:

 

shadertoy

 

Once you get it to work you can also make changes to the code and generally explore. 

Finally there is a video that shows how the snail was made, which is just as amazing as the program itself:

 

 

Let's be honest - it is very rare to be so impressed by just a snail!

snail

 

 

More Information

https://www.shadertoy.com/view/ld3Gz2 

Impressive Pixel Shader of a Snail (Geeks3D)

Related Articles

Watching Paint Dry - GPU Paint Brush

WebGLStudio.js - 3D Development For The Web

FIrst Person Engine In 256 Lines - The Simplicity Of Raycast

Unified Particles Make Better Graphics

LiquidFun Is Fun!

Water In WebGL - One You Have To See

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin

 

Banner


Firefox 1.0 Released 20 Years Ago
10/11/2024

A news item with the headline "Firefox browser takes on Microsoft" from 20 years ago has attracted renewed attention. It was originally published on the BBC News website on November 9th, 2004 rec [ ... ]



C23 ISO Standard Is Here But You Probably Won't Read It
06/11/2024

At last ISO C23 has been published, but at $250 you probably aren't going to read it. Can we really tolerate this sort of profiteering on the work of others? This is worse than academic publishing!


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

 

 

Last Updated ( Sunday, 03 January 2016 )