-
Notifications
You must be signed in to change notification settings - Fork 62
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
Dæmon fails to load some .crn (cCRNFmtDXT5_AGBR format) files #220
Comments
Those are known to fail: When they are loaded, Dæmon prints this:
Those textures comes from the metro map by KOsAD¹, you can find a prebuild (reproducing the issue) there: map-metro_0+20190804-154825+39a8bc3.dpk ¹ beware: broken google site that downloads .html pages instead of displaying them. |
@illwieckz Tried to reproduce, but map pack was not loaded. Error is smth about missed tremulous map dependency. May be you can create loadable map with such textures to reproduce? |
Sorry, dependency is there: http://gg.illwieckz.net/dl/unvanquished/pkg/res-tremulous_1.2.1.dpk |
Can it be related to this? Unity-Technologies/crunch#11 |
Failed CRN files are in derivative of DXT5 compression format - Looks like we need converting such files into supported formats either internally or externally. |
Now reasoning about exact problem with CRN image will be easier:
|
It would be good to support those formats. It's not good if the image converter can select compression preset the engine does not support. The purpose of that image converter is also to select the best compression preset for a given texture, so, the fix would not be to prevent the image compression optimizer to not optimize, but to get the engine to support such formats. |
@gimhael, would you know how to add support for It looks like The purpose of this effort would not be to support the format natively, but to make sure people can use the image conversion tool without having to test produced files one by one after the compression. Currently we are forced to workaround the issue by hardcoding compression rules in asset repositories, the knowledge of which texture needs such workaround is acquired through trial and error, and I would like to remove such trial and error from the mapping workflow. Of course if the engine can support the format natively, it would be better. But the priority is to grok the format whatever the way it is implemented. |
I admit I've not read the discussion: I'm trying to see if stuff in more than 100+ issues are still actual after all. |
@bmorel the second comment provides a map that reproduced the issue at the time the issue was created. So, one can download this map in |
I'll do a deeper read of that soon, then. I'm still browsing all the issues :) |
See this crunch PR to add an option to crunch to prevent producing such incompatible files: Anyway, we may still want to get Dæmon being able to read those files if they happen to be produced anyway. |
Dæmon is known to fail on some
.crn
files. Those files follow a common pattern: a few colors (sometime only one flat color), and a small definition (small amount of pixels).It may be a crunch bug. I mean, a crnlib bug. Crunch is able to convert those files back to tga properly, it may be a bug in the crnlib standalone file, or a bug in the engine, one of them is probably lacking support for some edgy use case.
The text was updated successfully, but these errors were encountered: