Raggar Posted December 11, 2016 Share Posted December 11, 2016 Is it possible to show the skeleton/bones of an imported mesh? I don't mean lines and debugging layers, but actually rendering the bones themselves, so they won't stay hidden. Is this a possibility, or simply not a feature? PG example, because why not: http://www.babylonjs-playground.com/#1SJMJ0 Quote Link to comment Share on other sites More sharing options...
jpdev Posted December 11, 2016 Share Posted December 11, 2016 From my understanding bones don't have mesh that could be rendered. For example in blender you have many options to display your bones (default bones, lines, even custom meshes for bones) But that is all just to make life easier when animating, in the end bones are only exported with a start point, end point and all their translations (+ animationdata) but without any visuals/meshes attached to them. So if you want to visualize them it's always gonna be lines or custom shapes.. gryff and adam 2 Quote Link to comment Share on other sites More sharing options...
Raggar Posted December 11, 2016 Author Share Posted December 11, 2016 That's what I feared. Well. No biggy. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 12, 2016 Share Posted December 12, 2016 If using 3dsmax you can export bone's mesh Quote Link to comment Share on other sites More sharing options...
Raggar Posted December 22, 2016 Author Share Posted December 22, 2016 On 12/12/2016 at 7:49 PM, Deltakosh said: If using 3dsmax you can export bone's mesh Yeah, but I was thinking about using the actual meshes as bones. This way you could cut your animated model into ~10 pieces, use the pieces as models, and then, if you wanted to for example do some dismemberment of the model, all you had to do was remove certain bones/meshes. This way you could use the individual models as a ragdoll to, by assigning them to their own physics body. I tried using getPosition, getAbsolutePosition and set... to bind an animated models' bones to physics bodies using Cannon, but they didn't seem to move according to the physics. This was only an issue when using Cannon, as I could easily move and rotate the bones manually. I guess you could programmatically create the animations, as this is what's done in normal animated/skinned meshes, too. This could even be used to synchronize the clients animated mesh, with hitboxes on the server, to make proper body part hitbox registration. But I'm getting WAY over my head here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.