www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: itsmeveno on December 04, 2018, 01:08:53 am

Title: SurfaceView Transparent without glsurfaceview.setZOrderOnTop(true);
Post by: itsmeveno on December 04, 2018, 01:08:53 am
Good day!

I want to make transparent the surfaceview to view the image background behind of it.
How i can do that i did a lot of research but i always search the setZOrderOnTop the surfaceview make transparent but it overlay the ather view.
Title: Re: SurfaceView Transparent without glsurfaceview.setZOrderOnTop(true);
Post by: EgonOlsen on December 04, 2018, 07:22:14 pm
IIRC, you have to create a GL context with an alpha channel and clear the framebuffer with the RGBColor variant of the clear method to set an alpha while clearing. There should be a simple example of how to combine the camera view with a rendering on top, which is a similar task, somewhere here in the projects section. Though it's hard to find for me ATM too, because I'm on mobile right now...

Edit: There's a sticky topic here in the support section about that camera overlay thing...maybe that helps.