描述
您好,我创建了一个 sketchfab 帐户并上传了一个 3D 头骨。Sketchfab 创建了一种通过 Oculus rift 来查看这个 3D 模型的方法,只需添加/embed?oculus=2
(对于我拥有的 dk2 版本)
(在您继续阅读之前,请阅读以下内容:当我说眼裂时.. 它所做的只是并排创建这个 3D 头骨的两个图像并将其全屏显示。就是这样。不需要任何配置使用 oculus rift(除了标准设置..我已经做过))
一切似乎都在工作,除非我把它全屏显示。这是结果:
请注意,画布会全屏显示,但 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.