Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Map generator (perlin noise)  (Read 12433 times)

0 Members and 1 Guest are viewing this topic.

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Map generator (perlin noise)
« 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:



And heres the page if you want to see more screenshots
http://richy1913.byethost22.com/projects/perlin-noise-map-generator/

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Map generator (perlin noise)
« Reply #1 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?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Map generator (perlin noise)
« Reply #2 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 :/

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
Map generator (perlin noise)
« Reply #3 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.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Map generator (perlin noise)
« Reply #4 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

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Map generator (perlin noise)
« Reply #5 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

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Map generator (perlin noise)
« Reply #6 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 ?
Want to play movies in your SFML application? Check out sfeMovie!

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Map generator (perlin noise)
« Reply #7 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

ActionBoy

  • Newbie
  • *
  • Posts: 36
    • View Profile
Map generator (perlin noise)
« Reply #8 on: June 04, 2011, 09:43:20 am »
Looks great. Would fit perfect in a rouge game.

Cuban-Pete

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Map generator (perlin noise)
« Reply #9 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" ?

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Map generator (perlin noise)
« Reply #10 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.
I use the latest build of SFML2

 

anything