canvas 在 firefox 36 中为空
canvas is empty in firefox 36
应用程序由界面 (html) 和工作区 (canvas) 组成。
我们使用 three.js 作为 canvas 上的生成元素。
在 chrome、opera 和 firefox 35 上运行良好。
http://clip2net.com/s/3e7OwfF
但是在 firefox 36.0.1 中 canvas 是空的(参见 http://clip2net.com/s/3e7QkdH )。 3d 元素上的所有事件都有效。我看到渲染已完成。
如果我在 canvas 和 select 'Save Image As...' 上打开上下文菜单,然后正确保存图像(包含所有渲染元素)。
当我调整浏览器 window 的大小时,就会显示 canvas。
你能帮忙吗?
我在我的应用程序中发现了问题。
我以这种方式使用 WebGLRenderer:
renderer = new THREE.WebGLRenderer( { antialias: true, preserveDrawingBuffer: true } );
当我以这种方式使用它时,canvas 没有被清除:(但我认为你不能做你的屏幕截图):
renderer = new THREE.WebGLRenderer( { antialias: true } );
希望对您有所帮助
应用程序由界面 (html) 和工作区 (canvas) 组成。 我们使用 three.js 作为 canvas 上的生成元素。 在 chrome、opera 和 firefox 35 上运行良好。 http://clip2net.com/s/3e7OwfF
但是在 firefox 36.0.1 中 canvas 是空的(参见 http://clip2net.com/s/3e7QkdH )。 3d 元素上的所有事件都有效。我看到渲染已完成。
如果我在 canvas 和 select 'Save Image As...' 上打开上下文菜单,然后正确保存图像(包含所有渲染元素)。
当我调整浏览器 window 的大小时,就会显示 canvas。
你能帮忙吗?
我在我的应用程序中发现了问题。
我以这种方式使用 WebGLRenderer:
renderer = new THREE.WebGLRenderer( { antialias: true, preserveDrawingBuffer: true } );
当我以这种方式使用它时,canvas 没有被清除:(但我认为你不能做你的屏幕截图):
renderer = new THREE.WebGLRenderer( { antialias: true } );
希望对您有所帮助