Jump to content

[WIP][1.9.x-1.12.x] Scatterer-atmospheric scattering (0.0838 - 14/08/2022) Scattering improvements, in-game atmo generation and multi-sun support


blackrack

Recommended Posts

11 hours ago, OrbitalManeuvers said:

Is this an AA problem?

Yes, it is. What I did on my end as a compromise is totally disabled the included AA from Scatterer so it's not "disassembling" thin objects anymore and enabled the postprocessing FXAA from KS3P. Sometimes it makes supersampled pictures a little bit blurry, but I downscale them anyways, so that's not a problem. Look at the antennas on top. 

MRywsoB.jpg

Link to comment
Share on other sites

10 hours ago, OrbitalManeuvers said:

First - thank you for answering, and for scatterer in general!

Maybe there's a nit here ... if you use Highest, the KSP settings still says 8x. So when you go to projector mode, KSP shows 8x, but it's actually off. So I had to go to 4, then back to 8, then save. 

So projector mode totally solves the previously pictured AA issue for me.  I have KSP capped at 60fps, and I have 60fps on the pad with this setting. I don't know what scattering the scattered scatters does or what else I'm giving up, but this allows me to film on the ground, and if I am missing anything I'll turn it back on for other shots. This is a fine workaround/workflow for me.

I do have an additional observation after lots of testing:

  Reveal hidden contents

When you compare the red against the red, you're like "Yup, that's AA" 

When you compare the green against the green you go "hmmm..."  Idk what this means, if anything - it's just how my system looks.

jS2RaFk.png

Better view of the distances...

LCGvqmA.png

 

 

What you see here is the difference between real AA, that takes multiple samples, actually adding information to the scene, and post-processing AA that just smoothes over aliased edges.

For the red one, the geometry is well present, so smoothing the edges goes well. For the green one, there isn't enough information to work with in the base image, that's where MSAA's additional samples add detail, and can actually resolve the thin geometry.

For what you're giving up with projector mode though check this post: https://forum.kerbalspaceprogram.com/index.php?/topic/103963-wip19-112-scatterer-atmospheric-scattering-00772-18062021/&do=findComment&comment=3908432

Edited by blackrack
Link to comment
Share on other sites

22 hours ago, Dominiquini said:

I'm seeing some exceptions when I enter VAB or SPH. Also when I exit the game:

KSP.log: https://www.dropbox.com/s/df5meot2fxx68cr/KSP(Scatterer).log?dl=0

Player.log: https://www.dropbox.com/s/3awf6o82vzp4y88/Player(Scatterer).log?dl=0

Thanks.

I also get a warning message when I change scene from KSC and TrackStation: 

RenderTexture.Create failed: width & height must be larger than 0
Graphics.CopyTexture destination render texture could not be created.

KSP.log: https://www.dropbox.com/s/stj4cufdlnn7ycs/KSP(Scatterer_WRN).log?dl=0

Player.log:  https://www.dropbox.com/s/q0f9pb9fcqblfj6/Player(Scatterer_WRN).log?dl=0

Thanks.

Link to comment
Share on other sites

12 hours ago, Dominiquini said:

I also get a warning message when I change scene from KSC and TrackStation: 


RenderTexture.Create failed: width & height must be larger than 0
Graphics.CopyTexture destination render texture could not be created.

KSP.log: https://www.dropbox.com/s/stj4cufdlnn7ycs/KSP(Scatterer_WRN).log?dl=0

Player.log:  https://www.dropbox.com/s/q0f9pb9fcqblfj6/Player(Scatterer_WRN).log?dl=0

Thanks.

I don't really investigate exceptions or warnings unless you identify an in-game issue.

Link to comment
Share on other sites

I am noticing an issue with the anti aliasing not saving at x8 in settings with scatterer. Whenever i switch a scene when i already set it to 8 it acts like it was off. I noticed some anti aliasing in the scatterer config and I don't know if i need to change something there or not.

EDIT: Looked into it more, found out why. Not a problem for me now.

Edited by SpaceODY
Link to comment
Share on other sites

Question; I'm trying to get my sunflare working but no matter what, the stock "sun" seems to shine through the sunflare everytime. I think scatterer is the culprit?

