|
@@ -13,11 +13,16 @@ import java.util.LinkedHashSet;
|
|
|
public class OBJToGLBUtil {
|
|
|
|
|
|
public static void objToGlb(String objPath, String glbPath) {
|
|
|
+ log.info("obj转换glb开始,{}",objPath);
|
|
|
checkObj(objPath);
|
|
|
log.info("obj转换glb开始");
|
|
|
String command = "obj2gltf " + objPath + " " + glbPath;
|
|
|
log.info("执行obj转换glb命令路径-{}", command);
|
|
|
- CreateObjUtil.callshell(command);
|
|
|
+ try {
|
|
|
+ Process process = Runtime.getRuntime().exec(command);
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
log.info("obj转换glb完毕:" + command);
|
|
|
}
|
|
|
|