Perlin/simplex noise demo

50 views
Skip to first unread message

Peter Chestna

unread,
Dec 27, 2014, 8:40:28 PM12/27/14
to cube...@googlegroups.com
I used the FastLED Perlin/simplex noise generator plus the color palette lookup function and combined it with my accelerometer demo code (layer animation) to build a 3D noise demo.

Basically the code generates noise into one of the layers (8x8) and then copies it to the next layer and repeats so that the layers are noise over time. The code is written to allow you to animate in either direction on any axis (X, Y or Z). The video is using the Y axis and filling from the back to the front. The code allows you to change various parameters such as the speed of the animation and the scale (zoom) as well as the palette. The demo video is using the built-in lava colors palette.

I've talked to one of the author's of the FastLED library and he's considering porting it to the Spark. If he does, I'll get it and my other demos up on CubeTube.

Running on an Arduino Mega

g. wygonik

unread,
Dec 27, 2014, 10:22:35 PM12/27/14
to cube...@googlegroups.com
Yay for perlin noise! Cool demo. :-)

g.

Peter Chestna

unread,
Dec 27, 2014, 10:47:49 PM12/27/14
to cube...@googlegroups.com
Update: 

While I was working on another lighting effect, I added the ability to mirror the input layer instead of animating it. It gives the noise more depth and a pretty cool effect. I think I like it more than the original. 

I'm starting to put together a bunch of utility functions as I create these effects that others may find useful. I think I'm going to create a class and add it to GitHub. When FastLED is ported to Spark, I'll add my library as well.

Shawn Frayne

unread,
Dec 28, 2014, 12:03:36 AM12/28/14
to cube...@googlegroups.com
This is wonderful!

I just saw your post right as I was clicking send on the next Kickstarter update email so I missed adding it -- damn! 

-Shawn
Reply all
Reply to author
Forward
0 new messages