shadowmage45 / TexturesUnlimited

KSP Shader, Texture, and Modeling Utilities
GNU General Public License v3.0
29 stars 17 forks source link

Legacy shader support for older/incompatable systems. #16

Closed pixe1reality closed 6 years ago

pixe1reality commented 7 years ago

Due to Mesa providing only OpenGL 3.0 for systems around > 3 years old on Linux, this has resulted in TexturesUnlimited being nonfunctional in this mode and turning all reflective textures black. This unfortunately may mean systems running OpenGl 3.0 need to revert from the TexturesUnlimited shader to classic Stock shaders to provide functionality. It's a shame, because the new shader is really nice looking.

EDIT: Issue solved, but changed to a legacy reminder.

Electrocutor commented 7 years ago

Mesa added support for OpenGL 3.1 back in 2012...

pixe1reality commented 7 years ago

Guess it might be my system then. Here's glxinfo | grep "OpenGl version" output: OpenGL version string: 3.0 Mesa 17.2.5

As this may be an issue only on my system, it might be a good idea to close it as the issue may not be relevant to TexturesUnlimited development.

shadowmage45 commented 7 years ago

Actually re-opening this one, to remind me to provide some sort of fallback for incompatible systems.

Sadly it will still mean using stock/legacy shaders, but it should allow for users to use mods that include TU without any additional workarounds.

kaa253 commented 7 years ago

Actually I am not sure that OpenGL or Mesa are the real problem for all Linux setups. I also have the black textures in game and I get a lot of texture not founds in the Player.log. Also the header of the log shows; OpenGL: Version: OpenGL 4.5 [4.5.0 NVIDIA 384.98]

Player.log

Minimal KSP_Linux 64 install of Versions https://github.com/shadowmage45/TexturesUnlimited/releases/tag/1.0.0.5 https://github.com/shadowmage45/SSTULabs/releases/tag/0.7.39.147 https://github.com/shadowmage45/SSTULabs/releases/tag/PBR-0.1.0.5

shadowmage45 commented 7 years ago

Interesting....

The 'texture-missing' messages are normal (because stock embeds texture names in the .mu models, and I have long since changed textures to something else).

However, if you have openGL > 3.5, it -should- work. As far as I know it should be using the same shader variants that are built for OSX, and I know that those work just fine.

shadowmage45 commented 7 years ago

Here is a good question that should help me answer where things are failing at --

Does SSTU work fine -without- the PBR expansion? E.g. do the legacy SSTU recoloring shaders still work fine under Linux?

pixe1reality commented 6 years ago

As found in the thread, adding -force-glcore to the launch options enables the shaders to work properly. Will keep this thread open as a reminder for legacy system support for those with less capable PCs.

shadowmage45 commented 6 years ago

Yeah, I have some ideas that might 'fix' the shader pack, but have been unable to find the time to make the changes so far. Hopefully will get a testing shader pack put together in the next day or two.