LoveNoise - A Love Noise library [v0.2.1]

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: LoveNoise - A Love Noise library [v0.2.0]

Post by substitute541 » Wed Jun 18, 2014 6:48 am

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.
Currently designing themes for WordPress.

Sometimes lurks around the forum.

User avatar
NightKawata
Party member
Posts: 294
Joined: Tue Jan 01, 2013 9:18 pm
Location: Cyberspace, Room 6502
Contact:

Re: LoveNoise - A Love Noise library [v0.2.0]

Post by NightKawata » Wed Jun 18, 2014 10:45 am

Can anybody shout radical 90s cyber backgrounds or SCREENSAVERS?
Your previews remind me of this.
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor

User avatar
Mermersk
Party member
Posts: 108
Joined: Tue Dec 20, 2011 3:27 am

Re: LoveNoise - A Love Noise library [v0.2.1]

Post by Mermersk » Sat Jun 21, 2014 5:40 pm

Hmm I will be using the old version until documentation for the new version is here!

User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: LoveNoise - A Love Noise library [v0.2.1]

Post by substitute541 » Mon Jun 23, 2014 6:33 am

Added new documentation. See project page.
Currently designing themes for WordPress.

Sometimes lurks around the forum.

User avatar
Mermersk
Party member
Posts: 108
Joined: Tue Dec 20, 2011 3:27 am

Re: LoveNoise - A Love Noise library [v0.2.1]

Post by Mermersk » Tue Jun 24, 2014 5:33 pm

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!

User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: LoveNoise - A Love Noise library [v0.2.1]

Post by substitute541 » Wed Jun 25, 2014 1:59 am

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)
Currently designing themes for WordPress.

Sometimes lurks around the forum.

User avatar
Mermersk
Party member
Posts: 108
Joined: Tue Dec 20, 2011 3:27 am

Re: LoveNoise - A Love Noise library [v0.2.1]

Post by Mermersk » Fri Jun 27, 2014 1:33 am

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: http://i.imgur.com/7ZHT7Gp.png (octaves = 23 and frequency = 0.01).

So I think my question is how do I make it more "Puffy" like image 1 ?

User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: LoveNoise - A Love Noise library [v0.2.1]

Post by substitute541 » Fri Jun 27, 2014 2:29 am

Mermersk wrote: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: http://i.imgur.com/7ZHT7Gp.png (octaves = 23 and frequency = 0.01).

So I think my question is how do I make it more "Puffy" like image 1 ?
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.
Currently designing themes for WordPress.

Sometimes lurks around the forum.

User avatar
Mermersk
Party member
Posts: 108
Joined: Tue Dec 20, 2011 3:27 am

Re: LoveNoise - A Love Noise library [v0.2.1]

Post by Mermersk » Mon Jun 30, 2014 2:16 pm

substitute541 wrote:
Mermersk wrote: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: http://i.imgur.com/7ZHT7Gp.png (octaves = 23 and frequency = 0.01).

So I think my question is how do I make it more "Puffy" like image 1 ?
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 :awesome: , one question though: Why "noiseval*127+128." Why that exact value ?

I just had it at noiseval*255...

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 21 guests