Re: [osg-users] Avoid cleaning drawing buffer
Hello, On Fri May 8 07:49:38 2015 Leandro Linardos leandro.linar...@gmail.com wrote: Is there any way to avoid cleaning the drawing buffer? You can use the setClearMask() function of the camera class. Normally you would provide the buffers which you want to be cleared. In your case you can just pass it a null or only clear the depth buffer. For example: viewer.getCamera()-setClearMask(GL_DEPTH_BUFFER_BIT); ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Avoid cleaning drawing buffer
Hi Leandro, The osg::Camera::setClearMask(..) is what you want to use. Have a look at the osghud example to see an example of it's use. Robert. On 8 May 2015 at 05:49, Leandro Linardos leandro.linar...@gmail.com wrote: Hi, Is there any way to avoid cleaning the drawing buffer? I want to get a behaviour similar to the preserveDrawingBuffer in Three.js (http://threejs.org/docs/#Reference/Renderers/WebGLRenderer) to leave traces behind a moving object. Thank you! Cheers, Leandro -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63663#63663 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Avoid cleaning drawing buffer
Thanks guys! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63676#63676 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Avoid cleaning drawing buffer
Hi, Is there any way to avoid cleaning the drawing buffer? I want to get a behaviour similar to the preserveDrawingBuffer in Three.js (http://threejs.org/docs/#Reference/Renderers/WebGLRenderer) to leave traces behind a moving object. Thank you! Cheers, Leandro -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63663#63663 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org