h2kpigman Posted July 2, 2013 Report Share Posted July 2, 2013 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 Quote Link to comment Share on other sites More sharing options...
lucid Posted July 2, 2013 Report Share Posted July 2, 2013 oh hey h2kpigman, I see, interesting. Was the animation set to looping? Quote Link to comment Share on other sites More sharing options...
h2kpigman Posted July 2, 2013 Author Report Share Posted July 2, 2013 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. 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.