• Runtimes
  • Skin disappears after setting animation

Due to the context of my project, I am loading animation data dynamically. It all loads fine and is correctly assigned to the skeletondata, but when I get past the render function, nothing is exposed. There are no error logs, so I don't think there are any grammatical errors. I think it's a logic error. All the skins I set initially disappear, but the animations seem to play (I've logged the playtime). What can I check? Sorry for so little information. I don't know what's causing this, so I don't know how much to reveal.

I'm using spine-ts and webgl. I'd like to find something that visualises the bones like spine-player so I can debug them, but I can't seem to find a way (if there is, please let me know).

Related Discussions
...

Before the end of the loop

After the end of the loop

As you can see, the pink character's face disappred.

nothing is exposed

What does this mean? Nothing is rendered?

Not being familiar with your project, I can't make sense of the screenshots.

Can you show the code you use to set skins?

You can use SkeletonDebugRenderer to visualize bones/etc. It's what spine-player uses.

The way to approach a problem like this is to keep simplifying it, removing things and verifying the problem still occurs. If it doesn't, what you removed is the problem.

Nothing is rendered after load animation.



I don't know if it's good enough, but here's the code for now. Part 1 calls fine, shows the character, but after part 2, the character disappears. (pic 4. comment) Any guesses as to why?

Is part 2 the 3rd and 4th images? You didn't show what that code actually does.

Invalid values in animation timelines can cause a NaN to get into the skeleton pose, then nothing would be rendered.

Simplify the problem. Change the animation you add to have only 2 rotate keys. Step through rendering and see why nothing is rendered.