Login  Register

Superposing Image in a JOGL animation

Posted by Vishiv on Oct 19, 2016; 3:47pm
URL: https://forum.jogamp.org/Superposing-Image-in-a-JOGL-animation-tp4037332.html

Hello,

I would like to superpose differrent images during the time animation (FPSanimator).

I put a condition (work well) for the command gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT)    (and also for the different glLoadIdentity for modelview and projection)
After this test, I draw the new image but the last one has been erased.

It seems like each call to display clear the color_buffer_bit automatically.

Is that right ? How to conserve last image and superpose the new one ?

Thank you for your attention,
Nicolas