Collada 是一種文件格式,用于以 xml 格式穩(wěn)健地表示場(chǎng)景、材料、動(dòng)畫和其他 3D 內(nèi)容。此導(dǎo)出器僅支持導(dǎo)出幾何體、材質(zhì)、紋理和場(chǎng)景層次結(jié)構(gòu)。
代碼示例
// Instantiate an exporterconst exporter = new ColladaExporter();
// Parse the input and generate the collada ( .dae ) outputconst data = exporter.parse( scene, null, options );
downloadFile( data );
{
// 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>
}, ...]
}
更多建議: