Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Nano1778 · Oct 16, 2016 at 09:12 PM · terrainspherespaceplanets

How to make terrain spherical?

Ive just been messing around with unity and I thought that a game with seamless space to planet travel would be pretty neat. I kind of thought that it would be simple so that all I would do is make unity terrain into a sphere, add a center of gravity, put a layer of "fog" that would act as an atmosphere and filter the space skybox to a different color and make the illusion of a sky and then finally have them rotate on a axis and revolve around a certain point (the star). But it seems that Unity wants to be hard to deal with and I cannot find anyway possible to make terrain spherical. The reason I would rather have terrain than just some sphere is because I could use assets that make terrain editing really easy and detailed such as Gaia. So does anyone know a way to make terrain spherical so that I can do this?

Comment
Add comment · Show 1
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
avatar image doublemax · Oct 16, 2016 at 09:24 PM 0
Share

If commercial assets are an option, check out "Curved World":

https://www.assetstore.unity3d.com/en/#!/content/26165

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by tanoshimi · Oct 16, 2016 at 09:33 PM

You can't make a spherical terrain. But if you just want to create the illusion of spherical falloff you can do this by bending far vertices away from the camera in the shader, as in https://alastaira.wordpress.com/2013/10/25/animal-crossing-curved-world-shader/

Comment
Add comment · Show 2 · 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
avatar image Nano1778 · Oct 16, 2016 at 10:03 PM 0
Share

Ok so how do people make planetary terrain for games that has seamless travel from space to planet? Ive seen it done but have not seen how to do it. This asset can do it https://www.assetstore.unity3d.com/en/#!/content/30263 but I dont feel like paying 225$

avatar image Zitoox Nano1778 · Oct 16, 2016 at 11:17 PM 0
Share

Are you talking about games made in Unity or not? Because most professional developers and studios make their own graphic engine before making a game, so it is very easy to them to make a planet.

As Double$$anonymous$$ax said, you could buy an Asset in the Asset Store. Some people don't need to buy any asset because they are professional programmers, and work with other programmers to make very complicated scripts that can make almost anything.

The tricky thing about the Terrain is that it is too detailed to make simple things such as rotating and changing it's mass. (I am talking about real mass, not physics). That's why Unity doesn't have such a tool. Now why they don't make a tool that can do this? Well, i think it's because almost every terrain is different than the other and make a tool that would do such thing would make most terrains appear very bug and all.

avatar image
0

Answer by FluffyFreak · Nov 01, 2016 at 10:18 PM

I don't think that you can use unity's built in terrain system for a true spherical terrain/planet.

However one way that it is usually dealt with a "Quadrilateralized spherical cube" where each cube face is a quad-tree. There's a really nice explanation here: https://britonia.wordpress.com/2010/05/20/planet-geometry/ and another here https://acko.net/blog/making-worlds-1-of-spheres-and-cubes/

There's also another discussion here already http://answers.unity3d.com/questions/7870/spherical-terrain-object.html

There is no way to use the built-in Unity terrain tool for any of this so you will need to generate your own meshes, deform them, implement a LOD (Level-Of-Detail) system, create collision and handle gravity etc for yourself.

Comment
Add comment · Show 2 · 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
avatar image Zitoox · Nov 02, 2016 at 01:30 AM 0
Share

Who are you talking with?

avatar image FluffyFreak Zitoox · Nov 02, 2016 at 07:51 AM 0
Share

nano1778 but it was late and I clicked on the wrong Add Comment :(

avatar image
0

Answer by Mr_Perlful · Aug 01, 2018 at 07:21 PM

@FluffyFreak, actually in regards to your answer, while i agree there are ways around this, i mean i wouldnt recommend what im going to say for an rpg personally, but an rts or something low poly, it doesnt work to badly,

take a sphere object, and then on your character scripts basically have to get the characters rotation and transform and adjust as they make their way around the "world".

i dont have code with me at work unfortunately, but i converted a portion of a building placement script i made for an rts game, took the code that followed an objects curvature and everything looked rightish.

when it comes to buildings i made "foundations" so that the buildings corners were not just "floating".

when it comes to terrain foliage i used the same thing as i did with the characters and buildings, and then wrapped the sphere in a mesh with a meshcollider i made to wrap the terrain mesh. and then used mountain models and what not to create the "terrain".

hardest part was probably pathfinding to be honest.

it was a bit of a bitch to make work, and i didnt ever truly achieve the look i wanted(i am not a graphics/visuals person, i do logic), but it worked!

ill try to hop on later and post some code.

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
avatar image
0

Answer by rykonvolta · Jan 14 at 05:19 PM

A lot of 3D design can't be done well with Unity but Blender is a free and open source tool that can create .obj files in 3D. If you want to take the time to learn that tool, you can download it here: https://www.blender.org/. I would love to see a planetary terrain update to the Unity Engine I guess.

Unity is good for implementing 3D objects in a game but alot of design work is best done with Blender

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

8 People are following this question.

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

Related Questions

Generating randomness in a sphere. Only working horizontally. (Image in description) 0 Answers

"ArgumentOutOfRangeException: Argument is out of range." 1 Answer

Is it possible to generate a high-poly spherical model from a mercator-projection heightmap? 1 Answer

How can I make something like Star Trek? 0 Answers

Physically Based Sky for space games - HELP with settings 1 Answer


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