Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     problem with active bindable nodes - C++
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
adrian
Posted on: 2012/6/1 6:45
Quite a regular
Joined: 2010/6/16
From: Constanta, Romania
Posts: 31
problem with active bindable nodes - C++
Hy,
In my app, I change my environment through setting the sceneRoot value a new AutoRef< Node > group node created from file. In the X3D file there is info about viewpoint (position only) and navigationInfo (type only).

AutoRefNode myGroup (X3D::createX3DNodeFromURL(urltDN) );
sceneRoot->setValuemyGroup.get() );

the problem I have is that, on 1st, 3rd, 5th and so on ... scene loaded, the nodes background and navigationInfo nodes are ignored; on 2nd, 4th, and so on... scene loaded, the nodes are taken into account.
Any suggestions ?
Tnx
Markus
Posted on: 2012/6/1 9:47
Webmaster
Joined: 2006/3/27
From: SenseGraphics
Posts: 1902
Re: problem with active bindable nodes - C++
I really do not know why every second time the background nodes should be loaded/ignored. However, there are rules for how bindable nodes should behave. If you do not make sure that all bindable nodes are destroyed before loading a new scene then old ones can persist.
adrian
Posted on: 2012/6/5 2:12
Quite a regular
Joined: 2010/6/16
From: Constanta, Romania
Posts: 31
Re: problem with active bindable nodes - C++
You're right Markus. each bindable node should be destroyed before setting the new scene; I was simply clearing the definedNodes pointer.
Tnx again
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2012 SenseGraphics AB    ---    Powered by XOOPS