-
Posts
2,719 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by rbray89
-
Just sent you a PM. I haven't seen the texTile function before... are you sure it isn't shipped with the proland stuff? It isn't a standard cg call, and I don't think it is from the unity cg include. If I had to guess, given that it is using the _Normals, I would say it is getting the normal values (rg) from the normal map.
-
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
Small update, added lighting to atmosphere. Still has the "apply" bug. -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
Ah... I had been thinking about this recently... With cubic-texturing, this can be an issue as you have found. The single-texture all-way tiling is tricky to implement on a texture, and on top of that, it doesn't work well if you want specific detail. I had thought about allowing the different axis to tile different textures. Would this work for you? -
[1.1.2][1-1-2] May 13-2016 EnvironmentalVisualEnhancements
rbray89 replied to rbray89's topic in KSP1 Mod Releases
In my WIP release, shadows are generated using a projector, so they actually affect terrain. -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
Known issue: "The box issue is from some unknown occurrence that I have yet to figure out. Re-apply the layers (alt+e, hit "apply") after you load a vessel and you should be good. Seems to re-set if you go back to the space center." -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
Soooo many things I want to do. So little time -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
The DDS Loader squad implements makes all textures unreadable, so the main texture must be PNG (or ATM must be used) to ensure it will load as readable for volumetric clouds. -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
There is no difference in the x86 and x64 binaries anymore, so I only build "x86"... So have at it -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
Yup! just navigate the GUI to the ocean settings. There you should find color and depth settings. -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
That it does I have to re-map it at some point, but for testing it works. -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
The box issue is from some unknown occurrence that I have yet to figure out. Re-apply the layers (alt+e, hit "apply") after you load a vessel and you should be good. Seems to re-set if you go back to the space center. Not yet, but it is one of the many things I want to address. ALT+E and mess with atmosphere parameters I'll post a guide or video when I get everything setup. Does this *only* happen with OpenGL? Does it go away if you use ALT+E and hit apply? -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
Updated for 1.02. -
[WIP][1.0.5]* RSS Visual Enhancements (RVE)
rbray89 replied to pingopete's topic in KSP1 Mod Development
Those are odd issues... I'll have to look into them. There is at least one issue I know of that occurs when you load a vessel. You have to hit apply before anything will work properly. -
[WIP][1.0.5]* RSS Visual Enhancements (RVE)
rbray89 replied to pingopete's topic in KSP1 Mod Development
Cool! So... I *THINK* the atmosphere that I have implemented has the right amount of haze now. It is also VERY configurable. pretty much endlessly configurable. I just have to add light and color handling now. Let me know what you think! -
WIP - Environmental Visual Enhancements Development
rbray89 replied to rbray89's topic in KSP1 Mod Development
Alrighty, so I uploaded another version for dev testing... I think I have the atmospheric haze down. Now to add light and color. There is still an odd issue that got introduced with 1.0 that makes it so the clouds have to be re-applied in flight. So if you want to try this out, load a vessel, then hit alt+e and hit apply. You can then close the GUI with alt+e -
My guess is that the new shaders from KSP haven't been pulled, so when we run shader replacement, it breaks new shader features Squad added between updates. - - - Updated - - - Hmmm... I never thought about that one. You could manually populate the entries, or you could split the config items into sub-classes and load them individually. Keep in-mind, the configs are organized not by file, but by config node.
-
Don't think that works... Pretty sure it should be localToWorld.Inverse()*cameraToWorld. Remember that the order is inverted for matrix multiplication. Also, I'd probably convert the oceanToLocal to oceanToWorld rather than the change the camera matrix so you don't have to perform an inverse matrix calculation.
-
this doesn't seem right: Looks like you need a cameraToLocal or WorldToOcean instead. // compute ctoo = cameraToOcean transform // also should be correct Matrix4x4d cameraToOcean = localToOcean * cameraToWorld; - - - Updated - - - Oh... Once you get everything working, reference shader params by their ID, not their name. Otherwise it has to do string lookups, and can add a good bit of processing time.