Page 1 of 1

Random Noise-y Moving Things [ADDED HEX]

Posted: Thu Mar 20, 2014 9:35 am
by substitute541
Note: I put Noise-y instead of Noisy to distinguish between things moving because of noise and ears breaking because of noise.

Just a showcase of demos using love.math.noise to make cool stuff.

Here are a couple of my demos using noise:

Simple Water (press "o" to show outlines):
SimpleWater.love

Little Particles (moving in a bit dizzy way) :
LittleParticles.love

Squiggly Cloth (extremely laggy on high number of vertices):
SquigglyCloth.love

Colorful Dots:
ColorfulDots.love

Map Generator(top-down):
MapGen1.love

Squiggly Hexagon (press tab to cycle between modes [normal, fixed angle, fixed offset]):
SquigglyHexagon.love

You can use any of the code in the above demos in your projects if you wish!

Plan to add:
  • Mapgen (both top-down and Terraria-style)
  • Space systems (?)
Any suggestions? Make a new post below!

Re: Random Noise-y Moving Things

Posted: Thu Mar 20, 2014 3:29 pm
by micha
Nice. I like both of them.

The one with the particles creates an optical illusion. It looks like there are gray lines moving around on screen, even though it is only points. These points could also be used with a mesh to create a moving cloth effect.

Re: Random Noise-y Moving Things [ADDED 2 MORE]

Posted: Fri Mar 21, 2014 7:35 pm
by Mermersk
Very nice! Didn't know what noise was until this, looks super useful and cool.

Re: Random Noise-y Moving Things [ADDED 2 MORE]

Posted: Sat Mar 22, 2014 1:29 am
by chezrom
Nice, I like it.

For particles, you can place points at random, not in a grid.
We need a random distribution that seems "natural" and in this case, it is a "blue noise". (https://en.wikipedia.org /wiki/Blue_noise#Blue_noise or http://www.redblobgames.com/articles/no ... ction.html less theoric)
A good method to have "blue noise" is Poisson disk that generate points with a minimal distance between each. There exists quick algorithm to do that, and I implement one in poisson.lua.

Here's the result :
vibration.love
(2.44 KiB) Downloaded 162 times
You can see that the illusion of "wave' is less visible, so it is not a good thing :(

EDIT : I also modify for the color dots, it's strange. I code three display mode, you can navigate between then with the TAB key.
colorpoints.love
(2.75 KiB) Downloaded 160 times

Re: Random Noise-y Moving Things [ADDED MAPGEN]

Posted: Sat Mar 22, 2014 2:26 pm
by Germanunkol
Chezrum, that is extremly pretty!

I also like the demos in the original posts. Come to think of it, I really like noise :).

Re: Random Noise-y Moving Things [ADDED MAPGEN]

Posted: Sat Mar 22, 2014 11:00 pm
by chezrom
Thank you Germanunkol for your feedback.

I do another version of this "color points" with new display modes and choice of the number of "noise octaves" (between 1 and 4), in a "bar" that appear at the top of the widow when the mouse is near the top (as the task bar of windows). [b}TAB[/b] can be always use to cycle display mode. (the code of the 'GUI' is quick & dirty)
colorpoints.love
(4.01 KiB) Downloaded 149 times

Re: Random Noise-y Moving Things [ADDED HEX]

Posted: Mon Mar 24, 2014 9:35 am
by substitute541
Added a cool little squiggly hexagon.

Press Tab to cycle through modes (normal, fixed angle, fixed offset.)
SquigglyHexagon.love
boing.
(1.06 KiB) Downloaded 278 times