Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue rendering hover normal #71

Open
jonlepage opened this issue Oct 20, 2019 · 2 comments
Open

Issue rendering hover normal #71

jonlepage opened this issue Oct 20, 2019 · 2 comments

Comments

@jonlepage
Copy link

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);
        }
    };
@ivanpopelyshev
Copy link
Collaborator

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!

@jonlepage
Copy link
Author

jonlepage commented Oct 20, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants