Important information: this site is currently scheduled to go offline indefinitely by end of the year.

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 »

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 »

Anyone.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4284
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1146 times
Been thanked: 2242 times

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

Post by shakotay2 »

ChaoticFusion40 wrote: Sat Oct 26, 2019 11:50 pmthese 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.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
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 »

can't wait till someone can make a tool to extract them to .smd or fbx
Jaw
beginner
Posts: 24
Joined: Wed Jan 11, 2017 9:00 pm
Has thanked: 14 times

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

Post by Jaw »

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 pmthese 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: 4284
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1146 times
Been thanked: 2242 times

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

Post by shakotay2 »

Jaw wrote: Sat Nov 23, 2019 3:55 pmShakotay, 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.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Jaw
beginner
Posts: 24
Joined: Wed Jan 11, 2017 9:00 pm
Has thanked: 14 times

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

Post by Jaw »

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
beginner
Posts: 24
Joined: Wed Jan 11, 2017 9:00 pm
Has thanked: 14 times

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

Post by Jaw »

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: 4284
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1146 times
Been thanked: 2242 times

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

Post by shakotay2 »

Jaw wrote: Sat Nov 23, 2019 7:33 pmEven 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")
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

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

Post by akderebur »

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 »

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.
Pigeon
n00b
Posts: 19
Joined: Mon Mar 29, 2021 7:04 am

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

Post by Pigeon »

Hi,

Can you make the tool so it extracts out the bones with the skin please?

Thanks,
Post Reply