Jump to content

[BUG?] Same DDS File. 4.2.14 can't open, yet 3.5.11 can


Recommended Posts

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.CUT_paintdotnet_broke_small_dds.jpg?width=727&height=4411503449212_CUT2V2paintdotnetbrokesmalldds.thumb.jpg.4c0af6600abb808ff1e760215ad7cf69.jpg
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

 

Link to post
Share on other sites
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.

 

  • Like 2

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint 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 post
Share on other sites

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 down
https://mega.nz/folder/c3JzjagQ#Xyoh0yiXxZ8-ZOXk-Sg2aw

basically it's seems to do something with image resolution most likely

Link to post
Share on other sites
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.

  • Like 1
  • You're a Smart Cookie! 2

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint 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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...