Page 1 of 1
LittleBigPlanet 3 Background Scenery .smh
Posted: Sat Jun 20, 2015 12:29 am
by Miles2345
The backgrounds in LBP3 use a format called .smh, which I think stands for "squished model" or something of that sort, the format is very different from the format the models use. They're compressed, but after decompressing them, you get a file like these:
http://puu.sh/ivoKi.out
http://puu.sh/ivrB7.out
I tried using hex2obj on it with no luck, could someone help me out?
Re: LittleBigPlanet 3 Background Scenery .smh
Posted: Sun Jun 21, 2015 6:38 am
by shakotay2
env_caverns_out.JPG
(first submesh only)
Do a hex search for 000000010002 to find the start addresses of the face indices blocks.
Here it's 94 submeshes.
So it will be a little bit tedious
to build the whole mesh if you don't have basic skills in "C"
(to build a Make_H2O project) or maxscript.
Re: LittleBigPlanet 3 Background Scenery .smh
Posted: Tue Jun 30, 2015 7:43 pm
by TGE
I wrote a smh to obj converter in C#. I wasn't able to figure out the normals or uvs right now but I'll add them in if I do.
Most submeshes convert correctly, however few are messed up for unknown reasons.
Just drag an smh file into it and it will output an obj.
Also, these levels are high poly holy shit.
EDIT: I figured out what was causing the submeshes to mess up. They were using a mix of triangle strips and triangle lists.
Easy to implement by checking whether or not the strip has flipped and (stripSize % 6 == 0)
Still no uvs or normals though, got anything on that shakotay?
smh2obj.7z
Re: LittleBigPlanet 3 Background Scenery .smh
Posted: Fri Jul 03, 2015 7:06 pm
by Miles2345
whoa, wasn't expecting a whole program to convert them, thanks!
uv's and normals would be awesome though too if you can figure those out, shakotay?
Re: LittleBigPlanet 3 Background Scenery .smh
Posted: Fri Jul 03, 2015 8:22 pm
by shakotay2
looks like half floats at UVpos=20 wich need some up scaling:
env_caverns_UVs.JPG
(You'll need some fiddeling to get that displayed using hex2obj's UVs preview.)
HF-normals at offset 22 of the FVF block (did not check it in blender).
Re: LittleBigPlanet 3 Background Scenery .smh
Posted: Sat Jul 04, 2015 3:39 am
by TGE
Okay I added the uvs in. Tried poking around in the buffer but couldn't get any good looking normals out.
Might be using packed normals (10 bits for xyz, pretty common on ps3/360) or whatever they're using.
smh2obj.7z