I am trying to make it so that objects leave trails behind them and if an object is in the back and tries to draw over a previous trail it is transparent because of it.

The problem is whenever I do not GL_CLEAR the depth buffer after each frame the screen goes blank. Is there a way around this in Open GL ES 2.0?

Diagram: enter image description here

  • 1
    $\begingroup$ Could you post some code and a screen shot of what it looks like, and perhaps an example of what you want it to look like? $\endgroup$ – user1118321 Mar 11 '17 at 6:48
  • $\begingroup$ @user1118321 Good idea. Added! $\endgroup$ – J.Doe Mar 11 '17 at 7:01
  • 1
    $\begingroup$ Could you expand the explanation of what you intend? Do you want the objects to be opaque in all cases except when they are behind a trail? Does this apply only to the trails of other objects, or also to an object's own trails? $\endgroup$ – trichoplax Mar 13 '17 at 1:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.