j360Three.js 视频和图像捕获
j360 是 Three.js 的一个扩展,实现了 360 度的视频和图像捕获。j360 依赖于 CCapture.js 。
示例代码:
// Create a capturer that exports Equirectangular 360 JPG images in a TAR file var capturer360 = new CCapture({ format: 'threesixty', display: true, autoSaveTime: 3, }); capturer360.capture(canvas); function startCapture360(event) { capturer360.start(); } function stopCapture360(event) { capturer360.stop(); }
评论