Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Noise = picture?  (Read 1023 times)
0 Members and 1 Guest are viewing this topic.
Offline masteryoom

JGO Coder


Medals: 5
Projects: 2


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


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

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

Smiley
Offline StumpyStrust
« Reply #1 - Posted 2012-11-05 15:27:35 »

If you don't know, then read more.

Offline Grunnt

JGO Wizard


Medals: 64
Projects: 8
Exp: 5 years


Complex != complicated


« Reply #2 - Posted 2012-11-05 15: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:

Youtube old tube noise

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?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Varkas
« Reply #3 - Posted 2012-11-05 15: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
Offline Roquen
« Reply #4 - Posted 2012-11-05 16:20:46 »

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

Offline Varkas
« Reply #5 - Posted 2012-11-05 16: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
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #6 - Posted 2012-11-06 17: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 Smiley (You can also create other, not so smooth terrains Wink )
<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 Smiley

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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (33 views)
2014-07-18 06:55:21

Zero Volt (29 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (26 views)
2014-07-16 23:30:00

Cero (41 views)
2014-07-16 00:42:17

Riven (43 views)
2014-07-14 18:02:53

OpenGLShaders (31 views)
2014-07-14 16:23:47

Riven (30 views)
2014-07-14 11:51:35

quew8 (29 views)
2014-07-13 13:57:52

SHC (65 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!