Important information: this site is currently scheduled to go offline indefinitely by end of the year.

swizzled texture dds

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
User avatar
zaramot
double-veteran
double-veteran
Posts: 783
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 855 times

swizzled texture dds

Post by zaramot »

Hello everyone!
Could someone experienced with 2d image formats take a look at this texture sample? I'm kinda lost, tried some things but couldn't get it to look correct. Any help will be much appreciated. Thanks in advance!
Here's sample texture:
https://www.mediafire.com/file/3mi8ib8b ... atlas_0.7z
Making model-import scripts, PM
User avatar
aspadm
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: swizzled texture dds

Post by aspadm »

Looks like there are blocks of RGB splitted data (32x32 pixel per block). Some blocks looks omitted.

Is this image a converted image or original file?
User avatar
zaramot
double-veteran
double-veteran
Posts: 783
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 855 times

Re: swizzled texture dds

Post by zaramot »

Originally extracted, it's texture "atlas" used for character customization all other textures are okay (just ordinary .dds), so I'm almost sure extraction process was correct, game engine somehow making this texture correct lol On this textures should be a bunch of other smaller textures for different face details like scars, wrinkles, eyebrows and so on.
Making model-import scripts, PM
User avatar
aspadm
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: swizzled texture dds

Post by aspadm »

OK, so there must be additional information for atlas.

I'm think that it must be palette (or what color tile represents: R/G/B/A) and ID of tiles.
User avatar
zaramot
double-veteran
double-veteran
Posts: 783
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 855 times

Re: swizzled texture dds

Post by zaramot »

Yeah, looks like that! It's very sad, there's some index .dds files in same folder after extraction. Here's one of them, but seriously I have no idea how it might help lol
You do not have the required permissions to view the files attached to this post.
Making model-import scripts, PM
User avatar
aspadm
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: swizzled texture dds

Post by aspadm »

Hm, interesting - looks like there are index information, stored as 32x32 chunks by 3 in group. And if we look at index (0-255) it might be index in atlas's line (256 * 32 = 8192, equal to width of atlas; 32 * 32 = 1024, equal to height of atlas).

I'll check it tomorrow.

UPD: It works! First chunk from three is X index of atlas, second is Y index. This is the only first image (first two chunks).
Image
User avatar
zaramot
double-veteran
double-veteran
Posts: 783
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 855 times

Re: swizzled texture dds

Post by zaramot »

Ты большой молодец, я бы точно не додумался бы сам! Я с 2д форматами чаще всего мучаюсь, особенно если что-то сильно замороченное.
Well done! Thanks for your time and efforts :)
Making model-import scripts, PM
User avatar
aspadm
advanced
Posts: 52
Joined: Wed Nov 25, 2015 8:43 pm
Has thanked: 10 times
Been thanked: 34 times

Re: swizzled texture dds

Post by aspadm »

OK, there some information:

there are 2 types of data: atlases and indices.
Atlas store information in tiles 32x32 with 16 levels of grey.
Indices store information in chuncks 32x32 as index (0-255).

Three chunks of indices describe 1 color plane (channel) as: X index in atlas, Y index in atlas, atlas index. Four channels forms RGBA image.
Resulted image is 1024x1024, RGBA.
You do not have the required permissions to view the files attached to this post.
Post Reply