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 885769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:57:45+00:00 2026-05-15T12:57:45+00:00

i would like to effeciently generate positions for objects on a given surface. As

  • 0

i would like to effeciently generate positions for objects on a given surface. As you probably guessed this is for a game. The surface is actually a 3D terrain, but the third dimension does not matter as it is determined by terrain height.

The problem is i would like to do this in the most effecient and easy way, but still get good results. What i mean by “natural” is something like mentoined in this article about Perlin noise. (trees forming forests, large to small groups spread out on the land) The approach is nice, but too complicated. I need to do this quite often and prefferably without any more textures involved, even at the cost of worse performance (so the results won’t be as pretty, but still good enough to give a nice natural terrain with vegetation).

The amount of objects placed varies, but generally is around 50. A nice enhancement would be to somehow restrict placement of objects at areas with very high altitude (mountains) but i guess it could be done by placing a bit more objects and deleting those placed above a given altitude.

  • 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-15T12:57:45+00:00Added an answer on May 15, 2026 at 12:57 pm

    This might not be the answer you are looking for, but I believe that Perlin Noise is the solution to your problem.

    Perlin Noise itself involves no textures; I do believe that you have a misunderstanding about what it is. It’s basically, for your purposes, a 2D index of, for each point, a value between 0 and 1. You don’t need to generate any textures. See this description of it for more information and an elegant explanation. The basics of Perlin Noise involves making a few random noise maps, starting with one with very few points, and each new one having twice as many points of randomness (and lower amplitude), and adding them together.

    Especially, if your map is discretely tiled, you don’t even have to generate the noise at a high resolution 🙂

    How "often" are you planning to do this? If you’re going to be doing it 10+ times every single frame, then Perlin Noise might not be your answer. However, if you’re doing it once every few seconds (or less), then I don’t think that you should have any worries about speed impact — at least, for 2D Perlin Noise.

    Establishing that, you could look at this question and my personal answer to it, which is trying to do something very similar to what you are trying to do. The basic steps involve this:

    1. Generate perlin noise; higher turbulence = less clumping and more isolated features.

    2. Set a "threshold" (ie, 0.5) — anything above this threshold is considered "on" and anything above it is considered "off". Higher threshold = more frequent, lower threshold = less frequent.

    3. Populate "on" tiles with whatever you are making.

    Here are some samples of Perlin Noise to generate 50×50 tile based map. Note that the only difference between the nature of the two are the "threshold". Bigger clumps means lower threshold, smaller clumps means a higher one.

    A forest, with blue trees and brown undergrowth
    Sparse Forest

    A marsh, with deep areas surrounded by shallower areas
    Marshes

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

Sidebar

Ask A Question

Stats

  • Questions 532k
  • Answers 532k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In all technologies I'm aware of web-based session values are… May 17, 2026 at 12:05 am
  • Editorial Team
    Editorial Team added an answer The issue is that if somebody closes their browser you… May 17, 2026 at 12:05 am
  • Editorial Team
    Editorial Team added an answer To fix your problem, try this: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath… May 17, 2026 at 12:05 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I would like to efficiently generate a unique list of combinations of numbers based
I would like to compare two collections (in C#), but I'm not sure of
I have two arrays of x - y coordinates, and I would like to
I would like to randomly iterate through a range. Each value will be visited
I have a large directed, acylic graph (DAG) from which I would like to
I would like to determine the most efficient way (using jquery, or dom) to
I'm raytracing and would like to speed it up via some acceleration structure (kd-tree,
Have a text input box. Would like the user to enter a string in
I'm trying to generate a vector graphic from an area in a bitmap image,
The title sums it up. Would that be possible, as in, is the data

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.