Horde3D

Next-Generation Graphics Engine
It is currently 27.11.2024, 20:57

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 11.08.2009, 16:39 
Offline

Joined: 01.06.2009, 11:15
Posts: 14
Modifying knight example to have multiple same particle emitters and then removing them:

Code:
...
std::vector<H3DNode> m_nodes;
...
particleSysRes = h3dAddResource( H3DResTypes::SceneGraph, "particles/particleSys1/particleSys1.scene.xml", 0 );
...

for(int i=0; i<10; i++)
{
       H3DNode _particleSys = h3dAddNodes( hand, particleSysRes );
       h3dSetNodeTransform( _particleSys, 0, 40, 0, 90, 0, 0, 1, 1, 1 );
       m_nodes.push_back(_particleSys);
}
...
...
void Application:mainLoop( float fps )
{
...

if(glfwGetKey('U') && !ok)
{
                for(int i=0; i<m_nodes.size(); ++i)
                {

                h3dRemoveNode(m_nodes[i]);

                }
                ok=true;
 }

...
}


this crashes at h3dRemoveNode()... :o


Top
 Profile  
Reply with quote  
PostPosted: 12.08.2009, 08:31 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Thanks for reporting! Should be fixed now.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group