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

3 hours ago, AlphaKerman said:

Hey, may I ask whether this mod is heavy CPU or  GPU usage? I have decent CPU but a potato GPU, so if it is GPU heavy i might need to upgrade my GPU then. Thanks!

my system:
CPU - amd ryzen 5 2600
GPU - nvidia geforce gtx 1050 2gb
RAM - 16 gb

Everything works well with these mods

Spoiler

image.jpg

 

Link to comment
Share on other sites

I'm pushing out a small update which fixes the issue with vessel viewer, also effects will now work in main menu for planets other than Kerbin (for planet mods).

5 hours ago, AlphaKerman said:

Hey, may I ask whether this mod is heavy CPU or  GPU usage? I have decent CPU but a potato GPU, so if it is GPU heavy i might need to upgrade my GPU then. Thanks!

Mostly GPU-heavy

Edited by blackrack
Link to comment
Share on other sites

Quote

[LOG 14:37:48.459] [Scatterer][Debug] Effects loaded for Kerbin
[ERR 14:37:48.474] [Scatterer][Error] Effects couldn't be loaded for Duna because of exception: System.Exception: No correct main menu object found for Duna
  at scatterer.Utils.GetMainMenuObject (CelestialBody celestialBody) [0x00051] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ProlandManager.Init (scatterer.ScattererCelestialBody scattererBody) [0x00090] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ScattererCelestialBodiesManager.UpdateProlandManagers () [0x001d8] in <d38c161373984c33afbd1aae204ad476>:0

[LOG 14:37:48.474] [Scatterer][Debug] Duna removed from active planets.
[LOG 14:37:48.574] [EVE CloudsManager]: Clouds2D is now MACRO
[LOG 14:37:48.574] [EVE CloudsManager]: Clouds2D is now SCALED
[LOG 14:37:48.574] [EVE CloudsManager]: Clouds2D is now MACRO
[LOG 14:37:48.574] [EVE] Applying _MainTex Cubemap
[LOG 14:37:48.574] [EVE CloudsManager]: Clouds2D is now SCALED
[LOG 14:37:48.574] [EVE] Applying _MainTex Cubemap
[LOG 14:37:48.574] [EVE CloudsManager]: Clouds2D is now MACRO
[LOG 14:37:48.574] [EVE CloudsManager]: Clouds2D is now SCALED
[LOG 14:37:48.575] [Scatterer][Debug]  Camera overlap: 199999.7
[LOG 14:37:48.575] [Scatterer][Debug]  Camera overlap: 199999.7
[LOG 14:37:48.575] [Scatterer][Debug]  Camera overlap: 199999.7
[LOG 14:37:48.575] [Scatterer][Debug]  Skynode initiated for Kerbin
[ERR 14:37:48.584] [Scatterer][Error] Effects couldn't be loaded for Laythe because of exception: System.Exception: No correct main menu object found for Laythe
  at scatterer.Utils.GetMainMenuObject (CelestialBody celestialBody) [0x00051] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ProlandManager.Init (scatterer.ScattererCelestialBody scattererBody) [0x00090] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ScattererCelestialBodiesManager.UpdateProlandManagers () [0x001d8] in <d38c161373984c33afbd1aae204ad476>:0

[LOG 14:37:48.584] [Scatterer][Debug] Laythe removed from active planets.
[ERR 14:37:48.599] [Scatterer][Error] Effects couldn't be loaded for Jool because of exception: System.Exception: No correct main menu object found for Jool
  at scatterer.Utils.GetMainMenuObject (CelestialBody celestialBody) [0x00051] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ProlandManager.Init (scatterer.ScattererCelestialBody scattererBody) [0x00090] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ScattererCelestialBodiesManager.UpdateProlandManagers () [0x001d8] in <d38c161373984c33afbd1aae204ad476>:0

[LOG 14:37:48.599] [Scatterer][Debug] Jool removed from active planets.
[ERR 14:37:48.612] [Scatterer][Error] Effects couldn't be loaded for Eve because of exception: System.Exception: No correct main menu object found for Eve
  at scatterer.Utils.GetMainMenuObject (CelestialBody celestialBody) [0x00051] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ProlandManager.Init (scatterer.ScattererCelestialBody scattererBody) [0x00090] in <d38c161373984c33afbd1aae204ad476>:0
  at scatterer.ScattererCelestialBodiesManager.UpdateProlandManagers () [0x001d8] in <d38c161373984c33afbd1aae204ad476>:0

[LOG 14:37:48.612] [Scatterer][Debug] Eve removed from active planets.

 

