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

  On 12/5/2015 at 12:40 AM, blackrack said:

I tried to find a way to update childcount but there was no such a public property or method as far as I could see.

Hmm, how can I update the PQSMod to do this?

 

SVE updated to remove these. EVE normally doesn't replace ocean shaders anymore. But I'll do it anyway.

Expand  

You may have to use reflection to get at the private members...

//hack to get protected variable
FieldInfo field = typeof(Sun).GetFields(BindingFlags.Instance | BindingFlags.NonPublic).First(
	f => f.Name == "scaledSunLight" );
Sunlight = (Light)field.GetValue(Sun.Instance);

 

Edited by rbray89
Link to comment
Share on other sites

  On 12/5/2015 at 5:35 AM, Yukon0009 said:

Any idea on how to run this without horrendous low FPS? It works, but 5 fps for a single part craft..

Expand  

I seem to be getting much better FPS than that, there was a Linux issue where a file did not have the right case and caused it to spam searching for it, if you are using Linux make sure you have the latest version. Other than that start turning down AA, detail and removing other mods.

Link to comment
Share on other sites

  On 12/5/2015 at 12:40 AM, blackrack said:

I tried to find a way to update childcount but there was no such a public property or method as far as I could see.

Hmm, how can I update the PQSMod to do this?

 

SVE updated to remove these. EVE normally doesn't replace ocean shaders anymore. But I'll do it anyway.

Expand  

Not sure offhand, but you can try just clearing the secondary fade list. You can also look at how Kopernicus creates the mod, to know how it's set up. :)

Edited by NathanKell
Link to comment
Share on other sites

  On 12/5/2015 at 6:51 AM, NathanKell said:

Not sure offhand, but you can try just clearing the secondary fade list. You can also look at how Kopernicus creates the mod, to know how it's set up. :)

Expand  

I feel like I'm so close. I just need to figure out what is throwing a null reference exception in  PQS.ResetSphere ()

 


                PQS ocean =
                sphere.ChildSpheres[0];
                ocean.parentSphere = null;
                ocean.transform.parent = null;
                FieldInfo field = typeof(PQS).GetFields(BindingFlags.Instance | BindingFlags.NonPublic).First(
                f => f.FieldType == typeof(PQS[]));
                field.SetValue(sphere, new PQS[] { });
                PQSMod[] mods = ocean.GetComponentsInChildren<PQSMod>();
                foreach (PQSMod mod in mods)
                {
                    mod.transform.parent = null;
                    GameObject.DestroyImmediate(mod);
                }
                GameObject.DestroyImmediate(ocean.gameObject);
                PQSMod_CelestialBodyTransform cbt = sphere.GetComponentsInChildren<PQSMod_CelestialBodyTransform>()[0];
                cbt.secondaryFades = new PQSMod_CelestialBodyTransform.AltitudeFade[] { };
                sphere.mapOcean = false;

 

Link to comment
Share on other sites

Hi blackrack, 

