Jump to content

plonk

Members
  • Posts

    33
  • Joined

  • Last visited

Reputation

18 Good

Profile Information

  • About me
    Curious George

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Jhaxxar Have you tried to copy, paste and run the example code from the docs? Here's the link again: simple-example Try running it with a console window opened and the telemetry window opened. If the cosine plot appears in the plot window, all's fine. If not, you'll probably get some error messages either in the console window (as I do), or in case of compiler related error messages in the mod's main window under "reboot errors". The "telemetry" window is essentially a plotter, providing some convenient features like autoscaling and JSON export of its data. For each plot you'll have to create a TimeSeries Object by callingthe add_time_series function. Once you've got the TimeSeries Object, you provide your datapoints by calling the object's add_data function. At least that's what the example programs do. But currently it's broken in version 0.4.1.3, at least on my side - for the error message see my last post.
  2. Am I assuming correctly that you too get this error when calling add_time_series() ? >>>>> ERROR <<<<<<<<< Module plonk::testgraphs terminated with: Object reference not set to an instance of an object And are using version 0.4.1.3 as I am? If so, I'll file an issue on github. I can't even make the example code from the docs (simple-example) work.
  3. Yes, yes, yes! Automation for KSP2! That's better news than KSP2 release. Oh, what a crapload of kOS (and load of crap kOS) code there is to port over. Thank you very much, @Untoldwind, as you gave me a reason, or should I say an urge, to try out KSP2 again. Although I bought and installed it on day 0, for me KSP 2 alone has yet too few to offer to even think about playing it. Seemingly things have changed now. I am really looking forward to playing around with TO2.
  4. I've been following this thread since first release but did not dare to try out this mod on my ancient (12+ yrs) machine. Until 1.12 started wrecking ships and made some planes jump around like bitten by a snake in my career game. I tried to narrow down if there's a mod responsible for those problems(it's not). But hey, I was on the edge of throwing KSP out the window anyway and had made a seperate installation, so it decided to try it out. Then a big smile went over my face! Never thought it would run decently on a GTX660 full of years old dust, but it surely does! And it does run pretty smoothly as long a there are not too many lights around. I was very impressed, and I still am. Thank you very much @Gameslinx, for making my day. This fine mod almost made me forget the annoyances with KSP 1.12.1 Keep up the great work!
  5. Yes! Fix confirmed. Great work @R-T-B, thank you very much! Replacing the sunflare works fine, too. Astroniki's sunflare is back!
  6. Actually, terrain geometry is occluding the flare, too. I should have posted better images. Added two more to the gallery linked in my previous post. While providing new sample images, I've discovered another oddity: if moving the camera towards the ship (see image #4 vs.image #5) the sun (not the logical lightsource itself) disappears. Edit: I cannot pinpoint situations where the flare disappears while the sun is over the horizon (like img #4 & #5), yet. I'll report as soon as I see the pattern
  7. That's totally understandable. Sure thing! Have a look at the images on Imgur Big thanks for your efforts!
  8. It's so good to have scatterrer back scattering! KSP simply feels wrong without it. But on my install, lenseflares are still occluded by geometry. Interestingly, in map view lensflares are rendered correctly. I tried unofficial Releases V1.41 nvidia shadow hotfix, and V1.3, both with dx9 and dx11. My machine is pretty old and limited though, having 8G RAM and a GTX660 with 2Gig. Despite of this, the occlusion issue didn't occur with KSP 1.8. Anyone out there, running KSP 1.9.1 with scatterer on an ancient GTX660 without this bug? KSP.log on paste2.org
  9. If I may add, most decent editors can record, save, and exec saved macros (e.g. Sublime Text). You have a pretty good usecase for them here. Text replacements via RegEx can also come in very handy every now and then.
  10. Hi, and welcome to the forums. Sure. It's essentially derived of the configs I've found in this thread. I don't remember anymore which user provided the base works for this particular config, so thanks to all users that provided configs. You should also try out others' configs, and modify or merge them. Be sure to check the output of the debug console (alt F-12) or the KSP log to identify unsupported config sections/shaders. For example, I run into problems if I try to use Eye_Adaptation. Hope this helps,and here you go:
  11. Not really, but some kind of. You need to prepare mask images and config files for the parts though. See another Mod, namely TU Stock Recolor which is part of the TU Recolor Depot available here: It comes with a simple GUI that enables you to tint (not replace) colors, adjust reflectivity and metalness in the VAB/SPH. It's not too comfortable to work with, but it does the job. Here's a screenie of TU + TU Stock Recolor in action, running on my old GTX660. I've assigned the chrome, grey and green colors using Stock Recolor's unified switching GUI. Here is an example of a mask, converted from dds (TURD\TU_Stock_Recolour\Command\MK2 Cockpit Standard\131_mk2Cockpit_Standard_Paint.dds) to png (via tga): Once you've got the masks set up, you need to either add a config patch or directly modify 141_Standardised_Recolour.cfg to add TU Stock Recolor functionality to each of your parts. If you want to create masks for stock parts, have a look at DDS Utilites here https://developer.nvidia.com/legacy-texture-tools. You can use readdtx.exe to convert dds textures to tga, and nvdtx.exe to convert back to dds format. Hope this helps. Thank you very much for your reply! I've got VS 2017 and Unity running, and even step debugging of my first "hello world" mod is working in VS, when running it in KSP, too. Now the hard part is getting into unity, and understand how it interops with KSP and Mods. Luckily there are lots of mods to dissect, like for example TU. This will take it's time, but I think I am on track. Will report back, as soon as I've managed to modify the shaders/SRP and use them in KSP (, or completely fail at it for some weeks).
  12. That's, great. Meanwhile I've began to read into how Unity's graphics works, but there's no way of trying things out at the moment. Sadly, spare time is rare. I didn't install Unity, or Visual Studio, yet. And if I'd do, I'd have no Idea how to set up an environment to test KSP mods and shaders. So please let me rephrase: " Maybe someone can give a pointer / links to a condensed guide to get started modding KSP and its shaders?". I'm probably going to make a fool of myself again, but I've been using Notepad++ without syntax highlighting, and found out most using "search in files" so far. I didn't anticipate how deep the rabbit hole goes when I started. Should've known better. All this started simply because I couldn't believe that the shadow map can't be used to inhibit the specular highlight, completely unaware of how Unity works. After some searching, it seems IDE support is rare and often limited to GLSL. At least in the OSS domain. Maybe Visual Studio does a good job, since HLSL is developed by Microsoft. In the meantime, I've been reading some stuff and think the places I've found are the right ones, but changing them is wrong. Found a seemingly brilliant tutorial, which also covers the built-in shaders, and tweaking them. Now I think, modifications have to be carefully inserted into the "scriptable render pipeline" - as opposed to modify the library files. ( I've no practical experience at all in dealing with unity. So my view may be completely BS, still!) I'm still thinking, there's hope to get rid of shadowed spec. highlights, at least in space where there's no atmosphere, having the brightest spot exactly at sun's location (as atmo reflections must not be affected by shadows). See the aforementioned tutorials here: https://catlikecoding.com/unity/tutorials/. I think they're pretty promising. For info on the scriptable rendering pipeline, visit: https://catlikecoding.com/unity/tutorials/scriptable-render-pipeline/ In my naive read-through, I've got the impression that FragmentGI does not take atten (and therefore direct light occlusion) into any account, except returning it in the UnityGlobalIllumination struct. I did not find a place where it affects the specular highlight of the main light in any way, yet. Seems to always get down to one of FragmentGI in UnityStandardCore.cginc and finally one of the UnityGI_* functions defined in CGIncludes/UnityGlobalIllumination.cginc Yes, you're definitely right. But (my) KSP has only one light source supporting a shadow, the directional light of the sun. There's also a distinction between the directional "main light" and other lights in the docs and tutorials, but I'm not yet experienced enough with Unity/KSP to really judge what's going on. #ifdef (and other) overkill. @Shadowmage Please nudge me towards correct directions if I'm getting things wrong. As far as Unity is concerned, I feel like an eunuch right now. I have a rough understanding of how it works, but I can't do it.
  13. I'm neither a KSP modder, nor a gpu-shader wiz of any degree, nor do I know much Unity3D specifics. But I do know pretty much of the maths and many techniques involved in CG, and I'm experienced in C-like syntaxes (A couple of years ago , I've developed some CPU based raytracing and raymarching visualisations of x-ray CT and MRT volume data [C/C++/Java], and have played a little with WebGL). So I went on a little adventure, reading "alien code", after I've downloaded the built-in shaders' sources (here, took Version 5.4.0 built-in shaders) and digged through the code. I dug through small parts of TU to find out what it actually customises, too. Not too deeply though. Tricky, but interesting stuff. This is dragging me into a deep abyss! Curiosity kills the cat. To whom it may concern, my modest findings (WARNING: might be complete BS) : Although it's extremely interesting and tempting, I do not want it's probably not a good idea to extend this topic here in this thread, since it doesn't seem to be a TU specific topic, and I'm far from beeing an expert on shaders. It's fun anyway. Maybe someone can give a pointer / links to a better choice of thread?
  14. That sounds a little odd, probably because I've wrong assumptions about rendering in KSP/Unity. My first bet would have been, that the information stored in the sun's shadow map would suffice to decide if a point is lit directly by it's light or not. At least in (unoptimized) theory, shadow maps are geometry agnostic, too. Looks great anyway. Guess, I'll browse the Unity docs for a while, to get a rough understanding of it's rendering pipeline. Just out of curiosity. Thanks!
  15. Looking for advice: I noticed, that specular highlights from the sun appear in shadowed areas. They are dimmer than in lit areas, but they are still very visible. Is there a way to dial their intensity down when in shadow, maybe via config?
×
×
  • Create New...