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

generateTexture not working when in pixi-layers layer/group #53

Open
nicokruger opened this issue Jan 11, 2020 · 2 comments
Open

generateTexture not working when in pixi-layers layer/group #53

nicokruger opened this issue Jan 11, 2020 · 2 comments

Comments

@nicokruger
Copy link

When you put a container into a layer from pixi-layers, renderer.generateTexture no longer works to create a texture from a container.

Check out this example:
https://www.pixiplayground.com/#/edit/0VYy5repkmlke0oaUvA2v

If you comment out the line:

// TODO: comment out this line to see generateTexture working
container.parentLayer = layer;

You will see that the generating of a texture starts working again.

@ivanpopelyshev
Copy link
Collaborator

ivanpopelyshev commented Jan 11, 2020

I did not define behaviour for partial renders of stage with layers. Like, at all. I don't know what to do in that case, maybe ignore all parentLayer's?

I need help with this.

@nicokruger
Copy link
Author

I think as a start just ignoring parentLayer's could work. Ideally you would want the partial render to respect the ordering of the layers in the sub-tree you are rendering though.

Maybe if we can get started by just ignoring parentLayer's for now we can try and try other solutions later?

Thanks for the quick reply!

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