Weird character area around imported JSON / Spine

  • #1, by blablo_101Monday, 21. January 2019, 11:00 5 years ago
    Hi! 
    We have a weird problem with the game characters area.

    We are importing JSON files from Spine to visionaire. At first sight, everything seems ok. Until you start playing. roll
    The JSON file create an huge automatic area around the character... and wherever I move the mouse, the action area of the character is everywere. 

    At the moment, we have been testing the JSON in two characters (a bird and the girl in the example image). The same thing happens in both of them.


    Newbie

    70 Posts


  • #2, by afrlmeMonday, 21. January 2019, 11:31 5 years ago
    Maybe it has something to do with the canvas size of the sprite model? shouldn't it be positioned at the top left when you import it into VS? looking at your screenshots it seems to be positioned based on the spine file as opposed to manually positioned in VS by you.

    P.S: I only tried importing spine files a couple of times back when support for them was first added, so I don't really know much about them or how they work, so what I mentioned above is just a guess. The default system for character animations calculates the polygon of characters based on the alpha channel of each animation frame - I have no idea if that's how spine animations work too, or if you are supposed to do something in spine to get them to work properly.

    Imperator

    7278 Posts

  • #3, by blablo_101Monday, 21. January 2019, 12:02 5 years ago
    shouldn't it be positioned at the top left when you import it into VS?
    I have notice that too... I don't know why, when you import a JSON the image appears in the center of the x,y system... I have try to import a Oficial Spine example and the same happens.

    Ah, and if I try to move the animation center manually, the numbers go crazy. From 0,0 to -70000,-100000
    looking at your screenshots it seems to be positioned based on the spine file as opposed to manually positioned in VS by you.
    That's may be the porblem. But I can´t find the solution for position the file correctly. 
    I'm going to investigate more the export options in Spine, but I really don't see many options : )

    Simon told us at the Discord he is going to look at the problem.

    Newbie

    70 Posts

  • #4, by afrlmeMonday, 21. January 2019, 12:55 5 years ago
    Aye, Simon is probably the only one able to sort it out. It could be a bug/issue with VS itself.

    Imperator

    7278 Posts