1

描述

您好,我创建了一个 sketchfab 帐户并上传了一个 3D 头骨。Sketchfab 创建了一种通过 Oculus rift 来查看这个 3D 模型的方法,只需添加/embed?oculus=2对于我拥有的 dk2 版本

(在您继续阅读之前,请阅读以下内容:当我说眼裂时.. 它所做的只是并排创建这个 3D 头骨的两个图像并将其全屏显示。就是这样。不需要任何配置使用 oculus rift(除了标准设置..我已经做过))

一切似乎都在工作,除非我把它全屏显示。这是结果:

颅骨 Sketchfab 眼裂

请注意,画布会全屏显示,但 3D 模型的绘图不会分成两部分。由于某种原因,它停留在最左边的角落。

嵌入代码

<iframe width="640" height="480" src="https://sketchfab.com/models/a0ea79b025d548ab98787bf4bdf45f74/embed?oculus=2" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>

    <p style="font-size: 13px; font-weight: normal; margin: 5px; color: #4A4A4A;">
        <a href="https://sketchfab.com/models/a0ea79b025d548ab98787bf4bdf45f74?utm_source=oembed&utm_medium=embed&utm_campaign=a0ea79b025d548ab98787bf4bdf45f74" target="_blank" style="font-weight: bold; color: #1CAAD9;">Cranium</a>
        by <a href="https://sketchfab.com/grimbode?utm_source=oembed&utm_medium=embed&utm_campaign=a0ea79b025d548ab98787bf4bdf45f74" target="_blank" style="font-weight: bold; color: #1CAAD9;">grimbode</a>
        on <a href="https://sketchfab.com?utm_source=oembed&utm_medium=embed&utm_campaign=a0ea79b025d548ab98787bf4bdf45f74" target="_blank" style="font-weight: bold; color: #1CAAD9;">Sketchfab</a>
    </p>

我试过的

我正在使用mac,我已经尝试过chrome, safari, firefox,结果完全相同。

我曾尝试更改iframe尺寸但收效甚微。

我已经更改它以dk1查看是否有差异,没有。

问题

为什么头骨在全屏canvas内不绘制?iframe我怎样才能在画布上画出这个头骨来全屏显示?

一个完整而完整的答案会很酷,但是表明我需要做什么就足够了。谢谢你。

编辑:值得注意的事情

If I use the original embed ( meaning /embed instead of /embed?oculus=2 ) and put it in full screen it works with no problems.

在此处输入图像描述

4

1 回答 1

1

I had a discussion with one of the staff members at sketchfab

Discussion on sketchfab here

Solution to my original problem:

You are trying to use the hard coded version of the oculus and we probably won't support/improve it. It was very experimental at that time. The good way to test VR is to get a browser with VR support.

So this means to use one of the experimental webvr browers and to not modify the sketchfab model url.

Additional problems and known issues:

There were some further issues with using the webvr browers and the embed code.


With FirefoxNightly ensure Oculus Rift is plugged in before starting the 3D model, otherwise it may not work properly.

事实上,我每晚都进行了测试,并且遇到了同样的错误(但只有在我没有插入任何 oculus 时)。此错误应在下一个版本中修复。


我的 Chrome 崩溃了,但似乎对其他人有用。我正在使用 Mac。我不知道这是否导致问题。可以肯定的是,webvr 浏览器仍然不稳定。


结论

无论如何,一旦 webvr 浏览器更稳定,我们可能会在 VR 支持上投入更多精力,但仍欢迎早期反馈。

于 2015-03-11T13:23:41.777 回答