[Multiplatform] HD2x - High Resolution Textures for P5

Share, discover, or contribute to mods for Persona 5 for PS3 and PS4.
User avatar
Zelkin
Posts: 63
Joined: Fri Oct 11, 2019 2:32 pm
Location: France
Has liked: 6 posts
Been liked: 12 posts

Hi folks!

I present to you an AI upscaled texture mod of all the environment textures for Persona 5.
All textures have been upscaled using the waifu2x caffe software, increasing the dimension by 2 times in width and length. Pixel count is increased 4 times. As a side effect, many baked light sources and shadows have been upscaled as well.

Here is the link to GameBanana with the required files and installation instructions: https://gamebanana.com/mods/317893


Here are some screenshots for comparison (Before | After). This mod has better mipmaps for all textures, which reduces shimmering/aliasing. It also fixes some game bugs, such as wrong reflections.

https://ibb.co/61qxZNg | https://ibb.co/g3V38BH
https://ibb.co/0qgtxTx | https://ibb.co/qdVy990
https://ibb.co/D96dDBN | https://ibb.co/NV4pBGL
https://ibb.co/WDnmKvS | https://ibb.co/s3cLHtf

Feel free to take comparative screenshots and post them here!

Update: fixed bugged textures in Velvet room and on some trains, removed some unnecessary large files, should fix the infinite load screen issue
Update 2: fixed some additional bugs in Artist and Castle palaces
Update 3: fixed all green/pink textures related bugs, added back large files for extra sharpness
Update 4: fixed transparency related issues on some textures, sharpened a bit more all textures
Update 5: fixed random softlocks when fast travelling to Tae Takemi's clinic and to Akihabara
Update 6: fixed issues in Space palace
Update 7: fixed more issues in Space palace, in Boat palace and removed some useless files
Last edited by Zelkin on Mon Aug 30, 2021 2:22 pm, edited 40 times in total.
Best grill
User avatar
E25
Posts: 18
Joined: Mon Jul 06, 2020 10:22 am
Location: Scotland
Has liked: 1 post

Excellent work!
Tried the mod when it was still WIP, glad to see you got around to finish it.

There is a subtle, but certainly noticable increase in sharpness on pretty much everything in the world, most noticable on objects that have writing or other intricate details. Does make it a bit harder to run and inital loadtimes are a bit longer, but certainly worth it imo.

However I did noticed that textures with english writing/textures that were localised seem to be unaffected, now I don't know wheter this is simply an oversight or they are low res beyond saving (I'll check the files when I have the time). They stood out quite a bit in the unmodded and definitely stand out now. Found a few other textures that didn't have any/much text on them yet were still quite low res.

Example:
Map found in the Underground Walkway in Shobuya, og version:
Image
https://ibb.co/X51w4bc
Seemingly the same in modded ver.:
Image
https://ibb.co/WHxtv6W

If they are still this blurry with upscaling, I might get around to just fix them up manually; provided you'd be up for pathcing it in.

Or all of this could be just on my end, but everything else seems to work fine.
Thanks again for the mod.
Creature with a passion for graphics and modelling.
User avatar
Zelkin
Posts: 63
Joined: Fri Oct 11, 2019 2:32 pm
Location: France
Has liked: 6 posts
Been liked: 12 posts

