imgntn/j360

Is there any plan to update for new three.js?

vaimd opened this issue · 0 comments

vaimd commented

Hi, I want to use this j360 but it doesn't work with new THREE r133.
At r117, CubeCamera has changed. so I changed like this below.
But only black images were captured... Is there any workaround for this?

Is there any plan to update for new THREE?
Thanks.

this.cubeCamera = new THREE.CubeCamera(.1, 10000, Math.min(this.cubeMapSize, size));

+ const cubeRenderTarget = new THREE.WebGLCubeRenderTarget( Math.min(this.cubeMapSize, size) );
+ this.cubeCamera = new THREE.CubeCamera(.1, 10000, cubeRenderTarget);
- this.cubeCamera = new THREE.CubeCamera(.1, 10000, Math.min(this.cubeMapSize, size));