./textures/Seats_Lvl2b_2k.jpg In the ex...">

ThreeJS.dae Do not load textures

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

In the example of the default skins for Collada through the ThreeJS website, I see that this should contain my images, and then the for loop will print them, but they do not display the textures from my .dae file, and this leads to loading my DAE file into browser, but no textures apply.

skin = collada.skins[ 0 ];

If I print:

skin = collada.dae['images'];

The log displays:

enter image description here

Other warnings in the log:

THREE.MeshPhongMaterial: "diffuse" is not a property of this material. 11: ColladaLoader.js: 3020 raw Sampler2D prop: instance_image three.min.js: 381 THREE.MeshPhongMaterial: "diffuse" is not a property of this material.

All images are hosted relatively on the server.

Tip welcome

+4
1

COLLADA, , FBX glTF FBXLoader glTFLoader .

0

Source: https://habr.com/ru/post/1618129/


All Articles