Login  Register

multi-samping causes ghosting effect

Posted by nicovink on Aug 09, 2018; 11:22pm
URL: https://forum.jogamp.org/multi-samping-causes-ghosting-effect-tp4039104.html

When using

glcapabilities.setSampleBuffers(true);
glcapabilities.setNumSamples(16);

I get situations where if I move the camera, then stop moving, I will frequently see ghost images of my models quite close to where the actual models are. If I disable the multi-sampling, there is no ghosting. The ghost images also disappear the next time my canvas repaints (i. e. the ghosts are only visible for a few moments right after stopping the camera movement).

As far as I can tell, I clear the depth and color buffers correctly. Are there additional buffers I need to clear when using multi-sampling, or am I missing something else? I'm using version 2.1.5-01.