0

I'm new on three.js< and I'm don't understand what does it mean?

I want to show .dae object.

Anybody can help w/ this case?

enter image description here

Alexander Shtang
  • 1,301
  • 2
  • 11
  • 23

3 Answers3

8

Not related, but please note that uuid has changed their declare, this one works for me:

import { v4 as uuidv4 } from 'uuid';

uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d'

Hope this helps.

סטנלי גרונן
  • 2,740
  • 21
  • 43
  • 62
MindVN
  • 81
  • 1
  • 3
2

This is not a three.js error, this is a JavaScript error. As the error states Cannot read property 'uuid' of undefined javascript can not read a property of an undefined variable.

Thus, your clipObject is undefined.

You may need to read the JavaScript checking for null vs. undefined and difference between == and ===

GramThanos
  • 3,332
  • 1
  • 18
  • 32
0

The error was in the following line

var action = mixer.clipAction( animations[ 0 ] ).play();

I used code from example from threejs website and the example was a moving example of a stormtrooper from star wars. But in my example the object is static. So I just removed the line.

Alexander Shtang
  • 1,301
  • 2
  • 11
  • 23