Re: [osg-users] Adding nodes to the scene while the viewer is running

2008-02-16 Thread Robert Osfield
Hi Per, Is it simply that the new objects aren't in the current camera's view? Try moving the camera around the scene. Try pressing space bar to force the camera manipulator back to its home position. Robert. 2008/2/15 Per Rosengren [EMAIL PROTECTED]: I try to add Geoms to the scene of my

Re: [osg-users] Adding nodes to the scene while the viewer is running

2008-02-16 Thread Per Rosengren
Thank you! A small typo in my code resulted in that my geodes didn't get any children. No wonder they weren't visible... Robert Osfield wrote: Hi Per, Is it simply that the new objects aren't in the current camera's view? Try moving the camera around the scene. Try pressing space bar to

Re: [osg-users] Adding nodes to the scene while the viewer is running

2008-02-16 Thread Guy
Robert, If it is possible to add objects while running, what is the purpose of the realize function? I thought it initialize not only the camera. Is it possible to add ANY object while running or there are some limitations to this? Thanks, Guy. -Original Message- From: [EMAIL PROTECTED]

[osg-users] Adding nodes to the scene while the viewer is running

2008-02-15 Thread Per Rosengren
I try to add Geoms to the scene of my running osgViewer::Viewer. If I print all children of Viewer::getCamera(), the new nodes are there, but they are not visible in the viewer. They are added to a Switch in the scene, and they are set to be visible. begin:vcard fn:Per Rosengren n:Rosengren;Per