From: Braden M. <br...@en...> - 2005-12-05 15:10:47
|
[I thought I'd responded to this when you sent it to me off-list; but it looks like I in fact did not. Sorry about that. Do prefer the mailing list for OpenVRML-related correspondence, though.] On Mon, 2005-12-05 at 15:18 +0100, vr...@he... wrote: > Braden McDaniel <br...@en...> wrote: > > vr...@he... wrote: > >> Hi Braden, > >> > >> thanks for the fast response. > >> > >> Braden McDaniel <br...@en...> wrote: > >> > >> vector<node_ptr> nodes = myBrowser->create_vrml_from_stream(nodeStream); > >> > >> viewpoint_node* viewpointPtr = node_cast<viewpoint_node*>(nodes[0].get()); > > > > At this point you have a viewpoint_node, but it's not part of any > > scene. node::initialize needs to be called for it to be added to a > > scene. > > That is what I was already assumed, but I couldn't give it a try, because I > don't know how to access the current scene, as it is private. Please give me a > hint. You can get it from any node that has been initialized; for example: scene * s = your_browser.root_nodes()[0]->scene(); node::scene should be nonzero for any node that has been initialized. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |