thanks a lot for this suggestion, it works! This means we can now switch between Canvas and WebGL based on a code check, nice!
However we tried to instantiate Away3D now in the hope that the build contains all the neccessary compilations to run the 3D scene. But when the renderer is set to Canvas, Away3D will stay black. I assume this is because the WebGL handler is not passed to Away3D or never created in the Canvas renderer.
Any chance you could make Away3D render in WebGL, even when the rest of the OpenFL scene is rendered in Canvas? Maybe it’s just a small change while you are refactoring this anyway. Just to clarify, we don’t need Away3D in Canvas, we just want Away3D rendering to WebGL, even when the rest of the project is drawing to Canvas.
Thanks in advance