Popular Post null54 Posted September 3, 2017 Popular Post Share Posted September 3, 2017 A DDS FileType plugin that allows Paint.NET to open and save the the some of formats introduced in DirectX 10 and later. Compatibility: Paint.NET 5.0.13+. This plugin is bundled with Paint.NET 4.2.2 and later. If you need the features from a newer version you can still install the plugin. The plugin will override the bundled version if it has higher version number. The supported formats include the BC1 (DXT1), BC2 (DXT3), BC3 (DXT5), BC4, BC5, BC6H and BC7 compressed formats and the A8R8G8B8, X8R8G8B8, A8B8G8R8, X8B8G8R8, A1R5G5B5, A4R4G4B4, R5G6B5, R8G8B8, R32 Float, L8, A8L8 and V8U8 uncompressed formats. Note that the BC6H and BC7 compression may be slow on large images. Cube maps must use the horizontal or vertical cross layout, see the Cube Maps page on GitHub for more information. Installation: 1. Close Paint.NET. 2. Place DdsFileTypePlus.dll, DdsFileTypePlusIO_ARM64.dll and DdsFileTypePlusIO_x64.dll in the Paint.NET FileTypes folder which is usually located in one the following locations depending on the Paint.NET version you have installed. Classic: C:\Program Files\Paint.NET\FileTypes Microsoft Store: Documents\paint.net App Files\FileTypes Portable: <Paint.NET folder>\FileTypes 3. Restart Paint.NET. Download: DDSFileTypePlus.zip Source Code: https://github.com/0xC0000054/pdn-ddsfiletype-plus 5 5 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...
AndrewDavid Posted September 3, 2017 Share Posted September 3, 2017 Thank you @null54 Found over 478 DDS files on my computer. I was using Visual Studio to convert them to png. This sure saves a lot of time. Quote Link to comment Share on other sites More sharing options...
null54 Posted September 3, 2017 Author Share Posted September 3, 2017 9 minutes ago, AndrewDavid said: Found over 478 DDS files on my computer. I was using Visual Studio to convert them to png. This sure saves a lot of time. Paint.NET has had built-in support for DDS since the 3.10 release in 2007 (based on a plugin written by @Dean Ashton). This plugin only adds support for the new formats introduced with DirectX 10. 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...
AndrewDavid Posted September 3, 2017 Share Posted September 3, 2017 It was this post that got me started on the DDS file types. Before that I had no use for DDS file types. Once I did a search and found they existed on my hard drive I explored ways of looking at them without installing the DDS file type that existed before yours. Never tried to open them directly with Paint. Quote Link to comment Share on other sites More sharing options...
null54 Posted September 3, 2017 Author Share Posted September 3, 2017 Significantly improved the performance when saving the BC7 format by using DirectCompute when it is available. File version updated to 1.1.0.0. 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...
Seerose Posted September 3, 2017 Share Posted September 3, 2017 @null54! Thank you very much for new version and for your effort. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
null54 Posted September 4, 2017 Author Share Posted September 4, 2017 Added support for saving the BC6H compressed format (RGB, 16-bit floating point). Show progress when saving. File version updated to 1.2.0.0. 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...
null54 Posted September 5, 2017 Author Share Posted September 5, 2017 Corrected the name of the 32-bit DLL in the P/Invoke signatures. Changed the 32-bit DLL to use SSE instead of of SSE2. File version updated to 1.2.1.0. 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...
toe_head2001 Posted September 6, 2017 Share Posted September 6, 2017 Oh, BC7 support! I was just reading the other day about how much better it is. Thanks. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
null54 Posted September 6, 2017 Author Share Posted September 6, 2017 2 hours ago, toe_head2001 said: Oh, BC7 support! I was just reading the other day about how much better it is. Thanks. Interesting link. I did not notice any quality difference during my testing, but I was using photographs instead of game textures. One thing I did notice is that the DirectCompute based BC7/BC6H encoder is significantly faster than the software encoder. The software encoder processes a 1024x768 image in around 25 seconds, the DirectCompute encoder processes the same image in around 5 seconds. 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...
null54 Posted September 8, 2017 Author Share Posted September 8, 2017 Improved error handling when loading DDS files. Added support for planar and typeless DDS formats. Fixed a conversion bug when saving the X8R8G8B8, A1R5G5B5 and R5G6B5 formats. File version updated to 1.3.0.0. 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...
null54 Posted September 14, 2017 Author Share Posted September 14, 2017 Added support for loading Unreal Engine 2.5 DDS files that only set the dwFourCC field in the DDS_PIXELFORMAT structure, see the following thread for details. Convert the sRGB formats to linear RGB when loading. Reduced memory usage when saving. File version updated to 1.4.0.0. 1 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...
Rick Brewster Posted September 16, 2017 Share Posted September 16, 2017 (I edited the description above so that the "Note that a DDS file..." is in bold and with a larger font size) Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 16, 2017 Share Posted September 16, 2017 Also, please note that I am planning to integrate this in to Paint.NET soon (null54 gave me permission to do this). Hopefully within the next few months, depending on how the update scheduling goes. So if you install an update and your ".dds2" files suddenly won't open in Paint.NET, then that's why. Rename them back to ".dds" and you'll be good. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
null54 Posted September 20, 2017 Author Share Posted September 20, 2017 Added support for saving the R8G8B8A8 and B4G4R4A4 formats. File version updated to 1.5.0.0. 1 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...
null54 Posted September 27, 2017 Author Share Posted September 27, 2017 Allow creating mipmaps for image sizes that are not a power of 2. The mipmap generation had been silently ignoring images that are not a power of 2 until I came across the following post (strangely the DDS reference on MSDN makes no mention that non power of 2 mipmaps are supported). Report progress when saving the uncompressed formats. File version updated to 1.6.0.0. 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...
null54 Posted February 11, 2018 Author Share Posted February 11, 2018 Added error checking to the typeless format conversion. Upgraded to the February 9 2018 release of DirectXTex. File version updated to 1.6.1.0. 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...
NorthWestTrees Posted February 12, 2018 Share Posted February 12, 2018 I have a problem, not sure why but people have said they could open dds files for this game, however, I am having problems it gives an error they are DirectX11 I think or something witch may be the problem however that still does not help me with my mod with the steam game, could you play around with the file type and see if you can get it to load with Paint.net or if not add support for the type of DDS it would mean a great deal to me and many other people that would be looking for a free program to use to edit the file types. Space Engineers DDS File Type.zip Quote Link to comment Share on other sites More sharing options...
null54 Posted February 12, 2018 Author Share Posted February 12, 2018 1 hour ago, NorthWestTrees said: I have a problem, not sure why but people have said they could open dds files for this game, however, I am having problems it gives an error they are DirectX11 I think or something witch may be the problem however that still does not help me with my mod with the steam game, could you play around with the file type and see if you can get it to load with Paint.net or if not add support for the type of DDS it would mean a great deal to me and many other people that would be looking for a free program to use to edit the file types. The file has to be renamed to use the dds2 file extension in order for the plugin to load it. 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...
null54 Posted February 12, 2018 Author Share Posted February 12, 2018 Added support for saving the sRGB variants of the BC1, BC2, BC3 and BC7 formats. The Space Engineers file posted above uses the sRGB version of BC7, so it made sense to add support for the sRGB formats in case there are other games or applications that require images to be saved in those formats. File version updated to 1.7.0.0 1 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...
M0lz Posted February 19, 2018 Share Posted February 19, 2018 (edited) When saving one of the new format DDS .. Say BC7 The file is given a filename like name.dds2 Which is sort of ok, if you rename it to .dds then the target game will recognise it for the type of dds it is anyway - Would just be better if we did not have to rename it and it used the .dds extension as normal. Note Intel Texture Works plugin for Adobe Photoshop does not have this problem, a BC7 dds file with the normal .dds file extension loads just fine into Adobe Photoshop, just like they do with a game engine that supports them (Skyrim Special Edition / Fallout 4). Also, when loading the same texture back into Paint.Net, if the file is now named .dds, PDN will try to load it but fails to recognise the file, even though it was made with PDN - Solution = rename it name.dds2 Then PDN will recognise and load it correctly O_o, bizarre state of affairs. Can you fix this behaviour please. ---------------------------- Issue 2 = In accordance with Intel Texture Works plugin save dialogue we are supposed to be able to save a BC7 as Linear Fine (second BC7 option in the linked screenshot) But in the save dialogue for dds2 implemented in PDN there is no such option that seems to stick to the same naming convention Which of your options equates to .. BC7 8bpp Fine (Linear, DX11+) And if you do actually support the same option, could it be made to read as BC7 Fine Linear in accordance with the Intel Texture Works dialogue screenshot, so that we are all singing off the same hymn sheet and know for certain the format saved is the format desired. Note : I have also added an issue to the plugin GitHub Issues page https://github.com/0xC0000054/pdn-ddsfiletype-plus/issues/2 Edited February 19, 2018 by M0lz Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted February 19, 2018 Share Posted February 19, 2018 42 minutes ago, M0lz said: Which is sort of ok, if you rename it to .dds then the target game will recognise it for the type of dds it is anyway - Would just be better if we did not have to rename it and it used the .dds extension as normal. This is a work-around to provide separation between the built-in DDS file handler and this plugin. Note that Rick is working towards integrating this plugin into paint.net, which will remove the renaming issue. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
M0lz Posted February 19, 2018 Share Posted February 19, 2018 (edited) 41 minutes ago, Ego Eram Reputo said: This is a work-around to provide separation between the built-in DDS file handler and this plugin. Note that Rick is working towards integrating this plugin into paint.net, which will remove the renaming issue. Superb, so the first issue will be dealt with in due course. I hope then that the second issue of conforming to the same naming conventions as per the Intel Texture Works plugin for Adobe Photoshop can be adhered to so that when we select a format it is the same name. Choosing from your options in the PDN plugin at the moment does not fill me with confidence that I am saving in BC7 8bpp Fine (Linear, DX11+) and will end up with a normal map that has barely detectable compression artifacts (which is desired, and would not be true if I get the option chosen wrong due to different naming conventions) Compare this With this BC7 Linear Fine the latter screenshot has very little compression artifacting which shows up very much on an in game model where the artifacting is translated into bump mapping on the surface of a model, depending upon your 3D point of view on the object, such compression artifacting can look awful in game .. So getting the right format to save and sticking to the naming conventions is quite important here. Edited February 19, 2018 by M0lz Quote Link to comment Share on other sites More sharing options...
null54 Posted February 20, 2018 Author Share Posted February 20, 2018 3 hours ago, M0lz said: I hope then that the second issue of conforming to the same naming conventions as per the Intel Texture Works plugin for Adobe Photoshop can be adhered to so that when we select a format it is the same name. Choosing from your options in the PDN plugin at the moment does not fill me with confidence that I am saving in BC7 8bpp Fine (Linear, DX11+) and will end up with a normal map that has barely detectable compression artifacts (which is desired, and would not be true if I get the option chosen wrong due to different naming conventions) I can add Linear to the description of the non-sRGB formats, but I will not be changing the rest of the description to match the Intel plug-in. This plugin and the Intel plugin use different methods when compressing the BC1, BC3, BC5 and BC7 formats. So it would not make sense to copy the 'Fast' and 'Fine' naming convention used by the Intel plug-in. The Intel plug-in uses the ISPC Texture compressor (it provides the 'Fast' and 'Fine' modes), and this plugin uses DirectXTex. Does this plugin show any compression artifacts when saving as BC7 (DX11+)? 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...
M0lz Posted February 21, 2018 Share Posted February 21, 2018 (edited) Full answer and a couple of test results on github https://github.com/0xC0000054/pdn-ddsfiletype-plus/issues/2 Edited February 21, 2018 by M0lz Quote 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.