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