Hi - just getting up to speed on Depthkit in Three.js. I'm following along with the examples, and attempting to add multiple clips, but for some reason the scene seems to be storing multiple instances of only one of the clips (whichever is most recently added to the scene).
If I limit this loop to just index 0 or 1, the individual character respectively loads and plays properly, but running through both characters in the config only renders character at index 1.
In the browser console, if I, for example, make appState.characters[0].visible = false, the change applies to appState.characters[1] as well.
Hi - just getting up to speed on Depthkit in Three.js. I'm following along with the examples, and attempting to add multiple clips, but for some reason the scene seems to be storing multiple instances of only one of the clips (whichever is most recently added to the scene).
I've modified the
simple
example as follows:If I limit this loop to just index 0 or 1, the individual character respectively loads and plays properly, but running through both characters in the config only renders character at index 1.
In the browser console, if I, for example, make
appState.characters[0].visible = false
, the change applies toappState.characters[1]
as well.