Jump to content

Missing output when bone hierarchy is changed? (ver B3)


h2kpigman

Recommended Posts

Hi guys,

Currently I'm trying to write a reader/renderer which read data from scml vB3 and render it to the screen.

When trying to render animations with bones, I noticed that if the bone hierarchy is modified, the scml file will contains "extra" information to simplify rendering process. Below is an example:

I created an animation with 3 bones, named A, B, and C.

At time = 0, the hierarchy is A->B->C, which means A is the direct parent of B and B is the direct parent of C.

At time = 490, I rotate the bone B and changed the hierarchy to C<-A->B, which means A is the direct parent of both B and C.

Then I opened the output .scml file. Inside tag of bone C looks like this:

There's 2 tags with the same time value 490. The first one with id=1 is the "extra" key created for convenient transformation, it wasn't referenced in any key inside tag. It was created to make the display of A->B->C hierarchy to be identical to the display of C<-A->B at time=490. This is very convenient. The problems rises at the end of animation, when animation is looped and C<-A->B hierarchy is changed back to A->B->C, the "extra" information for this moment doesn't exist D:

So, did you forget to put the "extra" key in the end of animation? Or this is intentionally? If this is intentionally is there anyway to create the "extra" in my render code?

Hope to see your answer soon and thanks in advance :D

Link to comment
Share on other sites

oh hey h2kpigman,

I see, interesting. Was the animation set to looping?

Yes, the animation was set to looping.

I tried to turn on/off the looping option and save to two different files to compare. The only difference is the new attribute looping="false" appeared in non-loop file.

Link to comment
Share on other sites

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...