tilemap icon indicating copy to clipboard operation
tilemap copied to clipboard

Issue rendering hover normal

Open jonlepage opened this issue 6 years ago • 2 comments

I get some strange bug here , but i don't know where to start for fix this!? Any ideas are welcome. normal paralax

If i set normal alpha 0 to a sprite, when hover the BG Clouds (TilingSprite), it render black ! someone would have an idea of what's going on here and why logically this code does not work?

    createBackground() {
        this.clearBackground();
        const dataObj = $objs.BACKGROUND[this._name];
        if(dataObj){
            const C = this.background = $objs.createFrom(dataObj);
            C.child.zOrder = -1;
            C.child.parentGroup = $displayGroup.group[0];
            this.addChildAt(C.child,0);
            this._sceneWidth = C.child.width;
            this._sceneHeight = C.child.height;
            //!extra tilling repeat BG: experimental
            //FIXME: normal see not render correcly hover TilingSprite
            const dataBase  = $loader.DATA2.Tilling1;
            const tilingSprite = new PIXI.extras.TilingSprite( dataBase.textures.cloud1,$app.screen.width,$app.screen.height );
            //tilingSprite.alpha = 0.2;
            tilingSprite.parentGroup = $displayGroup.DiffuseGroup; // BUG, TilingSprite GET BLACK
            $stage.addChildAt(tilingSprite,0);
        }
    };

jonlepage avatar Oct 20 '19 05:10 jonlepage

You opened issue in a wrong plugin

Also i dong guarantee anything about blendModes in case you use pixi-lights. Of course if you set normal to 0 any lights will fail, except Ambient. You need to put it under those layers, not to diffuse!

ivanpopelyshev avatar Oct 20 '19 08:10 ivanpopelyshev

ho sorry , i was thinking it can be related to tilingSprite.

I mean I'm trying to find a way to allow sprites diffuse to fly over the limits of the PIXI application. image I thought filling the background of the application with tilingsprite would work.

:( I don't know if i explain well my issue.

jonlepage avatar Oct 20 '19 09:10 jonlepage