Guest Posted October 6, 2020 Share Posted October 6, 2020 I'm very excited to download Parallax in a couple of weeks! As it will come to stock! How often do you plan to update it to current version of KSP? I don't wanna be that guy to poke though so feel free to not answer. Quote Link to comment Share on other sites More sharing options...
ValiZockt Posted October 6, 2020 Share Posted October 6, 2020 (edited) 1 hour ago, The Doodling Astronaut said: I'm very excited to download Parallax in a couple of weeks! As it will come to stock! How often do you plan to update it to current version of KSP? I don't wanna be that guy to poke though so feel free to not answer. I guess making promises would only make things worse in the end. So I think it’s safe to say: Updates will appear for new KSP version (if they are needed) when they are ready. Setting ETAs would only result in people pestering more when a „deadline“ wasn’t met. Edited October 6, 2020 by ValiZockt Quote Link to comment Share on other sites More sharing options...
Deddly Posted October 6, 2020 Share Posted October 6, 2020 Even though I can't run this mod, I have donated to encourage development because I would love to see it come to stock. I encourage everyone else who is patiently waiting to do the same Quote Link to comment Share on other sites More sharing options...
Kerminator K-100 Posted October 6, 2020 Share Posted October 6, 2020 6 hours ago, Deddly said: Even though I can't run this mod, I have donated to encourage development because I would love to see it come to stock. I encourage everyone else who is patiently waiting to do the same Sadly I can't afford to donate, as I am on a tight budget. I would love to support @Gameslinx in any other way though! Quote Link to comment Share on other sites More sharing options...
Guest Posted October 6, 2020 Share Posted October 6, 2020 29 minutes ago, Kerminator1000 said: Sadly I can't afford to donate, as I am on a tight budget. I would love to support @Gameslinx in any other way though! spread the word to KSP friends about the awesome mod and tell them to get it. Quote Link to comment Share on other sites More sharing options...
DuoDex Posted October 6, 2020 Share Posted October 6, 2020 Hi @Gameslinx. Would you consider releasing your configs (not the mod itself!) under a different license so that people can use them as a template for other planet packs or for the stock system? Right now the only configs must be created from a blank file... Quote Link to comment Share on other sites More sharing options...
Morphisor Posted October 9, 2020 Share Posted October 9, 2020 On 10/5/2020 at 6:09 PM, MorePortal said: Okay, I finally worked it out. To use it with SD, you need to increase "groundTiling" in the SD config (My rescale factor is 3.2, and "groundTiling=10" worked for me. Maybe the actual value is 3.2^2=10.24 (That would make sence), but I'm okay with 10) Reveal hidden contents I'm really curious why you feel that adjusting the groundTiling setting is necessary? Care to explain, as I'm not seeing any issues without changing that? Quote Link to comment Share on other sites More sharing options...
MorePortal Posted October 10, 2020 Share Posted October 10, 2020 10 hours ago, Morphisor said: I'm really curious why you feel that adjusting the groundTiling setting is necessary? Care to explain, as I'm not seeing any issues without changing that? Here is why: On 9/28/2020 at 10:00 PM, MorePortal said: There is no problem with textures, they seem to work: Reveal hidden contents (with big planets) (without big planets) Lighting also seem to work The only problem is "bumpiness" of the surface: Reveal hidden contents (with big planets) (without big planets) That's why I thought I can fix this with config Quote Link to comment Share on other sites More sharing options...
Morphisor Posted October 10, 2020 Share Posted October 10, 2020 3 hours ago, MorePortal said: Here is why: I tried setting the rescale config to both groundtiling = 10 and groundtiling = 1. But I could not see any difference within a few comparison screenshots I made. So I'm really not sure what effect this has, if any. Quote Link to comment Share on other sites More sharing options...
MorePortal Posted October 10, 2020 Share Posted October 10, 2020 20 minutes ago, Morphisor said: I tried setting the rescale config to both groundtiling = 10 and groundtiling = 1. But I could not see any difference within a few comparison screenshots I made. So I'm really not sure what effect this has, if any. For some reason, it loaded immediately when I chanded this setting for the first time. So I just checked and "groundtiling" actually doesn't have any effect What actually happends for me is a delay between this: Spoiler and this: Spoiler It only loads when I move for some time, if i'm not moving - it doesn't (I think so) And there is no message in the console at the moment of loading Quote Link to comment Share on other sites More sharing options...
Gameslinx Posted October 13, 2020 Author Share Posted October 13, 2020 I'm working on Parallax configs for the stock planets now Quote Link to comment Share on other sites More sharing options...
Deddly Posted October 13, 2020 Share Posted October 13, 2020 That looks absolutely fabulous, @Gameslinx Quote Link to comment Share on other sites More sharing options...
Robban279 Posted October 14, 2020 Share Posted October 14, 2020 10 hours ago, Gameslinx said: I'm working on Parallax configs for the stock planets now Just wanna say THANK YOU!! Thank you so much for this!! Quote Link to comment Share on other sites More sharing options...
Kerminator K-100 Posted October 14, 2020 Share Posted October 14, 2020 YES!!! You are a great man @Gameslinx (or woman, idk) Quote Link to comment Share on other sites More sharing options...
Diddly Feelerino Posted October 14, 2020 Share Posted October 14, 2020 On 10/13/2020 at 9:22 PM, Gameslinx said: I'm working on Parallax configs for the stock planets now My body is ready Quote Link to comment Share on other sites More sharing options...
Chubby_Hamster Posted October 16, 2020 Share Posted October 16, 2020 On 10/13/2020 at 11:22 PM, Gameslinx said: I'm working on Parallax configs for the stock planets now Wow Quote Link to comment Share on other sites More sharing options...
OnlyLightMatters Posted October 16, 2020 Share Posted October 16, 2020 On 10/13/2020 at 10:22 PM, Gameslinx said: I'm working on Parallax configs for the stock planets now OMG I'm dying to have this rendering in my games! Quote Link to comment Share on other sites More sharing options...
VonFrank Posted October 16, 2020 Share Posted October 16, 2020 On 10/13/2020 at 4:22 PM, Gameslinx said: I'm working on Parallax configs for the stock planets now That looks incredible! Cant wait to see this running in stock. With proper documentation on how the config files work, can the settings be customized to apply to any planet? Quote Link to comment Share on other sites More sharing options...
The Minmus Derp Posted October 16, 2020 Share Posted October 16, 2020 On 10/14/2020 at 10:11 AM, Kerminator1000 said: YES!!! You are a great man [ping] (or woman, idk) He is a man, I've heard his voice on youtube. Quote Link to comment Share on other sites More sharing options...
Gameslinx Posted October 19, 2020 Author Share Posted October 19, 2020 While I've been working on the stock textures, I've also been working on optimizing Parallax. Currently, the shader does 60 texture samples per pixel. As far as shaders go, that's quite a lot! If you want the technical details, they're in the spoiler below: Spoiler Parallax uses a technique called Triplanar Mapping to avoid texture stretching. Compared to regular UV mapping (which requires 1 texture sample), Triplanar mapping requires 3. One for the XY, XZ and ZY axis. To reduce the effect of texture tiling you may notice that the textures are tiled at different levels as you zoom out. What I do here is sample the textures again at a different scale, then interpolate between the two. This doubles the amount of texture samples. A triplanar texture requires 3 samples, and the zoom requires another 2. In total, that's 6 samples for 1 texture. So, we have 4 surface textures, a displacement texture and an influence texture. We also have 4 surface normal maps. That's 10 maps, thus 60 texture samples. On lower end GPUs, this is very slow and actually takes longer than the tessellation stage! I'm currently halfway through implementing a situational method which I'm calling Adaptive Parallax. When the terrain is built, I can determine whether a quad (a square patch of terrain) lies in the low, mid or high region on the planet (set in the config already). If a quad is completely within the Low region, there's no need to sample the mid and high textures! This reduces the texture sample count by 24 already. By comparing a quad's maximum vertex height to its minimum vertex height, I can determine a gradient. Under a certain value, we can consider a quad to be "flat". Now we don't need to sample the steep texture either! This reduces the texture sample count by 36. Now we've cut down on the texture samples by over half! However, not all quads lie in one region, and not all of them are flat. I'm currently writing some shader variants that are selected under the following conditions: Adaptive Parallax Conditions: Requires 24 samples: - Quad is flat, and lies in 1 region Requires 36 samples: - Quad is not flat, and lies in 1 region Requires 48 samples: - Quad is not flat, and lies in 2 regions Requires 60 samples (Current Parallax): - Quad is not flat, and lies in all 3 regions I've not implemented the new technique fully yet, so expect results to differ, however this is what Kerbin looks like if I colour terrain quads by their situation: The colours merely indicate the situation, not performance impact. I hope to provide more results for you all soon, and I'm very excited if I can get it working fully. I am estimating a 2x performance uplift Quote Link to comment Share on other sites More sharing options...
alberro+ Posted October 19, 2020 Share Posted October 19, 2020 (edited) 9 hours ago, Gameslinx said: While I've been working on the stock textures, I've also been working on optimizing Parallax. Currently, the shader does 60 texture samples per pixel. As far as shaders go, that's quite a lot! If you want the technical details, they're in the spoiler below: Reveal hidden contents -snip- I've not implemented the new technique fully yet, so expect results to differ, however this is what Kerbin looks like if I colour terrain quads by their situation: Stuff like this is what keeps KSP alive after so many years, Keep it up! Spoiler good god i need this for jnsq Edited October 19, 2020 by alberro+ Quote Link to comment Share on other sites More sharing options...
Gameslinx Posted October 20, 2020 Author Share Posted October 20, 2020 (edited) I have done some optimizations and managed to increase the performance by over 2x! I'm super happy to have this (almost!) working now. Using the Adaptive Parallax method above, I've made some immense optimizations to the shader. I've gone from 15fps on Kerbin to a fairly stable 55. My current specs are fairly poor. I'm at university now, so I don't have access to anything powerful. I'm running a mobile (laptop) GT 970M GPU. I am excited to be able to drop the minimum spec significantly given this immense performance uplift. As a bonus, here's Duna! Note: Getting 60fps here on Duna! Edited October 20, 2020 by Gameslinx Quote Link to comment Share on other sites More sharing options...
Gojira Posted October 20, 2020 Share Posted October 20, 2020 Consider me hyped Quote Link to comment Share on other sites More sharing options...
Beetlecat Posted October 20, 2020 Share Posted October 20, 2020 This is so great! Quote Link to comment Share on other sites More sharing options...
mcwaffles2003 Posted October 21, 2020 Share Posted October 21, 2020 Out of curiosity... Grass? 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.