问题描述
我从 A-Frame 开始。我已经按照教程为平面分配纹理。 什么都没有出现,只有一个黑色的飞机。 那会发生吗? 提前致谢 我的代码如下:
<html>
<head>
<Meta charset="utf-8" />
<title>Hello,WebVR! • A-Frame</title>
<Meta name="description" content="Hello,WebVR! • A-Frame" />
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
</head>
<body>
<a-scene>
<a-assets>
<img id="suelonormal" src="img/textura-suelo-normal.png" />
<img id="suelo" src="img/textura-suelo.png" />
</a-assets>
<!--
<a-plane
material="color:white"
rotation="-90"
scale="15 15 1"
repeat="5 5 1"
src="#suelo"
normal-map="#suelonormal"
normal-texture-repeat="5 5 1"
>
</a-plane>
-->
<a-plane
material="src:#suelo;repeat:5 5 1;normal-map:#suelonormal;normal-texture-repeat:5 5 1"
rotation="-90"
scale="15 15 1"
>
</a-plane>
<a-sky color="blue"></a-sky>
</a-scene>
</body>
</html>```
thank you in advance
解决方法
我发现了问题:文件的纹理太重了。 还是谢谢你