Page 1 of 3

model ripping

PostPosted: Mon Mar 08, 2021 1:33 pm
by Dogey
would riping the models from daytona usa 2 (vehicles and tracks) be possible? i would love to use them in mods for other games

Re: model ripping

PostPosted: Mon Mar 08, 2021 9:19 pm
by Bart
Yes it would but you'd have to write your own code to do it. Getting it to dump perfect texture-mapped models for every game would be hard given some of the weird texture formats but in your case, the models you are probably interested (player vehicles in Daytona 2), it would be straightforward. Model 3's graphics hardware has a whole scene graph with transform matrices and pointers to model data in ROM and RAM. You could traverse that in the same way the rendering engine does and then write out some sort of a model file.

The McLaren body image on the Supermodel download page was generated by writing my own custom viewer back in 2010 when I was beginning work on Supermodel. I gave it data that came directly from polygon RAM.

Re: model ripping

PostPosted: Tue Mar 09, 2021 1:49 am
by Jiterdomer
Would it be possible to rip 2D Graphics to dig out unused graphics into the cutting room floor?

Re: model ripping

PostPosted: Tue Mar 09, 2021 3:51 pm
by Bart
Jiterdomer wrote:Would it be possible to rip 2D Graphics to dig out unused graphics into the cutting room floor?


You can dump textures (I think code in the legacy engine exists to do that) or 2D tiles the games load into memory but who knows what might be stored in ROM. That would require good old fashioned and painstaking detective work.

Re: model ripping

PostPosted: Sun Mar 05, 2023 10:05 am
by Felix420
Bart wrote:Yes it would but you'd have to write your own code to do it. Getting it to dump perfect texture-mapped models for every game would be hard given some of the weird texture formats but in your case, the models you are probably interested (player vehicles in Daytona 2), it would be straightforward. Model 3's graphics hardware has a whole scene graph with transform matrices and pointers to model data in ROM and RAM. You could traverse that in the same way the rendering engine does and then write out some sort of a model file.

The McLaren body image on the Supermodel download page was generated by writing my own custom viewer back in 2010 when I was beginning work on Supermodel. I gave it data that came directly from polygon RAM.


How can I access this Polygon RAM in the code? Because my plan would be to extend the BMPFile writing process to right all what's stored in the Polygon RAM as well into a second file. Thanks!

Re: model ripping

PostPosted: Wed Mar 08, 2023 6:31 am
by Felix420
I found a solution, no coding required!

I ripped the character of the beginning from Lostwsga with RenderDoc and raw2obj.py

You just have to export every single DrawCall of the character as CSV (in this case 32) and then you have to convert them with raw2obj.py to obj to open them in Blender. Then you have to assemble them, the UVs will be screwed by the way.

That's all I got so far.

Re: model ripping

PostPosted: Wed Mar 08, 2023 1:31 pm
by Bart
Felix420 wrote:I found a solution, no coding required!

I ripped the character of the beginning from Lostwsga with RenderDoc and raw2obj.py

You just have to export every single DrawCall of the character as CSV (in this case 32) and then you have to convert them with raw2obj.py to obj to open them in Blender. Then you have to assemble them, the UVs will be screwed by the way.

That's all I got so far.


That's one way to do it. And probably the easiest.

Re: model ripping

PostPosted: Fri Mar 17, 2023 3:38 am
by Joaquim Gonçalves
TexMod is a tool it can load textures, sadly it can´t reconize the .exe tool. Maybe bart is interrested to check the tool and maybe, just maybe put it working to change textures. ;)

https://www.moddb.com/downloads/texmod4

https://www.youtube.com/watch?v=OdTGe8vsCYg

Re: model ripping

PostPosted: Sun Mar 19, 2023 1:19 am
by nuexzz..
the mentioned tool works with dx9 wrappers and supermodel uses opengl therefore developers would have to write a tool from scratch, I read a bit that each engine is capable, but obviously it is not within my understanding.

Re: model ripping

PostPosted: Thu Mar 23, 2023 9:09 am
by Joaquim Gonçalves
nuexzz.. wrote:therefore developers would have to write a tool from scratch


If was possible, easy will be for modding. :)