

Make sure you have access to the thing you tried to change. You may want to save your images and restart GIMP to be on the safe side. but do not expect an immediate fix, there are several outstanding bug reports for the dds format. Report this as a bug to the Gimp developers. (05-04-2023, 07:46 AM)y2keeth Wrote: The dying plug-in may have messed up GIMP's internal state. The dying plug-in may have messed up GIMP's internal state. (C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\file-dds\file-dds.exe) I need that format uncompressed but seam to lose the no compression option (05-04-2023, 07:32 AM)rich2005 Wrote: Not something I ever use, but in my installation when you Export-As filename.dds (to be certain, add the. That setting is in the Compression drop-down menu Not something I ever use, but in my installation when you Export-As filename.dds (to be certain, add the. Requires the shader toīe rewritten especially for this kind of texture. Internal_format = GL_COMPRESSED_RGBA_S3TC_DXT3 Įlse if (header.dds_pixel_format.Where is RXGB dtx5? is it in there under a different name?Ī variant of BC3 / DXT 5, it modifes how the texture is read by the renderer. Internal_format = GL_COMPRESSED_RGBA_S3TC_DXT1 Įlse if (header.dds_pixel_format.dds_fourCC = D3DFMT_DXT3) If (header.dds_pixel_format.dds_fourCC = D3DFMT_DXT1)

If ((header.dds_pixel_format.dds_flags & DDPF_FOURCC) != 0) Determine DDS type (note: Only going to support DXT1, DXT3, or DXT5) Is_cubemap = (header.dds_caps2 & DDSCAPS2_CUBEMAP) Is_mipmap = ((header.dds_caps1 & DDSCAPS_MIPMAP) & (header.dds_mipmap_count > 1)) Has_alpha_element = ((header.dds_pixel_format.dds_flags & DDPF_ALPHAPIXELS) != 0) Is_compressed = ((header.dds_pixel_format.dds_flags & DDPF_FOURCC) != 0) Header flags must contain 0x1007 A texture file.ĪSSERT((header.dds_flags & DDS_HEADER_FLAGS_TEXTURE) = DDS_HEADER_FLAGS_TEXTURE, "DDS is not a Texture!\n") ĪSSERT(header.dds_pixel_format.dds_size = 32, "DDS Pixel Format Invalid!\n") DDS Magic must be for little Endian " SDD", Big Endian "DDS "ĪSSERT(header.dds_magic = DDS_MAGIC_LITTLE_ENDIAN, "DDS Magic Number Invalid!\n") ĪSSERT(header.dds_size = 124, "DDS Size Number Invalid!\n") Does anyone know what I am doing wrong? Are there any better compressed bound alternatives to DDS files for OpenGL? I32 DDSFileDecoder::BindDDSFile(const I8 *name)įread(&header, sizeof(header), 1, dds_file) A few times I would take a corrupt dds, convert to a few different formats, maybe perform a light Gaussian blur, change it back to a dds and then it worked great with no corruption. I compared a dds file that works versus a dds file that is corrupt and the headers are identical. On some DDS files it works great, on others some or much of the mipmaps are corrupt. I only use DXT1, DXT3 or DXT5 file formats. I wrote a simple program that loads compressed and mipmapped DDS files in OpenGL with the "glCompressedTexImage2D" function.
