RivalSound Posted June 26, 2022 Share Posted June 26, 2022 Fantastic, thank you so much @null54!!! Quote Link to comment Share on other sites More sharing options...
Shakes4cc Posted December 3, 2022 Share Posted December 3, 2022 Hello, I would like to request a new feature. GIMP's DDS plugin allows importing a picture's mipmaps as separate layers, edit them independently and save them to a DDS file as they are instead of generating new ones from the mip0 image. This is unorthodox, but I use it to create kit textures for PES which change color depending on the camera distance (and therefore depending on the mipmap used for texturing the player's kit models). It all works fine but I would prefer to be able to use PDN for everything, as editing images on GIMP is often a hassle compared to it. A friend of mine does the same but he uses Photoshop's DDS plugin, which instead of importing every mipmap to a different layer creates a mosaic. Can you please implement whichever of these two solutions is simpler to you? (In case they're equal, I would prefer the first solution) Quote Link to comment Share on other sites More sharing options...
null54 Posted December 4, 2022 Author Share Posted December 4, 2022 2 hours ago, Shakes4cc said: Can you please implement whichever of these two solutions is simpler to you? There currently is no easy way to support multiple layers in this plugin. I plan to eventually support loading mipmaps and cube maps as layers, once the Paint.NET plugin API adds the features that I need for it. 2 hours ago, Shakes4cc said: A friend of mine does the same but he uses Photoshop's DDS plugin, which instead of importing every mipmap to a different layer creates a mosaic. What DDS plugin is that? None of the Photoshop DDS plugins I could find have that behavior. 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...
Shakes4cc Posted December 4, 2022 Share Posted December 4, 2022 19 hours ago, null54 said: What DDS plugin is that? It's this one: https://developer.nvidia.com/nvidia-texture-tools-exporter Quote Link to comment Share on other sites More sharing options...
hf61 Posted December 8, 2022 Share Posted December 8, 2022 hi team I am wondering which is the proper way to save dds like 8.8.8.8 ARGB 32 bpp/RGBA8 in Gimp 2.8 thx a lot Quote Link to comment Share on other sites More sharing options...
null54 Posted December 8, 2022 Author Share Posted December 8, 2022 1 hour ago, hf61 said: I am wondering which is the proper way to save dds like 8.8.8.8 ARGB 32 bpp/RGBA8 in Gimp 2.8 B8G8R8A8 (Linear, A8R8G8B8) should be the equivalent format in this plugin. 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...
hf61 Posted December 9, 2022 Share Posted December 9, 2022 20 hours ago, null54 said: B8G8R8A8 (Linear, A8R8G8B8) should be the equivalent format in this plugin. Thanks a lot btw may I ask how to compress dds file? Quote Link to comment Share on other sites More sharing options...
null54 Posted December 9, 2022 Author Share Posted December 9, 2022 3 hours ago, hf61 said: btw may I ask how to compress dds file? To compress a file you would select one of the BC formats in the list, e.g. BC7. 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 January 20, 2023 Author Share Posted January 20, 2023 Release version 1.11.0. This release is for Paint.NET 5.0+. Changes: Updated DirectXTex to the December 15, 2022 release. Detect if the image using the wrong file extension and load it using the appropriate Paint.NET FileType. 1 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 January 31, 2023 Author Share Posted January 31, 2023 Release version 1.11.1. This release is for Paint.NET 5.0+. Changes: Updated DirectXTex to the January 31, 2023 release. 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 March 4, 2023 Author Share Posted March 4, 2023 Release version 1.11.2. This release is for Paint.NET 5.0+. Changes: Added a BC 1-3 compression dithering check box to the save UI. This can improve the image quality when saving in those formats. 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...
null54 Posted March 5, 2023 Author Share Posted March 5, 2023 Release version 1.11.3. This release is for Paint.NET 5.0+. Changes: Fixed a regression in the DirectCompute code. 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 March 6, 2023 Author Share Posted March 6, 2023 Release version 1.11.4. This release is for Paint.NET 5.0+. Changes: Added dithering support for the B4G4R4A4 (Linear, A4R4G4B4), B5G5R5A1 (Linear, A1R5G5B5) and B5G6R5 (Linear, R5G6B5) formats. Renamed the BC 1-3 compression dithering check box to Error diffusion dithering. 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 June 14, 2023 Author Share Posted June 14, 2023 Release version 1.11.9. Changes: Updated DirectXTex to the June 14, 2023 release. 1 1 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...
moshemoshe Posted July 11, 2023 Share Posted July 11, 2023 Is there a way to...not compress dds when saving? I am trying to import a texture but the file sizes differ because the game has uncompressed DXT1 texture at 15.996MiB, but the same texture becomes 2.0MB after editing it. Quote Link to comment Share on other sites More sharing options...
null54 Posted July 11, 2023 Author Share Posted July 11, 2023 28 minutes ago, moshemoshe said: because the game has uncompressed DXT1 texture at 15.996MiB, but the same texture becomes 2.0MB after editing it. DXT1 is a compressed format, there is no such thing as uncompressed DXT1. I am guessing that the size difference may be due to the original file having mip maps, try enabling the Generate Mip Maps check box. If that does not work, upload one of the original DDS files somewhere and post a link to it here. What are the dimensions of the image you are working with? 15 MB seems large for a DXT1 compressed file, even with mip maps. 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...
moshemoshe Posted July 11, 2023 Share Posted July 11, 2023 (edited) 25 minutes ago, null54 said: DXT1 is a compressed format, there is no such thing as uncompressed DXT1. I am guessing that the size difference may be due to the original file having mip maps, try enabling the Generate Mip Maps check box. If that does not work, upload one of the original DDS files somewhere and post a link to it here. What are the dimensions of the image you are working with? 15 MB seems large for a DXT1 compressed file, even with mip maps. Ah sorry, I don't know much about this topic, I just mess around and bash things together till it works. The texture is a 2048x2048 (12 LODs) in DXT1 format, according to this tool I am using (SpecialK) : Here is the actual file that gets dumped, 2.66MB: https://files.catbox.moe/kztoqq.dds So I guess the next question is how i'd go about uncompressing the 2.66MB back into 15.996MiB size. Edited July 11, 2023 by moshemoshe clarification Quote Link to comment Share on other sites More sharing options...
null54 Posted July 11, 2023 Author Share Posted July 11, 2023 12 minutes ago, moshemoshe said: So I guess the next question is how i'd go about uncompressing the 2.66MB back into 15.996MiB size. The 15.996 MiB value is probably the uncompressed size of the texture in memory, 2048 * 2048 * 4 RGBA channels. DXT1 compression stores the image color data as RGB 565 (5 bits for red and blue, and 6 bits for green), with an optional 1-bit alpha channel. When the image is loaded, it is decompressed with the RGB and alpha data getting expanded back to 8-bits-per-channel. Paint.NET shows a 2048x2048 pixel image as require 16 MiB of RAM. 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 July 14, 2023 Author Share Posted July 14, 2023 Release version 1.12.0. Changes: Reduced memory usage when loading. Various optimizations to the loading and saving code. Only enable the Error Metric option for BC1-BC3. Added the plugin version to the save UI. Show an error when loading a texture array or volume map. These files posed a silent data loss risk when saving because the plugin does not read all of the images. 2 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 July 29, 2023 Author Share Posted July 29, 2023 Release version 1.12.1. Changes: Improved support for loading the 'swizzled' BC3/DXT5 normal map variants used by DOOM 3 (and possibly other games using the same engine). Added support for loading FlatOut 2 textures with an incorrect DDS_PIXELFORMAT size. 2 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 August 5, 2023 Author Share Posted August 5, 2023 Release version 1.12.2. Changes: Fixed a crash when saving on ARM64 devices. 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 6, 2023 Author Share Posted September 6, 2023 Release version 1.12.3. Changes: Updated DirectXTex to the September 1, 2023 release. 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 12, 2023 Author Share Posted September 12, 2023 Release version 1.12.4. Changes: Allow loading of legacy files that have too many mipmaps. 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 30, 2023 Author Share Posted September 30, 2023 Release version 1.12.5. Changes: Add support for saving the ATI1, ATI2 and RXGB formats. ATI1 is a legacy name for the BC4 Unsigned format. ATI2 is a legacy name for the BC5 Unsigned format. RXGB is a BC3 variant that is used for normal maps in some older games (e.g. Doom 3). 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 30, 2023 Author Share Posted September 30, 2023 Release version 1.12.6. Changes: Fixed a few UI glitches with the RXGB format. 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.