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

Properly scale the clouds in modified main menus #12

Merged
merged 1 commit into from
Apr 27, 2018
Merged

Properly scale the clouds in modified main menus #12

merged 1 commit into from
Apr 27, 2018

Conversation

StollD
Copy link

@StollD StollD commented Apr 27, 2018

If you replace the body in the main menu using Kopernicus, the scale of the clouds is messed up for bodies that don't have the same size as Kerbin.

For example Eve, which is bigger than Kerbin, has it's clouds floating multiple kilometers above the planet model, while Laythe's clouds are completely missing, since Laythe is smaller than Kerbin.
The reason for this is, that Kopernicus has to rescale the bodies in the main menu to match the exact size of Kerbin. (i.e. a radius of 600000m or 100 scaled space units).

Since EVE cannot really know which body is represented in the main menu, it always assumes the scale of Kerbin for the clouds. However, in combination with using the (changed) planet radius this seems to causes the described bug.

The solution I came up with is to change the hardcoded Kerbin scale to a dynamically calculated scale in the main menu. This yields the same results for Kerbin, and accurate results for every other body.

Copy link
Owner

@WazWaz WazWaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@WazWaz WazWaz merged commit 530a48e into WazWaz:master Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants