A帧:在“透视截图”中打断0.9.0和0.9.2之间的功能? [英] A-Frame: Break in "Perspective Screenshot" functionality between releases 0.9.0 and 0.9.2?
问题描述
https://glitch.com/~query-aframe-perspective-screenshot
单击3D场景(或单击显示按钮),然后按空格键
,页面将尝试下载透视截图,如下所述:
https://aframe.io/docs/0.9.0/components/screenshot.html#透视屏幕截图
〜场景将冻结
编辑项目,然后将a帧版本重置为0.9.0
单击场景,然后按空格键
该页面将再次尝试下载透视截图
edit the project and reset the a-frame release to 0.9.0
click through to the scene, and press the spacebar
the page will again attempt to download a perspective screenshot
〜场景可能会暂停,但应该恢复
控制台抛出:
-three.js:23652 THREE.WebGLRenderer.render( ):renderTarget参数已删除。请使用.setRenderTarget()。
-three.js:23652
three.js:23659 THREE.WebGLRenderer.render():forceClear参数已删除。
console throws:
- three.js:23652 THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead.
- three.js:23652
three.js:23659 THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead.
下面是我的整个a帧组件,将 space-grab 应用于场景本身:
below is my entire a-frame component, with space-grab applied to the scene itself:
AFRAME.registerComponent("space_pause",
{
init: function()
{
var scenic = document.querySelector("#scenic");
document.body.onkeyup = function(e){
if(e.keyCode == 32){
scenic.components.screenshot.capture('perspective');
}
}
}
});
我是否已识别错误?
Have I identified a bug?
注意:
-就我而言(目前),请忽略您可能在下载的屏幕截图中观察到的任何变形
Note:
- for my purposes (at the moment) ignore any distortions you may observe in downloaded screenshots
推荐答案
这是一个已知问题,已经已修复。 使用来自主站点的构建
This is a known issue that has been fixed. Use a build from master
这篇关于A帧:在“透视截图”中打断0.9.0和0.9.2之间的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!