-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Prevent distant planets from being visible trough the Atmosphere #2
Comments
The layer stunt works on sprites. It will not help my ass here. I will need to give a nice peek on Scatterer et all to understand how the Atmospheres are drawn, but from a preliminary overview, things does not look good - the Atmosphere appears to be drawn immediately after the skybox and before any 3D object… Since reordering this would be essentially reimplementing Scatterer myself (a daunt task to say the least), I will try to stunt my way out of the mess. Perhaps I could try to use transparency? |
Additionally, perhaps we could do the same to Comets as request on Forum? |
That's the problem… Somewhere in the past, the body flares was moved to the layer 10 due PlanetShine. But then they started to misbehave. Later they were all moved to layer 15. My best guess is that moving the Body Flares to layer 15 was a bad idea. Even 10 was less than ideal. The Body Flares should be placed behind the Atmosphere layers (9). See https://wiki.kerbalspaceprogram.com/wiki/API:Layers for gory details. |
it worked as intended. Fixed on commit 88341b7 |
Reopening the damned thing, as the fix made the flares (unsurprisingly, to tell you the true) be rendered behind their bodies, screwing up with the damned feature. The way to go is more or less this one, but I'm afraid I will need to cast a new ray to check if there's an atmosphere behind the body flares…. |
…essel, debris and bodies' flares should be on the same layer, but I will keep things as they were for while. This code will allow fine tunning later. for #2
Removing the milestone of this thing, as I don't know when I will have time to research this thing again. |
Reopening this thing again. How in hell this was closed??? |
Fellow Kerbonaut ColdJ suggested the following material as reference (documenting it here or I will lose track of the info):
|
Fellow Kerbonaut Krazy1 remembered about an old request from another Fellow Kerbonaut infinite_monkey:
Additionally, Fellow Kerbonaut Krazy1 complements:
Well… I will try. :)
I don't have the slightest idea how to fix it, but I remember something on Unity about layers (it's the reason it's so difficult nowadays to select a craft on KSC as target - the layer of the icon if the craft, mistakenly, is lower than the layer of the icon of KSC).
The text was updated successfully, but these errors were encountered: