A帧:在“透视截图”中打断0.9.0和0.9.2之间的功能? [英] A-Frame: Break in "Perspective Screenshot" functionality between releases 0.9.0 and 0.9.2?

查看:226
本文介绍了A帧:在“透视截图”中打断0.9.0和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