With the both expansions in 1.9.1 and a fresh install of Spectra (includes EVE, Distant Object Enhancement, MM, PlanetShine, Real Plume, ReStock, SmokeScreeen) and obviously scatterer, I get these error messages in my KSP.log.

For Kerbin all effects are loaded correctly and work ingame, but no effects are loaded for the other planets. Has anyone experienced something like this before?

Link to comment
Share on other sites

2 hours ago, FasterThanFlourite said:

With the both expansions in 1.9.1 and a fresh install of Spectra (includes EVE, Distant Object Enhancement, MM, PlanetShine, Real Plume, ReStock, SmokeScreeen) and obviously scatterer, I get these error messages in my KSP.log.

For Kerbin all effects are loaded correctly and work ingame, but no effects are loaded for the other planets. Has anyone experienced something like this before?

These errors are only in main menu, which is "normal" as of last release.

Link to comment
Share on other sites

8 minutes ago, blackrack said:

I don't get your question.

Wasn't really one, the error is not even relevant if Scatterer works just fine in gameplay. Let's be honest, in a total session, how much time do you spend in the main menu?

Link to comment
Share on other sites

5 minutes ago, Delay said:

Wasn't really one, the error is not even relevant if Scatterer works just fine in gameplay. Let's be honest, in a total session, how much time do you spend in the main menu?

It's not even that it doesn't work in main menu, it's just that it displays errors for bodies it doesn't find in the main menu scene, which is "normal".

Link to comment
Share on other sites

Alright, so I guess I can ignore those errors for now.

However, there is a much more serious problem: scatterer unfortunately still crashes the game for me after scene changes, despite running v.0.0610 (as seen below in KSP.log).

[LOG 19:14:26.849] [AddonLoader]: Instantiating addon 'Scatterer' from assembly 'scatterer'
[LOG 19:14:26.851] [Scatterer][Debug] Core instance created
[LOG 19:14:26.851] [Scatterer][Info] Version:0.0610
[LOG 19:14:26.851] [Scatterer][Info] Running on Direct3D 11.0 [level 11.1] on Windows 10  (10.0.0) 64bit
[LOG 19:14:26.851] [Scatterer][Info] Game resolution 2560x1440
[LOG 19:14:26.851] [AddonLoader]: Instantiating addon 'ShaderProperties' from assembly 'scatterer'

It runs just fine for about an hour and then crashes upon scene change.

The last line in KSP.log before the crash is:

[LOG 20:48:17.846] [AddonLoader]: Instantiating addon 'Scatterer' from assembly 'scatterer'

 

And in my error log it says:

Read from location 00000262423B70F7 caused an access violation.

Context:
RDI:    0x0000000000000000  RSI: 0x00000261ec97bdb0  RAX:   0x0000000000000000
RBX:    0x0000000000000001  RCX: 0x00000262423b70a0  RDX:   0x0000000000000000
RIP:    0x00007ffd3e3485e6  RBP: 0x000000dd07b7dc40  SegCs: 0x0000000000000033
EFlags: 0x0000000000010202  RSP: 0x000000dd07b7dbe0  SegSs: 0x000000000000002b
R8:     0x00007ffd3d650000  R9:  0xfffffffffffffff0  R10:   0x00000000000a62f0
R11:    0x000000dd07b7dba0  R12: 0x0000000000000000  R13:   0x0000000000000001
R14:    0x0000000000003233  R15: 0x0000025f7e3ad0a0


Bytes at CS:EIP:
0f b6 41 57 48 8b d9 3c ff 0f 85 96 00 00 00 80 

...

ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF68ACF11F2)
0x00007FF68ACF11F2 (KSP_x64) (function-name not available)
0x00007FFD99CF7974 (KERNEL32) BaseThreadInitThunk
0x00007FFD9A71A271 (ntdll) RtlUserThreadStart

 

I am running KSP 1.9.1, with about 200 mods installed through CKAN (all the most common ones). This issue was supposed to be fixed with the update to v.0600, was it not? In any case, any help would be greatly appreciated, as I just can't play KSP without scatterer, your mod just lifts the game into another graphics dimension.

Edited by FasterThanFlourite
Link to comment
Share on other sites

1 hour ago, FasterThanFlourite said:

Alright, so I guess I can ignore those errors for now.

However, there is a much more serious problem: scatterer unfortunately still crashes the game for me after scene changes, despite running v.0.0610 (as seen below in KSP.log).

It runs just fine for about an hour and then crashes upon scene change.

