Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Curaus · Aug 27, 2019 at 03:02 AM · terrainvoxelterrain generationprocedural-terrainvoxels

How to mix different amplitudes and frequencies when procedurally generating terrain? (Perlin Noise)

I recently took up a personal project to make a game similar to CubeWorld (For those of you who know what that is). I am a complete beginner, and as such I understand that I will not be able to make terrain as good as Cubeworld or Minecraft. I'm making this project on Unity3D and have had success until I hit this brick wall. I implemented a mix of Perlin 2d and 3d by generating a turbulence value from Perlin 3d and feeding that into the 2d Noise. This works well for me but it creates very uniform terrain with the entire world having similar amplitude and frequency. I tried fixing this by randomizing the amplitude and frequency, again with Perlin Noise. This seems to have done absolutely nothing. I can create nice looking terrain, for my standards, with low amplitude and with high amplitude respectively. However, I am having trouble mixing the two together to have some parts of the world low rolling hills and others fairly mountainous. Looking at the image below, from CubeWorld, you can see a nice looking structure to the left, rolling hills in the middle, and a beautiful mountainous region to the right. I can achieve all of these individually but am unable to mix them and have them all take place in the same world. If any of you could guide me with tips, pointers, tutorials you can send me a link to, or pseudocode that would really help me. Take note I am still a beginner to procedural terrain generation so don't use any fancy words.

P.S. Other than this I have found a separate issue. Every time I load the game the terrain looks exactly the same. If anybody could help me with "seeding" the terrain where I could have the player input a seed and generate the world somehow based on that I would really appreciate it.

Also P.S. I use CubeWorld a lot as an example of terrain that I am aiming for, but you don't need to know what that is. I just use it as an example. All good games with procedural voxel generation achieve this and it is somehow eluding me.

alt text

alt text

My Get3DNoise() and Get2DNoise() functions look like this:

return (Perlin.Noise((x) / frequency, (y) / frequency, (z) / frequency)) * (amplitude);

return (Perlin.Noise((x) / frequency, (z) / frequency)) * (amplitude);

The library I use for Perlin noise can be found here: https://github.com/keijiro/PerlinNoise

06-jpg.png (495.5 kB)
screenshot-4.png (164.9 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

135 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Voxel terrain - NOT MINECRAFT - Digging and creating with resources 0 Answers

How Do I Properly Generate Biomes In Infinite Terrain? 1 Answer

Cube World Terrain generation 2 Answers

How can I smoothen my cubic mesh using marching cubes? 0 Answers

Voxel durability 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges