fix: add support for usd for assimp, #144

This commit is contained in:
C4illin 2024-09-28 13:13:48 +02:00
parent d3af9688c6
commit 2057167576

View file

@ -4,104 +4,109 @@ import { exec } from "node:child_process";
export const properties = { export const properties = {
from: { from: {
muxer: [ muxer: [
"3d", "3d",
"3ds", "3ds",
"3mf", "3mf",
"ac", "ac",
"ac3d", "ac3d",
"acc", "acc",
"amf", "amf",
"ase", "ase",
"ask", "ask",
"assbin", "assbin",
"b3d", "b3d",
"blend", "blend",
"bsp", "bsp",
"bvh", "bvh",
"cob", "cob",
"csm", "csm",
"dae", "dae",
"dxf", "dxf",
"enff", "enff",
"fbx", "fbx",
"glb", "glb",
"gltf", "gltf",
"hmp", "hmp",
"ifc", "ifc",
"ifczip", "ifczip",
"iqm", "iqm",
"irr", "irr",
"irrmesh", "irrmesh",
"lwo", "lwo",
"lws", "lws",
"lxo", "lxo",
"md2", "md2",
"md3", "md3",
"md5anim", "md5anim",
"md5camera", "md5camera",
"md5mesh", "md5mesh",
"mdc", "mdc",
"mdl", "mdl",
"mesh", "mesh.xml",
"mesh.xml", "mesh",
"mot", "mot",
"ms3d", "ms3d",
"ndo", "ndo",
"nff", "nff",
"obj", "obj",
"off", "off",
"ogex", "ogex",
"pk3", "pk3",
"ply", "ply",
"pmx", "pmx",
"prj", "prj",
"q3o", "q3o",
"q3s", "q3s",
"raw", "raw",
"scn", "scn",
"sib", "sib",
"smd", "smd",
"step", "step",
"stl", "stl",
"stp", "stp",
"ter", "ter",
"uc", "uc",
"vta", "usd",
"x", "usda",
"x3d", "usdc",
"x3db", "usdz",
"xgl", "vta",
"xml", "x",
"zae", "x3d",
"zgl", "x3db",
"xgl",
"xml",
"zae",
"zgl",
], ],
}, },
to: { to: {
muxer: [ muxer: [
"collada", "3ds",
"x", "3mf",
"stp", "assbin",
"obj", "assjson",
"objnomtl", "assxml",
"stl", "collada",
"stlb", "dae",
"ply", "fbx",
"plyb", "fbxa",
"3ds", "glb",
"gltf2", "glb2",
"glb2", "gltf",
"gltf", "gltf2",
"glb", "m3d",
"assbin", "m3da",
"assxml", "obj",
"x3d", "objnomtl",
"fbx", "pbrt",
"fbxa", "ply",
"m3d", "plyb",
"m3da", "stl",
"3mf", "stlb",
"pbrt", "stp",
"assjson", "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) => {