I am not sure if this is an already known bug (I didn't see it in the known issues section) but with the new update, on my install the oceans are black.

bwRA6ax.png

I'll post the necessary information if you need it. Thanks!

Link to comment
Share on other sites

  On 12/5/2015 at 12:20 PM, Columbia said:

Hi blackrack, 

I am not sure if this is an already known bug (I didn't see it in the known issues section) but with the new update, on my install the oceans are black.

I'll post the necessary information if you need it. Thanks!

Expand  

hi,

think first of all some screens of your install(-folder) would help / as well as the output_log / debug_log.

Im running win 64bit version and its doing well.

is alt+f11 working for you? can you use the config tool? screenshot would be nice.

Edited by Speadge
Link to comment
Share on other sites

  On 12/5/2015 at 12:25 PM, Speadge said:

hi,

think first of all some screens of your install would help / as well as the output_log / debug_log.

Im running win 64bit version and its doing well.

is alt+f11 working for you? can you use the config tool? screenshot would be nice.

Expand  

Sorry for being an idiot, but where do you find the logs and what do you mean by screens of my install? I never reported a mod issue. Alt + F11 works for me, I can open it up.

Thanks!

Also, sometimes it would work, sometimes it's black and sometimes it's this:

5vfZfkX.jpg

Link to comment
Share on other sites

  On 12/5/2015 at 5:02 AM, jtmcalli said:

Wut went wrong?

Zoomed in looks fine except for the side but everywhere else it's that. (Also tested with clean install and just this mod, same result)

Expand  

These are just tears in the fabric of space. But seriously I don't know what's causing these yet.

 

  On 12/5/2015 at 5:35 AM, Yukon0009 said:

Any idea on how to run this without horrendous low FPS? It works, but 5 fps for a single part craft..

Expand  

Semms to be running well for everyone, what are your specs? Any errors being spammed in the debug log?

 

  On 12/5/2015 at 8:08 AM, rbray89 said:

I feel like I'm so close. I just need to figure out what is throwing a null reference exception in  PQS.ResetSphere ()

 


                PQS ocean =
                sphere.ChildSpheres[0];
                ocean.parentSphere = null;
                ocean.transform.parent = null;
                FieldInfo field = typeof(PQS).GetFields(BindingFlags.Instance | BindingFlags.NonPublic).First(
                f => f.FieldType == typeof(PQS[]));
                field.SetValue(sphere, new PQS[] { });
                PQSMod[] mods = ocean.GetComponentsInChildren<PQSMod>();
                foreach (PQSMod mod in mods)
                {
                    mod.transform.parent = null;
                    GameObject.DestroyImmediate(mod);
                }
                GameObject.DestroyImmediate(ocean.gameObject);
                PQSMod_CelestialBodyTransform cbt = sphere.GetComponentsInChildren<PQSMod_CelestialBodyTransform>()[0];
                cbt.secondaryFades = new PQSMod_CelestialBodyTransform.AltitudeFade[] { };
                sphere.mapOcean = false;

 

Expand  

Alright, let me know what you find.

 

  On 12/5/2015 at 12:20 PM, Columbia said:

Hi blackrack, 

I am not sure if this is an already known bug (I didn't see it in the known issues section) but with the new update, on my install the oceans are black.

 

I'll post the necessary information if you need it. Thanks!

Expand  

Could you try increasing or lowering m_resolution like Djolox suggested?

 

  On 12/5/2015 at 1:04 PM, Djolox said:

I think I am close to fixing the weird artifact on the ocean (Ones I had)! Just increase ocean resolution!

Expand  

Does this work? Can you post before/after pics? Also, in case there's a relation somewhere, what resolution do you play at?

Link to comment
Share on other sites

  On 12/5/2015 at 1:29 PM, blackrack said:

 

Does this work? Can you post before/after pics? Also, in case there's a relation somewhere, what resolution do you play at?

Expand  

I found that glitches stop at resolution 100, but as higher that better. I have a beefy computer so I run it on 500.

Here are the pictures.

Before:

tdsgvKy.jpg

After:

1DthMes.jpg

It is not totally clear because the sea tends to spazz out. I can't catch that on photo.

Link to comment
Share on other sites

  On 12/5/2015 at 2:13 PM, Djolox said:

I found that glitches stop at resolution 100, but as higher that better. I have a beefy computer so I run it on 500.

Here are the pictures.

Before:

After:

It is not totally clear because the sea tends to spazz out. I can't catch that on photo.

Expand  

Actually the lower the better, but only if you set it to 1 or 4 is the difference noticeable, and there's a ceiling value but I forgot which. I'm glad this fixes your problem.

Link to comment
Share on other sites

I note the options to change wave amplitude, windspeed and omega.

Would it be feasible to make these dependent on latitude, depth and Mün position (to fake tides)? This way, shallow tropical waters could be smooth and serene, but near the Arctic or Antarctic the seas become more violent. In the deep sea waves would have low wavelength but high amplitude.

I'm guessing the transitions would be small enough, and the visual range limited enough, to make transitions not so jarring?

Edited by colmo
Link to comment
Share on other sites

  On 12/5/2015 at 2:33 PM, colmo said:

I note the options to change wave amplitude, windspeed and omega.

Would it be feasible to make these dependent on latitude, depth and Mün position (to fake tides)? This way, shallow tropical waters could be smooth and serene, but near the Arctic or Antarctic the seas become more violent. In the deep sea waves would have low wavelength but high amplitude.

I'm guessing the transitions would be small enough, and the visual range limited enough, to make transitions not so jarring?

Expand  

I've considered this but for now changing these parameters requires an ocean rebuild, which takes half a second or more depending on your computer and the transition isn't smooth. I might be able to make it smooth in the future but there are some things I need to work out. And I haven't really been putting any planet's oceans to violent and won't be doing it until we have waves interacting with craft, which I may or may not be able to do.

Edited by blackrack
Link to comment
Share on other sites

  On 12/4/2015 at 8:53 PM, blackrack said:

Atmosphere height is now tweakable directly ingame, this means you don't have to fiddle with the config tool anymore to make your atmosphere higher, this is mostly good news for mod and config makers.

Also, this allows tweaking the atmo directly to have a blue sky higher up in Kerbin, and to avoid mountains poking through the atmosphere.

Expand  

YAY!! Great news, I was going to ask about this too but you're already fielding inane queries from me! :) Is it still possible to modify the OceanRender queue with this new 0.0215 version or does the line oceanrenderqueue=3000 added to the config file work even if I can't edit it from the GUI? Also is there a line I can add to start with post processing disabled? And I'd love to know what I need to edit to increase atmosphere heights in earlier versions of Scatterer, say maybe v0.01781 for 1.0.4, if such a config edit exists?

Thanks again for all your hard work @blackrack !! At the moment I'm just a guy asking stupid questions, but I swear when I get everything up and running I shall provide you with screenshots of such beauty and composition you will never want for promo materials again! :D x

Link to comment
Share on other sites

  On 12/5/2015 at 4:18 PM, Space Cowbuoy said:

YAY!! Great news, I was going to ask about this too but you're already fielding inane queries from me! :) Is it still possible to modify the OceanRender queue with this new 0.0215 version or does the line oceanrenderqueue=3000 added to the config file work even if I can't edit it from the GUI? Also is there a line I can add to start with post processing disabled? And I'd love to know what I need to edit to increase atmosphere heights in earlier versions of Scatterer, say maybe v0.01781 for 1.0.4, if such a config edit exists?

Thanks again for all your hard work @blackrack !! At the moment I'm just a guy asking stupid questions, but I swear when I get everything up and running I shall provide you with screenshots of such beauty and composition you will never want for promo materials again! :D x

Expand  

Yeah I left the oceanRenderQueue setting in there so you can change it, btw you can try something like 2500 that shouldn't mess up the postprocessing effects. I haven't added that option yet but you could just set the postprocessing alpha to zero in the configpoints for now.

In earlier versions of scatterer, to edit the config height you had to generate new configs with the config tool. You could still just try going in the settings and changing Rg but it will definitely cause other issues.

Edited by blackrack
Link to comment
Share on other sites

Hey Blackrack! Your mod is gorgeous and works well performance wise on my rig. But I'm getting this weird bug in orbit and map mode in the latest version:

(Edit: my imgur album isn't embedding for some reason! First post on these new forums. Here is the direct link: http://imgur.com/a/CaT6w )

Has anyone else had this issue?

My mods are:

  • EVE
  • Distant Object
  • Chatterer
  • Firespitter/Habitat Pack
  • Stock Bug Fixes
  • Stock Clamshell Fairings
  • Kerbal Alarm Clock

 

Edited by Binho
Imgur embed not working!
Link to comment
Share on other sites

  On 12/5/2015 at 5:16 PM, Binho said:

Hey Blackrack! Your mod is gorgeous and works well performance wise on my rig. But I'm getting this weird bug in orbit and map mode:

(Edit: my imgur album isn't embedding for some reason! First post on these new forums. Here is the direct link: http://imgur.com/a/CaT6w )

Has anyone else had this issue?

My mods are:

  • EVE
  • Distant Object
  • Chatterer
  • Firespitter/Habitat Pack
  • Stock Bug Fixes
  • Stock Clamshell Fairings
  • Kerbal Alarm Clock

 

Expand  

Hmm, is this running dx9 or OpenGL? Can you try forcing a different mode?

Is this new to the latest version?

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