Jump to content
  • Advertisement
KARTHI

How to create a 3d planet for game?

Recommended Posts

I planned to make a space game so I need a knowledge about 3d planet making so anyone help me to make it possible

πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”πŸ€”

Share this post


Link to post
Share on other sites
Advertisement

I've done some studying on this as well and the best way to accomplish this is by transitioning using shaders.

it all depends on what your trying to accomplish really, so if your making a space exploration game where you can land on planets and explore the world and leave the planet and go to another one, shader transitioning would be the way to go.

while your in space you would have the 3D spherical object (planet) and once your player is within a certain distance of the planet you would actually transition the world into a flat terrain. Your terrain would need to be separated into at least 9 sections, like a tile map, and programmically place the tiles of the terrain to simulate like the player is exploring the whole world like they are on a spherical planet.

you could use actual spherical objects to land on and ect. But the actual computational and programmical challenges are very complex. One would be texture mashing as the poles of a sphere. The way the Geomtry of the sphere is, the triangles become mashed at the poles making creating a seamless transition at the poles hard. Then there's also the precision problem, since most game engines are based on floats, using spheres as a terrain your always cutting off values beyond the precision of a float. So eventually, you may experience odd behavior because the values have been stretched past the point of precision.

so best practice would be to use 3D spheres in space and transition to flat terrains when landing. You can make the transition smooth by hiding the transition while your flying through clouds ect.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
Γ—

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are anΒ indie, hobbyist, AAA developer, or just trying to learn,Β GameDev.net is the place for you to learn, share, and connect withΒ the games industry. Learn more About Us or sign up!

Sign me up!