ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: Clear the scene
Sender: mutafchiev@gmx.de 5.10.07 09:10

Hi there,

I have some problem when I want to clear the scene and to
create a new one. I use this code to clear the scene:

if ( !m_Engine )
return false;
CComPtr<INodesCollection> RootNodes;
if (FAILED(m_Engine->get_RootNodes(&RootNodes)))
return false;    
return (SUCCEEDED(RootNodes->Clear()));

After that I want to create again (for example) the same
objects with:
if(FAILED(m_Engine->CreateNode(L"Transform", CComBSTR (L"MODELTRANS"), &this->m_TransformNode))){
        AfxMessageBox(L"VRMLModel as Switch node not created");        
    }
but it fails.

Can somebody tell me how to clear the old and to create a new scene?

Thanks a lot!

Stoyan

 


Clear the scene / mutafchiev@gmx.de / 5.10.07 09:10

Messages in thread: 1


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.