Pic for proof;

https://ibb.co/MV3V1nb

PS - Should note that I'm trying to use another sunflare over Scatterer; yet with the default Scatterer sunflare the issue persists.

Edited by Diddly Feelerino
Link to comment
Share on other sites

1 hour ago, Diddly Feelerino said:

Question; I'm trying to get my sunflare working but no matter what, the stock "sun" seems to shine through the sunflare everytime. I think scatterer is the culprit?

Pic for proof;

https://ibb.co/MV3V1nb

PS - Should note that I'm trying to use another sunflare over Scatterer; yet with the default Scatterer sunflare the issue persists.

I don't see anything wrong, but I'm also on mobile so can't see super well. All I see is the stock corona (which is supposed to remain) + the scatterer flare, can't ser the stock flare.

Link to comment
Share on other sites

Should clarify; older iterations showed a clear flare over the stock sun (rather than it being front and centre); for example from JadeofMaars mod;

https://imgur.com/2U1t1nO

Already tried setting syntax =1 or deleting the line entirely but the central stock sun still ruins the flare. Almost as if it is in "front" of the flare rather than behind it.....

Link to comment
Share on other sites

On 7/12/2021 at 3:21 AM, Diddly Feelerino said:

Should clarify; older iterations showed a clear flare over the stock sun (rather than it being front and centre); for example from JadeofMaars mod;

https://imgur.com/2U1t1nO

Already tried setting syntax =1 or deleting the line entirely but the central stock sun still ruins the flare. Almost as if it is in "front" of the flare rather than behind it.....

That's just a bigger flare

Link to comment
Share on other sites

9 hours ago, SolarShield said:

https://imgur.com/a/vMaRG9n

I noticed that the sunflare is shining through certain planets such as Kerbin where it changes color and not through others such as the mun or duna. What CFG would I need to edit to make it so the sunflare would not shine through any planets, thanks.

Do you have Kopernicus installed? This is a Kopernicus issue.

Link to comment
Share on other sites

Question: how do I generate custom atmosphere colors with Scatterer? None of the variables in the atmo.cfg seem to adjust color, and I can't figure out how to generate new scattering tables using the config tool. I read through the documentation and searched the forum, but I couldn't find an answer. Thanks!

Link to comment
Share on other sites

Saw this posted today:

anticrep_herron.jpg

Looked familiar

5yyaxTf.png

 

On 7/19/2021 at 11:55 AM, Neebel said:

Quick question: Is there an option to lower the height of the waves? Only found out how to disable their interaction with crafts but that's not what I want.

In the ocean tab, lower wind_speed and/or AMP

On 7/18/2021 at 4:45 PM, wpetula said:

Question: how do I generate custom atmosphere colors with Scatterer? None of the variables in the atmo.cfg seem to adjust color, and I can't figure out how to generate new scattering tables using the config tool. I read through the documentation and searched the forum, but I couldn't find an answer. Thanks!

Use the config tool linked in the OP, it's (partly) explained there

Edited by blackrack
Link to comment
Share on other sites

GGCwDqj.jpg

I'm confused about the config tool. When I press Alt+f10 or f11, the config tool does not contain any of the variables nor the generate button seen in the image above. I can toggle post processing, save or load the atmosphere, etc, but I can't adjust atmosphere scattering or generate the scattering tables. I searched but found nothing. How to I navigate to the part of the config tool shown in the image above? Thanks.

 

Link to comment
Share on other sites

1 hour ago, wpetula said:

How to I navigate to the part of the config tool shown in the image above? Thanks.

My apologies! I just realized that the config tool is a separate download than Scatterer. Not sure how I missed that. :/

Link to comment
Share on other sites

Actually, one last thing. Should the config tool go into the GameData folder of KSP? Also, how do I call up the config tool? Thanks.

Update: issue resolved.

Edited by wpetula
Link to comment
Share on other sites

Quote

[AddonLoader]: Instantiating addon 'Scatterer' from assembly 'scatterer'
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Scatterer][Error] Destroying duplicate instance, check your install for duplicate scatterer folders, or nested GameData folders
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[Scatterer][Info] Version:0.0770
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Game crashes whenever I try to launch a craft, I think this might have something to do with it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...