[X3D-Public] Remove dynamically added scenes
pyth7 at verizon.net
Wed Nov 11 11:16:45 PST 2009
From: x3d-public-bounces at web3d.org [mailto:x3d-public-bounces at web3d.org] On
Behalf Of Barry Nauta
Sent: Wednesday, November 11, 2009 2:07 PM
To: x3d-public at web3d.org
Subject: [X3D-Public] Remove dynamically added scenes
Following the ajax3d guidelines, I dynamically add scenes, the goal is to
display buildings. All the buildings are initially boxes. Upon selection of
one of the buildings, I would like to change the viewpoint to this building
(this works) and replace the selected building by a new one, one with a much
To do this, I would like to remove the old version of the building and add
the new one, or perform some sort of replace. The problem is that I have no
clue how to do this.
I have a reference to the scene, but there is no "browser.removeScene" call.
I have tried it with a call to removeRootNode, but that doesn't work...
Anyone any suggestions?
[Russ Kinter] Why not have the more detailed version already in the scene
graph as a level of a LOD or a choice of a Switch?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the X3D-Public