Hi Florian,

On 23 May 2016 at 20:28, Florian GOLESTIN <[email protected]> wrote:
> Hi Robert,
>
> The player just move to a new scene so the previous one can be discarded.
>
> By scene I wanted to mean the "root" node and all its children, and the 
> callback, keeping only the view and the camera manipulator.
> In the application, the player walk along a maze (an interior scene) and when 
> he hits a door, he's "teleported" into another level of the maze so I load a 
> new map with new walls and monsters...
>
> Have a good day!

Will you have any graphical affect during the teleport that requires
both scenes to be mixed in some way?

If you are just moving from one location to the next instantaneously
then viewer.setSceneData(newModel); will fine.

Another route is to use an osg::Switch to move between locations -
this is something that would be preferrable if you want the ability to
move back to previous scenes that you've visited.

Robert
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to