Additive blend over camera preview

| | August 8, 2015

I am using SurfaceTexture to draw camera preview through opengl after applying blending but new camera preview frames overwrite my previous frames although i am not clearing my color buffer. I want my previous blended frames to be overlayed over camera preview, What to do?

Currently inside OnDraw() of SurfaceTexture.Renderer:

  1. draw camera preview texture1
  2. enable blending
  3. draw blended preview texture1 over live preview
  4. disable blending

I think Step 1 overwrites previously rendered texture, I am not able to use two textures… suggestions?

Leave a Reply