GPU-Planetary-Rendering icon indicating copy to clipboard operation
GPU-Planetary-Rendering copied to clipboard

Creating an earth sized planet

Open dev-bre opened this issue 3 years ago • 3 comments
trafficstars

Hi, Looking at the code I can see that the radius of the planet is set around 6300 , which is kind of the earth radius (6371 km).

Can you confirm that radius value is expressed in km? Or are these meters instead?

If they are meters, any suggestions how to achieve 1000 times bigger radius?

dev-bre avatar Sep 25 '22 08:09 dev-bre

You will need to dramatically change the code. Also will have to use a shifting coordinate system, the camera must not move but the world must move with an offset relative to the camera. Also, I'm not sure if the unity mesh supports that large of coordinates, so has to be probably rendered procedurally or you have to cull some vertices dynamically.

simeonradivoev avatar Sep 25 '22 08:09 simeonradivoev

http://proland.inrialpes.fr/ here is a project I found while making this. I think it has this exact implementation but it is written in C++.

simeonradivoev avatar Sep 25 '22 08:09 simeonradivoev

Thanks for pointing to proland. The project states that it has a resolution of 90m/pixel per elevation. Just to give me an idea of the scale ratio resulting from your project, am I right to assume you are on 1/1000 scale?

dev-bre avatar Sep 25 '22 16:09 dev-bre