Bobsolo1

Hello. I plan on making a game using SDL and will not be developing a game engine or framework. The game will be using C++ or C#(C++ is planned) and I wish to use spine animations along with mesh and ffd. Is there any way I can implement spine animation to my 2d game?
Bobsolo1
  • Postovi: 9

Luke

Hello, you can use our generic runtimes to implement Spine's animations into your game. Please see the following page for more details:
Spine: Runtimes: runtimesGeneric
Luke

Luke
  • Postovi: 111

Bobsolo1

[quote="Luke"][/quote]
Ok will I be able to use all the features such as mesh deformation and ffd in sdl?
Bobsolo1
  • Postovi: 9

Luke

Bobsolo1 je napisao/la:Ok will I be able to use all the features such as mesh deformation and ffd in sdl?
Yes, those features are available; for example, please see the Runtime guide for spine-cpp for more information. More information concerning deforming meshes can be found in this section.
Luke

Luke
  • Postovi: 111

Mario

That's not entirely correct. While the generic spine-cpp and spine-csharp runtimes will be able to load and compute all features Spine provides, they do not provide rendering code for a specific engine or framework like SDL. You will have to write rendering code yourself. See this guide spine-cpp Runtime Documentation: Integrating spine cpp in your engine
Avatar
Mario

Mario
  • Postovi: 3043

Bobsolo1

[quote="Mario"][/quote]
Extremely late but do I use the Implementing Rendering guide for the rendering process? I'm not new to C++ or anything
Bobsolo1
  • Postovi: 9

Mario

Yes, the rendering guide linked in my previous post gives you pseudo code to implement rendering yourself. You can also look at existing spine-cpp based runtimes, like spine-sfml https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-sfml/cpp/src/spine/spine-sfml.cpp#L86
Avatar
Mario

Mario
  • Postovi: 3043

royalstream

I already posted this somewhere else in the forum, but here it is just in case:

I modified the spine-sfml runtime to use SDL2 instead of SFML using the new long-sought geometry render API (i.e. SDL_RenderGeometry).

It's similar to what GerogeChong did four years ago but with no OpenGL, only straight SDL.
It's also similar to a proof of concept rmg-nik did a few months ago.

I'm sticking as closely as possible to the original spine-sfml implementation. I'd say more than 70% of the code matches on a file compare. I'm providing spine-c and spine-cpp versions as well as working examples (matching the spine-sfml folders).

Come and get it: https://github.com/royalstream/spine-sdl
royalstream
  • Postovi: 4

Bobsolo1

[quote="royalstream"][/quote]
Hello. Sorry just now got this and will be taking a look!
Bobsolo1
  • Postovi: 9


Natrag na Runtimes