Closed jonlepage closed 6 years ago
pixi-display getRenderTexture()
works only for the same size as the screen. Sorry, no snap for you, I might fix that later.
ok i understand, I was afraid that i make a mistake somewhere, it's reassuring. Thank you for the answer.
@ivanpopelyshev
did you have new for this , I just met again this problem, trying to add a filters in the Parent Stage.
I don't know if it related to the getRenderTexture()
as your say upper.
ex: Stage._filters = [new PIXI.filters.BlurFilter(10,10) ];
Am trying to add special FX between scene transfer, like a fade inOut with blur.
But all elements get reversed , it very weird, any idea the origin of this ?
it not urgent, but i want find the tricks. :)
thanks
example
i think it solved, i need to build a Cage inside the Stage Scene. It this cage will apply filters and snap
function Scene_Loader(loaderSets,callBackScene,firstTime) {
this.initialize.apply(this, arguments);
}
Scene_Loader.prototype = Object.create(Scene_Base.prototype);
Scene_Loader.prototype.constructor = Scene_Loader;
Scene_Loader.prototype.initialize = function(loaderSets,callBackScene,firstTime) {
Scene_Base.prototype.initialize.call(this);
// Alway use a children cage in stage for apply filters
this.CAGE = new PIXI.Container();
this.addChild(this.CAGE);
};
I'm happy with your progress, my padawan!
Am not sure if it come from the last update of module pixi-display or the pixi-light with normal. But now if i try snap rendering the Stage, I got a strange mirror bitmap cropped and not the full stage rendering !?
the current stage i try to snap![image](https://user-images.githubusercontent.com/24865815/39290490-bf085b98-48fd-11e8-95d3-b0a2fccd66fc.png)
it look weird and coped like this !![image](https://user-images.githubusercontent.com/24865815/39290599-264045f0-48fe-11e8-9a25-bd8ceee3a19a.png)
am trying add multi options rendering![image](https://user-images.githubusercontent.com/24865815/39290656-5d3f227e-48fe-11e8-9dd5-0c0601901779.png)
is it come from me , or it maybe a bug inside one of two pixi module ?