rbray89 Posted November 6, 2015 Share Posted November 6, 2015 Hmmm... Oddly, the secondary material isn't showing up in the Scaled space Camera until about ~100Km up. Works in map-view though... Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 6, 2015 Author Share Posted November 6, 2015 Hmmm... Oddly, the secondary material isn't showing up in the Scaled space Camera until about ~100Km up. Works in map-view though...The multiplicative blending layer? 100kms up? Sounds like PQS has something to do with it. Quote Link to comment Share on other sites More sharing options...
rbray89 Posted November 6, 2015 Share Posted November 6, 2015 Oops. Bad queuing. The stock atmosphere was interfering. Looks like this may work. May have to re-purpose the extinction layer to kill the Alpha though. Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 6, 2015 Author Share Posted November 6, 2015 May have to re-purpose the extinction layer to kill the Alpha though.Sorry, what? Quote Link to comment Share on other sites More sharing options...
rbray89 Posted November 6, 2015 Share Posted November 6, 2015 (edited) Sorry, what?Right now it looks like the alpha may be all over the place. The extiction shader could be used to set the alpha to a known value. Is it rendered on top of or behind the sky shader?Also: Edited November 6, 2015 by rbray89 Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 6, 2015 Author Share Posted November 6, 2015 (edited) Right now it looks like the alpha may be all over the place. The extiction shader could be used to set the alpha to a known value. Is it rendered on top of or behind the sky shader?Also:http://i.imgur.com/sbPyN3R.pngIt is rendered behind the sky shader. Also, what am I looking at here?Edited: now do this Edited November 6, 2015 by blackrack Quote Link to comment Share on other sites More sharing options...
rbray89 Posted November 6, 2015 Share Posted November 6, 2015 It is rendered behind the sky shader. Also, what am I looking at here?Edited: now do thishttp://i.imgur.com/14uwAzZ.jpgPerfect. That was my initial attempt at a proper terminator with a VERY overpowered multiplicative blend. I think the default sky shader over-writes the alpha values though. That or there is a bug in my atmo shader. Either way, we are getting closer. I suspect that this is entirely an issue with KSP's sky. It also seems to write to the depth buffer (no "zwrite off"), and seems to be on the transparent render queue. It is quite annoying; I see why you decided to eliminate it Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 6, 2015 Author Share Posted November 6, 2015 Perfect. That was my initial attempt at a proper terminator with a VERY overpowered multiplicative blend. I think the default sky shader over-writes the alpha values though. That or there is a bug in my atmo shader. Either way, we are getting closer. I suspect that this is entirely an issue with KSP's sky. It also seems to write to the depth buffer (no "zwrite off"), and seems to be on the transparent render queue. It is quite annoying; I see why you decided to eliminate it Yea it's quite the pain. Try it with the scatterer sky and see if anything changes, though I'm not sure if the scatterer sky writes 1 to the alpha channel, or writes it's own values from older versions where I was using alpha blending. Quote Link to comment Share on other sites More sharing options...
rbray89 Posted November 7, 2015 Share Posted November 7, 2015 (edited) Yea it's quite the pain. Try it with the scatterer sky and see if anything changes, though I'm not sure if the scatterer sky writes 1 to the alpha channel, or writes it's own values from older versions where I was using alpha blending.Hmmm... Tried toying around with scatterer, but I don't know enough about it's workings to say if this is what I should be doing.Extinction shader goes first, extinguishes alpha, keeps color blend mode/ Compiled shader for all platforms, uncompressed size: 22.5KBShader "Proland/Atmo/SkyExtinction" {SubShader { Tags { "QUEUE"="Transparent-6" } // Stats for Vertex shader: // d3d11 : 10 math // d3d9 : 14 math // Stats for Fragment shader: // d3d11 : 48 math, 2 branch // d3d9 : 68 math, 2 texture Pass { Tags { "QUEUE"="Transparent-6" } ZTest False ZWrite Off Cull Front Blend DstColor Zero, Zero ZeroPlanet is re-rendered next, writing brightness to alpha.Shader "EVE/PlanetLight" { Properties { _Color ("Color Tint", Color) = (1,1,1,1) } Category { Lighting On ZWrite Off Cull Back Blend SrcColor SrcAlpha, One Zero Tags { "Queue"="Transparent-5" "RenderMode"="Transparent" "IgnoreProjector"="True" }Sky is last. Now addition is dependent on framebuffer alpha. Here, we could also try reversing it to "Blend One OneMinusDstAlpha" and reversing the alpha writing in the planet shader to write dark areas as "1".// Compiled shader for all platforms, uncompressed size: 52.6KBShader "Proland/Atmo/Sky" {SubShader { Tags { "QUEUE"="Transparent-3" } // Stats for Vertex shader: // d3d11 : 10 math // d3d9 : 14 math // Stats for Fragment shader: // d3d11 : 163 math, 1 texture // d3d9 : 243 math, 11 texture Pass { Tags { "QUEUE"="Transparent-3" } ZTest False ZWrite Off Cull Front Blend OneMinusDstAlpha One- - - Updated - - -Ok, got it. had to move my shader to Geometry+1:Javascript is disabled. View full albumThis is still with the queues being moved around as well, so I don't know for certain how much the new alpha changes are helping.Interestingly, Mun now glows with a slight tint of whatever the sun is. Pretty cool actually. Edited November 7, 2015 by rbray89 Quote Link to comment Share on other sites More sharing options...
Red Iron Crown Posted November 7, 2015 Share Posted November 7, 2015 Not to interrupt the greek-to-me discussion about the technical details you guys are having, but those pics of the Mun viewed through the atmosphere look fantastic. Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 7, 2015 Author Share Posted November 7, 2015 (edited) ImagesHoly **** that looks beautiful, especially the second image. Mun looks overblown to full white though. Can you try this with laythe and Jool?Also, not sure what you mean with the mun glowing with a slight tint of the sun, but that is a byproduct of the extinction shader (it should get more noticeable nearing the horizon), unless you mean something else... Edited November 7, 2015 by blackrack Quote Link to comment Share on other sites More sharing options...
pingopete Posted November 7, 2015 Share Posted November 7, 2015 Damn this looks good guys please carry on doing what you're doing! One question though as it may be relevant to load orders and buffers and stuffs.. there bug with scatterer and RasterPropMonitor. I get the feeling it's something that's inherent to the way scatterer is rendered. It would seem RPM can't load multiple instances of atmosphere at different angles or in 2D while loading in the 3D main view as the RPM view's atmosphere appears as it should based on the kerbals IVA viewing angle and changes as the IVA view changes. You may well have known about this but just thought it might be worth mentioning in case there's any other changes to depth buffers or load orders that might fix/mitigate this (BTW in case you didn't notice I'm like 143x less smart than you guys about the above so I probs made a number of mistakes with terminology ) Quote Link to comment Share on other sites More sharing options...
Proot Posted November 7, 2015 Share Posted November 7, 2015 I'm looking at those pics and I'm like...You guys rulez. Eternal kudos. Quote Link to comment Share on other sites More sharing options...
Poodmund Posted November 7, 2015 Share Posted November 7, 2015 There is a comment in that Imgur gallery:zolfo: several pictures of nothing, try again -1Oh how that guy could not be more wrong. Its pretty amazing you are getting this to work so well. Quote Link to comment Share on other sites More sharing options...
Wavechaser Posted November 7, 2015 Share Posted November 7, 2015 (edited) There are alias and random black bars over the edge of the terrains in far background. Not sure how to fix. Like this, especially when you zoom in a lot (second img), or even at raw resolutions.Javascript is disabled. View full albumI have AVP installed with medium textures and a couple optional features (like auroras), with 8x anti-aliasing. I do have a bunch other graphics mods (HotRockets, Ven's Stock Part Revamp, Destruction FX, Engine Light, Collision FX and a couple others), but I doubt that they would have caused this.My machine runs on Windows 8.1, with 4720HQ, GTX 960M and 16GB DDR3-1600. This happens in both Forced OpenGL and not Forced OpenGL (DX11, I assume?). Any idea what to do? Edited November 7, 2015 by Wavechaser Quote Link to comment Share on other sites More sharing options...
Goddess Bhavani Posted November 8, 2015 Share Posted November 8, 2015 (edited) I've been using Scatterer happily for a couple of months and the dawn and dusk effects are just spectacular.Recently when running DX11 I've had a game suddenly slow down during atmospheric flight and then the clouds turned black; EVE itself works fine but whenever I run Scatterer on this instal I will see black sky above the clouds and no amount of reinstalling EVE or tweaking BoulderCO clouds settings could restore the normal sky.Is there a fix for the 'black sky' issue?Edit: Fixed - searched the thread and confim loading a craft, zooming the camera out to orbit and back restores the normal sky.Edit 2 I do have one other request - Can i make the 'background fog' effect on Kerbin more prominent at midday? Currently the default settings look most glorious at dawn and dusk only. Edited November 8, 2015 by pandoras kitten fixed :) Quote Link to comment Share on other sites More sharing options...
_Augustus_ Posted November 8, 2015 Share Posted November 8, 2015 No matter what I do, I still have the moire effect on OpenGL regardless if forceoffaniso is enabled or not. Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 8, 2015 Author Share Posted November 8, 2015 Damn this looks good guys please carry on doing what you're doing! One question though as it may be relevant to load orders and buffers and stuffs.. there bug with scatterer and RasterPropMonitor. I get the feeling it's something that's inherent to the way scatterer is rendered. It would seem RPM can't load multiple instances of atmosphere at different angles or in 2D while loading in the 3D main view as the RPM view's atmosphere appears as it should based on the kerbals IVA viewing angle and changes as the IVA view changes. You may well have known about this but just thought it might be worth mentioning in case there's any other changes to depth buffers or load orders that might fix/mitigate this (BTW in case you didn't notice I'm like 143x less smart than you guys about the above so I probs made a number of mistakes with terminology )Scatterer gets the properties of the main camera (position, view direction, field of view) and renders the effects for that particular camera. So when the effect is viewed from another camera it looks completely wrong. In the future I might make it render separately for each RPM/custom camera.There are alias and random black bars over the edge of the terrains in far background. Not sure how to fix. Like this, especially when you zoom in a lot (second img), or even at raw resolutions.http://imgur.com/a/DRUFRI have AVP installed with medium textures and a couple optional features (like auroras), with 8x anti-aliasing. I do have a bunch other graphics mods (HotRockets, Ven's Stock Part Revamp, Destruction FX, Engine Light, Collision FX and a couple others), but I doubt that they would have caused this.My machine runs on Windows 8.1, with 4720HQ, GTX 960M and 16GB DDR3-1600. This happens in both Forced OpenGL and not Forced OpenGL (DX11, I assume?). Any idea what to do?I believe this is because the depth buffer is aliased compared to the main buffer, so when the effects are lined up they "don't match". Never tried it myself but you could try disabling regular AA and using downsampling/nvidia SDR instead.I've been using Scatterer happily for a couple of months and the dawn and dusk effects are just spectacular.Recently when running DX11 I've had a game suddenly slow down during atmospheric flight and then the clouds turned black; EVE itself works fine but whenever I run Scatterer on this instal I will see black sky above the clouds and no amount of reinstalling EVE or tweaking BoulderCO clouds settings could restore the normal sky.Is there a fix for the 'black sky' issue?Edit: Fixed - searched the thread and confim loading a craft, zooming the camera out to orbit and back restores the normal sky.Edit 2 I do have one other request - Can i make the 'background fog' effect on Kerbin more prominent at midday? Currently the default settings look most glorious at dawn and dusk only.Short answer: you can't right now. Long answer: it's complicated, sorry if I'm being brief but it's supposed to be that way on dawn and dusk, however it's not completely realistic right now as it doesn't take into account whether you're looking towards the sun's direction or opposite to it.Quick example from outerra and the alps:Close to sunset, looking in the sun's direction, very prominent scatteringLooking opposite to the sun's direction, strong light reflecting off the terrain "mutes" the scattering effectsThis isn't currently taken into account in scatterer and the alpha blending kind of negates all of these things. This is one of the reasons I wanted to try HDR, as it would achieve this effect "natively", but it didn't work very well and the terrain looked really bad and reflected light in an unnatural way. I thought of some other ways of approximating this and making the effect adjustable based on time of day and viewing angle to the sun and might be doing something for this later.No matter what I do, I still have the moire effect on OpenGL regardless if forceoffaniso is enabled or not.Moire effect isn't supposed to be affected by forceoffaniso, moreover, since a few versions ago forceoffaniso is useless and only lowers the video quality. Hence why I removed it from the UI. It's still in the config files but there's no reason to use it. Quote Link to comment Share on other sites More sharing options...
Wavechaser Posted November 8, 2015 Share Posted November 8, 2015 Scatterer gets the properties of the main camera (position, view direction, field of view) and renders the effects for that particular camera. So when the effect is viewed from another camera it looks completely wrong. In the future I might make it render separately for each RPM/custom camera.I believe this is because the depth buffer is aliased compared to the main buffer, so when the effects are lined up they "don't match". Never tried it myself but you could try disabling regular AA and using downsampling/nvidia SDR instead.Short answer: you can't right now. Long answer: it's complicated, sorry if I'm being brief but it's supposed to be that way on dawn and dusk, however it's not completely realistic right now as it doesn't take into account whether you're looking towards the sun's direction or opposite to it.Quick example from outerra and the alps:Close to sunset, looking in the sun's direction, very prominent scatteringhttp://i.imgur.com/KDmnfln.jpgLooking opposite to the sun's direction, strong light reflecting off the terrain "mutes" the scattering effectshttp://i.imgur.com/iEk0WFS.jpgThis isn't currently taken into account in scatterer and the alpha blending kind of negates all of these things. This is one of the reasons I wanted to try HDR, as it would achieve this effect "natively", but it didn't work very well and the terrain looked really bad and reflected light in an unnatural way. I thought of some other ways of approximating this and making the effect adjustable based on time of day and viewing angle to the sun and might be doing something for this later.Moire effect isn't supposed to be affected by forceoffaniso, moreover, since a few versions ago forceoffaniso is useless and only lowers the video quality. Hence why I removed it from the UI. It's still in the config files but there's no reason to use it.Thanks. I'll try that. Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 8, 2015 Author Share Posted November 8, 2015 Heads-up: For people who are interested, I just made the sky tonemapper into a separate plugin and fixed the previous problems with it.http://forum.kerbalspaceprogram.com/threads/138701 Quote Link to comment Share on other sites More sharing options...
Squiggsy Posted November 9, 2015 Share Posted November 9, 2015 (edited) Hello, I have been trying to get this to work on Ubuntu 15.04 in RSS here and there over the last couple of days and every time I try to load up the game after adding it it doesn't seem to actually load scatterer, but the framerate drops to about 1 frame every 3 seconds. My computer has always run it fine in the past on Windows so I was wondering if it was something to do with Linux? This was one of my favourite mods to use when I played on windows and I was hoping it would run even smoother on Linux in 64bit but as I have been learning the more I use Linux nothing ever works right out the box, there's always some silly difficulty to be encountered!So yes I was wondering if anyone else is running Linux and if it works perfectly for you or not? Otherwise it could just be that RSS+Scatterer is too much for my computer, but I'd rather explore other possibilities first because it just doesn't feel right without this mod!Edit: well I just loaded scatterer onto a fresh install of stock KSP and it worked no problems so I guess it is something to do with it not playing ball with RSS (I forgot to mention but I did extract the RSS compatability after the main Scatterer files) I still don't know if it's fixable or down to my computer not being able to handle it though Edited November 9, 2015 by Squiggsy Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 9, 2015 Author Share Posted November 9, 2015 (edited) Hello, I have been trying to get this to work on Ubuntu 15.04 in RSS here and there over the last couple of days and every time I try to load up the game after adding it it doesn't seem to actually load scatterer, but the framerate drops to about 1 frame every 3 seconds. My computer has always run it fine in the past on Windows so I was wondering if it was something to do with Linux? This was one of my favourite mods to use when I played on windows and I was hoping it would run even smoother on Linux in 64bit but as I have been learning the more I use Linux nothing ever works right out the box, there's always some silly difficulty to be encountered!So yes I was wondering if anyone else is running Linux and if it works perfectly for you or not? Otherwise it could just be that RSS+Scatterer is too much for my computer, but I'd rather explore other possibilities first because it just doesn't feel right without this mod!This was already reported a few pages ago by pingopete, I'll get to it as soon as I can. This problem appeared with the newest/second newest version of scatterer as far as I know. Linux probably has nothing to do with it. Edited November 9, 2015 by blackrack Quote Link to comment Share on other sites More sharing options...
Squiggsy Posted November 9, 2015 Share Posted November 9, 2015 This was already reported a few pages ago by pingopete, I'll get to it as soon as I can. This problem appeared with the newest/second newest version of scatterer as far as I know. Linux probably has nothing to do with it.whoops sorry I must have missed that post while looking back through the forums! thank you very much for your response Quote Link to comment Share on other sites More sharing options...
blackrack Posted November 9, 2015 Author Share Posted November 9, 2015 Hmm what's that? Something interesting in the debug console? (disregard the Kerbin settings on duna) Quote Link to comment Share on other sites More sharing options...
Proot Posted November 9, 2015 Share Posted November 9, 2015 (edited) Is that multiplanet working? Edited November 9, 2015 by Proot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.