imgntn / j360

360 Video and Photo Capture in 4K for Three.js
291 stars 17 forks source link

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

Open vaimd opened 2 years ago

vaimd commented 2 years ago

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.

https://github.com/imgntn/j360/blob/31224b6950787fcf015a37595c873889daa25f7c/js/CubemapToEquirectangular.js#L146

+ 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));