ThreeJS .dae不加载纹理

时间:2015-12-01 15:04:53

标签: three.js collada

<library_images>
    <image id="ID9">
        <init_from>
            ./textures/Seats_Lvl2b_2k.jpg
        </init_from>
    </image>

在Collada通过ThreeJS网站的默认皮肤示例中,我看到这应该保存我的图像,然后for循环会将它们打印出来但是它们不会显示我的.dae文件中的纹理而导致我的DAE文件加载在浏览器中但没有应用纹理。

skin = collada.skins[ 0 ];

如果我打印出来:

skin = collada.dae['images'];

日志显示:

enter image description here

日志中的其他警告是:

THREE.MeshPhongMaterial:'diffuse'不是这种材料的属性。 11:ColladaLoader.js:3020未处理的Sampler2D prop:instance_image three.min.js:381 THREE.MeshPhongMaterial:'diffuse'不是这种材料的属性。

所有图像都相对地放在服务器上。

欢迎咨询

1 个答案:

答案 0 :(得分:0)

如果您可以分享COLLADA模型,您可以获得更具体的建议,但如果没有我建议转换为FBX或glTF并分别使用FBXLoader或glTFLoader。