SFML community forums

General => SFML projects => Topic started by: Richy19 on April 19, 2011, 06:26:09 pm

Title: Map generator (perlin noise)
Post by: Richy19 on April 19, 2011, 06:26:09 pm
Made a some what simple map generator using SFML and perlin noise
It basically takes the perlin noise and applies color to the values.

Anyway heres a screen:
(http://img402.imageshack.us/img402/2756/sfdfq.png)


And heres the page if you want to see more screenshots
http://richy1913.byethost22.com/projects/perlin-noise-map-generator/
Title: Map generator (perlin noise)
Post by: Nexus on April 19, 2011, 07:23:03 pm
The screenshots look very nice! :)

It could be a handy tool for random maps. Do you focus on the generation of images, or do you also plan to supply logical data which can be used in C++ programs?
Title: Map generator (perlin noise)
Post by: Richy19 on April 19, 2011, 09:11:19 pm
Quote from: "Nexus"
The screenshots look very nice! :)

It could be a handy tool for random maps. Do you focus on the generation of images, or do you also plan to supply logical data which can be used in C++ programs?


At the moment it outputs it to an sf::Image which is then saved as an image its self but could be used as data for something else.
I did think of making a game using it but that never really happened :/
Title: Map generator (perlin noise)
Post by: Groogy on April 19, 2011, 09:24:16 pm
Would be nice if you could do output directly to a 32 bit int array pointer(kind of like export to pixels or something) then it could be used directly as data instead of an image.
Title: Map generator (perlin noise)
Post by: Richy19 on April 19, 2011, 09:46:37 pm
Quote from: "Groogy"
Would be nice if you could do output directly to a 32 bit int array pointer(kind of like export to pixels or something) then it could be used directly as data instead of an image.


Oh sorry misunderstood the question.
IIRC it exports the perlin noise as a 2d int and then depending on the value of each value in it I then change the color of the pixel in the image.
This has made me want to retake the game idea I had, ive been needing a programming project for a while
Title: Map generator (perlin noise)
Post by: Richy19 on May 25, 2011, 12:03:09 pm
Just thought i would mention there is now a download on the project page if anyone wants to have a go
Title: Map generator (perlin noise)
Post by: Ceylo on May 25, 2011, 01:03:32 pm
Well.. I wanted to have a look at your project but.. your host is really really too slow (several minutes to load a single page). Actually I was looking for the source files (not running Windows), do you provide these ?
Title: Map generator (perlin noise)
Post by: Richy19 on May 25, 2011, 07:45:57 pm
il have a look for them, but dont promise anything.
beware tho that if i do find it you will be in for a shock as im a very experienced C++ programmer so it is quite hackish.

Also sorry about the host, its currently being DDOS'ed hence the slow loads
Title: Map generator (perlin noise)
Post by: ActionBoy on June 04, 2011, 09:43:20 am
Looks great. Would fit perfect in a rouge game.
Title: Map generator (perlin noise)
Post by: Cuban-Pete on June 21, 2011, 07:39:22 pm
It does not work on win7 64bit. I starts, but does not show any window. Under processes (ctrl+alt+del) I can stop it only. //could be ATI bug. never mind then...

Screenshots look nice!

//offtopic:
Does every program you make with sfml, need the "sfml licence.txt" ?
Title: Map generator (perlin noise)
Post by: OniLinkPlus on June 21, 2011, 09:39:07 pm
Quote from: "Cuban-Pete"
//offtopic:
Does every program you make with sfml, need the "sfml licence.txt" ?
Nope. SFML is licensed under zlib, so the only time the license is required is when distributing SFML's source code.