Resident Evil 4 PS2 .SMD file

Skeletons, animations, shaders, texturing, converting, fixing and anything else related to read game models
HardRain
Posts: 4
Joined: Mon Aug 23, 2021 3:08 pm

Resident Evil 4 PS2 .SMD file

Post by HardRain »

Hey there, guys.

I need help to extract the files inside a .SMD container, it contains dozens of .bin files that are 3D models and a .tpl file at its end that contains all the textures for the models.

Here is how the headers are built:
40 00 1B 01 D0 46 00 00 D0 C9 26 00 00 00 00 00
9E 87 E2 C7 00 00 00 00 00 00 00 00 00 00 80 3F
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F
00 00 20 41 00 00 20 41 00 00 20 41 00 00 80 3F
81 00 FF 00 00 00 00 00 09 00 00 00 00 00 00 00
2F AD 65 47 00 00 00 00 00 00 00 00 00 00 80 3F
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3F
00 00 20 41 00 00 20 41 00 00 20 41 00 00 80 3F

1B 01 = Number of models that the SMD has (283 in integer value)
D0 46 00 00 = Pointer to where .bin files starts
D0 C9 26 00 = Pointer to where .tpl file starts

81 00 = Model ID contained within the SMD
2F AD 65 47 = Translation X - 00 00 00 00 = Rotation X - 00 00 20 41 = Scale X
00 00 00 00 = Translation Y - 00 00 00 00 = Rotation Y - 00 00 20 41 = Scale Y
00 00 00 00 = Translation Z - 00 00 00 00 = Rotation Z - 00 00 20 41 = Scale Z

Here's the link for download:
https://usaupload.com/file/4VSy/r100_04.SMD

Any help will be much appreciated! :D