The last line in KSP.log before the crash is:

And in my error log it says:

I am running KSP 1.9.1, with about 200 mods installed through CKAN (all the most common ones). This issue was supposed to be fixed with the update to v.0600, was it not? In any case, any help would be greatly appreciated, as I just can't play KSP without scatterer, your mod just lifts the game into another graphics dimension.

I have no idea honestly, the fact that that it crashes on a core unity method (UnityEngine.Object.FindObjectsOfType()) means this is out of my depth.

At the same time I will say that if you are only getting one crash per hour with about 200 mods you are doing pretty well.

And no, this issue was not supposed to be fixed in 0.0600, I have never seen this issue before.

Edited by blackrack
Link to comment
Share on other sites

Thank you for the fast reply, blackrack. I stumbled upon someone else having a similar problem over in the technical support section. In both cases there are quite a couple of mods and it's always scatterer crashing after a non-set number of scene changes.

 

Lots of mods lead to lots of the 16 GB of RAM used, but there's still free RAM available.

I find it really curious, that the crash is always caused by an access violation error when scatterer is being called after some playtime.

 

Does the Stack Trace of the Crashed Thread from my error log above help any? 

Link to comment
Share on other sites

9 hours ago, FasterThanFlourite said:

Does the Stack Trace of the Crashed Thread from my error log above help any? 

It doesn't, because it crashes on a core unity method. If you want to help, you have to narrow it down, remove all mods then put them back one by one and test, until you find the source of rhe conflict.

Link to comment
Share on other sites

11 hours ago, OnlyLightMatters said:

Is Scatterer running fine in your 191 installation. In mine it severely kills my framerate :/

Here too, frames go down, but i can't live with it, or at least i preferer keep using it.

Is so gorgeous!

Link to comment
Share on other sites

2 minutes ago, blackrack said:

As the old saying goes: "No details, no support"

I was not asking for support, actually, but asking whether my fellow kerbal companions had the same issue or not. I have to make tests with a disposable KSP installation first before being able to say more. The only thing I can tell is the same mods in 1.8.1 and 1.9.1 give different framerates with a huge difference in favor of 1.8.1. When I uninstall Scatterer in 1.9.1, framerate goes up when launching rockets on the pad. It skyrockets.

As soon as I find some time to test 1.91+EVE+Scaterrer and only this combinaison, I will be able to provide more information. 

Link to comment
Share on other sites

3 hours ago, OnlyLightMatters said:

I was not asking for support, actually, but asking whether my fellow kerbal companions had the same issue or not. I have to make tests with a disposable KSP installation first before being able to say more. The only thing I can tell is the same mods in 1.8.1 and 1.9.1 give different framerates with a huge difference in favor of 1.8.1. When I uninstall Scatterer in 1.9.1, framerate goes up when launching rockets on the pad. It skyrockets.

As soon as I find some time to test 1.91+EVE+Scaterrer and only this combinaison, I will be able to provide more information. 

I've had an issue with framerate recently too. No log spamming, same mods. I've resorted to using AVP without Scatterer just to help my frames a bit. 

 

Link to comment
Share on other sites

I've tested EVE and Scatterer alone with a new sandbox game, no issue. I'm adding all my mods by small batches and launching the same rocket again and again to see if there are bad interactions. I will end up with AVP which is a well known framerate shatterer, at least for my 1060 6Gb :D 

Edited by OnlyLightMatters
Link to comment
Share on other sites

Just now, OnlyLightMatters said:

I've tested EVE and Scatterer alone with a new sandbox game, no issue. I'm adding all my mods by small batches and launching the same rocket again and again to see if there are bad interactions. I will end up with AVP which is a well known framerate shatterer :D 

Huh? AVP? I thought it was supposed to be the least resource intensive visual mod (please correct me if i'm wrong). 

By removing scatterer, the bulk of my lag was removed. However, I've got a crappy laptop. :(

Link to comment
Share on other sites

33 minutes ago, alberro+ said:

Huh? AVP? I thought it was supposed to be the least resource intensive visual mod (please correct me if i'm wrong). 

By removing scatterer, the bulk of my lag was removed. However, I've got a crappy laptop. :(

AVP is one the of worst for framerates.

SVE Is usually the best.

Spectra is even better. 

Link to comment
Share on other sites

1 minute ago, Arco123 said:

AVP is one the of worst for framerates.

SVE Is usually the best.

Spectra is even better. 

Well, that's a bit of a shocker. When I used Spectra, the framerate was particularly bad.I haven't tried SVE though, I might give it a shot.

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...