Skip to content

Question: Swapping multiple scenes #53

@cancech

Description

@cancech

Greetings,

I am curious to know if it possible to swap between two (or more) 3D scenes, without needing to rebuild/recreate them on access? What I'm imagining is two different scenes, where each scene contains an interactive model. You can click things on the model, and the scene then updates in response (i.e.: click a door and the door opens). What I would like to be able to do,as an end user, is easily/quickly swap between these two scenes without needing to recreate them. For example:

  1. Load app with two scenes (neither scene is displayed)
  2. Access Scene 1, manipulate door (door can be seen open)
  3. Access Scene 2 (Scene 1 is hidden), manipulate window (window can be seen open)
  4. Return to Scene 1 (Scene 2 is hidden), Scene 1 is displayed with the door still open (no reloading of the scene/model is done)
  5. Hide both scenes (neither scene is displayed, but the scene/model is still "ready" to be shown in the future)

Could something of this sort be done? Given how the Viewer and Scene is separated in the example code I can see, I could foresee being doable (viewer.setScene(...)), or perhaps creating two Viewers (one for each scene) and then alternating which one is embedded into the page?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions