lghassen / singularity Goto Github PK
View Code? Open in Web Editor NEWRay-traced black hole shader for KSP
License: Other
Ray-traced black hole shader for KSP
License: Other
[EXC 07:13:24.990] UnityException: RandomRangeInt is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'SingularityUI' on game object 'SingularityUI'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.Random.Range (System.Int32 min, System.Int32 max) (at <12e76cd50cc64cf19e759e981cb725af>:0)
Singularity.SingularityUI..ctor () (at <9979393ee651429dad328b68f1d0ef0e>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.GameObject:AddComponent(Type)
AddonLoader:StartAddon(LoadedAssembly, Type, KSPAddon, Startup)
AddonLoader:StartAddons(Startup)
AddonLoader:OnLevelLoaded(GameScenes)
AddonLoader:OnSceneLoaded(Scene, LoadSceneMode)
UnityEngine.SceneManagement.SceneManager:Internal_SceneLoaded(Scene, LoadSceneMode)
There appears to be some strange behavior with the shader when multiple bodies have it applied.
When viewing a body with the shader applied which from the cameras point of view, is behind another body with the shader applied, any part of the farther away body which is occluded by the closer bodies lensing field, will end up invisible.
https://i.imgur.com/FTr1IFT.mp4 like this
This happens in the tracking station, flight map view and regular flight view.
However is some occasions, to which I haven't yet found out what causes them, the lensing field will be tinted a dark shade, making it visibly stand out from the universe, in this state, objects behind it are visible. However moving the camera inside the lensing field while facing another object with the shader applied, will yield a still image with orbit lines all over the screen.
https://i.imgur.com/SQwhLM6.mp4 like this.
It sometimes stays like this for a while, sometimes stops within minutes after loading the game.
Some weird glitched orbit halo also occurred a few times but I haven't been able to reliable (or at all) replicate it.
https://i.imgur.com/l4O493r.mp4
There also appears to be an issue with regular planets which don't have the shader applied.
When viewed in the tracking station, it works like normal.
https://i.imgur.com/drn8WGS.mp4
However when viewed in the map view in flight, while the player controlled craft is orbiting somewhere completly else, it also does the invisibilty thing
https://i.imgur.com/duYeIbW.mp4
It might have something to do with sunlight, as timewarping while orbiting around jool caused the effect of the wormhole located around it, to flip on and off
https://i.imgur.com/9VLH9ix.mp4
Used is KSP version 1.10.1
Mods aside from singularity:
Kopernicus and kopernicus expansion and kittopia for 1.10.x
KER/KAC/TWP
Endurance parts
Restock
Event horizon
CTTP
Hyperedit.
However A test with only the mods required to run a stiripped down version of EH (only the BH and wormholes and the 2 stars), resulted in similar weird things
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.