Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (576) Games in Android Showcase (154) games submitted by our members Games in WIP (626) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 Noise = picture?  (Read 1264 times) 0 Members and 1 Guest are viewing this topic.
masteryoom

JGO Coder

Medals: 5
Projects: 2

If you look closely, you might see it turning...

 « Posted 2012-11-05 08:59:57 »

I have been reading about Perlin noise and stuff like that. My question is, what has noise got to do with anything?

StumpyStrust
 « Reply #1 - Posted 2012-11-05 14:27:35 »

If you don't know, then read more.

Grunnt

JGO Kernel

Medals: 95
Projects: 8
Exp: 5 years

Complex != complicated

 « Reply #2 - Posted 2012-11-05 14:40:22 »

In a visual sense, noise is an element of chaos: pure noise is what you used to see on ancient televisions when there was no signal:

Perlin noise is also chaotic, but less so than pure noise. Haha, I guess it's hard to explain for me. Anyone else got an idea?

Varkas
 « Reply #3 - Posted 2012-11-05 14:40:41 »

Noise was originally a term from sound processing and "white noise" meant "random signals through all the frequencies".

A random number generator produces a sequence of numbers which is mathmatically related to white noise.

You can use a rng also to calculate intensities of points inside an image (the plain approach will result in what Grunnt has mentioned - TV "snow"). More interesting, there are applications of rngs which work like functions p = f(x,y), and give you a power value for a 2D point (or 3D point).

This way you can create patterns in 2D areas with such generators. By warping the coordinate space (x,y) and transforming the power values you can create a lot of different patterns.

More elaborate uses are that you can get a random vector for vecor as parameter like a function (a,b,c) = f(x,y,z). You can consider the (a,b,c) vecor a color (red, green, blue) for the point in space. But you can also see it as a field of wind or "forces" which fill the space (force vectors). You can use these force fields to create images through projections onto a surface, or let those force fields affect particles and planes.

It's a big domain. Start looking up "perlin noise" for image applications first, that should be a good start.

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
Roquen
 « Reply #4 - Posted 2012-11-05 15:20:46 »

Huh...I guess that local wiki page I've made isn't very good at a background explanation.

Varkas
 « Reply #5 - Posted 2012-11-05 15:26:08 »

I'm not sure which page you mean, but the perlin noise page looks very good to me.

Edit: I suspect that the original poster just was confused why the term "noise" is used in conjunction with random number generators.

if (error) throw new Brick(); // Blog (german): http://gedankenweber.wordpress.com
matheus23

JGO Kernel

Medals: 121
Projects: 3

You think about my Avatar right now!

 « Reply #6 - Posted 2012-11-06 16:01:11 »

You guys really seem to suck at explaining things very simple, and for what you can use them.
(Sorry for language, but I think this mathematical approach is not the way to do that...)

Look at a noise picture again:

What you can see there is, that the picture consists of grey colors from dark black to light white.
Each pixel in that image is actually only a value between 0 and 255.

But as you can see this picture does not consist of somehow mixed colors, it consists of regions which tend to be white and regions which tend to be black...

It has somehow a regularity, which makes them so awesome.

The very simplest answer to your question would be: You can generate mountains from them, for example.
And I really think this answer is pretty straight-forward and a good answer. See this image:

<edit>
Edited this image to be one of our community ones (You can also create other, not so smooth terrains )
<edit num="2">
Here are some demo images in a post of one of our members: Terrain generator
</edit>
</edit>

The thing is: noise in the way you know it is used to create a big number of values, which look like they would create mountains. Think of each brightness in the image to be a number, which says how high a mountain should be at one point.

But noise is even more cool, you can use it to create explosion effects, lava textures, world maps, planet terrain (which is basicly the same as mountains, but more complex). Even minecraft uses noise to generate terrain.

Have fun exploring them and I hope this has helped you

See my:
My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Pages: [1]
 ignore  |  Print

You cannot reply to this message, because it is very, very old.

 ClaasJG (40 views) 2015-04-30 20:33:25 Riven (24 views) 2015-04-30 13:25:12 ClaasJG (43 views) 2015-04-27 13:36:51 BurntPizza (51 views) 2015-04-23 03:42:11 theagentd (52 views) 2015-04-22 16:23:07 Riven (65 views) 2015-04-16 10:48:47 Duke0200 (76 views) 2015-04-16 01:59:01 Fairy Tailz (58 views) 2015-04-14 20:13:12 Riven (63 views) 2015-04-12 21:36:37 bus hotdog (88 views) 2015-04-10 02:39:32
 theagentd 25x BurntPizza 19x Spasi 16x kingroka123 11x wessles 11x alwex 11x Hanksha 9x Ecumene 8x chrislo27 7x Olo 7x kevglass 7x ra4king 7x Riven 6x princec 6x trollwarrior1 5x EgonOlsen 5x
 How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21Resources for WIP gamesby kpars2014-12-18 10:26:14Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02List of Learning Resources2014-08-16 10:40:00List of Learning Resources2014-08-05 19:33:27
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org