Jump to content

h2kpigman

Members
  • Posts

    3
  • Joined

  • Last visited

h2kpigman's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Today I found something weird with scml file, my file have a strange value a="nan", which I assume is special value "Not a Number". Is that considered a bug? I can still open it normally with Spriter B5 though, but it may cause a problem for coder/game devs when they try to use it in game. I attached the file in case you want to look into it. You can find a="nan" at line 517 and 520.
  2. 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.
  3. 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
×
×
  • Create New...