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

Need support using MultiTexOffScreenCanvas with consumedTextures ? #100

Open
kekhong95 opened this issue Jun 12, 2021 · 3 comments
Open

Comments

@kekhong95
Copy link

I checked in example in MultiTexOffScreenActivity . I only you show one draw bitmap when tap on screen ?

How to use MultiTexOffScreenCanvas with one consumedTextures ?

I try modify some bitmap on other textureID and need merge it with MultiTexOffScreenCanvas , but i don't know output target of MultiTexOffScreenCanvas.
I think getDrawingBitmap not best solution in my case , glReadPixels function will take time if bitmap too big ,

Please help me resolve problem.

@ChillingVan
Copy link
Owner

The getDrawingBitmap is just for showing what is drawn in this example. If you want to use what the MultiTexOffScreenCanvas draws, you can use a consumer view or OffScreenCanvas to consume what the MultiTexOffScreenCanvas produces. You can take the GLMultiTexConsumerView for example.

@kekhong95
Copy link
Author

kekhong95 commented Jun 12, 2021

I modify MultiTexOffScreenCanvas flow recomend of you , but nothing showing
image

Maybe me wrong ? and can using one consumer show all produces offscreencanvas draw ?

@ChillingVan
Copy link
Owner

I modify MultiTexOffScreenCanvas flow recomend of you , but nothing showing
image

Maybe me wrong ? and can using one consumer show all produces offscreencanvas draw ?

Have you called previewConsumerTextureView.setSharedEglContext() ?

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