Hello !
I'm new in the Spine.
Looking at the c-sharp code of the runtime i found that its not quite suitable for my needs.
In my monogame project i have 8 effect techniques to draw scene, where quads trasformations happen in VS with supplied matrixes (with float texture or by vextex shader registers), while quad topology (Vertex & Index buffers) left unchanged the animation archived by setting these matrices.
Well, if i will use monogame runtime i need to create 8 additional techniques special for spine, and this will hit on performance also due to lack of vertex & index buffers
However these matrices can be calculated in RegionAttachment class
public void ComputeWorldVertices(Bone bone, Vector2[] worldVertices)
{
float x = bone.worldX, y = bone.worldY;
float a = bone.a, b = bone.b, c = bone.c, d = bone.d;
Matrix transform = new Matrix(a, c, 0, 0, b, d, 0, 0, 0, 0, 0, 0, x, y, 0, 1);
Vector2.Transform(offsetV, ref transform, worldVertices);
}
here 'transform' is the matrix i need to pass in VS. Its changed original ComputeWorldVertices function to test if it will work with matrices
With atlases also a problem - i have to somehow transform output atlas to my grid animated atlas where each image has few animation frames (for spine there shoud be 1, but more possible)
So rendering & atlases should be totally rewritten, however skeleton animation and loading of data seems can be used as is.
But license in the code says that i cannot alter runtime without written permission, and question - what the cost of such permission and can i write own runtime for free ?
Thanks.