Open magix opened 4 years ago
i found thereis a three.js in videojs-vr . i import a new three.js,
I got the same error as you. How do I fix it? Thanks. @magix
Thanks. I import * as THREE from 'videojs-vr/node_modules/three/build/three.js'. fix it.
Description
Results
three.js:3556 Uncaught TypeError: Cannot read property 'elements' of undefined at Vector3.applyMatrix4 (three.js:3556) at Vector3.unproject (three.js:3598)
Expected
only i want to do is to raycast a object .to make change
Actual
unproject: function ( camera ) { return this.applyMatrix4( camera.projectionMatrixInverse ).applyMatrix4( camera.matrixWorld );
//debug this camera.projectionMatrixInverse is null? },
Error output
If there are any errors at all, please include them here.
Additional Information
versions
videojs
last version ;
three.js is lastest version
browsers
chrome
OSes
mac
plugins
import new three.js