|
@@ -1774,17 +1774,21 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
JSONObject dataJson = JSONObject.parseObject(data);
|
|
|
dataJson.put("extras", floorplanJson);
|
|
|
dataJson.put("split_type", "SPLIT_V8");//替换全景图算法
|
|
|
- //V5表示不需要生成high,low文件
|
|
|
- dataJson.put("skybox_type", "SKYBOX_V6");//默认4k minion
|
|
|
+
|
|
|
+ String skyboxType = "SKYBOX_V6";//默认4k minion
|
|
|
if(SceneFrom.PRO.code().equals(scenePlusExt.getSceneFrom())){
|
|
|
- dataJson.put("skybox_type", "SKYBOX_V7");//pro 2k
|
|
|
+ skyboxType = "SKYBOX_V7";
|
|
|
type = "2k";
|
|
|
}
|
|
|
- // TODO: 2022/6/21 这里暂时不清楚含义,可能是国际版需要,先注释---start
|
|
|
-// if(scenePlusExt.getSceneScheme() == 3){
|
|
|
-// dataJson.put("skybox_type", "SKYBOX_V4");
|
|
|
-// }
|
|
|
- // TODO: 2022/6/21 这里暂时不清楚含义,可能是国际版需要,先注释---end
|
|
|
+ if(scenePlusExt.getSceneScheme() == 3){
|
|
|
+ if("4k".equals(scenePlusExt.getSceneResolution())){
|
|
|
+ skyboxType = "SKYBOX_V14";
|
|
|
+ }else{
|
|
|
+ skyboxType = "SKYBOX_V13";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ dataJson.put("skybox_type", skyboxType);
|
|
|
+
|
|
|
cn.hutool.core.io.FileUtil.writeString(dataJson.toString(),
|
|
|
target + File.separator+"data.json", StandardCharsets.UTF_8);
|
|
|
}
|