MOARdV / AvionicsSystems

MOARdV's Avionics Systems for Kerbal Space Program - a new generation of IVA enhancement.
Other
52 stars 26 forks source link

All Linux instances: Project is affected by the corrupted text issue #336

Open cx405 opened 3 years ago

cx405 commented 3 years ago

Both current RasterPropMoniitor(adopted) and your project are affected by this bug: https://github.com/JonnyOThan/RasterPropMonitor/issues/12

I have installed and tested both. On Russian version of KSP 1.11.1, I get these "effects" with MAS:

Screenshot_20210608_170405

This is on current NixOS x64, GOG KSP 1.11.1. GPU is amd rx570 8gb, I get no other graphical issues in game with text or else.

Mods: KSP: 1.11.2 (Unix) - Unity: 2019.2.2f1 - OS: Linux 5.11 NixOS 20.09.3945.e6911eaed6b 64bit ClickThroughBlocker - 0.1.10.15 USI Tools - 1.4 ToolbarControl - 0.1.9.4 Aviation Lights - 4.1.2 Community Category Kit - 5.2 Community Resource Pack - 1.4.2 CommunityTechTree - 3.4.3 Easy Vessel Switch - 2.2.7689.40431 Firespitter - 7.17 HideEmptyTechTreeNodes - 1.3 HullcamVDSContinued - 0.2.1.1 KAS - 1.7.7516.37663 Kerbal Inventory System - 1.28.7685.40880 KRASH - 0.5.33.3 KSP-AVC Plugin - 1.4.1.5 KSP_Proximity - 0.3.3 MOARdV's Avionics Systems - 1.2.3 Docking Port Alignment Indicator - 6.9.2.2 SCANsat - 1.20.4 Soundtrack Editor - 4.3 Soundtrack Editor Forked - 4.7.1.4 RecycledParts - 0.2.1 ButtonManager - 0.0.1 SpaceTuxLibrary - 0.0.6 VesselModuleSave - 0.0.1.1 TokamakIndustries - 0.2.0.2 Trajectories - 2.4 USI Core - 1.4 Asteroid Recycling Tech - 1.4 USI Exploration Pack - 1.4 Freight Transport Tech - 1.4 Karbonite - 1.4 Konstruction - 1.4 USI-LS - 1.4 MKS - 1.4.1 Malemute Rover - 1.4 Waypoint Manager - 2.8.2.7 [x] Science! - 6.0.0.6 kOS - 1.3.2

Logs (started game, started new sandbox game, went to VAB, loaded stock KerbalX and went into cabin, then exited):

Player.zip

ModuleManager.zip

glxinfo.zip

somerandomdev49 commented 1 year ago

Will this ever be fixed? (If it's a problem with MAS specifically (which I doubt)) If this is a problem with some other dependency or with unity itself, are there any known sources of the bug?

This bug occurs on Intel's integrated graphics too. (Arch Linux, Wayland, Mesa Intel(R) Graphics (ADL-S GT1))

I also noticed that the text is rendered on top of the solid color rectangles sometimes.

(seems like a texture transparency problem to me, or with the shader not discarding transparent pixels because of some linux-specific thing)

I'll gladly help solve this problem if needed :)

MOARdV commented 1 year ago

Will this ever be fixed? (If it's a problem with MAS specifically (which I doubt)) If this is a problem with some other dependency or with unity itself, are there any known sources of the bug?

I don't remember off-hand when I last rebuilt the shader packages MAS uses. It's entirely possible that a Unity update since then has invalidated the Linux shaders. I will try to set aside some time this weekend to get my local Unity instance updated and rebuild the shader packages. I will put a link here when I do, if you could install them and see if they work (I don't have access to a Linux box).

somerandomdev49 commented 1 year ago

Thank you!

JonnyOThan commented 1 year ago

Oh hey. I was also speculating that a new shader package would help, and I’m planning on pushing out a release of RPM in the next few days. If anyone with a Linux machine could test that out I’m sure we’d both be grateful. I’ll post again here when it’s ready.

btw @MOARdV there is a way to build a shader bundle that can be loaded for all platforms. You just need to build for windows and include OpenGL core in the renderer settings in the player settings.

somerandomdev49 commented 1 year ago

I'll be happy to test :)

JonnyOThan commented 1 year ago

Oops, I forgot to post here...RPM 0.31.8 has a re-exported asset bundle. Could you try that one @somerandomdev49 ?

somerandomdev49 commented 1 year ago

I'll try it later today, thanks :D

somerandomdev49 commented 1 year ago

sorry for not trying later today, I totally forgot about this! In the next 24 hours probably!

JonnyOThan commented 1 year ago

I got sort-of-confirmation from one linux user on discord that the new assetbundles fixed the text problem.

somerandomdev49 commented 1 year ago

Yes, updating to the latest PRM version (0.31.9) fixed the issue! 2022-10-18-143448_1920x1080_scrot

MOARdV commented 1 year ago

btw @MOARdV there is a way to build a shader bundle that can be loaded for all platforms. You just need to build for windows and include OpenGL core in the renderer settings in the player settings.

@JonnyOThan I don't remember how to do that - it's been years since I messed with the asset bundle stuff, and I haven't touched it once I got the batch file working.

JonnyOThan commented 1 year ago

btw @MOARdV there is a way to build a shader bundle that can be loaded for all platforms. You just need to build for windows and include OpenGL core in the renderer settings in the player settings.

@JonnyOThan I don't remember how to do that - it's been years since I messed with the asset bundle stuff, and I haven't touched it once I got the batch file working.

edit -> project settings: image