[HTML5] Away3D with Canvas


#1

Hello,

is it possible to use Away3D when OpenFL is exported to canvas? We would like to have all UI rendered with canvas and only Away3D using WebGL. Right now Away3D is only showing a black screen when instantiated with canvas and there are no error reports in the console. Is there a way to make them work together?

Thanks in advance!


#2

Sure!

You cannot use Stage3D when publishing your content using -Dcanvas, but using cacheAsBitmap = true or using bitmapData.draw may force your OpenFL objects to render using canvas. This would then be layered with your 3D scene.