|
@@ -956,16 +956,21 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
|
|
|
JSONObject dataJson = JSONObject.parseObject(data);
|
|
JSONObject dataJson = JSONObject.parseObject(data);
|
|
dataJson.put("extras", floorplanJson);
|
|
dataJson.put("extras", floorplanJson);
|
|
|
|
+ dataJson.put("split_type", "SPLIT_V8");
|
|
//V5表示不需要生成high,low文件
|
|
//V5表示不需要生成high,low文件
|
|
- dataJson.put("skybox_type", "SKYBOX_V6");
|
|
|
|
|
|
+ String skyboxType = "SKYBOX_V6";
|
|
if(scenePlusExt.getSceneScheme() == 11){
|
|
if(scenePlusExt.getSceneScheme() == 11){
|
|
- dataJson.put("skybox_type", "SKYBOX_V7");
|
|
|
|
|
|
+ skyboxType = "SKYBOX_V7";
|
|
}
|
|
}
|
|
- dataJson.put("split_type", "SPLIT_V8");
|
|
|
|
//sceneScheme为3切成瓦片图
|
|
//sceneScheme为3切成瓦片图
|
|
if(scenePlusExt.getSceneScheme() == 3){
|
|
if(scenePlusExt.getSceneScheme() == 3){
|
|
- dataJson.put("skybox_type", "SKYBOX_V4");
|
|
|
|
|
|
+ if("4k".equals(scenePlusExt.getSceneResolution())){
|
|
|
|
+ skyboxType = "SKYBOX_V14";
|
|
|
|
+ }else{
|
|
|
|
+ skyboxType = "SKYBOX_V13";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ dataJson.put("skybox_type", skyboxType);
|
|
FileUtils.writeFile(target + File.separator+"data.json", new String(dataJson.toString().getBytes(), "UTF-8"));
|
|
FileUtils.writeFile(target + File.separator+"data.json", new String(dataJson.toString().getBytes(), "UTF-8"));
|
|
}
|
|
}
|
|
if(new File(target + File.separator + "capture").exists()){
|
|
if(new File(target + File.separator + "capture").exists()){
|