BunyaPineTree / LethalCompany_ModelReplacementAPI

MIT License
55 stars 17 forks source link

Model Issue #78

Closed AndrewHKGithub closed 8 months ago

AndrewHKGithub commented 8 months ago

Hi, it's been a minute. Since you helped me learn how to use your tool I've been having a ton of fun importing primarily MMD models into the game, and it's been a really fun and novel way for me to dip my toes into using Unity and Blender, which I've always wanted to but never have proper. So for a more ambitious project, I found a 3D model from a game that hasn't been rigged at all, and made my first armature-mesh combination with it. It works in Blender and Unity, but when I load it into Lethal the model doesn't appear. I think its because the method I used to construct the model, instead of a single mesh with painted weights, because the 3D model is of a robot with complicated geometry, I opted to make each joint a separate mesh and parented them to bones separately. Do you have any insight on what I can do to get it working in-game? Screenshot 2024-03-03 033033

AndrewHKGithub commented 8 months ago

Oh yeah, and this is the error I get when I try to equip that suit. Screenshot 2024-03-03 041142

BunyaPineTree commented 8 months ago

That's nice to hear. The best way to build knowledge on things like this really is to have a project that you already want to do. Currently the API requires at least one SkinnedMeshRenderer to work, which is probably something that should change, but is that way regardless. What you could possibly do is manually weight paint each mesh so that the entire mesh is weighted only to the bone you parented them to.

AndrewHKGithub commented 8 months ago

That's nice to hear. The best way to build knowledge on things like this really is to have a project that you already want to do. Currently the API requires at least one SkinnedMeshRenderer to work, which is probably something that should change, but is that way regardless. What you could possibly do is manually weight paint each mesh so that the entire mesh is weighted only to the bone you parented them to.

Do you know of any specific video tutorial or written guide you recommend on how to go about that? There's so much information out there it's a little overwhelming.

BunyaPineTree commented 8 months ago

Unfortunately not. I've built up knowledge on meshes and weight painting purely from my interactions with this mod, but haven't actually done it myself.

I do know that guides for robotic model weight painting do exist though, which you may be able to go from.

AndrewHKGithub commented 8 months ago

Unfortunately not. I've built up knowledge on meshes and weight painting purely from my interactions with this mod, but haven't actually done it myself.

I do know that guides for robotic model weight painting do exist though, which you may be able to go from.

I'll check them out! So do you think the issue is that there's no SkinnedMeshRenderer? I'll add that in Blender and see if it fixes the "sequence contains no elements" error.