- Изменено
[Monogame] Rotated sprites when loaded from custom pipeline
Hello. I have been trying to solve this issue for a while. I am trying to use the pipeline to get my Spine animations into my game but without success. There are no updated pipeline helpers so I settled on the most updated one I found.
https://github.com/fitgames/fitgames.monogame.spine
I ran into compatibility issues with the Spine version inside this library so I decided to update it to the newest Spine runtime (3.8/spine-csharp). After three days I finally managed to get things going, but the moment the animation is loaded some of the sprites appear cut incorrectly and rotated. I noticed the images are still with their original rotation as how they appear in the .png file that Spine creates when you export.
I have debugged the whole thing, even the Spine runtime, and I can't seem to find what the is the problem. I am updating the animation correctly in the Update routines, so I am thinking this is a problem with the way the pipeline is processing the file.
Any ideas? Thank you.
Edit: I managed to fix it, by unchecking "Rotation" when the Spine files are generated, but I am still puzzled, why does this happen? When loading the files directly as files (.atlas and .json) this does not happen.
Is there any other way to pack your Spine files into Monogame runtime without having the plain files on the Content folder?
Thank you.
julieta.perezmurillo написалThere are no updated pipeline helpers so I settled on the most updated one I found.
https://github.com/fitgames/fitgames.monogame.spine
I ran into compatibility issues with the Spine version inside this library so I decided to update it to the newest Spine runtime (3.8/spine-csharp)
You seem to be using a three year old third-party fork. If you need to use any special extensions of this 3rd-party fork, please be sure to not only replace the spine-csharp
core runtime files therein, but also replace all monogame-specific files with the corresponding latest files from spine-monogame
and spine-xna
:
https://github.com/EsotericSoftware/spine-runtimes/tree/3.8/spine-xna
https://github.com/EsotericSoftware/spine-runtimes/tree/3.8/spine-monogame
Mixing a two months old spine-csharp
core runtime with three year old spine-xna
and spine-monogame
code might likely cause problems.