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

  • SEARCH
  • Home
  • 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 5971141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:28:32+00:00 2026-05-22T20:28:32+00:00

So let me explain my problem a little better now (please reopen this question).

  • 0

So let me explain my problem a little better now (please reopen this question). I heard of markov chain theory when thinking about a method to generate procedural lines to build terrain.

The main thing that’s generated is the
map which can extend to infinity. At
first I’ve built a demo with
perlin-based procedural maps having a
lot of various terrain features. It
was even meant to be isometric, more
like Sentinel. This
proved to be too confusing to play on
with the movement mechanics I had in
mind. I had to reduce it to a much
simpler tile based system. It’s not
only easier to grasp and navigate but
it’s looking a lot better too.

The map is generated using the Markov
chain. The algorithm is fed a short
human made terrain sequence. It then
goes on and produce a map of any size
mimicking the structure of the input.

So an example visual output may look like you see in the following image

enter image description here

Actually I experienced a similar thing that is described in the quotation ending up with this random lines:

enter image description here

So instead of having this random line I look for a solution to create little canyons from the first picture. First time I read about markov chain I thought WOW, take a human made line as input and let the algorithm proceed, sounds brilliant.

So how does markov chain theory actually help on creating this kind of terrain? If you think there is a better way to do this please suggest.

The map is generated using the Markov
chain.

…confused me and I tought their actually is a markov chain algorithm.

  • 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-22T20:28:32+00:00Added an answer on May 22, 2026 at 8:28 pm

    I’m not sure if you know what a Markov chain is. A Markov chain is a system defined by state transitions based on probabilities. The next state is (by definition) based on the previous state.

    A Markov chain is not a transform. It’s not an algorithm for the modification of a system, it merely describes the system.

    To describe your line system, you need to look at individual indices in your array and calculate the probability of a “jump”. In the end, you’ll be left with something akin to this:

    idx 1: 20% chance for a jump
    idx 2: 0% chance for a jump
    idx 3: 15% chance for a jump
    idx 4: 55% chance for a jump
    ...
    

    This is trivial to program, but it does not aid you in making the lines straight. To make the lines straight, you don’t even need a Markov chain, just iterate over all indices and make them equal to the previous index. It’s difficult to see exactly what you’re trying to do here.

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

Sidebar

Related Questions

This question might not seem programming related at first, but let me explain. I'm
Let me explain: this is path to this folder: > www.my_site.com/images And images are
I know the question title isn't the best. Let me explain. I do a
Let me provide a little detail to explain what I'm trying to accomplish before
First, let me explain a little bit about my setup. My server is setup
Maybe the title is a little bit obscure, but let me explain... In a
Due to my poor English, let me use example to explain my problem. 1,
I have a problem with my project, let me explain a moment here and
This problem has been bothering me for sometime now, I have not settled on
Alright let me explain my situation first: I am part of an organization that

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.