Jump to content

KSP cannot load DDS textures without mipmaps.


Recommended Posts

KSP 1.0 fails at loading DDS textures without mipmaps (disregard TextureReplacer, this also happens if I remove the DLL).


[LOG 13:10:29.562] Load(Texture): TextureReplacer/Default/HUDNavBall
[WRN 13:10:29.594] Texture load error in 'C:\KSP-test\GameData\TextureReplacer\Default\HUDNavBall.dds'
[LOG 13:10:29.616] Load(Texture): TextureReplacer/Default/IVANavBall
[WRN 13:10:29.654] Texture load error in 'C:\KSP-test\GameData\TextureReplacer\Default\IVANavBall.dds'

These textures are also missing in the game database later. Some textures shouldn't have mipmaps (e.g. navball, flags, UI icons etc.) and DDS better format than PNG since its not "shadowed" in RAM. You should consider converting flags and icons to DDS as well.

Here are the affected textures, they will probably help you with debugging:

https://dl.dropboxusercontent.com/u/9508397/HUDNavBall.dds

https://dl.dropboxusercontent.com/u/9508397/IVANavBall.dds

This worked fine with [thread=96729]DDSLoader[/thread], you can check its source code if it helps you fixing this issue.

Link to comment
Share on other sites

CORRECTION: Mipmaps are not the issue, KSP cannot load non-compressed DDS files.

Here an example of a DDS loader for KSP that can also load non-compressed DDS files. As a bonus, it also uses an unused bit in DDS flags to keep certain textures readable.

https://github.com/ducakar/TextureReplacer/blob/e8e9ab024517f612247d2079959fe0d5e5438fac/TextureReplacer/DDS.cs

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...