Thanks for trying out the mod!
Yes, I am aware of this issue. As you said, some of the game textures are very low quality and hard to recover even with AI. I am working on a fix. On my side the textures are not as blurry however:
with the mod: https://ibb.co/g3V38BH
without : https://ibb.co/61qxZNg
Are you sure you didn't mix up something in your installation ? I'm playing with the BLUS31604 version of the game.
As for fixing manually the textures, it might become a huge undertaking: many textures are in a disastrous state in the vanilla game. Also, there are many duplicates, meaning that the same texture can be used in different files, and need to be modified everywhere as there is no way (I didn't find any) to quickly tell which one is applied where.
Feel free to send them to me if you wish, just tell me the name, original compression level (DXT1, 3 or 5) and from which file you extracted it.
Best grill
User avatar
E25
Posts: 18
Joined: Mon Jul 06, 2020 10:22 am
Location: Scotland
Has liked: 1 post

Zelkin wrote: Fri Jul 24, 2020 2:22 am Thanks for trying out the mod!
Yes, I am aware of this issue. As you said, some of the game textures are very low quality and hard to recover even with AI. I am working on a fix. On my side the textures are not as blurry however:
with the mod: https://ibb.co/g3V38BH
without : https://ibb.co/61qxZNg
Are you sure you didn't mix up something in your installation ? I'm playing with the BLUS31604 version of the game.
As for fixing manually the textures, it might become a huge undertaking: many textures are in a disastrous state in the vanilla game. Also, there are many duplicates, meaning that the same texture can be used in different files, and need to be modified everywhere as there is no way (I didn't find any) to quickly tell which one is applied where.
Feel free to send them to me if you wish, just tell me the name, original compression level (DXT1, 3 or 5) and from which file you extracted it.
Playing on the BLUS31604 version as well, running mods with mod compendium (4k xbox controller prompts, HD2x, Full 4k UI upscale; in that order) with compression, on the extra Vram RPCS3 fork. I'll try to see if changing the order or turning off compression does anything as I can't get the xbox prompts working either.
Creature with a passion for graphics and modelling.
User avatar
Zelkin
Posts: 63
Joined: Fri Oct 11, 2019 2:32 pm
Location: France
Has liked: 6 posts
Been liked: 12 posts

You need to decompress the .rar archive before building with the mod compendium. Also, the extra Vram RPCS3 build is not needed to run this mod. You still need it for 4k Ui however
Best grill
User avatar
E25
Posts: 18
Joined: Mon Jul 06, 2020 10:22 am
Location: Scotland
Has liked: 1 post

Zelkin wrote: Fri Jul 24, 2020 4:26 pm You need to decompress the .rar archive before building with the mod compendium. Also, the extra Vram RPCS3 build is not needed to run this mod. You still need it for 4k Ui however
Naturally the archive has been extracted. While it's true that the vram fork is not needed for this mod, the 4k UI mod requires it. Tried it with xbox/hd2x/4k ui and compression off, refused to work at all. I'll look into it more, maybe the xbox mod is the one interfering.
Creature with a passion for graphics and modelling.
User avatar
E25
Posts: 18
Joined: Mon Jul 06, 2020 10:22 am
Location: Scotland
Has liked: 1 post

Got it working, seems like there was an issue on mod compendium's part.

Running two versions of the games side by side it's clear just how much the upscale helped:
https://ibb.co/Y7jVvsK

But it's also clear that there is a lot of visual information missing due to the low res that cannot be interpeted even by ai. I'll look into a couple of algorithms to see if there's one that excells at text, as it seems those suffered the most from the low res. Doubt I could redo every one of them as I seem to have an incomplete cache, but that's beside the point.

On an another note I do woner if it'd be possible/worthwhile to rip textures for text and such from P5R, but I don't know what res those are in and nor do I have access to the files.

Btw really impressed with the lack of distortions, thanks again!
Creature with a passion for graphics and modelling.
creeper88-boy
Posts: 4
Joined: Wed Jul 29, 2020 1:11 pm
Has liked: 1 post

hi does this mod work with a lower pc?
User avatar
Zelkin
Posts: 63
Joined: Fri Oct 11, 2019 2:32 pm
Location: France
Has liked: 6 posts
Been liked: 12 posts

Try it and tell me
Best grill
User avatar
E25
Posts: 18
Joined: Mon Jul 06, 2020 10:22 am
Location: Scotland
Has liked: 1 post

Looked into the textures, image for the metor map on the wall can be found in

Code: Select all

tex001_001_00_01.bin
, under

Code: Select all

f001_001_b1_sign.dds
. https://ibb.co/xzYCfdr
Sadly the texture file is only 128*256, and it's part of multiple sign textures, so there's little can be done to improve upon your upscaling due to how little data there is to work with.

Only possibility/next step I see is ripping textures from P5R, as those seem to be of much higher resolution, 2-3x I'd imagine. Far as I know the tools haven't been updated yet to work with the files that the PS4 version uses, but I might be wrong on that (couldn't even try as I don't have the files).


creeper88-boy wrote: Sun Aug 02, 2020 10:37 am hi does this mod work with a lower pc?
Provided you have the Vram for it, it should, however you will see a performance impact. It's most prelevant in areas where you don't already hit the fps cap (regardless of whether it's 30 or 60), such as in city streets or large open areas in castles. Unless you're struggling to run the game at 30fps at whatever 720 or 1080p, I'd recommend that you try it out and see if the performance impact is worth it for you.
Creature with a passion for graphics and modelling.
Post Reply
cron

ShrineFox 2020 - 2023
Support | Progress | Labs | Privacy | Terms
This site is NOT affiliated, associated, authorized, endorsed by, or in any way officially connected with Atlus Co., Ltd, Atlus U.S.A., Inc. or Sega Games Co., Ltd, or any of its subsidiaries or its affiliates.