Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Palette .dds Loader doesn't function correctly #311

Closed
Poodmund opened this issue Sep 30, 2018 · 2 comments
Closed

Palette .dds Loader doesn't function correctly #311

Poodmund opened this issue Sep 30, 2018 · 2 comments

Comments

@Poodmund
Copy link

I have been checking upon the functionality of the DDS 4bpp and 8bpp Palette texture format loading, that was incorporated previously, and it seems that it does not seem to work as intended.

I am unsure as to whether the files get loaded at all as when you set a .dds texture in either of these two formats as a colour map the body ends up solid white as shown in the image linked. If you set one as a Biome Map and then toggle the Biome Map overlay, the image does not render at all and the body scaled space texture is just shown.

Image

It seems that the loader is not loading the texture properly as can be seen in this part of the log:

[LOG 13:19:36.216] [OD] Adding for body Hale map named Hale_biome (CBRGB) for Hale of path = OPM/OPM_Textures/PluginData/Hale_biome.dds
[LOG 13:19:36.220] [Kopernicus]: Only DXT1, DXT5, A8, RGB24, RGBA32, RGB565, ARGB4444, RGBA4444, 4bpp palette and 8bpp palette are supported
[LOG 13:19:36.220] [Kopernicus]: failed to load F:/SteamLibrary/SteamApps/common/Kerbal Space Program/KSP_x64_Data/../GameData/OPM/OPM_Textures/PluginData/Hale_color.dds
[WRN 13:19:36.224] DontDestroyOnLoad only work for root GameObjects or components on root GameObjects.
[LOG 13:19:36.282] [OD] Adding for body Hale map named Hale_color (RGB) for Hale of path = OPM/OPM_Textures/PluginData/Hale_color.dds

KSP Log
Output Log
MM Cache
Kopernicus Body Log

If you need a texture in this format to test with, just shout and I'll link one.

@Sigma88
Copy link
Contributor

Sigma88 commented Oct 4, 2018

This has been fixed, should work fine from the next Kopernicus update

a small note:

dds images saved with mipmaps will be compatible with this system, however the mipmaps will not be used. this means that mipmaps are a waste of memory space

@Poodmund
Copy link
Author

Poodmund commented Oct 20, 2018

This can be closed now that the loader is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants