2D Perlin Noise and 2D Animated Perlin Clouds Classes

A forum to store posts deemed exceptionally wise and useful
Post Reply
Killingsworth
Posts: 11
Joined: Mon Dec 05, 2005 11:21 pm
Location: Griffin, Georgia

2D Perlin Noise and 2D Animated Perlin Clouds Classes

Post by Killingsworth »

Hello, this is my first gift to the community here at irrlicht. It is a perlin noise generator. It can generate a 2D array of perlin noise, or it can render it out to a texture. My example shows how to class can be expanded to create intresting things, such as procedural clouds. The FPS represented is probably as false as can be, I'm on an anceint computer. So if anyone compiles this it would be much appreciated to return the FPS you get. If anyone finds bug/ways to optimize/errrors please let me know. I will appreciate it much.

Now without further adeu:

Screenshot:
Image

download: http://home.earthlink.net/~spikeball264 ... nNoise.zip

Included in the zip:
CPerlinNoise.h: Noise class also containing cloud class
main.cpp: example showing how to use the class
functions.h: some simple functions, not really important, but one is needed for the example.
You wouldn't hit a kid with contacts would you?!
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

LOL. I think you are correct about your fps.
I compiled your main and got the following:
http://www.3dcentral.net/screen/perlin/ <-screenshots

I changed the octaves setting.

2= 47fps
4= 28
6= 20
8= 15

Not a bad little app you made there. :)
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Killingsworth
Posts: 11
Joined: Mon Dec 05, 2005 11:21 pm
Location: Griffin, Georgia

Post by Killingsworth »

Thanks much. Perlin noise does take quite a bit of power to make. A better way to do it is to make certain number of maps at runtime and cycle through them without generating a new one every 50 steps.
You wouldn't hit a kid with contacts would you?!
renatonow
Posts: 1
Joined: Tue Jul 17, 2007 7:37 pm

Libnoise and FxGen

Post by renatonow »

Libnoise had done a pretty cool job and can be integrated easily with Irrlicht.

Check it out at: http://libnoise.sourceforge.net/

Also take a look at FxGen:
http://sourceforge.net/projects/fxgen/

Renato F. Salas
Post Reply