I decided to evaluate spine for a 2d C# engine that I'm working on so I integrated the spine-csharp runtime into my solution. Everything went great except I've run into an issue where I'm not sure which example data I should be using. There's none included with that runtime so I tried the spine-c example data but am running into a problem with the Uvs.
Specifically this loading code in Atlas.cs:
if (readTuple(reader, tuple) == 2) { // size is only optional for an atlas packed with an old TexturePacker.
page.width = int.Parse(tuple[0]);
page.height = int.Parse(tuple[1]);
readTuple(reader, tuple);
}
Since the data in the stream at this point is "RGBA8888" we don't read in the texture width and height. This results in the UVs data in the page being Infinite. I'm guessing from the comment that this data is from the old TexturePacker which is causing my problem. Is there any example data from the new TexturePacker?
I can easily modify the provided Atlas.cs to get these values from my texture loader however I would prefer to have the correct data in case there are other problems lurking. Any ideas?
Thanks!
-Marcus Hays
I ended up just fixing the problem to feed it the correct texture size and everything works great now.