xzw 4 meses atrás
pai
commit
f584cc4c19

+ 2 - 2
public/lib/potree/potree.js

@@ -69700,7 +69700,6 @@
 	    Potree.Utils.setObjectLayers(this, 'dontIntersect');
 	  }
 	  setContent(type, src, autoSize) {
-	    src = location.origin + '/' + src;
 	    this.mediaType = type;
 	    var loadDone = () => {
 	      autoSize && this.autoSize();
@@ -92536,7 +92535,8 @@
 
 	          boundingBox_.min.set(-radius, -radius, -radius);
 	          boundingBox_.max.set(radius, radius, radius);
-	          boundingBox_.translate(_center);
+	          console.log('boundingVolume sphere', sphereData);
+	          boundingBox_.translate(_center.negate());
 
 	          //2025:很少有模型用这个,之前是哪个模型有的?目前看到cesium的模型有 'http://192.168.0.25/oss/manage/media-library/result/test/tileset.json',
 	        } else {

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
public/lib/potree/potree.js.map


Diferenças do arquivo suprimidas por serem muito extensas
+ 16 - 35
public/lib/three.js/loaders/draco/draco_decoder.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
public/lib/three.js/loaders/draco/draco_wasm_wrapper.js


+ 6 - 3
src/sdk/cover/index.js

@@ -2626,8 +2626,8 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes, laserRoot, laserOS
 function load4dkkMedias(model){//加载四维看看的一些媒体物品
     if(model.isPointcloud)return
     let {sceneJsonPath,surveillancePath} = model.props.raw    
-     
-    if(sceneJsonPath){//box图片视频 
+    console.log(sceneJsonPath,surveillancePath)
+    if(sceneJsonPath){//box图片视频                         /oss/scene_view_data/SG-jm-Xwq0FwSkFy4/data/scene.json
         Potree.loadFile(sceneJsonPath+ '?m='+Date.now(),null,(json)=>{
             //console.log(model.name,  'sceneJson', json,  json.surveillances)
           
@@ -2655,7 +2655,10 @@ function load4dkkMedias(model){//加载四维看看的一些媒体物品
                     prop.model = model
                     prop.position = Potree.Utils.tran4dkkVecInModel(new THREE.Vector3().fromArray(prop.pos), model) ,
                     prop.rotation = new THREE.Euler().setFromQuaternion(new THREE.Quaternion().fromArray(prop.qua)),
-                    prop.url = 'oss/scene_view_data/'+ model.props.raw.num + '/user/'+prop.url,
+                    //prop.url =  location.origin + '/oss/scene_view_data/'+ model.props.raw.num + '/user/'+prop.url,
+                    prop.url = location.origin + sceneJsonPath.replace('data/scene.json','user/'+prop.url),  //offline different
+                     
+                    
                     prop.id = prop.sid 
                      //Potree.settings.urls.getPrefix(8,model)
                      //isNew:true, //是否新创建而非加载