Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an earth sized planet #9

Open
dev-bre opened this issue Sep 25, 2022 · 3 comments
Open

Creating an earth sized planet #9

dev-bre opened this issue Sep 25, 2022 · 3 comments
Labels
question Further information is requested

Comments

@dev-bre
Copy link

dev-bre commented Sep 25, 2022

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?

@simeonradivoev
Copy link
Owner

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
Copy link
Owner

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 simeonradivoev added the question Further information is requested label Sep 25, 2022
@dev-bre
Copy link
Author

dev-bre commented Sep 25, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants