Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to import a 16-bit grayscale .dds (heightmap) without converting to 8-bit
#5
(11-19-2020, 01:22 PM)rich2005 Wrote: No further forward here. Still opens in Gimp as 8 bit and ImageMagick also thinks it is 8 bit.

I think both ImageMagick and Gimp are mistaken.

Code:
$ sudo apt install libnvtt-bin

Code:
$ nvddsinfo out.dds
Flags: 0x00001007
    DDSD_CAPS
    DDSD_PIXELFORMAT
    DDSD_WIDTH
    DDSD_HEIGHT
Height: 1024
Width: 1024
Depth: 0
Mipmap count: 0
Pixel Format:
    Flags: 0x00020000
    FourCC: ''
    Bit count: 16
    Red mask: 0x0000FFFF
    Green mask: 0x00000000
    Blue mask: 0x00000000
    Alpha mask: 0x00000000
Caps:
    Caps 1: 0x00001000
        DDSCAPS_TEXTURE
    Caps 2: 0x00000000
    Caps 3: 0x00000000
    Caps 4: 0x00000000

It clearly states: bitcount 16, and mask 0x0000ffff

Additionally, Ubuntu's 'file' command also correctly identifies it!


Code:
$ file ./out.dds
./out.dds: Microsoft DirectDraw Surface (DDS): 1024 x 1024, 16-bit color, luminance
Reply


Messages In This Thread
RE: Trying to import a 16-bit grayscale .dds (heightmap) without converting to 8-bit - by bram - 11-19-2020, 05:30 PM

Forum Jump: