Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 jefequeso · Apr 30, 2015 at 09:38 PM · wrapping

Any way to create wrapping Perlin Noise using Mathf.PerlinNoise()?

I'm experimenting with a procedural terrain system using Perlin Noise, using the Mathf.PerlinNoise() function. However, I wanted to try wrapping it around a sphere to make planets, and I'm not sure there's any good way to generate seamless perlin noise using this function.

Anyone have any suggestions? I suppose I could try writing my own noise function, but to be perfectly honest I have a very difficult time understanding the math behind it.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by rageingnonsense · Apr 30, 2015 at 10:19 PM

Unity's built in perlin noise is insufficient for most things I find. For the planets I generate, I use LibNoise to generate a sphere projected noise map. The UV map of your mesh needs to match the type of projection you use for your noise map.

LibNoise is quite slow though, so I would experiment with other noise libraries (I hear Accidental Noise Library is a good one). Bottom line though is you should not bother with Unity's built-in perlin; it just is not powerful enough. Perlin is only one type of noise, and for good looking terrain, you are going to want other types of noise; like fractal and billow.

As an aside, I strongly suggest you consider using a subdivided cube, that you pre-chunk into individual mesh objects in your modeling software, and convert to a sphere as a post-process, or at run-time (very simple; just vector.normalized * RADIUS for each vertex). I spent 6 months of my life on doing this exact thing, and the first thing I learned is that a single, standard sphere is just the wrong way to go for so many reasons. Easier UV mapping, and less obvious artifacts at the poles are just a few of the benefits of using a cube.

You'll want to pre-chunk it as well to get around the 65535 vertex limit. Otherwise you wont have very good detail unless your planet is very very small and cartoony.

Comment
Add comment · Share
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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

UV Mapping. How can one point appear in multible places? 1 Answer

TextMesh Pro, indent line that is wrapped. 1 Answer

Help With UV Mapping 1 Answer

Breaking text line in GUI.Box 1 Answer

'Wrapped world' effect with 2 cameras? 2 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