Raw texture previewer/converter
-
- 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
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
Thanks in advance!
- 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
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.
-
- 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
preview is not working, and I have added the texconv.exe with admin privileges ![rolleyes [roll]](./images/smilies/icon_rolleyes.gif)
![rolleyes [roll]](./images/smilies/icon_rolleyes.gif)
-
- ultra-n00b
- Posts: 1
- Joined: Wed Aug 25, 2021 6:30 am
- Has thanked: 1 time
Re: Raw texture previewer/converter
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?
Please help?
Re: Raw texture previewer/converter
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!
Is it offset of the whole file, or is it just some specific part? Could someone explain me?
Thank you!
- 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
It really depends on the file you are trying to preview.How can I find the correct offset of the texture to put it in there?
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.
-
- ultra-n00b
- Posts: 3
- Joined: Fri Apr 22, 2022 6:00 am
Re: Raw texture previewer/converter
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
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
Re: Raw texture previewer/converter
Maybe,it's because texture was swizzled with --sparse parameter. Rawtex can't propertly unswizzle this.kenken0215 wrote: ↑Tue Apr 26, 2022 9:26 amhi!
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
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
-
- ultra-n00b
- Posts: 3
- Joined: Fri Apr 22, 2022 6:00 am
Re: Raw texture previewer/converter
thanks for reply! Sorry for the late reply.eaZy41 wrote: ↑Fri Apr 29, 2022 8:26 amMaybe,it's because texture was swizzled with --sparse parameter. Rawtex can't propertly unswizzle this.kenken0215 wrote: ↑Tue Apr 26, 2022 9:26 amhi!
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
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
It looks very nice!!
How can I output like that?
Re: Raw texture previewer/converter
Without special tool? Just using rawtex You can do it this way:kenken0215 wrote: ↑Tue May 03, 2022 11:09 amthanks for reply! Sorry for the late reply.
It looks very nice!!
How can I output like that?
- 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)
-
- ultra-n00b
- Posts: 3
- Joined: Fri Apr 22, 2022 6:00 am
Re: Raw texture previewer/converter
eaZy41 wrote: ↑Wed May 04, 2022 2:07 pmWithout special tool? Just using rawtex You can do it this way:kenken0215 wrote: ↑Tue May 03, 2022 11:09 amthanks for reply! Sorry for the late reply.
It looks very nice!!
How can I output like that?
- 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?