Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 848203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:54:22+00:00 2026-05-15T06:54:22+00:00

I would like to create a game with an endless (in reality an extremely

  • 0

I would like to create a game with an endless (in reality an extremely large) world in which the player can move about. Whether or not I will ever get around to implement the game is one matter, but I find the idea interesting and would like some input on how to do it.

The point is to have a world where all data is generated randomly on-demand, but in a deterministic way.

Currently I focus on a large 2D map from which it should be possible to display any part without knowledge about the surrounding parts.

I have implemented a prototype by writing a function that gives a random-looking, but deterministic, integer given the x and y of a pixel on the map (see my recent question about this function). Using this function I populate the map with “random” values, and then I smooth the map using a simple filter based on the surrounding pixels. This makes the map dependent on a few pixels outside its edge, but that’s not a big problem. The final result is something that at least looks like a map (especially with a good altitude color map). Given this, one could maybe first generate a coarser map which is used to generate bigger differences in altitude to create mountain ranges and seas.

Anyway, that was my idea, but I am sure that there exist ways to do this already and I also believe that given the specification, many of you can come up with better ideas.

EDIT:
Forgot the link to my question.

EDIT 2:
I think I’ll have to clarify that it is important that two adjacent parts of the map, generated separately, needs to smoothly connect to each other.

EDIT 3:
Some more information was asked for in the comments.

Here’s an image taken from a page about fractal and Perlin Noise that looks much like what I have produced myself previously (since my best attempt probably used Perlin Noise):

Think of black pixels as deep sea and white pixels as mountain tops. This is what I need, a simple 2D elevation map.

What I want to be able to do is to pick any rectangle from the very large world (in the range of MAXINT * MAXINT pixels) and generate it. If I would generate any part of the image above it should get exactly the same pixels as if I generated a bigger part encompassing the smaller one.

Now on to Unreason’s questions:

Required performance: My main aim would be a turn based RPG, so performance could be quite low, but I think it would be very interesting to see if it is possible to create a fast algorithm.

Memory requirements: Preferably nothing should be pregenerated, but other than that, memory usage should match any ordinary game or application.

Required detail: Well, if you look at the image, you get the idea. It would be very nice though, if it was possible to zoom out and pan without having to calculate the map at the most zoomed in level first.

Required types of objects and object properties to generate: Nothing fancy, I am happy with the terrain according to the image above. But I admit I’ve been thinking of a similar setup where everything is a very very big city. That would be another question, though.

EDIT 4: Hopefully the final one.

OK, after reading a bit it seems that Perlin Noise is the way to go. I have one more question though (if someone cares to answer now that I have accepted one (actually two) answers 🙂 ).

The perlin noise function takes doubles. What’s the range for these doubles? [0-1[ ? Or can I happily send in my large integers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:54:23+00:00Added an answer on May 15, 2026 at 6:54 am

    Normally, all terrain/world generators work in the way you described – they are able to produce vast (random-looking) worlds from a very limited input data (set of parameters).

    So, you might want to put further constraints on your question.

    If anything will work for you or if you are just begging to research – take a look at different focuses and approaches here.

    As for randomness/deterministic I am not sure that you really talk about randomness here and it can be a bit confusing, I think you only want to be able to create a lot of variations. So you might want to drop that from your search terms.

    Take a look also at procedural generation (especially ‘see also’ and ‘external links’).

    Personally, I think there is a lot of promise in the concept of terrain synthesis where you basically mix and match real terrain samples with some sort of transforming operations – which provides realistically looking terrain with desired properties.

    EDIT:
    Here’s an implementation of ‘plasma fractals’ (mid-point displacement) in processing.

    If that is good enough for you then you could rework the algorithm to allow it to generate any part of the grid (I have a feeling it will boil down to hashing the coordinates to get random number seed around connecting lines, or everywhere).

    Also you might work with different levels of detail with this method so that you can generate more detail closer to the point of view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a browser-based network game. To ensure it can be
I would like to know How to create a fps-game with SDL lib? Are
I would like to create a database backed interactive AJAX webapp which has a
I would like to create a baseball simulation game. Are these sports management games
I would like to create a game in wireframe mode however without the glPolygoneMode
I start learning Silverlight and would like to create some simple game. I am
I would like to create a button in my game for the user. The
I would like create my own collection that has all the attributes of python
I would like create a web service in ASP.Net 2.0 that will supports JSON.
Would like to create a strong password in C++. Any suggestions? I assume it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.