Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (517)
Games in Android Showcase (123)
games submitted by our members
Games in WIP (577)
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  
  Perlin landscape applet  (Read 4383 times)
0 Members and 1 Guest are viewing this topic.
Offline SimonH
« Posted 2011-04-27 00:48:35 »

There seems to be a lot of interest in procedural landscapes just now (can't imagine why), so I've done a simple applet to show the basics of 2D perlin noise and supply some source code.
Share and enjoy!

People make games and games make people
Offline Roquen
« Reply #1 - Posted 2011-04-27 12:24:26 »

value noise.  Smiley  (Just to be even handed)
Offline SimonH
« Reply #2 - Posted 2011-04-27 14:48:06 »

For those lovely desserty effects I've done a ridged multifractal one as well. (Go on, someone tell me it isn't really!  Tongue)

People make games and games make people
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline namrog84

JGO Ninja


Medals: 46
Projects: 4


Keep programming!


« Reply #3 - Posted 2011-04-27 18:14:27 »

There seems to be a lot of interest in procedural landscapes just now (can't imagine why), so I've done a simple applet to show the basics of 2D perlin noise and supply some source code.
Share and enjoy!
Great examples/code!

Although I personally have always had a great interest in fractals and procedurally generated content(landscapes and more!)

I would take a wild shot and say that Minecraft could be a big inspiration for procedural landscapes.  The ability to generate beautifully rich maps without having to handcraft every element is very enticing. Especially since most programmers are not necessarily artists or level designers.

Also, I give credit that computers are having a lot more power potential nowadays. Even the big developers struggle to fill quality content.  For the most part, as a small developer, your IMHO Not going to be maxing out on potential power usage. And the possibilities of generating maps (infinite maps) is very enticing to "add" a lot more 'content' to your game.

Though I think a lot of people may have great early interest in it. They underestimate the requirements to properly populate these worlds with content worth exploring.  Even Mojang doesn't have an insane growth in that area(They continue to add biodomes/biomes(sp?) and other content, but at a slow/steady pace).

Sure we can make infinite worlds with various terrains.  But I still see a little too much repetition in that terrain. And terrain alone is relatively useless after you get over the initiate "that's neat" factor.   


edit:
Another great example is Spore,  it has a lot of procedurally generated terrains and creatures.  Even despite having a wide variety of "monsters/creatures/animals"  and although I didn't see the "exact" same creature over and over again. I did start to feel like I had seen them before, the repetitiveness starts to shine through.  I think that some people overestimate having a ton of "unique" content is going to make the game so much richer in detail.   It sorta is overlooking the point.  Heck, look at chess or tetris.  Billions of ways it can turn out, with a very narrow scope.  "content" and "variety" does not usually translate to better games(gameplay) or increase fun factor. 



"Experience is what you get when you did not get what you wanted"
Offline philfrei
« Reply #4 - Posted 2011-04-27 20:48:47 »

First off, I'm grateful for the original posting of the code, and registered my appreciation. Very cool stuff! Seems like these are very nice tools to have in one's repertoire.

The philosophical input is interesting, too. I recall from reading about aesthetics, as far back as Aristotle, we've had discussions on the need for both "unity" and "variety", and the paradox that these are not mutually exclusive, but must work together. I've always tried to apply that to composing.

One way to look at it, there is a central metaphor, and everything should support that core. But what you do with that core should have dramatic form. Simply diddling variables randomly is not generally useful, unless you purposefully generating "texture" rather than significant detail. Hard to talk about this without getting off into the ozone.

"It's after the end of the world! Don't you know that yet?"
Offline CommanderKeith
« Reply #5 - Posted 2011-04-28 02:14:31 »

Looks fantastic with those shadows. Thanks for sharing.

I don't really understand it at all but it's a topic I'm eager to learn.

Markus Persson did a cool short blog entry on it here for anyone interested: http://notch.tumblr.com/post/3746989361/terrain-generation-part-1

Offline Roquen
« Reply #6 - Posted 2011-04-28 13:03:17 »

You just need to post a fBM version for the "hat-trick".
Offline SimonH
« Reply #7 - Posted 2011-05-02 23:47:25 »

You just need to post a fBM version for the "hat-trick".
Yeah, but ridgedMF is sort of an extension of fBM...

People make games and games make people
Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #8 - Posted 2011-05-05 08:31:53 »

Thanks for sharing!  Cool

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.

TehJavaDev (38 views)
2014-10-27 03:28:38

TehJavaDev (29 views)
2014-10-27 03:27:51

DarkCart (43 views)
2014-10-26 19:37:11

Luminem (24 views)
2014-10-26 10:17:50

Luminem (29 views)
2014-10-26 10:14:04

theagentd (35 views)
2014-10-25 15:46:29

Longarmx (63 views)
2014-10-17 03:59:02

Norakomi (61 views)
2014-10-16 15:22:06

Norakomi (50 views)
2014-10-16 15:20:20

lcass (46 views)
2014-10-15 16:18:58
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!