|
|
@@ -21,12 +21,13 @@ public class OBJToGLBUtil {
|
|
|
* @param objPath obj文件的目录
|
|
|
* @param glbPath glb文件的最对路径
|
|
|
*/
|
|
|
- public static void objToGlb(String objPath, String glbPath) {
|
|
|
+ public static void objToGlb(String objPath, String glbPath) throws Exception {
|
|
|
OBJToGLBUtil.checkObj(objPath);
|
|
|
objPath = OBJToGLBUtil.getObj(objPath);
|
|
|
String command = "obj2gltf -i " + objPath + " -o " + glbPath;
|
|
|
log.info("开始执行obj转换gbl命令-{}", command);
|
|
|
- Process exec = RuntimeUtil.exec(command);
|
|
|
+// Process exec = RuntimeUtil.exec(command);
|
|
|
+ CmdUtils.callLine(command);
|
|
|
log.info("结束执行obj转换gbl命令-{}", command);
|
|
|
}
|
|
|
|