Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

Raw texture previewer/converter

Get your graphics formats figures out here! Got details for others? Post here!
zeroy
ultra-n00b
Posts: 9
Joined: Wed Feb 03, 2010 11:08 am
Has thanked: 6 times
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by zeroy » Sat Dec 19, 2020 10:01 pm

Hi old thread I know but was wondering if a swizzle algorithm could be found for Mask texture in Cyberpunk 2077 - those masks are crucial to the texturing of 90% of the game assets and so we would very much like to get them "un-swizzled" if thats possible. Here are 2 samples, the masks are in BC4 format and sizes are correct

- the DDS is from Renderdoc (also added the normal to see how it should look like once un-swizzled)
- Added also the mlsetup and mlmask and their Json dump as it contains info on the Mask layout / Atlas

It looks like this

https://www.dropbox.com/s/yudligu0g5jl6 ... derdoc.png

xentax_cp2077_swizzle.part1.rar

Thanks in advance!
You do not have the required permissions to view the files attached to this post.
Last edited by zeroy on Sat Dec 19, 2020 10:07 pm, edited 3 times in total.

zeroy
ultra-n00b
Posts: 9
Joined: Wed Feb 03, 2010 11:08 am
Has thanked: 6 times
Been thanked: 1 time

Re: Raw texture previewer/converter

Post by zeroy » Sat Dec 19, 2020 10:06 pm

Second part of the Rar
xentax_cp2077_swizzle.part2.rar
You do not have the required permissions to view the files attached to this post.

moonpaladin
mega-veteran
mega-veteran
Posts: 302
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 138 times
Been thanked: 11 times

Re: Raw texture previewer/converter

Post by moonpaladin » Wed Apr 21, 2021 4:40 am

preview is not working, and I have added the texconv.exe with admin privileges [roll]

SatansFavSuccubus
ultra-n00b
Posts: 1
Joined: Wed Aug 25, 2021 6:30 am
Has thanked: 1 time

Re: Raw texture previewer/converter

Post by SatansFavSuccubus » Fri Oct 29, 2021 4:46 am

Is there a reason the file won't open? I'm running Win10 and every single time I try to open RawTex.exe (GUI version) it shows for a few seconds then immediately closes.

Please help?

Pinstripe
n00b
Posts: 14
Joined: Tue Dec 15, 2020 9:37 am
Has thanked: 6 times

Re: Raw texture previewer/converter

Post by Pinstripe » Mon Mar 07, 2022 7:56 am

Hey, i maybe have a stupid question but i would be glad if someone can help me. How can I find the correct offset of the texture to put it in there?
Is it offset of the whole file, or is it just some specific part? Could someone explain me?
Thank you!

User avatar
ikskoks
Moderator
Posts: 1315
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 576 times
Been thanked: 324 times
Contact:

Re: Raw texture previewer/converter

Post by ikskoks » Mon Mar 07, 2022 1:45 pm

How can I find the correct offset of the texture to put it in there?
It really depends on the file you are trying to preview.
If your file is just raw image data, then offset 0x00 should be fine.
If your file is an archive or binary blob, then you need to find correct offset manually.

kenken0215
ultra-n00b
Posts: 3
Joined: Fri Apr 22, 2022 6:00 am

Re: Raw texture previewer/converter

Post by kenken0215 » Tue Apr 26, 2022 9:26 am

hi!
I can't get it to work, so if anyone can figure it out, I would appreciate your assistance.

xenoblade 2 wilay file
offset 1000
BC7 unorm srgb
switch swizzle

but the output is
The top and bottom are out of alignment and the right side of the bottom half is not output.

Please help me.

https://www.mediafire.com/file/y73yh4sc ... st.7z/file

eaZy41
ultra-n00b
Posts: 4
Joined: Tue Feb 12, 2019 1:30 pm

Re: Raw texture previewer/converter

Post by eaZy41 » Fri Apr 29, 2022 8:26 am

kenken0215 wrote:
Tue Apr 26, 2022 9:26 am
hi!
I can't get it to work, so if anyone can figure it out, I would appreciate your assistance.

xenoblade 2 wilay file
offset 1000
BC7 unorm srgb
switch swizzle

but the output is
The top and bottom are out of alignment and the right side of the bottom half is not output.

Please help me.

https://www.mediafire.com/file/y73yh4sc ... st.7z/file
Maybe,it's because texture was swizzled with --sparse parameter. Rawtex can't propertly unswizzle this.

UPD. I was wrong. It's 1176x1320 texture. But rawtex still can't propertly extract swizzled "non-standard" sizes
Here is result.
https://www.mediafire.com/file/o5l0myhd ... 2.dds/file

kenken0215
ultra-n00b
Posts: 3
Joined: Fri Apr 22, 2022 6:00 am

Re: Raw texture previewer/converter

Post by kenken0215 » Tue May 03, 2022 11:09 am

eaZy41 wrote:
Fri Apr 29, 2022 8:26 am
kenken0215 wrote:
Tue Apr 26, 2022 9:26 am
hi!
I can't get it to work, so if anyone can figure it out, I would appreciate your assistance.

xenoblade 2 wilay file
offset 1000
BC7 unorm srgb
switch swizzle

but the output is
The top and bottom are out of alignment and the right side of the bottom half is not output.

Please help me.

https://www.mediafire.com/file/y73yh4sc ... st.7z/file
Maybe,it's because texture was swizzled with --sparse parameter. Rawtex can't propertly unswizzle this.

UPD. I was wrong. It's 1176x1320 texture. But rawtex still can't propertly extract swizzled "non-standard" sizes
Here is result.
https://www.mediafire.com/file/o5l0myhd ... 2.dds/file
thanks for reply! Sorry for the late reply.
It looks very nice!!
How can I output like that?

eaZy41
ultra-n00b
Posts: 4
Joined: Tue Feb 12, 2019 1:30 pm

Re: Raw texture previewer/converter

Post by eaZy41 » Wed May 04, 2022 2:07 pm

kenken0215 wrote:
Tue May 03, 2022 11:09 am
thanks for reply! Sorry for the late reply.
It looks very nice!!
How can I output like that?
Without special tool? Just using rawtex You can do it this way:
- rise up width until texture normalize (in this sample - 1184)
- then rise up height to nearest "statndard" value (in this sample - 1536)
- then cut off result texture from top left corner (demensions located at the end of file - 0x20 and 0x1C from end)

kenken0215
ultra-n00b
Posts: 3
Joined: Fri Apr 22, 2022 6:00 am

Re: Raw texture previewer/converter

Post by kenken0215 » Wed May 04, 2022 4:41 pm

eaZy41 wrote:
Wed May 04, 2022 2:07 pm
kenken0215 wrote:
Tue May 03, 2022 11:09 am
thanks for reply! Sorry for the late reply.
It looks very nice!!
How can I output like that?
Without special tool? Just using rawtex You can do it this way:
- rise up width until texture normalize (in this sample - 1184)
- then rise up height to nearest "statndard" value (in this sample - 1536)
- then cut off result texture from top left corner (demensions located at the end of file - 0x20 and 0x1C from end)

thank you! and I tried it.
https://www.mediafire.com/file/iumori4f ... 2.dds/file
I'm a little confused about the last line and it came out like this, am I wrong?

lenetzp
ultra-n00b
Posts: 2
Joined: Sat May 14, 2022 4:20 am

Re: Raw texture previewer/converter

Post by lenetzp » Sat May 14, 2022 4:24 am

nice work

Post Reply