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
1
Question by British89 · May 26, 2012 at 11:28 AM · terrainrenderingproceduralcubeplanet

Planet made out of terrains

Is it possible to make a planet out of 6 terrains to make a cube then with a bit of coding turn that cube into a spherical planet? I have been looking into Procedural planets but that all seems a bit complicated to me, I only want 1 planet that is always rendered, I have been attempting to make it happen with fail after fail, So im asking if it IS actually possible to do?

Thanks.

Comment
Add comment · Show 3
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 qwertyqaz · May 26, 2012 at 11:34 AM 0
Share

like in $$anonymous$$SP

avatar image British89 · May 26, 2012 at 11:41 AM 0
Share

I assume you mean $$anonymous$$erbal space program? Yes similar to that, But im not sure they used 6 terrains though.

avatar image qwertyqaz · May 26, 2012 at 11:43 AM 0
Share

mayby you can ask them how thay did it?

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by whydoidoit · May 26, 2012 at 09:20 PM

alt text

I would say that it wasn't impossible with 6 faces but there would be no way of projecting the edges at an angle - so I think it would always look odd. More faces though and it might work.

You'd need an algorithm to map a 3d point onto a face and an x,y coordinate for that face, then project the Z to the height of the terrain at that location.

So you'd need to calculate the point of intersection of the face's plane from a ray projected from the centre of the virtual sphere, then get the angle of the ray to the plane. Using trig you know that the point on the plane which needs the height is a perpendicular (it's angle will be 90), you know the angle of intersection so you can figure out the point that it touches the plane. You also know the distance from the plane - so that is the height for that point on the terrain.

Now clearly you'd want to plot a few spherical points and interpolate the heights between them. on each face. Giving extra consideration to the joins.

I guess you could also distort by a sphere as well, just adding your smoothed 3d heights to the existing height might make it look interesting.

Anyway just a thought. No idea what performance would be like :)


Screen Shot 2012-05-26 at 22.33.17.png (40.6 kB)
Comment
Add comment · Show 1 · 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 whydoidoit · May 27, 2012 at 02:55 AM 0
Share

On reflection heights would have to be zero at all of the edges otherwise it wouldn't work - I think that means you'd need a lot of faces before it looked right.

Procedural planets are sounding better by the second :)

How about building a procedural planet by wrapping a terrain around a sphere - now that might look good :)

avatar image
0

Answer by Eric5h5 · May 27, 2012 at 04:16 AM

Unity terrains can't be rotated, so no. You have to do your own spherical terrain system.

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 kidrockkenny · Jun 18, 2012 at 04:29 AM

i made something like what you are trying to do its pretty simple acually and need no modeling skills thanks to youtube i used blender to model a sphere and used the noise button a few times then morphed the sides of the sphere to match the top there are plenty of toturials out there to follow in the end it looks like mountains and all you got to do is uv map it be sure to uv map before you subdivid or blender will freeze trying to map out with all the verticies and bumps hope this helps.

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

Is terrain generation on GPU possible/supported? 1 Answer

Procedural Terrain Generation on a Map the Scale of the Milky Way 2 Answers

QuadPlane to Sphere Terrain Generator Misaligned 1 Answer

How to create a terrain in a sphere with Perlin Noise 0 Answers

SSAO not working with tree billboards iOS 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