Jump to content

Bone length


YanDaik

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...