fix: add support for usd for assimp, #144
This commit is contained in:
parent
d3af9688c6
commit
2057167576
1 changed files with 99 additions and 95 deletions
|
|
@ -42,8 +42,8 @@ export const properties = {
|
||||||
"md5mesh",
|
"md5mesh",
|
||||||
"mdc",
|
"mdc",
|
||||||
"mdl",
|
"mdl",
|
||||||
"mesh",
|
|
||||||
"mesh.xml",
|
"mesh.xml",
|
||||||
|
"mesh",
|
||||||
"mot",
|
"mot",
|
||||||
"ms3d",
|
"ms3d",
|
||||||
"ndo",
|
"ndo",
|
||||||
|
|
@ -66,6 +66,10 @@ export const properties = {
|
||||||
"stp",
|
"stp",
|
||||||
"ter",
|
"ter",
|
||||||
"uc",
|
"uc",
|
||||||
|
"usd",
|
||||||
|
"usda",
|
||||||
|
"usdc",
|
||||||
|
"usdz",
|
||||||
"vta",
|
"vta",
|
||||||
"x",
|
"x",
|
||||||
"x3d",
|
"x3d",
|
||||||
|
|
@ -78,30 +82,31 @@ export const properties = {
|
||||||
},
|
},
|
||||||
to: {
|
to: {
|
||||||
muxer: [
|
muxer: [
|
||||||
"collada",
|
|
||||||
"x",
|
|
||||||
"stp",
|
|
||||||
"obj",
|
|
||||||
"objnomtl",
|
|
||||||
"stl",
|
|
||||||
"stlb",
|
|
||||||
"ply",
|
|
||||||
"plyb",
|
|
||||||
"3ds",
|
"3ds",
|
||||||
"gltf2",
|
"3mf",
|
||||||
"glb2",
|
|
||||||
"gltf",
|
|
||||||
"glb",
|
|
||||||
"assbin",
|
"assbin",
|
||||||
|
"assjson",
|
||||||
"assxml",
|
"assxml",
|
||||||
"x3d",
|
"collada",
|
||||||
|
"dae",
|
||||||
"fbx",
|
"fbx",
|
||||||
"fbxa",
|
"fbxa",
|
||||||
|
"glb",
|
||||||
|
"glb2",
|
||||||
|
"gltf",
|
||||||
|
"gltf2",
|
||||||
"m3d",
|
"m3d",
|
||||||
"m3da",
|
"m3da",
|
||||||
"3mf",
|
"obj",
|
||||||
|
"objnomtl",
|
||||||
"pbrt",
|
"pbrt",
|
||||||
"assjson",
|
"ply",
|
||||||
|
"plyb",
|
||||||
|
"stl",
|
||||||
|
"stlb",
|
||||||
|
"stp",
|
||||||
|
"x",
|
||||||
|
"x3d",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
@ -116,7 +121,6 @@ export async function convert(
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
// let command = "ffmpeg";
|
// let command = "ffmpeg";
|
||||||
|
|
||||||
|
|
||||||
const command = `assimp export "${filePath}" "${targetPath}"`;
|
const command = `assimp export "${filePath}" "${targetPath}"`;
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue