Giter Club home page Giter Club logo

Comments (5)

shibekin69 avatar shibekin69 commented on May 17, 2024

Hey @AleBles , do you know which version of spinejs is in use here? I think I may need to use an older version of the editor to make compatible spine animations..

from phaser-spine.

AleBles avatar AleBles commented on May 17, 2024

This library uses the latest version of spine-js, which is stuck at 3.1.08

from phaser-spine.

shibekin69 avatar shibekin69 commented on May 17, 2024

Ok! I'm trying to dig into the code to see what the heck's going on with the scaling issue. Here's what I've found so far:

When I do a uniform scale of a bone, it looks fine.

When I do a non-uniform scale of a bone of just the X or Y axis, it doesn't look fine. I do see some kind of transform, like it's trying to shrink both X and Y axes where it's only supposed to scale down one of them.

When I get rid of the scale, it looks fine (but without the scaling :( )

I've set Phaser.AUTO and double checked that Phaser is running with WebGL enabled.

EDIT: I've done a minimal sample to see what's going on.

It seems local scaling isn't working. The scale X and Y is locked to the world's X and Y (X being horizontal, and Y being vertical on the screen). This is what happens when we have an object like so lined up downwards and we animate Bone B to scale only its X axis:


-Bone A
 -Bone B
  -Bone C
  1. Bone ABC are standing like a pole (0 degree rotation): Scaling OK
  2. Bone ABC are lined up diagonally (rotated 45 degrees) Scaling NOT OK
  3. Bone ABC are lined up horizontally (rotated 90 degrees) Scaling NOT OK

I've attached a minimal demo and a spine project showing this problem. The animation in the editor is the correct one.

testphaserspine.zip

from phaser-spine.

NatMonney avatar NatMonney commented on May 17, 2024

Hi there,

I just started to use this extension today, and I saw the same issue. Is there a work arround ?

Thanks !

from phaser-spine.

pieshop avatar pieshop commented on May 17, 2024

I've also run into this problem with the plugin - anyone made any progress with it?

from phaser-spine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.