Join also our Discord channel! Click here.

Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post questions about game models here, or help out others!
Post Reply
ChaoticFusion40
beginner
Posts: 25
Joined: Sat Jun 01, 2019 8:42 am
Has thanked: 4 times
Been thanked: 3 times

Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by ChaoticFusion40 » Sat Oct 26, 2019 11:50 pm

I am making this thread so i can try getting at the models from the demo, this runs on an updated version of the hedgehog engine and specifically the formats of the models was updated as well as the inclusion of the new .pxd format in which it will contain the skeleton and animations.

samples: https://drive.google.com/file/d/1i4-2nT ... sp=sharing

these models work in modelfbx but it needs modifications to support this game, but here is an example of the mesh.
You do not have the required permissions to view the files attached to this post.
Last edited by ChaoticFusion40 on Mon Oct 28, 2019 1:32 pm, edited 1 time in total.

ChaoticFusion40
beginner
Posts: 25
Joined: Sat Jun 01, 2019 8:42 am
Has thanked: 4 times
Been thanked: 3 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by ChaoticFusion40 » Sun Oct 27, 2019 3:29 pm

Anyone.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3165
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 862 times
Been thanked: 1737 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by shakotay2 » Sun Oct 27, 2019 4:56 pm

ChaoticFusion40 wrote:
Sat Oct 26, 2019 11:50 pm
these models work in modelfbx but it needs modifications to support this game
dunno what you mean exactly?

(Here's a .model file extracted:
peach_M_surfing-model.png
)
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

ChaoticFusion40
beginner
Posts: 25
Joined: Sat Jun 01, 2019 8:42 am
Has thanked: 4 times
Been thanked: 3 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by ChaoticFusion40 » Sun Oct 27, 2019 9:34 pm

can't wait till someone can make a tool to extract them to .smd or fbx

Jaw
n00b
Posts: 12
Joined: Wed Jan 11, 2017 9:00 pm
Has thanked: 7 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by Jaw » Sat Nov 23, 2019 3:55 pm

Tried sky's modelfbx on this as well, getting similar results. Vertices, weights, bones are all fine, so it seems to be a matter of face indices only.
Had a look at model.cpp but couldn't make it work.
shakotay2 wrote:
Sun Oct 27, 2019 4:56 pm
ChaoticFusion40 wrote:
Sat Oct 26, 2019 11:50 pm
these models work in modelfbx but it needs modifications to support this game
dunno what you mean exactly?

(Here's a .model file extracted:
Shakotay, What was your process of finding the offset/count here? I figure there will be a ever so slight difference to LibGen's model::getFaceList(), but what?

There's a "FF FF FF FF FF FF FF FF FF FF FF FF" part a few bytes before the faces start, could that be used as an achor?

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3165
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 862 times
Been thanked: 1737 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by shakotay2 » Sat Nov 23, 2019 5:19 pm

Jaw wrote:
Sat Nov 23, 2019 3:55 pm
Shakotay, What was your process of finding the offset/count here?
Nothing special - had a look at the file, some trial 'n error, ready (for one submesh only).
There's a "FF FF FF FF FF FF FF FF FF FF FF FF" part a few bytes before the faces start, could that be used as an achor?
skip 6 zero bytes after it, then search for the first "00 st 00 uv 00 wx 00 yz" sequence as a face indices start.

Might work, didn't test it (st, uv,.. = any byte values, "wildcard").

Another (better?) approach:
(as an example, bytes before face indices start:)
00 00 00 01 00007540 00 00 00 03 00007544, i.e.
search for 00 00 00 ab 00 00 cd ef 00 00 00 gh 00 00 ij kl

Then the face indices to follow.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

Jaw
n00b
Posts: 12
Joined: Wed Jan 11, 2017 9:00 pm
Has thanked: 7 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by Jaw » Sat Nov 23, 2019 7:11 pm

shakotay2 wrote:
Sat Nov 23, 2019 5:19 pm
skip 6 zero bytes after it, then search for the first "00 st 00 uv 00 wx 00 yz" sequence as a face indices start.

Might work, didn't test it (st, uv,.. = any byte values, "wildcard").
Thanks! This actually worked on the _L file as well. The second aproach looks good too, but seems much harder to spot manually right now.

One question though, if I may: the Surfing_L.model file is nearly twice as big as the _M file, yet there's apparently merely 73 verts difference between them. Any clue what could be causing blow-ups like that? Hope I'm not missing some important content.

PS: just realized her crown is literally skewering her head! yikes
You do not have the required permissions to view the files attached to this post.

Jaw
n00b
Posts: 12
Joined: Wed Jan 11, 2017 9:00 pm
Has thanked: 7 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by Jaw » Sat Nov 23, 2019 7:33 pm

Ok, found the problem: looks like there's more than one blocks of faces/verts contained in each of these .model files.
Even just getting out one complete model is gonna suck without automation.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3165
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 862 times
Been thanked: 1737 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by shakotay2 » Sat Nov 23, 2019 8:34 pm

Jaw wrote:
Sat Nov 23, 2019 7:33 pm
Even just getting out one complete model is gonna suck without automation.
Shouldn't be a big deal using the Make_obj project (basic knowledge of 'C' required).
shakotay2 wrote:
Mon Mar 06, 2017 11:01 am
Once you've got the start address of face indices (FIstart)
start_of_vertices = FIstart + FIcount x 2

(works for peach_M_surfing.model at least and your "MarioSonicMurderCrown")
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

akderebur
ultra-veteran
ultra-veteran
Posts: 544
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 63 times
Been thanked: 624 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by akderebur » Sun Nov 24, 2019 1:11 am

Here is a small tool that extracts the meshes as obj. Drag and drop the ".model" file on the exe and it will export the objs in a new folder. I made it really quickly, so not much error handling. Seems to work fine with the uploaded samples.

Image

The format doesn't look too hard. I might make a proper tool with skeleton/skinning if I find the time.
You do not have the required permissions to view the files attached to this post.

ChaoticFusion40
beginner
Posts: 25
Joined: Sat Jun 01, 2019 8:42 am
Has thanked: 4 times
Been thanked: 3 times

Re: Mario And Sonic at the Olympic Games Tokyo 2020 Demo (.model)

Post by ChaoticFusion40 » Sun Aug 02, 2020 12:59 am

akderebur wrote:
Sun Nov 24, 2019 1:11 am
Here is a small tool that extracts the meshes as obj. Drag and drop the ".model" file on the exe and it will export the objs in a new folder. I made it really quickly, so not much error handling. Seems to work fine with the uploaded samples.

Image

The format doesn't look too hard. I might make a proper tool with skeleton/skinning if I find the time.
since the game is released, can you make a tool to convert them to either ascii or fbx.

Post Reply