Dylan332

Im trying to integrate spine-cpp runtime into my engine. Well the Regionattachment was quite straight forward with slight changes than the documentation is saying it. Main problem is Meshattachments, the Documentation about is just wrong.

It shows that its just using a size 6 index buffer but the number of Vertices is different for every mesh, this cannot work.

After alooooot of googling i found out i have to iterate thorugh the triangle vector to get the index to the vertex, well HOW should you know that? there is not a single comment in the source about it. Also the flipX and flipY is not available anymore in 4.0 runtimes but its still in the documentation.

Im kinda stuck because of this and missing informations, my mesh attachments are just buggy. Also you could point out anywhere which triangle method is used for meshes.
Dylan332
  • Mesajlar: 2

Mario

Sorry for the trouble, the rendering part indeed has wrong documentation. Please refer to the SFML renderer, which is very straight forward for the time being:
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-sfml/cpp/src/spine/spine-sfml.cpp#L86

I'll fix up the documentation asap.
Kullanıcı avatarı
Mario

Mario
  • Mesajlar: 3035

Dylan332

The sfml documentation / example was exactly what i was lookin for, thank you.
Also you could adjust the "flipping" in the documentation for isYdown in bone.cpp since setflipX / setflipY is not there
Dylan332
  • Mesajlar: 2

brunogsa

@Dylan332 I had the same problem. Instead of using SetFlip, I used SetScaleX. It worked well for me.
brunogsa
  • Mesajlar: 10


Dön Runtimes