Spine / Dragonbones mirrored object not fully mirrored?

  • #1, by xlsiorMonday, 06. March 2023, 01:28 A year ago
    I've just started messing around with Visionaire, and was looking into Spine / Dragon Bones.

    I was using Dragonbones' built-in "Sheep" sample object for testing
    I found lebosteins posting to convert dragonbones objects to be compatible with the spine version that Visionaire supports.


    However, I am seeing something weird: After importing the json into Visionaire, my left walk animation in Visionaire looks perfectly fine... But when I set the right walk animation to simply mirror the left, there is a problem: the bulk of the graphics are mirrored, except for the feet of the object, they are still pointing the original direction.

    Left:




    Any thoughts? 

    Since the object looks and behaves as expected when facing left, would this be a bug in Visionaire?

    Newbie

    10 Posts


  • #2, by SimonSMonday, 06. March 2023, 17:36 A year ago
    The mirroring works by changing the root scaleY to -1, so maybe there is something in your tree to go against that. Don't know what could be it. Maybe the meshes don't work like it.

    Thread Captain

    1581 Posts

  • #3, by xlsiorMonday, 06. March 2023, 19:34 A year ago
    Not sure, it's really weird...

    Within dragon bonoes itself I can mirror it by doing the -1 scale at the root node.

    Either way, even if an individual part would be flipped in the definitions for some reason, I'd expect it to be consistent, e.g. rendered backwards when showing it in the original direction as well.

    Another weird thing I noticed is that in the visionaire editor the character shows up and works (aside from the backwards feet), but when I export the game and run the executable directly it doesn't show up at all.

    Newbie

    10 Posts

  • #4, by xlsiorMonday, 06. March 2023, 19:35 A year ago
    ...And it's not just the sheep, I also tried the sample rooster, and it behaves exactly the same: the feet aren't mirrored in visionaire when mirroring the character.

    Newbie

    10 Posts

  • #5, by xlsiorTuesday, 07. March 2023, 02:42 A year ago
    ...Just exporting to sprite sheets seems work more predictable than converting them to spine format for me at the moment, so I guess I'll just go that direction for now, which lets me use both Spriter Pro and DragonBones.

    Filesizes seem reasonable after converting to webp format.

    Newbie

    10 Posts