Re: [osg-users] The Bug of osgparticleeffects?? (Tomlinson, Gordon)

2008-10-09 Thread Robert Osfield
Hi GuiYe, 2008/10/9 GuiYe [EMAIL PROTECTED]: No,I don't know how to remove the particle effects from the scene.Can you give me some code to do this? The ParticleSystem and ParticleEffects Node's are all just standard OSG nodes which you remove from scene like any other node via:

Re: [osg-users] The Bug of osgparticleeffects??

2008-10-09 Thread GuiYe
Yes ,I konw it .But when I do this,it's wrong.Can you tell me why? class PHandler : public osgGA::GUIEventHandler { public: PHandler() {} bool handle(const osgGA::GUIEventAdapter ea,osgGA::GUIActionAdapter aa) { osgViewer::Viewer* viewer = dynamic_castosgViewer::Viewer*(aa);

Re: [osg-users] The Bug of osgparticleeffects?? (Tomlinson, Gordon)

2008-10-09 Thread GuiYe
These are all my code.Can you help me rewrite the code??I want to remove the particle effects when the particle effects disappear.But now it does't work fine. Thank you!Good Lucky! #include osgViewer/Viewer #include osgViewer/ViewerEventHandlers #include osg/DeleteHandler #include

Re: [osg-users] The Bug of osgparticleeffects?? (Tomlinson, Gordon)

2008-10-09 Thread Robert Osfield
Hi GiuYe, 2008/10/9 GuiYe [EMAIL PROTECTED]: These are all my code.Can you help me rewrite the code?? I have a little spare time to help point users in the right direction, but not to help debug end users applications. You know, I too have work to do... Robert.

Re: [osg-users] The Bug of osgparticleeffects??

2008-10-09 Thread Tomlinson, Gordon
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of GuiYe Sent: Thursday, October 09, 2008 3:53 AM To: osg-users Subject: Re: [osg-users] The Bug of osgparticleeffects?? Yes ,I konw it .But when I do this,it's wrong.Can you tell me why

Re: [osg-users] The Bug of osgparticleeffects?? (Tomlinson, Gordon)

2008-10-09 Thread FlySky
In the example of osgparticleeffects,how to know that the particle effects disappear? I find the function areAllParticlesDead does't work.Is there any other way to judge it?? Thank you! 在2008-10-09,Robert Osfield [EMAIL PROTECTED] 写道: Hi GiuYe, 2008/10/9

[osg-users] The Bug of osgparticleeffects??

2008-10-08 Thread GuiYe
  Hello. I tested the example of osgparticleeffects yesterday.I find a problem:When we create particle effects to the scene and the particle effects disappeared,the memory don't release.If we add many particle effects,the memory will increase all the time until the end of the

Re: [osg-users] The Bug of osgparticleeffects??

2008-10-08 Thread Tomlinson, Gordon
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of GuiYe Sent: Wednesday, October 08, 2008 3:30 PM To: osg-users Subject: [osg-users] The Bug of osgparticleeffects??   Hello. I tested the example of osgparticleeffects yesterday.I find

Re: [osg-users] The Bug of osgparticleeffects??

2008-10-08 Thread FlySky
Subject: [osg-users] The Bug of osgparticleeffects??   Hello. I tested the example of osgparticleeffects yesterday.I find a problem:When we create particle effects to the scene and the particle effects disappeared,the memory don't release.If we add many particle effects,the memory

Re: [osg-users] The Bug of osgparticleeffects??

2008-10-08 Thread Tomlinson, Gordon
Of FlySky Sent: Wednesday, October 08, 2008 4:51 PM To: OpenSceneGraph Users Subject: Re: [osg-users] The Bug of osgparticleeffects?? The ParticleSystem also inherit from osg::Referenced.I think it can be released automatically.It may be a bug! 在2008-10-09,Tomlinson, Gordon [EMAIL

Re: [osg-users] The Bug of osgparticleeffects?? (Tomlinson, Gordon)

2008-10-08 Thread GuiYe
No,I don't know how to remove the particle effects from the scene.Can you give me some code to do this? Thank you~___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org