2017-12-11 1 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 것 같습니다.

관련 문제