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