These are chat archives for pixijs/pixi.js

28th
May 2018
Mark Knol
@markknol
May 28 2018 08:49
is it possible to get a "layer" blendmode (like known in flash), which merges all alpha channels instead of adding them?
@cheaprYang you can use container.destroy()
Mark Knol
@markknol
May 28 2018 09:09
@dankokolesnikov You should break up in smaller images
Ivan Popelyshev
@ivanpopelyshev
May 28 2018 09:55
@markknol var alphaFilter= new PIXI.filters.AlphaFilter(0.5); container.filters = [alphaFilter];
you can change alpha param in the filter
this thing works with almost the same logic as in flash
the only difference is that pixi cant determine what was changed , so everything is rendered every tick
also, filter requires to know the area. it will call container getBounds() every tick
Mark Knol
@markknol
May 28 2018 09:58
@ivanpopelyshev thanks, thats good to know
Александр
@McFree
May 28 2018 10:11

Hi people, i have trouble. I use Pixi.JS with Physics.JS and result rendering don't work.
Game loop from requestAnimationFrame(method); not work.

Are you have normal example work pixi.js with physics.js or any physics library ?

Ivan Popelyshev
@ivanpopelyshev
May 28 2018 10:11
@McFree it should work.
you can ask at https://t.me/html5dev , there are more people in that chat. its russian-speaking html5gamedev
Александр
@McFree
May 28 2018 10:13
thank
Mark Knol
@markknol
May 28 2018 11:59
@ivanpopelyshev https://imgur.com/a/j1uwLey Any idea why this happens? I use a AlphaFilter
Ivan Popelyshev
@ivanpopelyshev
May 28 2018 12:00
because you use alpha property of object instead of alphafilter
or in your shadow texture
Mark Knol
@markknol
May 28 2018 12:01
ahh you are right, sorry, there was indeed a bit opacity in the texture
Ivan Vodopiviz
@ivodopiviz
May 28 2018 12:31
hm, I have a weird issue with pixi-spine. I'm switching animations and tweening its position. first time it's ok, but second time the character face goes back to the original position after tweening
the confusing part is that it works correctly the first time :P
btw, I'm tweening the whole thing's position, not just a bone in particular
Ivan Popelyshev
@ivanpopelyshev
May 28 2018 14:25
wait, there was an issue with meshes like that
are you sure you are using latest pixi-spine version?
the issue with position appeared when sprite and mesh were used in the same slot, and it was fixed
Ivan Vodopiviz
@ivodopiviz
May 28 2018 14:36
no, I'm not sure we're using the latest version. by latest you mean last release or master?
I seem to be using 1.4.0
Ivan Vodopiviz
@ivodopiviz
May 28 2018 14:49
ah, it works fine with latest master... I'd strongly suggest to make a new release at some point, 1.4.0 is from feb 2017
thanks a lot ivan, as always.