TheBads Posted October 26, 2020 Share Posted October 26, 2020 DDS comes from some game. Bigger DDS files (~100kb) have no trouble opening, while smaller ones (like ~40KB) don't. No idea when it could have became a problem but it wasn't broken in 2018 or so for sure. There isn't a reason for files to be different in any way (like compression/encoding stuff) or any other nonsense reason. sharper images if some forum software makes it worse Spoiler https://cdn.discordapp.com/attachments/305072156113633283/770245604545658910/CUT2V2_paintdotnet_broke_small_dds.png https://cdn.discordapp.com/attachments/305072156113633283/770245472106840104/CUT_paintdotnet_broke_small_dds.png Quote Link to comment Share on other sites More sharing options...
null54 Posted October 26, 2020 Share Posted October 26, 2020 57 minutes ago, TheBads said: DDS comes from some game. Bigger DDS files (~100kb) have no trouble opening, while smaller ones (like ~40KB) don't. You need to post the actual DDS files so that this can be investigated. 57 minutes ago, TheBads said: There isn't a reason for files to be different in any way (like compression/encoding stuff) or any other nonsense reason. Paint.NET's DDS support was upgraded in version 4.2.2. The new DirectXTex-based loading code performs additional validation to ensure the file is supported by DirectX 10+. For example, DirectX 9 supported a partial cube-map without all 6 faces whereas DirectX 10+ requires the file to have all 6 faces. 2 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
TheBads Posted October 26, 2020 Author Share Posted October 26, 2020 While I don't have anything between 43-86KB, I did some extra digging. For example There are 3 samples with 86kb, helipad with image size of 256x256 won't open, but others (romos5, foldutegyenes_a) with bigger image sizes will, despite also being 86kb 15 DDS samples, I can add more if needed. Also as bonus PNG exports from Paint.net 3 with image sizes written downhttps://mega.nz/folder/c3JzjagQ#Xyoh0yiXxZ8-ZOXk-Sg2aw basically it's seems to do something with image resolution most likely Quote Link to comment Share on other sites More sharing options...
null54 Posted October 26, 2020 Share Posted October 26, 2020 4 hours ago, TheBads said: basically it's seems to do something with image resolution most likely The problem with those files is that the header specifies an invalid number of mipmaps. Re-saving them in Paint.NET 3.5.11 with Generate Mipmaps checked should fix that issue. The reason that Paint.NET 3.5.11 can open those files is that the old DDS plugin only reads the first image, DirectXTex reads every image in the file. 1 2 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.