|
@@ -252,6 +252,7 @@ EditTools.prototype.initSaveAll = function() {
|
|
var data = {
|
|
var data = {
|
|
sceneCode: number,
|
|
sceneCode: number,
|
|
hots: reData(that.hotpoint.getSavingInfo(), '{}'),
|
|
hots: reData(that.hotpoint.getSavingInfo(), '{}'),
|
|
|
|
+ //tourAudio: reData(that.editGuide.tourAudio,'{}'),//for 旧版
|
|
name: number,
|
|
name: number,
|
|
guides: reData(guides, '[]'),
|
|
guides: reData(guides, '[]'),
|
|
info: info,
|
|
info: info,
|
|
@@ -3351,6 +3352,7 @@ EditGuide.prototype.createDom = function(data, data2) {
|
|
Info.locations = Info.locations.filter(e=>e)
|
|
Info.locations = Info.locations.filter(e=>e)
|
|
Info.locations.forEach(function(info, index) {
|
|
Info.locations.forEach(function(info, index) {
|
|
if (info.thumbnail_signed_src) {
|
|
if (info.thumbnail_signed_src) {
|
|
|
|
+ info.thumbnail_signed_src = manage.dealURL(info.thumbnail_signed_src) //旧场景有的少了https://
|
|
var $li = $(that.getItemDom( info.name, info.thumbnail_signed_src));
|
|
var $li = $(that.getItemDom( info.name, info.thumbnail_signed_src));
|
|
$li[0].tourData = info
|
|
$li[0].tourData = info
|
|
$folder[0].tourItemDoms.push($li[0])
|
|
$folder[0].tourItemDoms.push($li[0])
|
|
@@ -3359,6 +3361,7 @@ EditGuide.prototype.createDom = function(data, data2) {
|
|
})
|
|
})
|
|
}else{//是散落在外的item
|
|
}else{//是散落在外的item
|
|
if (Info.thumbnail_signed_src) {
|
|
if (Info.thumbnail_signed_src) {
|
|
|
|
+ Info.thumbnail_signed_src = manage.dealURL(Info.thumbnail_signed_src)
|
|
var $li = $(that.getItemDom(Info.name, Info.thumbnail_signed_src));
|
|
var $li = $(that.getItemDom(Info.name, Info.thumbnail_signed_src));
|
|
$li[0].tourData = Info
|
|
$li[0].tourData = Info
|
|
// 音频链接
|
|
// 音频链接
|
|
@@ -5182,9 +5185,9 @@ var VisiSet = {
|
|
createPanoSingleLine: function(pano, type, id) {
|
|
createPanoSingleLine: function(pano, type, id) {
|
|
//pano是中心
|
|
//pano是中心
|
|
var panos = player.model.panos;
|
|
var panos = player.model.panos;
|
|
- var p2 = panos.index[id].floorPosition.clone()
|
|
|
|
|
|
+ var p2 = panos.index[id].footIcon.position.clone()
|
|
/* .sub(player.model.position) */
|
|
/* .sub(player.model.position) */
|
|
- var line = LineDraw.createLine([pano.floorPosition.clone()/* .sub(this.position) */
|
|
|
|
|
|
+ var line = LineDraw.createLine([pano.footIcon.position.clone()/* .sub(this.position) */
|
|
, p2], {
|
|
, p2], {
|
|
color: this.colors.green
|
|
color: this.colors.green
|
|
});
|
|
});
|
|
@@ -5278,8 +5281,8 @@ var VisiSet = {
|
|
name: "footIcon"
|
|
name: "footIcon"
|
|
})
|
|
})
|
|
var foot = new THREE.Mesh(geo,mat)
|
|
var foot = new THREE.Mesh(geo,mat)
|
|
- foot.position.copy(panos.index[r].floorPosition.clone()/* .sub(player.model.position) */
|
|
|
|
- )
|
|
|
|
|
|
+ foot.position.copy( panos.index[r].position.clone().setY(player.model.center.y) ) /* panos.index[r].floorPosition.clone() *///不用floorPosition是因为有出现和position的水平位置不一样的点,一般是偏移很远的不可见点,拍摄的bug
|
|
|
|
+
|
|
foot.lookAt(foot.position.clone().add(new THREE.Vector3(0,1,0)));
|
|
foot.lookAt(foot.position.clone().add(new THREE.Vector3(0,1,0)));
|
|
foot.name = panos.index[r].id;
|
|
foot.name = panos.index[r].id;
|
|
foot.visible = false;
|
|
foot.visible = false;
|
|
@@ -5559,7 +5562,7 @@ var VisiSet = {
|
|
},
|
|
},
|
|
createTagSingleLine: function(pano, type, tag) {
|
|
createTagSingleLine: function(pano, type, tag) {
|
|
var panos = player.model.panos;
|
|
var panos = player.model.panos;
|
|
- var line = LineDraw.createLine([pano.floorPosition.clone()/* .sub(this.position) */
|
|
|
|
|
|
+ var line = LineDraw.createLine([pano.footIcon.position.clone()/* .sub(this.position) */
|
|
, tag.info.position.clone()], {
|
|
, tag.info.position.clone()], {
|
|
color: this.colors.green
|
|
color: this.colors.green
|
|
});
|
|
});
|