|
|
@ -2702,7 +2702,6 @@ MainMap_QM.prototype = { |
|
|
*/ |
|
|
*/ |
|
|
startRender: function () { |
|
|
startRender: function () { |
|
|
Map_QM.cancelRender(); |
|
|
Map_QM.cancelRender(); |
|
|
renderFrame = requestAnimationFrame(Map_QM.startRender); |
|
|
|
|
|
let T = Map_QM.util._clock.getDelta(); |
|
|
let T = Map_QM.util._clock.getDelta(); |
|
|
Map_QM.util.timeObj.timeS = Map_QM.util.timeObj.timeS + T; |
|
|
Map_QM.util.timeObj.timeS = Map_QM.util.timeObj.timeS + T; |
|
|
// requestAnimationFrame默认调用render函数60次,通过时间判断,降低renderer.render执行频率
|
|
|
// requestAnimationFrame默认调用render函数60次,通过时间判断,降低renderer.render执行频率
|
|
|
@ -2726,10 +2725,6 @@ MainMap_QM.prototype = { |
|
|
Map_QM.controls.update(); |
|
|
Map_QM.controls.update(); |
|
|
Map_QM.renderer.render(Map_QM.scene, Map_QM.camera); |
|
|
Map_QM.renderer.render(Map_QM.scene, Map_QM.camera); |
|
|
Map_QM.labelRenderer.render(Map_QM.scene, Map_QM.camera); |
|
|
Map_QM.labelRenderer.render(Map_QM.scene, Map_QM.camera); |
|
|
if(Map_QM.mapArr[Map_QM.util.selectBuild] && Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor]){ |
|
|
|
|
|
Map_QM.labelRenderer.renderObject( Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].labelObj, Map_QM.camera ); |
|
|
|
|
|
Map_QM.labelRenderer.renderObject( Map_QM.CSSObject, Map_QM.camera ); |
|
|
|
|
|
} |
|
|
|
|
|
for (let item of Map_QM.mixers) { |
|
|
for (let item of Map_QM.mixers) { |
|
|
item.update(T); |
|
|
item.update(T); |
|
|
} |
|
|
} |
|
|
@ -2739,6 +2734,7 @@ MainMap_QM.prototype = { |
|
|
//timeS置0
|
|
|
//timeS置0
|
|
|
Map_QM.util.timeObj.timeS = 0; |
|
|
Map_QM.util.timeObj.timeS = 0; |
|
|
} |
|
|
} |
|
|
|
|
|
renderFrame = requestAnimationFrame(Map_QM.startRender); |
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* @api {方法} cancelRender() 取消地图渲染 |
|
|
* @api {方法} cancelRender() 取消地图渲染 |
|
|
@ -3002,7 +2998,7 @@ MainMap_QM.prototype = { |
|
|
if (Map_QM.endModel && Map_QM.endModel.visible) { |
|
|
if (Map_QM.endModel && Map_QM.endModel.visible) { |
|
|
Map_QM.endModel.visible = false; |
|
|
Map_QM.endModel.visible = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clickShop = true; |
|
|
clickShop = true; |
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].findPath.clearPath(); |
|
|
Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].findPath.clearPath(); |
|
|
Map_QM.setSelectShopMat(intersects[i].object); |
|
|
Map_QM.setSelectShopMat(intersects[i].object); |
|
|
@ -3088,8 +3084,6 @@ MainMap_QM.prototype = { |
|
|
Map_QM.controls.update(); |
|
|
Map_QM.controls.update(); |
|
|
Map_QM.renderer.render(Map_QM.scene, Map_QM.camera); |
|
|
Map_QM.renderer.render(Map_QM.scene, Map_QM.camera); |
|
|
Map_QM.labelRenderer.render(Map_QM.scene, Map_QM.camera); |
|
|
Map_QM.labelRenderer.render(Map_QM.scene, Map_QM.camera); |
|
|
Map_QM.labelRenderer.renderObject( Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].labelObj, Map_QM.camera ); |
|
|
|
|
|
Map_QM.labelRenderer.zOrder( Map_QM.mapArr[Map_QM.util.selectBuild][Map_QM.util.selectFloor].labelObj ); |
|
|
|
|
|
if (Map_QM.callBackLoadOver) { |
|
|
if (Map_QM.callBackLoadOver) { |
|
|
let floorData = []; |
|
|
let floorData = []; |
|
|
for (let i = 0; i < Map_QM.util.allMap.length; i++) { |
|
|
for (let i = 0; i < Map_QM.util.allMap.length; i++) { |
|
|
@ -4257,7 +4251,6 @@ MainMap_QM.prototype = { |
|
|
span2.innerText = floorArr[i] |
|
|
span2.innerText = floorArr[i] |
|
|
floorBox.appendChild(span2) |
|
|
floorBox.appendChild(span2) |
|
|
} |
|
|
} |
|
|
Map_QM.labelRenderer.renderObject( Map_QM.scene, Map_QM.camera ); |
|
|
|
|
|
TweenMax.fromTo('#moveFloor', 1.5, { bottom: zo }, |
|
|
TweenMax.fromTo('#moveFloor', 1.5, { bottom: zo }, |
|
|
{ |
|
|
{ |
|
|
bottom: tz, |
|
|
bottom: tz, |
|
|
@ -4879,10 +4872,10 @@ FloorMap_QM.prototype = { |
|
|
} |
|
|
} |
|
|
if (shopData[h].formatColor) { |
|
|
if (shopData[h].formatColor) { |
|
|
entColor = parseInt(shopData[h].formatColor.replace("#", "0x"), 16); |
|
|
entColor = parseInt(shopData[h].formatColor.replace("#", "0x"), 16); |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
if (shopData[h].borderColor) { |
|
|
if (shopData[h].borderColor) { |
|
|
borderColor = parseInt(shopData[h].borderColor.replace("#", "0x"), 16); |
|
|
borderColor = parseInt(shopData[h].borderColor.replace("#", "0x"), 16); |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -5615,7 +5608,7 @@ MyModel_QM.prototype.MyPlaneShape = function (areaArr, howllowArr, opObj, entity |
|
|
color: entityColor, |
|
|
color: entityColor, |
|
|
transparent: true, |
|
|
transparent: true, |
|
|
opacity: alphaModle, |
|
|
opacity: alphaModle, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
depthTest: true |
|
|
depthTest: true |
|
|
}); |
|
|
}); |
|
|
Map_QM.util.meshMaterialArr.push(meshMaterial); |
|
|
Map_QM.util.meshMaterialArr.push(meshMaterial); |
|
|
@ -6038,4 +6031,3 @@ FindPath_QM.prototype.playMoveGuide = function () { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|