Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Texture replacement madness.
#1
Information 
IMPORTANT

Consider everything in this thread deprecated, follow these links instead:
http://forums.ppsspp.org/showthread.php?tid=18963

https://github.com/hrydgard/ppsspp/pull/8715

Well, first off hi, my first post on these forums.

I've been using PPSSPP for a long time and after a series of events i am now able to replace textures in games (in D3D9 mode).

It started in an attempt to rip the Maps from Monster Hunter games, using Ninja Ripper, it worked flawlessly and i was able to obtain all the maps from F1, FU and P3rd, later i tried TexMod to modify textures and well, it worked, for a time, when it didn't work anymore i started messing with stuff to learn what was it that allowed TexMod to work, then i learned that the d3d9.dll file created by ninja ripper in the PPSSPP folder was necessary for TexMod.

So i went ahead and replaced textures, first with random online textures and later with PS2 equivalents of the same textures (also obtained with ninja ripper) and my own edits to those textures, like flipped colors and other basic stuff.

So the next thing i did was to use uMod instead, which is an updated version of TexMod, seemingly also relying on the dll created by ninja ripper, it also worked.

What's the true purpose of this thread?, well, motivate someone with the knowledge to implement this as a feature of the emulator instead, so it also works with OpenGL backend, of course i did search beforehand and i found words about this being feasible, but nothing concrete or recent, of course, it is understandable if people would rather work on stuff to polish the actual emulation.

I'd like to see other people experimenting with these programs and posting about the results, well, that's all i wanted to say. Tongue

How to achieve this:
1.-Download Ninja Ripper
2.-Download uMod 1.x
Optional.-Download Paint.Net and a plugin to flip/rotate rgb channels(Search for "Color Flip/Rotate plugin".
3.-Start PPSSPP and set it to D3D9 backend and close it after it restarts.
4.-Open Ninja Ripper, set it to D3D9 Wrapper mode(Below the Run button), set the target Exe to ppsspp.exe, Dir should be the directory where ppsspp is stored, then click run.
5.-After PPSSPP has started, close it and check if the folder for PPSSPP contains a file called d3d9.dll, if it does, continue to next step.
6.-Open uMod, go to Main-Start Game through uMod-Select the game to start and select the PPSSPP executable, after this it should start and the uMod windows will change.
7.-Back to the uMod windows, set buttons for back, save and next (i usually put them on VK_Left, Up and Right respectively), thick the save single texture box and set a save directory, now click update and go back to ppsspp, notice how now there's red text indicating what texture you selected, now go to a game and get to the part where the texture you wanna modify appears and browse the textures with the Back and Next buttons you set before, the selected texture will turn Green in the game, so keep browsing until that texture turns green and press the Save button you set before.
8.-Now go and modify the texture you saved, it is in DDS format, which Paint.Net can open.
9.-You'll notice the texture has wrong colors, as its RGB channels are inverted (BGR), you need to find a way to flip them, either with the plugin i mentioned before or another method you find online, if you found the plugin i mentioned it should show several squares which you can click, click on the lower left one, notice how below the squares there's text that says B^G^R^ or similar, and click ok.
10.-When you're done with editing the texture, run the color flip again and save it.
11.-Go back to uMod and run ppsspp again, then click open texture/package and select the texture you modified and press the Update button, go back into the game and into the part where the texture you modified appears and your modified texture should be there.
12.-For multiple textures, you can put them inside a Zip file and load that file with the open texture/package button.
Reply
#2
Wait, you replaced textures? Damn, that's great! Would it be possible to edit it ourself and make like HD textures?
Hrydgard said he would implement the option to change the textures, just like Dolphin has the option to do it but when that's gonna happen i dunno.
Reply
#3
With both TexMod and uMod i was able to replace textures with higher resolution ones, they scaled properly, so yes, it would be possible.
Reply
#4
.... I could see PS3/PS4 level of texture coming ._.
Old laptop: Lenovo G458
AMD/ATI Radeon HD 7310 | 1366x768@60Hz | APU E1-1200 Dual Core | 2.5 GB DDR3 400MHz | Windows 7 Home Premium 32-bit

New laptop: Lenovo ideapad 100
Nvidia Geforce 920M 2GB / Intel HD Graphics 5500 | 1366x768@60Hz | Intel Core i3-5005U 2GB | 2GB DDR3 2000MHz | Window 10 Home 64-bit
Reply
#5
Lol, if computers are strong enough then probably, yeah :p.

Added a guide on how to do this.
Reply
#6
Interesting, thank you for the quick guide Smile
♦ Intel Core i7-6700HQ | 16 GB RAM | NVIDIA GeForce GTX 960M | Debian Testing
♦ Intel Core i7-2630QM | 4 GB RAM | NVIDIA GeForce GT 540M | Debian Testing
♦ PSP-3004 | 6.60 PRO-C2
Reply
#7
Here's an example of higher resolution textures in use, in this case, i replaced the Rathalos' textures with ps2 counterparts.


Attached Files Thumbnail(s)
   
Reply
#8
I hope they manage to implement this like Dolphin's texture replacer. Wanna do HD Danball Senki W
Reply
#9
Could you explain to me how you flip the colors with Gimp? I've tried the rotate color option many times and failed.
Reply
#10
(10-16-2015, 05:04 PM)LinnersXWosers Wrote: Could you explain to me how you flip the colors with Gimp? I've tried the rotate color option many times and failed.

on menu bar u have position named color

click it and from drop down menu check each option
and 1 option eventually will be solution for u
Try AntiMicro graphical program used to map keyboard keys and mouse controls to a gamepad/controller.
http://forums.ppsspp.org/showthread.php?tid=12513
or http://www.x360ce.com


Reply
#11
Hi,

I'm curious how you got this to work ( version of ppsspp/ninjaripper/umod? ) because I've been trying to get this to work and at step 6 it just keeps crashing the moment it tries to load ppsspp from umod...

This would really help with my own project as a means of quickly testing stuff out rather than rebuilding the image every time I want to check a texture...

Thanks

Edit: appears you need an older version of ninja ripper for this to work... got everything working now!
Reply
#12
So does it really replaces the texture inside the game (ISO)? Coz I tried to run PPSSPP without NinjaRipper and uMod and it looks like the edited texture didn't appear. So do I have to run uMod first to get the edited texture to appear?
Reply
#13
Ok. I've been messing with GVGNP textures. Black Epyon! XD


Attached Files Thumbnail(s)
   
Reply
#14
(10-16-2015, 06:12 PM)ZeroX4 Wrote:
(10-16-2015, 05:04 PM)LinnersXWosers Wrote: Could you explain to me how you flip the colors with Gimp? I've tried the rotate color option many times and failed.

on menu bar u have position named color

click it and from drop down menu check each option
and 1 option eventually will be solution for u

Could you please be a bit more specific? no options under the color menu offer what you describe in GIMP. Paint.NEt will not load the plugins described in the OP for me. Only errors.

Perhaps provide a screenshot? thanks.
Reply
#15
(09-16-2015, 04:08 PM)YukiHerz Wrote: Here's an example of higher resolution textures in use, in this case, i replaced the Rathalos' textures with ps2 counterparts.
Can we get a before and after pic? In higher reso too.
Reply


Forum Jump: