These are chat archives for pixijs/pixi.js

21st
Sep 2016
Daniel
@bitbay
Sep 21 2016 12:55
Hello again! This time it is all about skewing...
I'm playing with DragonBonesPixi this time, and i see that in v4 the skewing got a mayor overhaul. The case is that with some skewed sampledata in dragonbones format with v3.0.9 i get the exact result (as it was created) but with v4 the result differs (for worse).
Daniel
@bitbay
Sep 21 2016 13:01

i did had to change a line in the PixiSlot class (actually, in the compiled js), but i think they left it open (applying "skewY" as "rotation" value) because of pixi v4 errors.

this._renderDisplay.setTransform(
                this.global.x, this.global.y,
                this.global.scaleX, this.global.scaleY,
                this.global.skewY,
                0, 0,
                this._pivotX, this._pivotY
            );

changed to

this._renderDisplay.setTransform(
                this.global.x, this.global.y,
                this.global.scaleX, this.global.scaleY,
                0,
                this.global.skewX, this.global.skewY
                this._pivotX, this._pivotY
            );

is working on v3.0.9, where this._renderDisplay is an instance of PIXI.DisplayObject

anybody did some skew testing lately with v4.0.1?
i have some sample data (dragonbones) i can share if anybody willing to look into this...
Ivan Popelyshev
@ivanpopelyshev
Sep 21 2016 15:27
wow dragonBnes ;)
yeah, skew was refactored
i can look at this, can you make me a simple demo with html file , js and data in a zip file?
  • gif or old version of how it must look