Page 2 of 2
Re: LoveNoise - A Love Noise library [v0.2.0]
Posted: Wed Jun 18, 2014 6:48 am
by substitute541
Updated LoveNoise to v0.2.0, which now mainly uses Module and NoiseModule objects instead of tables and stuff.
Also commented the code (which is something I rarely do) since I wont be making any docs for a while.
Re: LoveNoise - A Love Noise library [v0.2.0]
Posted: Wed Jun 18, 2014 10:45 am
by NightKawata
Can anybody shout
radical 90s cyber backgrounds or
SCREENSAVERS?
Your previews remind me of
this.
Re: LoveNoise - A Love Noise library [v0.2.1]
Posted: Sat Jun 21, 2014 5:40 pm
by Mermersk
Hmm I will be using the old version until documentation for the new version is here!
Re: LoveNoise - A Love Noise library [v0.2.1]
Posted: Mon Jun 23, 2014 6:33 am
by substitute541
Added new documentation. See
project page.
Re: LoveNoise - A Love Noise library [v0.2.1]
Posted: Tue Jun 24, 2014 5:33 pm
by Mermersk
substitute541 wrote:Added new documentation. See
project page.
Nice! I was testing-learning this library again.
I was wondering in the previous version there was "setnormalized(true/false)", But it's not in the new version, is it now in this new version always on true ? I have no Idea what it means/does, all I know is that when using fractal noise and on normalized(true) it kinda looks like a landmap.
Also what is "setLacunarity()" after some testing of values from 0 to 1(on fractal noise) it seems to just do the same as "setPersistence()".
One thing more, when you have fractal noise and you add colour to it you get like 2 primary colours, like blue and brown, wich look like land and sea. Now it's easy to change how it looks(smoothness, colors, ruggedness) but how would for example make one color more dominant than the other and vice versa?
Nice that you added Billow noise!
Re: LoveNoise - A Love Noise library [v0.2.1]
Posted: Wed Jun 25, 2014 1:59 am
by substitute541
Mermersk wrote:substitute541 wrote:Added new documentation. See
project page.
Nice! I was testing-learning this library again.
I was wondering in the previous version there was "setnormalized(true/false)", But it's not in the new version, is it now in this new version always on true ? I have no Idea what it means/does, all I know is that when using fractal noise and on normalized(true) it kinda looks like a landmap.
Also what is "setLacunarity()" after some testing of values from 0 to 1(on fractal noise) it seems to just do the same as "setPersistence()".
One thing more, when you have fractal noise and you add colour to it you get like 2 primary colours, like blue and brown, wich look like land and sea. Now it's easy to change how it looks(smoothness, colors, ruggedness) but how would for example make one color more dominant than the other and vice versa?
Nice that you added Billow noise!
SetNormalized basically scales the range of the values from 0 to 1 to -1 to 1. Now the range of the values is, by default, -1 to 1, mainly because it's easier to work with (in my case.)
Persistence and
Lacunarity.
For the color question, you can just test the value of the noise and see if it's below a certain threshold, then set the color for it. Something like:
Code: Select all
val = noise:getValue(x, y) -- get value from noise at position [x, y]
val = val*0.5+0.5 -- scale the range of the value from 0-1 (for convenience)
if val < 0.2 then
color = blue
else
color = green
end
...
love.graphics.setPixel(x, y, color[1], color[2], color[3], 255)
Re: LoveNoise - A Love Noise library [v0.2.1]
Posted: Fri Jun 27, 2014 1:33 am
by Mermersk
Thanks fro the reply!
I have one more, Billow noise is supposed to be good for clouds. But I don't get it looking like here:
http://www.burnweb.net/libnoise/_img/bi ... w_gray.png
I only get a variation of this:
https://love2d.org/imgmirrur/7ZHT7Gp.png (octaves = 23 and frequency = 0.01).
So I think my question is how do I make it more "Puffy" like image 1 ?
Re: LoveNoise - A Love Noise library [v0.2.1]
Posted: Fri Jun 27, 2014 2:29 am
by substitute541
I don't think you are using the values correctly. Remember that the values range from -1 to 1, so you may have to scale it. For example, if you are using the values in a gray scale image, each of your color channels must have a value noiseval*127+128.
Also, I think that image was generated with billow noise scaled in the lower range, so that the lower values clamps to -1.
Re: LoveNoise - A Love Noise library [v0.2.1]
Posted: Mon Jun 30, 2014 2:16 pm
by Mermersk
substitute541 wrote:
I don't think you are using the values correctly. Remember that the values range from -1 to 1, so you may have to scale it. For example, if you are using the values in a gray scale image, each of your color channels must have a value noiseval*127+128.
Also, I think that image was generated with billow noise scaled in the lower range, so that the lower values clamps to -1.
Thx for the response! Yeah it worked after following your directions
, one question though: Why "noiseval*127+128." Why that exact value ?
I just had it at noiseval*255...