Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noise Functions #14

Open
circuitbone opened this issue Jun 5, 2020 · 6 comments
Open

Noise Functions #14

circuitbone opened this issue Jun 5, 2020 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation EDITOR

Comments

@circuitbone
Copy link

• Perlin Noise
• SImplex Noise

These functions can be used to attain random terrain heights.

These functions can be used to attain random object placement.

Placing objects under a noise function can be thought of as a generator to the editor user.

Placing objects under a noise function can be thought of a test unit for the developer.

Greatly reduces labour

Placement of objects can be restricted to levels of the terrain.

Rocks on all levels
Trees on rough
grass on rough
grass on grass
Seaweed on seabed

@circuitbone circuitbone created this issue from a note in MASTER CONTROL (Ideas Constructive) Jun 5, 2020
@circuitbone circuitbone moved this from Ideas Constructive to To do in MASTER CONTROL Jun 5, 2020
@circuitbone circuitbone added EDITOR documentation Improvements or additions to documentation labels Jun 5, 2020
@circuitbone
Copy link
Author

Review
https://github.com/josephg/noisejs

@circuitbone
Copy link
Author

Coding concept

  • Dedicated Buffer / Memory
  • Precalculated Noise array
  • Speeds up the calling since its already created and ready to go.

@circuitbone
Copy link
Author

circuitbone commented Jun 6, 2020

Perlin Object Placement in Unity for a quick example.

PerlinCubes.cs

Add some objects to the GameObject Array.

An empty game object prefab can be used here as well.

PerlinCubes.cs.zip

@circuitbone
Copy link
Author

HeightMap Layers Legend for object placement

  • Snow - No Objects
  • Mountain - Rocks Boulders - Randomly rolled around all three axis Randomly scaled
  • Rough = Grass / Bush / Trees
  • Grass - No Objects this is considered 'fairway' and will have obstacles place by hand
  • Sand - Rocks Boulders - Randomly rolled around all three axis like a zen garden
  • Seabed - seaweed - grass for now if you want to work with opacity on the water.

@circuitbone
Copy link
Author

another noise call can now place objects within the sub layers

@circuitbone
Copy link
Author

Checker Patterns for the grass layer to mimic mowed fairways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation EDITOR
Projects
MASTER CONTROL
  
To do
Development

No branches or pull requests

3 participants