Skip to main content
Participant
November 12, 2013
Question

Issues when using WebGL in an extension

  • November 12, 2013
  • 1 reply
  • 682 views

I have written an extension based on the idea of using Photoshop to edit textures live on a 3D model.

In my extension I open a Collada model using the three.js framework.

i can take the document in focus, save a merged copy and load it as a texture on the model.

When using Canvas renderer this works every time, although ofcourse rendering is painfully slow.

Using the WebGL renderer the extension sometimes works, and sometimes crashes when updating

the texture. I have tried every method possible in three,js, (changing texture, creating new material, updating map explicitly, etc, etc)

with the same result. All ways work in Canvas, and only occasionally in WebGL.

It is incredibly hard to debug, as the javascript debugger dies along with the extension window,

Any help, suggestions very gratefully accepted

Cheers!

    This topic has been closed for replies.

    1 reply

    olverart
    Inspiring
    May 15, 2020

    Hey Petter, may I ask how did you make your CEP Panel to work with WebGL? Seems that I can't render a canvas in a WebGL context. Could you point me if you had the same issue or how to do it? I'm trying with a simple color but it doesn't render in the CEP Panel, it does render with any browser out of Photoshop. Thank you in advance!