Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (780)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (857)
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  
  World generation questions  (Read 2707 times)
0 Members and 1 Guest are viewing this topic.
Offline Mac70
« Posted 2013-04-02 19:37:11 »

As I can't find anything related to the world generation in Google (most of results are Minecraft-related) I have to ask few questions about world generation there:

1. What algorithms should I use to make 2d "world" map? (based on seed and world creation parameters)
2. Is it possible to make 3d map using the same seed, world creation parameters and data from world map without generating the whole map at start (generation after player will choose site, not during initial generation)? Each "chunk" must always look the same and seamlessly connect with another chunks regardless of choosen world chunks. Player can choose any chunks amount, like 1X1, 2X1, 3X2, 5X5. Little example below:

3. I want to add minerals into 3d map rocks - is it possible using specific algorithm (again, generation depending on seed and parameters - map using the same seed and parameters must be always the same)?

Thank you in advance for all replies.
Offline Tyecon

Senior Newbie

« Reply #1 - Posted 2013-04-02 19:40:21 »

Perlin noise.

Edit: Here's a link to a guide to noise on this website

Please have a baggy ready before looking at my code.
Offline Opiop
« Reply #2 - Posted 2013-04-02 20:03:22 »

Perlin noise.
Well that was informative... If you haven't yet, take a look at this site:
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline sproingie

JGO Kernel

Medals: 202

« Reply #3 - Posted 2013-04-02 20:57:31 »

Aaaaand the obligatory "that's not Perlin noise, that's value noise" response.  Anyway, there's oodles of perlin noise implementations out there for Java, and you shouldn't have any need to write your own unless you're trying to figure out how it works.

a real perlin noise implenmentation

This is a definitely a FAQ. I'm looking around for an appropriate sticky "Resources" post to stick links to noise implementations.  Closest thing I can find is the one under this very board ("Game Mechanics"), but I'm not entirely sure about it (and the thread's already kind of noisy).
Offline Roquen

JGO Kernel

Medals: 518

« Reply #4 - Posted 2013-04-03 06:13:00 »

Make a new wiki page.
Offline HeroesGraveDev

JGO Kernel

Medals: 382
Projects: 11
Exp: 4 years

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

« Reply #5 - Posted 2013-04-03 06:30:47 »

What about simplex noise?

Offline Roquen

JGO Kernel

Medals: 518

« Reply #6 - Posted 2013-04-03 09:31:30 »

Given well implemented gradient & simplex noise methods, the gradient noise should be slightly faster.  However simplex noise has less defects so on the whole simplex noise would probably be the better choice, esp for someone with little to no experience playing with noise.
Pages: [1]
  ignore  |  Print  

hadezbladez (762 views)
2018-11-16 13:46:03

hadezbladez (394 views)
2018-11-16 13:41:33

hadezbladez (758 views)
2018-11-16 13:35:35

hadezbladez (200 views)
2018-11-16 13:32:03

EgonOlsen (2401 views)
2018-06-10 19:43:48

EgonOlsen (2594 views)
2018-06-10 19:43:44

EgonOlsen (1486 views)
2018-06-10 19:43:20

DesertCoockie (2150 views)
2018-05-13 18:23:11

nelsongames (1984 views)
2018-04-24 18:15:36

nelsongames (2660 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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‑
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!