XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Jun 19, 2018 7:09 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: .dds files with palettised image data
PostPosted: Sat Apr 07, 2018 11:32 pm 
Offline
n00b

Joined: Sat Jun 03, 2017 9:35 am
Posts: 15
Location: Australia
Has thanked: 2 times
Have thanks: 0 time














You can make the ads go away by registering

Is it possible to store a 256 colour image with palette data in a .dds file? Looking at https://msdn.microsoft.com/en-us/librar ... 84(v=vs.85).aspx is doesn't look like it but it's not explicit either way.


Top
 Profile  
 
 Post subject: Re: .dds files with palettised image data
PostPosted: Sat Apr 07, 2018 11:48 pm 
Offline
advanced

Joined: Fri Oct 16, 2015 8:05 pm
Posts: 62
Has thanked: 2 times
Have thanks: 42 times
yes.


Last edited by episoder on Sat Apr 28, 2018 9:04 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: .dds files with palettised image data
PostPosted: Sun Apr 08, 2018 5:02 am 
Offline
n00b

Joined: Sat Jun 03, 2017 9:35 am
Posts: 15
Location: Australia
Has thanked: 2 times
Have thanks: 0 time
Great thanks - I'm looking to export to a single format ideally (.dds in this case) but it's probably easier to just put palettised data into a .bmp and use .dds for everything else rather than trying to decompress DXTn data to get it into .bmp form as well.


Top
 Profile  
 
 Post subject: Re: .dds files with palettised image data
PostPosted: Thu Apr 12, 2018 6:14 am 
Offline
veteran

Joined: Sat Oct 21, 2006 12:58 pm
Posts: 116
Has thanked: 5 times
Have thanks: 16 times
DDS is just a container for DirectX texture data and actually you can encode 256 color palettised texture DDS with nvidia texture tools (legacy tools atleast work) via photoshop etc.
Of course you can not use any of the DXT compressions then on the data and it will be kept simply as is but I am not sure how such is internally handled but you can sure encode them as single dds files


Top
 Profile  
 
 Post subject: Re: .dds files with palettised image data
PostPosted: Thu Apr 12, 2018 11:53 am 
Offline
n00b

Joined: Sat Jun 03, 2017 9:35 am
Posts: 15
Location: Australia
Has thanked: 2 times
Have thanks: 0 time
Yeah but I don't think it's possible to store the raw 256-colour image data in a .dds? From the documentation it looks like you can only store data where each pixel's colour is specified (or data encoded with some sort of DXT compression).


Top
 Profile  
 
 Post subject: Re: .dds files with palettised image data
PostPosted: Fri Apr 27, 2018 6:22 pm 
Offline
veteran

Joined: Sat Oct 21, 2006 12:58 pm
Posts: 116
Has thanked: 5 times
Have thanks: 16 times
I'm not sure what you mean by raw here, but I decided provide encoded example of a wallpaper held as indexed 256-color that you can indeed do this, it stores 256 color palette in the file and rest is indexed data. However not all DDS supporting apps know to open this right unlike Nvidia's dds plugin. If this not clear confusion, not sure what will but like I said, feel free encode and try yourself, but from where I look this, it is doable as far DDS goes. In terms of compression, indexed seems to yield similar size to DXT5 compressed while indexed is in diverse color images bad choice in quality.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: .dds files with palettised image data
PostPosted: Sat Apr 28, 2018 9:00 pm 
Offline
advanced

Joined: Fri Oct 16, 2015 8:05 pm
Posts: 62
Has thanked: 2 times
Have thanks: 42 times
neat info. i shoulda looked that up on microsoft github, not the webpage. it's a pixelformat flag. my standard picture viewer doesn't decode it. gimp and visual studio does tho. nice picture. :]


Top
 Profile  
 
 Post subject: Re: .dds files with palettised image data
PostPosted: Thu May 03, 2018 11:25 am 
Offline
n00b

Joined: Sat Jun 03, 2017 9:35 am
Posts: 15
Location: Australia
Has thanked: 2 times
Have thanks: 0 time
Ah interesting.
I tried it out in Paint.net and it didn't like it though.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group