YanDaik Posted November 14, 2014 Report Share Posted November 14, 2014 Good day folks! How are you? I'm fine too, thank you. I've implemented c++ scml reader and visualizer. But one thing i can't figure out myself. Bone lengths. If bone has childs it's length can be calculated easely (that is not always true. if child bone has some offset then we are screwed). But if it has no childs it's kind of not obvious. There is sclae_x parameter. i believe it scales bone (cpt. Obvious). But what is that custom length to which it is scaled? IzbranniY and WasdfriKn 2 Quote Link to comment Share on other sites More sharing options...
lucid Posted November 14, 2014 Report Share Posted November 14, 2014 Hi @YanDaik. The scale_x is just a multiplier, so all child scale_x's and x posiitions are multiplied by this when calculating their position/etc. Any children of a bone that's already a child, should use the already multiplied scale_x of that bone. If you want to actually draw the bone itself on screen for a debug mode or something, then you will find tags like this: <obj_info name="entity_000_bone_000" realname="bone_000" type="bone" w="263.03" h="10"/> At the beginning of each entity. Multiplying the bone w by scale_x will get you the actual length of the bone. Please let me know if that answers your question. Quote Link to comment Share on other sites More sharing options...
YanDaik Posted February 20, 2015 Author Report Share Posted February 20, 2015 Hello my friend. Yes, i've found that tag, and that was exactly what I needed. Thank you. 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.