• Runtimes
  • Getting a single frame as an image from the animation

Hello,

I am quite new to spine, (excellent software btw) just starting playing with the editor and java runtime and I have a question, I cannot find an answer anywhere.

I plan to use spine in a video software, not a game and was wondering if there was any way to get the frames of the animation after it is rendered in my software. The best thing would be to have some bufferedimage, 25 per second to be exact 😉 .
I read all the doc and dug into the classes without finding anything, any pointer would be a great time saver.

Thanks in advance

Related Discussions
...
  • Изменено

Spine currently only has one rendering implementation for Java based on libGDX. libGDX is a Java game development framework that renders via OpenGL. Your best bet is to take the contents of the rendering output of the spine-libgdx runtime. See libGDX's ScreenUtils https://github.com/libgdx/libgdx/wiki/Taking-a-Screenshot