Textures, recreate headers, conversions, algorithms and parsing of image files
darkmem
Posts: 4 Joined: Mon Oct 12, 2020 5:27 pm
Post
by darkmem » Mon Oct 12, 2020 5:52 pm
Hi!
I'm trying to port PS3 font file (from Tales From The Borderlands game) to PS4 version of the same game.
Simply using PS3 font on PS4 doesn't work, texture is corrupted.
The difference is the dds texture.
PS3 font dds image:
PS4 font dds image:
What is the format PS4 is using and how can I convert dds from PS3 font so it will work on PS4?
Last edited by
darkmem on Tue Oct 13, 2020 10:15 am, edited 1 time in total.
Acewell
Posts: 706 Joined: Fri Aug 08, 2014 1:06 am
Post
by Acewell » Mon Oct 12, 2020 8:26 pm
according to Rawtex tool your Compacta_PS4.font file is
512x512 - bgra8888 unorm - PS4 swizzled
darkmem
Posts: 4 Joined: Mon Oct 12, 2020 5:27 pm
Post
by darkmem » Tue Oct 13, 2020 9:21 am
Acewell wrote: according to Rawtex tool your Compacta_PS4.font file is
512x512 - bgra8888 unorm - PS4 swizzled
Thank you!
I'm trying to convert it with Rawtex tool but this is how it looks:
If this is an offset problem, how can I calculate it?
Re-attaching the font since the one in the first post was some different file, sorry for that.
darkmem
Posts: 4 Joined: Mon Oct 12, 2020 5:27 pm
Post
by darkmem » Tue Oct 13, 2020 1:59 pm
Ok now it's a bit closer to the truth but I can't find the right texture format
Rainx
Posts: 21 Joined: Sat Feb 24, 2018 7:24 am
Post
by Rainx » Tue Oct 13, 2020 8:19 pm
Here you go: 1) offset 27ce, 512x512, bgra8888 2) offset 2bea, 512x2048, bc3
darkmem
Posts: 4 Joined: Mon Oct 12, 2020 5:27 pm
Post
by darkmem » Wed Oct 14, 2020 8:49 am
Rainx wrote: Here you go: 1) offset 27ce, 512x512, bgra8888 2) offset 2bea, 512x2048, bc3
Thank you, Rainx!
One stupid question: is there a way to swizzle texture back?
EDIT: I managed to swizzle it back with orbis-image2gnf.exe
rubinho146
Posts: 22 Joined: Wed Aug 17, 2016 12:15 pm
Post
by rubinho146 » Wed Apr 21, 2021 5:45 pm
darkmem wrote: Rainx wrote: Here you go: 1) offset 27ce, 512x512, bgra8888 2) offset 2bea, 512x2048, bc3
Thank you, Rainx!
One stupid question: is there a way to swizzle texture back?
EDIT: I managed to swizzle it back with orbis-image2gnf.exe
Where did you find the orbis-image2gnf.exe?
h3x3r
Posts: 165 Joined: Wed Jun 01, 2016 5:53 pm
Post
by h3x3r » Thu Apr 29, 2021 9:48 am
rubinho146 wrote: Where did you find the orbis-image2gnf.exe?
orbis-image2gnf.exe is in the PS4 SDK
rubinho146
Posts: 22 Joined: Wed Aug 17, 2016 12:15 pm
Post
by rubinho146 » Thu Apr 29, 2021 4:31 pm
h3x3r wrote: rubinho146 wrote: Where did you find the orbis-image2gnf.exe?
orbis-image2gnf.exe is in the PS4 SDK
Yeah, I ended up finding it some days ago! Thanks for the reply.