# Planet Rendering

This topic is 4333 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

How do you render an entire planet such that you can zoom down to ground level of or fly out into space with? How do you account for precision issues at huge distances? Can you use heightmaps? How do you deal with gravity the isn't always in the negative Y direction? I've seen Ysaneya's stuff and its incredible, but I just want to get something barebones up and running!

##### Share on other sites
I think the most logical awnser would be "level of detail".
I dont get what "How do you deal with gravity the isn't always in the negative Y direction?" has to do with the rendering of the world though.

##### Share on other sites
just use a vector pointing towards the center of the planet as the force vector for gravity.

##### Share on other sites
If I'd got it right from his website Ysaneya uses double percision coordinates.
Sean O'neil has got an interesting LOD algorithm which works (for me) very similar to the one Ysaneya has. See http://sponeil.org (sources included).

I'm using an other methode. I'm using space partioning into segments having their own coordinate system. The problem with the Y direction is solved very elegant.
And I'm rendering into screen layers, too. Check Koci's post http://www.gamedev.net/community/forums/topic.asp?topic_id=422162. He has got a similar idea of these layer drawing and he gives much useful hints.

Heighmaps:
I found the trick of ysaneya good to map a cube to a sphere: Every side of the cube can contain a squared heighmap which you can easily refine for each LOD step. I'm using perlin and Diamond square midpoint displacement.

##### Share on other sites
Another good point to start might be the planet renderer of Jochen Winzen; it also includes all source code: http://www.vterrain.org/Packages/IUE/

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

(You must login to your GameDev.net account.)

• 15
• 9
• 11
• 9
• 9
• ### Forum Statistics

• Total Topics
634136
• Total Posts
3015756
×

## Important Information

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!