LittleBigPlanet 3 Background Scenery .smh

Post questions about game models here, or help out others!
Post Reply
User avatar
Miles2345
advanced
Posts: 41
Joined: Sun Sep 07, 2014 10:24 pm
Has thanked: 6 times
Been thanked: 4 times

LittleBigPlanet 3 Background Scenery .smh

Post 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?
"O for a Muse of fire, that would ascend the brightest heaven of invention"
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4134
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1124 times
Been thanked: 2154 times

Re: LittleBigPlanet 3 Background Scenery .smh

Post 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.
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
Some things will never change. [roll]
"You quoted the whole thing, what a mess."
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 35 times
Contact:

Re: LittleBigPlanet 3 Background Scenery .smh

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Miles2345
advanced
Posts: 41
Joined: Sun Sep 07, 2014 10:24 pm
Has thanked: 6 times
Been thanked: 4 times

Re: LittleBigPlanet 3 Background Scenery .smh

Post 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?
"O for a Muse of fire, that would ascend the brightest heaven of invention"
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4134
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1124 times
Been thanked: 2154 times

Re: LittleBigPlanet 3 Background Scenery .smh

Post 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).
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
Some things will never change. [roll]
"You quoted the whole thing, what a mess."
TGE
veteran
Posts: 109
Joined: Wed Jun 04, 2014 7:48 pm
Location: Netherlands
Has thanked: 20 times
Been thanked: 35 times
Contact:

Re: LittleBigPlanet 3 Background Scenery .smh

Post 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
You do not have the required permissions to view the files attached to this post.
Post Reply