j360Three.js 視頻和圖像捕獲
j360 是 Three.js 的一個(gè)擴(kuò)展,實(shí)現(xiàn)了 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();
}
評(píng)論
圖片
表情
