Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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  
  Looking for a 2d Terrain Generation Noise Algorithm  (Read 963 times)
0 Members and 1 Guest are viewing this topic.
Offline _Scyth_

Junior Member





« Posted 2013-07-05 16:36:50 »

Could someone point me to a tutorial or forum post, which could direct me on how to generate random worlds that look like the picture in this http://www.java-gaming.org/topics/wip-metallum-miner-2d-mining-game/26980/view.html

I have searched the forums and every noise generator seems to be for full maps, not in the way i want it to generate worlds. The link above was the closest i came, and even still that does not help me.

Anyone have any ideas, or could help me?

Thanks
Offline kingroka123

JGO Knight


Medals: 29
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #1 - Posted 2013-07-05 17:03:02 »

 go here for simplex noise. Copy and paste the 1d simlex noise into a class. Have your x increase and multiply it by a random number for random maps.

1  
2  
3  
4  
for(int x=0;x<mapSize*BlockSize;x+=BlockSize){
int y=SimplexNoise.noise(x);
newBlock(x,y);
}

Offline joen

Senior Newbie


Projects: 1



« Reply #2 - Posted 2013-07-05 21:09:34 »

It's not exactly what you asked for, but I use classes from com.ardor3d.math.functions to generate worlds like the one in my avatar <------

http://ardor3d.com/

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline HeroesGraveDev

JGO Kernel


Medals: 245
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #3 - Posted 2013-07-06 05:55:59 »

You will notice there is a search bar in the top left corner of the page Pointing

Just saying...

Offline _Scyth_

Junior Member





« Reply #4 - Posted 2013-07-06 08:06:24 »

You will notice there is a search bar in the top left corner of the page Pointing

Just saying...

Would you like to look again at the original post?

http://www.java-gaming.org/topics/wip-metallum-miner-2d-mining-game/26980/view.html

I have searched the forums and every noise generator seems to be for full maps, not in the way i want it to generate worlds. The link above was the closest i came, and even still that does not help me.


So yes I have searched the forums HereoGrave, didn't find what I was looking for so I asked.

go here for simplex noise. Copy and paste the 1d simlex noise into a class. Have your x increase and multiply it by a random number for random maps.

1  
2  
3  
4  
for(int x=0;x<mapSize*BlockSize;x+=BlockSize){
int y=SimplexNoise.noise(x);
newBlock(x,y);
}


I'll take a look at this when I get the chance, can't open pdf's on my phone.
Offline Longarmx
« Reply #5 - Posted 2013-07-06 13:23:48 »

What's the difference between generating a full world and what you want to do?

Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 128
Projects: 4
Exp: 3 years



« Reply #6 - Posted 2013-07-06 14:46:27 »

There have been tons of posts about noise algorithms. I'm highly skeptical you couldn't find anything.
http://www.java-gaming.org/topics/noise/27073/view.html There's even a wiki on it! Anyways, you need to be more specific. What special type of noise to you need to be like the link you posted? What do you mean by worlds versus full maps? Huh
Offline _Scyth_

Junior Member





« Reply #7 - Posted 2013-07-06 19:50:01 »

When I think of a world I think of: the image in http://www.java-gaming.org/topics/tiny-world/28766/view.html

I want to be able to create a map, that has hills, top couple of layers could be dirt, then below that stone. When i say top couple of layers, i basically mean, the very top blocks of stone must be able to have a dirt block on top.

Almost like a 2d Minecraft.
Offline Longarmx
« Reply #8 - Posted 2013-07-06 23:27:34 »

When you get the y value from Simplex Noise, make grass at the y, dirt between y - 1 and y - 4, and put stone down to zero. You can even put a couple of random elements if you want.

Offline _Scyth_

Junior Member





« Reply #9 - Posted 2013-07-07 10:29:42 »

When you get the y value from Simplex Noise, make grass at the y, dirt between y - 1 and y - 4, and put stone down to zero. You can even put a couple of random elements if you want.

Thanks I'll try that when I get the chance
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.

atombrot (27 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!