PS4 font file dds problem

Textures, recreate headers, conversions, algorithms and parsing of image files
darkmem
Posts: 4
Joined: Mon Oct 12, 2020 5:27 pm

PS4 font file dds problem

Post by darkmem »

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:
Image

PS4 font dds image:
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

Re: PS4 font file dds problem

Post by Acewell »

according to Rawtex tool your Compacta_PS4.font file is
512x512 - bgra8888 unorm - PS4 swizzled
:D
darkmem
Posts: 4
Joined: Mon Oct 12, 2020 5:27 pm

Re: PS4 font file dds problem

Post by darkmem »

Acewell wrote:according to Rawtex tool your Compacta_PS4.font file is
512x512 - bgra8888 unorm - PS4 swizzled
:D

Thank you!

I'm trying to convert it with Rawtex tool but this is how it looks:
Image

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

Re: PS4 font file dds problem

Post by darkmem »

Ok now it's a bit closer to the truth but I can't find the right texture format

Image
Rainx
Posts: 21
Joined: Sat Feb 24, 2018 7:24 am

Re: PS4 font file dds problem

Post by Rainx »

Here you go:

1) offset 27ce, 512x512, bgra8888
2) offset 2bea, 512x2048, bc3
darkmem
Posts: 4
Joined: Mon Oct 12, 2020 5:27 pm

Re: PS4 font file dds problem

Post by darkmem »

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

Re: PS4 font file dds problem

Post by rubinho146 »

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

Re: PS4 font file dds problem

Post by h3x3r »

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

Re: PS4 font file dds problem

Post by rubinho146 »

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.