我如何限制相机在一帧 WebVr 中显示的显示大小
How do i restrict the size of display the camera shows in a-frame WebVr
我在 A-Frame 中有 2 个问题
首先是
在 A 帧中,假设我有一个相机,我希望它只显示某个尺寸,例如 1366x768 或 700*700,我该如何实现?
我已将相机附加到实体标签
<a-entity>
<a-camera><a-camera>
</a-entity>
其次,是否可以通过相机移动天空盒,使我始终注视着天空盒中的同一位置?
附加嵌入式组件并将 canvas 样式设置为 CSS。这跟相机没有任何关系,只是canvas.
的大小而已
<a-scene embedded>...</a-scene>
a-scene {
width: 50%;
}
我在 A-Frame 中有 2 个问题
首先是 在 A 帧中,假设我有一个相机,我希望它只显示某个尺寸,例如 1366x768 或 700*700,我该如何实现?
我已将相机附加到实体标签
<a-entity>
<a-camera><a-camera>
</a-entity>
其次,是否可以通过相机移动天空盒,使我始终注视着天空盒中的同一位置?
附加嵌入式组件并将 canvas 样式设置为 CSS。这跟相机没有任何关系,只是canvas.
的大小而已<a-scene embedded>...</a-scene>
a-scene {
width: 50%;
}