Spine / Dragonbones mirrored object not fully mirrored?

  • #1, z xlsiorMonday, 06. March 2023, 01:28 hodinky 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?

    Bažant

    10 Posts


  • #2, z SimonSMonday, 06. March 2023, 17:36 hodinky 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.

    Kapitán

    1582 Posts

  • #3, z xlsiorMonday, 06. March 2023, 19:34 hodinky 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.

    Bažant

    10 Posts

  • #4, z xlsiorMonday, 06. March 2023, 19:35 hodinky 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.

    Bažant

    10 Posts

  • #5, z xlsiorTuesday, 07. March 2023, 02:42 hodinky 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.

    Bažant

    10 Posts