Author Topic: SurfaceView Transparent without glsurfaceview.setZOrderOnTop(true);  (Read 989 times)

Offline itsmeveno

  • byte
  • *
  • Posts: 14
    • View Profile
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12221
    • View Profile
Re: SurfaceView Transparent without glsurfaceview.setZOrderOnTop(true);
« Reply #1 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.
« Last Edit: December 04, 2018, 07:23:46 pm by EgonOlsen »