W3Cschool
恭喜您成為首批注冊用戶
獲得88經驗值獎勵
Collada 的出口商。
Collada 是一種文件格式,用于以 xml 格式穩(wěn)健地表示場景、材料、動畫和其他 3D 內容。此導出器僅支持導出幾何體、材質、紋理和場景層次結構。
// Instantiate an exporter
const exporter = new ColladaExporter();
// Parse the input and generate the collada ( .dae ) output
const data = exporter.parse( scene, null, options );
downloadFile( data );
創(chuàng)建一個新的 ColladaExporter。
input — 要導出的 Object3D
onCompleted — 將在導出完成時調用。選修的。該函數立即返回相同的數據。
options — 導出選項
使用 Collada 文件和紋理數據生成對象。該對象從函數返回并傳遞給“onCompleted”回調。
{
// Collada file content
data: "",
// List of referenced textures
textures: [{
// File directory, name, and extension of the texture data
directory: "",
name: "",
ext: "",
// The texture data and original texture object
data: [],
original: <THREE.Texture>
}, ...]
}
examples/jsm/exporters/ColladaExporter.js
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: