xenia-project / xenia

Xbox 360 Emulator Research Project
https://xenia.jp
Other
8.21k stars 1.13k forks source link

Add a texture dump feature #780

Open osdeverr opened 7 years ago

osdeverr commented 7 years ago

No logs/callstack/whatever, that's a request for a feature. I imagine it as a hotkey toggle, whenever it's on the texture draw function saves every texture/normal map/specular map/etc to a specified folder. Why? Because X360 is relatively old and had pretty decent specs for its time, so game devs have been making their games look better on it. It's very easy to do, so why not? :3

Razzile commented 7 years ago

this would be a good thing for any new contributors wanting to help with xenia development to try an implement

0x8080 commented 7 years ago

@Razzile Ayy where have you been?

DrChat commented 7 years ago

This should be fairly easy to do for someone that knows how to work with Vulkan.

You can loop through all the cached textures in the texture cache (in the CP thread), and dump them one-by-one out to the filesystem. There will be no way to assign filenames as we do not have that information.

osdeverr commented 7 years ago

Nevermind BTW, I needed it for NFSMW but I opened the texture files themselves.

TorutheRedFox commented 1 year ago

Nevermind BTW, I needed it for NFSMW but I opened the texture files themselves.

it'd still be useful for vt reverse engineering

fishingforpie commented 1 year ago

Is there a way this can be done? There's a game I need textures for but I can't open the files (the engine is too confusing and the people on Xentax and Zenhax are gone because the forums are all dead/dying).

Ales724 commented 1 month ago

Any updates on this? I want to dump the high quality font from Crash - Mind Over Mutant and backport it to the PS2/Wii version. I tried extracting the iso itself but i keep getting .rcf files that i can't open. Having an option to dump the textures the same way as on PCSX2 would be a godsend

ujicos commented 1 month ago

https://github.com/xenia-project/xenia/blob/master/src/xenia/gpu/texture_dump.cc There's a bool for it, but i cant see it actually function, for whatever reason...

Ales724 commented 1 month ago

https://github.com/xenia-project/xenia/blob/master/src/xenia/gpu/texture_dump.cc There's a bool for it, but i cant see it actually function, for whatever reason...

I can see that it's disabled by default for some reason. Maybe it needs it to set texture dump set to "true" instead of "false". I don't have any kind of experience in programming so i could be wrong i'm just going off of experience compiling some packages on Linux.

Screenshot from 2024-09-10 12-59-16

ujicos commented 1 month ago

I tried forcing it to true and even setting breakpoints, it seems unused....

gibbed commented 1 month ago

It's legacy code from when texture conversion was done on CPU rather than GPU.

Margen67 commented 1 month ago

Textures can be dumped using PIX or Renderdoc.