[osg-users] Particles disappear when app gains or loses focus

Mike Metcalf metcalfnospam at mac.com
Wed Sep 14 15:01:14 PDT 2016


We are using OSG 3.2 (working out compatibility issues which currently prevent us from going to 3.4+).

I am investigating the possible use of osgParticle::ParticleSystem for some of our visuals.

I've implemented the code here: http://trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials/ParticleEffects

Everything is working as I might expect so far, with one exception: Whenever my OSG-rendering app gains or loses focus, all particles currently on-screen disappear. The particle systems continue to emit particles as before, but all particle emitted prior to the gain/loss of focus simply disappear.

I've spent some hours now using the Search function trying to find some forum post that discusses this, but so far I've found nothing.

Any suggestions or hints on what might be causing this or how to fix it would be greatly appreciated. 

Thanks in advance!
-Mike Metcalf

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68611#68611








More information about the osg-users mailing list