gdkchan / SPICA

Experimental H3D tool
The Unlicense
95 stars 46 forks source link

MBN vert colors for some stages not correct #11

Closed Demonslayerx8 closed 7 years ago

Demonslayerx8 commented 7 years ago

As title says. MBN stages in smash3ds have vert colors not correct (like it used to be in Ohana Rebirth), and even tho the model is properly rigged to the bone(s), it seems like single binded models don't save their positions after being exported, meaning the model is being moved to 0,0,0, while the bone stays put to where it goes.

vert colors wrong model not positioned to bone

gdkchan commented 7 years ago

IIRC I only implemented rigid skinned meshes transforming on the SMD exporter, but not on the DAE exporter since it would be more complicated due to the way how DAE is structured (basically I would need to create a new vertex buffer with all meshes transformed and then create a new indices buffer that would be used on DAE), so I decided to do this later.

About the mbn issue well, at least the textures are correct now 😄 Can you say which models have the color issue? (Just two or three is enough so I know what to use to test this).

Demonslayerx8 commented 7 years ago

for the vertex colors, characters are fine, for stages... Gerudo Valley Omega, Hyrule Castle Omega, Magicant Sky, Midgar Ring Omega, Unova Pokemon Leage

if you want anymore, i can search.

gdkchan commented 7 years ago

The second problem (meshes being at origin rather that at bone position) should be fixed by eee2a10abf1ab0b00418d25723b36f00cb4e2852 (let me known if it isn't), i'll look into the color issue when I have more time.

Demonslayerx8 commented 7 years ago

Yep, model is now fixed to the bone position! Now i'll be waiting for the color fixes. model positioned to bone

gdkchan commented 7 years ago

Color issue should be fixed on ccdba3df13ba0889e6ce2b3d70e2e1740e9d4bf4 (please confirm).

Demonslayerx8 commented 7 years ago

displays the colors properly now, thanks~