Demon's Souls PS5 Texture Files (*.ctxr)

Textures, recreate headers, conversions, algorithms and parsing of image files
BloatheadSorcerer
Posts: 2
Joined: Tue Oct 11, 2022 4:42 pm

Demon's Souls PS5 Texture Files (*.ctxr)

Post by BloatheadSorcerer »

Hello!!I have here some sample textures from the PS5 remake of Demon's Souls and they are in the format of .ctxr

I tried opening some with RawTex but there seems to be some swizzling there so can anyone help please?

The folders have a ctxr file and other ctxc files with the same name but ending with chunk#

The file includes color, mask, emissive, mud, normal, and roughness maps

https://drive.google.com/file/d/1bF-hdj ... sp=sharing
Puterboy1
Posts: 382
Joined: Wed Sep 12, 2018 2:22 am

Re: Demon's Souls PS5 Texture Files (*.ctxr)

Post by Puterboy1 »

BloatheadSorcerer wrote:Hello!!I have here some sample textures from the PS5 remake of Demon's Souls and they are in the format of .ctxr

I tried opening some with RawTex but there seems to be some swizzling there so can anyone help please?

The folders have a ctxr file and other ctxc files with the same name but ending with chunk#

The file includes color, mask, emissive, mud, normal, and roughness maps

https://drive.google.com/file/d/1bF-hdj ... sp=sharing
What tool did you use to extract the game’s .pkg?
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Demon's Souls PS5 Texture Files (*.ctxr)

Post by spiritovod »

@Puterboy1: You can't extract retail pkg since PS4 in most cases, you rather need already dumped files. There is relevant topic here: https://forum.xentax.com/viewtopic.php?p=187988, and textures are supported in rawtex already.
09williamsad
Posts: 16
Joined: Sun Dec 22, 2019 3:28 pm

Re: Demon's Souls PS5 Texture Files (*.ctxr)

Post by 09williamsad »

spiritovod wrote:textures are supported in rawtex already.
What configuration or process with rawtex did you use for the textures?
I have been doing the trial and error approach but have not got any valid textures so far.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Demon's Souls PS5 Texture Files (*.ctxr)

Post by spiritovod »

@09williamsad: chunk0 is raw data for biggest mip for any texture, you can simply drop it on rawtex and choose correct size + format + ps5 option. Sometimes rawtex can't auto-detect sizes properly, but that's not an issue and clearly visible on result. Some formats: msk (BC7), col (DXT1), ems (DXT1), nml (BC7), rgh (DXT5).