We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How do we access objects from other loaded scenes?

Home Forums Puzzles How do we access objects from other loaded scenes?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #64296
    tmunteanu
    Participant

    We want to load an additional (but separate) scene into an html element.
    I can achieve this via code:

    var additionalApp = new v3d.App(container, null, preloader);
    
    additionalApp.loadScene('AdditionalScene.glb', function() {        
        additionalApp.run();
    });

    The new app shows up fine and it gets added to the apps list.
    Unfortunately, none of the puzzles work with this additional app.
    For example, I want to use the “when clicked object” puzzle, but I can’t select objects from the additional scene.

    #64301
    kdv
    Participant

    Two or more apps (with logic) can communicate via messaging if embedded in separate frames
    https://v3d.net/bdd

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.