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 to get status if v3d in js?

Home Forums Programming How to get status if v3d in js?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21908
    D3Pixel
    Customer

    Hi

    I am trying to detect when Verge3D has loaded outside the auto built scripts (visual_logic.js).

    in my own test.js file, after waiting a few seconds, I can do:

    var D3WebGL = document.getElementById(“web3d”); //iframe
    var win = D3WebGL.contentWindow;
    var myAppInstance = win.v3d.apps[0];

    Which works but I need a way to determine “when” the web3d canvas has loaded inside the iframe and not the iframe itself.

    v3d.js is obfuscated so I can not trawl through it.

    Thanks for any help
    Geoff

    3D Animation and Web3D services - www.d3pixel.co.uk

    #21910

    Hi,

    In your_app_name.js script there is runCode() function which is basically a callback for finished loading. From it, you might call functions from your own script.

    Chief 3D Verger | LinkedIn | Twitter

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