|
@@ -188,11 +188,13 @@ public class RunBuild {
|
|
|
|
|
|
if(isCanDownLoad(uploadObj, objectJson, vrNum)){
|
|
|
|
|
|
- log.info("下载前先睡眠5秒-{}", vrNum);
|
|
|
+ log.info("在下载前先睡眠5秒-{}", vrNum);
|
|
|
// 由于阿里云资源上传有延时问题,所以需要延时一点时间再下载
|
|
|
Thread.sleep(5000L);
|
|
|
|
|
|
+ log.info("上传obj文件,vrnum-{}, 开始时间-{}", vrNum, new Date());
|
|
|
uploadObjData(vrNum, sceneNum);
|
|
|
+ log.info("上传obj文件,vrnum-{}, 结束时间-{}", vrNum, new Date());
|
|
|
uploadObj = false;
|
|
|
}
|
|
|
|
|
@@ -208,7 +210,7 @@ public class RunBuild {
|
|
|
|
|
|
if(objectJson.containsKey("progress")){
|
|
|
Integer progress = objectJson.getInteger("progress");
|
|
|
- log.info("vrNum-{}, 第{}次获取上传进度,进度为{}%", vrNum, times++, progress);
|
|
|
+ log.info("vrNum-{}, 第{}次获取渲染进度,进度为{}%", vrNum, times++, progress);
|
|
|
updateSceneStyleEntity.setProgress(progress);
|
|
|
updateSceneStyleEntity.setUpdateTime(new Date());
|
|
|
sceneStyleService.update(updateSceneStyleEntity);
|
|
@@ -324,10 +326,14 @@ public class RunBuild {
|
|
|
String path = buildPath + "Output/" + vrNum + File.separator + "obj";
|
|
|
CreateObjUtil.ossUtilCp("images/images" + vrNum + "/obj/", path);
|
|
|
|
|
|
+ log.info("vrNum-{},删除文件开始");
|
|
|
FileUtils.deleteDirectory(path + File.separator + "results");
|
|
|
FileUtils.deleteDirectory(path + File.separator + "caches");
|
|
|
+ log.info("vrNum-{},删除文件结束");
|
|
|
|
|
|
+ log.info("vrNum-{},拷贝obj文件开始");
|
|
|
FileUtils.copyFile(path + "/extras/mesh.obj", path + "/extras/copy-mesh.obj", true);
|
|
|
+ log.info("vrNum-{},拷贝obj文件结束");
|
|
|
|
|
|
// OkHttpUtils.httpGet(maxObjUrl + "objToObj?inObj=" + path + "/extras/copy-mesh.obj" +
|
|
|
// "&outObj=" + path + "/extras/mesh.obj" + "&r=40");
|
|
@@ -398,15 +404,18 @@ public class RunBuild {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ log.info("vrnum-{}, txt转换dam,开始时间-{}", vrNum, new Date());
|
|
|
CreateObjUtil.convertTxtToDam( path + File.separator + "results" +File.separator+"modeldata.txt", path + File.separator + "results" +File.separator+ ConstantFileName.modelUUID+"_50k.dam");
|
|
|
-// CreateObjUtil.convertDamToLzma(path + File.separator + "results");
|
|
|
-// CreateObjUtil.convertTxtToDam( path + File.separator + "results" +File.separator+"modeldata.txt", path + File.separator + "results" + File.separator+ConstantFileName.modelUUID+"_50k.dam");
|
|
|
+ log.info("vrnum-{}, txt转换dam,结束时间-{}", vrNum, new Date());
|
|
|
+
|
|
|
map.put(path + File.separator + "results" +File.separator+ConstantFileName.modelUUID+"_50k.dam.lzma", "images/images"+vrNum+"/"+ConstantFileName.modelUUID+"_50k.dam.lzma");
|
|
|
map.put(path + File.separator + "results" +File.separator+ConstantFileName.modelUUID+"_50k.dam", "images/images"+vrNum+"/"+ConstantFileName.modelUUID+"_50k.dam");
|
|
|
|
|
|
//下载源场景vision.modeldata上传到新风格场景
|
|
|
+ log.info("vrnum-{}, 下载源场景vision.modeldata上传到新风格场景,开始时间-{}", vrNum, new Date());
|
|
|
FileUtils.downLoadFromUrl("https://4dkk.4dage.com/images/images" + sceneNum + "/vision.modeldata",
|
|
|
"vision.modeldata", path);
|
|
|
+ log.info("vrnum-{}, 下载源场景vision.modeldata上传到新风格场景,结束时间-{}", vrNum, new Date());
|
|
|
map.put(path + File.separator + "vision.modeldata", "images/images"+vrNum+"/"+"vision.modeldata");
|
|
|
log.info("vrNum-{},上传文件",vrNum);
|
|
|
uploadToOssUtil.uploadMulFiles(map);
|