3 Replies Latest reply on Jun 29, 2016 7:15 AM by user19752

    webviewer javascript not working in webdirect

    f.i.sciences

      I have a web viewer with three.js script working perfectly in FMP Windows and Mac from FMS. Even in a direct html file (see attachment).

      When I open it in WebDirect, I get those errors (twice since creating two meshes in a group):

       

      [Error] Error: SecurityError: DOM Exception 18

        texImage2D (three.js:31175)

        uploadTexture (three.js:27402)

        setTexture2D (three.js:27438)

        (fonction anonyme) (three.js:27657)

        setValueT1 (three.js:31743)

        upload (three.js:32073)

        setProgram (three.js:26696)

        renderBufferDirect (three.js:25487)

        renderObjects (three.js:26266)

        render (three.js:25999)

        render (data:text/html,<ht…ml>:1:2869)

        dispatchEvent (three.js:8267)

        update (TrackballControls.js:326)

        animate (data:text/html,<ht…ml>:1:2824)

      [Warning] WebGL: INVALID_OPERATION: generateMipmap: level 0 not power of 2 or not all the same size (three.js, line 27408)

      [Warning] WebGL: drawArrays: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete', or it is a float/half-float type with linear filtering and without the relevant float/half-float linear extension enabled. (three.js, line 28303)

       

      Any clue?

       

      I have removed the material (MeshBasicMaterial) and it's working fine. Ce message a été modifié par : Martin Pineault