READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

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: 712
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 764 times

swizzled texture dds

Post by zaramot » Mon Jun 17, 2019 7:04 pm

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
beginner
Posts: 34
Joined: Wed Nov 25, 2015 8:43 pm
Location: Russia
Has thanked: 10 times
Been thanked: 22 times

Re: swizzled texture dds

Post by aspadm » Tue Jun 18, 2019 4:48 pm

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: 712
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 764 times

Re: swizzled texture dds

Post by zaramot » Tue Jun 18, 2019 5:41 pm

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
beginner
Posts: 34
Joined: Wed Nov 25, 2015 8:43 pm
Location: Russia
Has thanked: 10 times
Been thanked: 22 times

Re: swizzled texture dds

Post by aspadm » Tue Jun 18, 2019 6:06 pm

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: 712
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 764 times

Re: swizzled texture dds

Post by zaramot » Tue Jun 18, 2019 7:19 pm

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
beginner
Posts: 34
Joined: Wed Nov 25, 2015 8:43 pm
Location: Russia
Has thanked: 10 times
Been thanked: 22 times

Re: swizzled texture dds

Post by aspadm » Tue Jun 18, 2019 9:23 pm

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: 712
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 764 times

Re: swizzled texture dds

Post by zaramot » Tue Jun 18, 2019 10:39 pm

Ты большой молодец, я бы точно не додумался бы сам! Я с 2д форматами чаще всего мучаюсь, особенно если что-то сильно замороченное.
Well done! Thanks for your time and efforts :)
Making model-import scripts, PM

User avatar
aspadm
beginner
Posts: 34
Joined: Wed Nov 25, 2015 8:43 pm
Location: Russia
Has thanked: 10 times
Been thanked: 22 times

Re: swizzled texture dds

Post by aspadm » Wed Jun 19, 2019 6:26 pm

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