2017-12-11 4 views
0

私は以下のようなwebvrシーンを持っていますが、シーンがロードされると、画面は空白になります。シーン内でマウスを動かすときだけ、シーンが表示されます。WebVRシーンをロードするときの空白の画面

<a-scene id="exp-view" style="width: 90vw; height: 90vh;" embedded> 
    <a-assets> 
    <a-asset-item id="endo-obj" src="test.obj"></a-asset-item> 
    </a-assets> 
    <a-entity position="33 0 -33" rotation="0 180 0" look-controls id="camera" camera="userHeight: 1.6" listener> 

    <a-grid static-body></a-grid> 

    <a-box color="#a00" scale="0.3 0.3 0.3" rotation="-90 180 0" dynamic-body="shape: box; mass: 0" position="-10 0 20" width="2" height="2" depth="2"></a-box> 

    <a-box color="#abc" position="-35 0 0" width="0.001" height="6" depth="70"></a-box> 
    <a-box color="#abc" position="35 0 0" width="0.001" height="6" depth="70"></a-box> 

    <a-box color="#abc" position="0 0 -35" width="70" height="6" depth="0.001"></a-box> 
    <a-box color="#abc" position="0 0 35" width="70" height="6" depth="0.001"></a-box> 

    <a-light type="ambient" color="#bbb"></a-light> 
    <a-light color="#ccc" position="0 30 0" distance="100" intensity="0.4" type="point"></a-light> 
    <a-light color="#ccc" position="3 10 -10" distance="50" intensity="0.4" type="point"></a-light> 
    <a-entity id="a" template="src: #scene1"></a-entity> 
</a-scene> 

これは、オブジェクトがほとんどないシーンです。しかし、ユーザーが何らかの入力を行った場合にのみ表示されます(たとえば、マウスでシーンをドラッグするなど)。このシーンを直接どのように表示できますか?

答えて

2

</a-entity>タグを使用してカメラエンティティを閉じ、モデルが正しく読み込まれていることを確認してください(ソースパスは正しい)。

と思われます。workingと思われます。

関連する問題