I exported a 3D model from sketchup to collada and used the Threejs Collada bootloader to load. But I get the following warnings:
THREE.DirectGeometry.fromGeometry(): Undefined vertexUv 2
It looks like some grids in my collada model have 4 faces, but only 2 UV values. Any ideas why collada lacks UV values? And is there a workaround in Threejs with loading such models?
In version 71 of the threejs library, this was just a warning, but in version 72 this leads to the following error when using the selection:
Uncaught TypeError: Cannot read property '0' of undefined (12:59:20:764 | error, javascript) at raycast (public_html/libs/three.js:17237:19) at intersectObject (public_html/libs/three.js:7678:10) at intersectObject (public_html/libs/three.js:7686:5) at intersectObject (public_html/libs/three.js:7686:5) at intersectObject (public_html/libs/three.js:7686:5) at THREE.Raycaster.intersectObject (public_html/libs/three.js:7734:4) at adjustCameraPositionForCollision (public_html/PointerLockControls.js:302:86) at update (public_html/PointerLockControls.js:257:14) at render (public_html/simbuilding.js:113:24)
Saeid nourian
source share