From a2bb806b03b79fa34388a0d6a9e9735b398afd8a Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Tue, 19 Jan 2021 16:27:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=89=E7=BB=B4=E9=93=81?= =?UTF-8?q?=E8=BD=A8=E9=80=8F=E6=98=8E=E8=B4=B4=E5=9B=BE=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BD=9B=E5=B1=B1=E7=BA=BF=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=BC=AB=E6=B8=B8=E8=BD=A8=E8=BF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/jl3dsimulation/jlmap3d.js | 26 ++++++++++++++--------- src/jlmap3d/main/newmodel/SectionListN.js | 3 +++ 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/src/jlmap3d/jl3dsimulation/jlmap3d.js b/src/jlmap3d/jl3dsimulation/jlmap3d.js index c28e694c5..1ed9bfc46 100644 --- a/src/jlmap3d/jl3dsimulation/jlmap3d.js +++ b/src/jlmap3d/jl3dsimulation/jlmap3d.js @@ -404,19 +404,25 @@ export function JLmap3d(dom, data,skinCode,storemod,routegroup,project) { // points.push(new THREE.Vector3(stationp1.x+38,11,stationp1.z-15)); // points.push(new THREE.Vector3(stationp1.x+38,11,stationp1.z+2)); // points.push(new THREE.Vector3(stationp1.x+13,5,stationp1.z+2)); - - if(stationstandlist.group.children[0].inside == false){ - points.push(new THREE.Vector3(stationp1.x-65,11,stationp1.z-26)); - points.push(new THREE.Vector3(stationp1.x+60,11,stationp1.z-26)); - points.push(new THREE.Vector3(stationp1.x+60,7,stationp1.z-26)); - points.push(new THREE.Vector3(stationp1.x-55,5,stationp1.z-26)); + console.log(stationstandlist.group.children[0]); + if(stationstandlist.group.children[0].code == "Station34"){ + points.push(new THREE.Vector3(stationp1.x+60,4,stationp1.z-23)); + points.push(new THREE.Vector3(stationp1.x-55,4,stationp1.z-23)); }else{ - points.push(new THREE.Vector3(stationp1.x-65,11,stationp1.z+12)); - points.push(new THREE.Vector3(stationp1.x+60,11,stationp1.z+12)); - points.push(new THREE.Vector3(stationp1.x+60,7,stationp1.z+12)); - points.push(new THREE.Vector3(stationp1.x-55,5,stationp1.z+12)); + if(stationstandlist.group.children[0].inside == false){ + points.push(new THREE.Vector3(stationp1.x-65,11,stationp1.z-26)); + points.push(new THREE.Vector3(stationp1.x+60,11,stationp1.z-26)); + points.push(new THREE.Vector3(stationp1.x+60,7,stationp1.z-26)); + points.push(new THREE.Vector3(stationp1.x-55,5,stationp1.z-26)); + }else{ + points.push(new THREE.Vector3(stationp1.x-65,11,stationp1.z+12)); + points.push(new THREE.Vector3(stationp1.x+60,11,stationp1.z+12)); + points.push(new THREE.Vector3(stationp1.x+60,7,stationp1.z+12)); + points.push(new THREE.Vector3(stationp1.x-55,5,stationp1.z+12)); + } } + // points.push(new THREE.Vector3(stationp1.x+40,3,stationp1.z+15)); // controls.target = new THREE.Vector3(camera.position.x+1,camera.position.y,camera.position.z); // controls.update(); diff --git a/src/jlmap3d/main/newmodel/SectionListN.js b/src/jlmap3d/main/newmodel/SectionListN.js index 5f81fef35..11d4c622c 100644 --- a/src/jlmap3d/main/newmodel/SectionListN.js +++ b/src/jlmap3d/main/newmodel/SectionListN.js @@ -22,6 +22,9 @@ this.loadpromise = function(sectionList,sectiondata,rails,scene,assetloader){ var texture = new THREE.TextureLoader().load( JL3D_LOCAL_STATIC+'/test/z0251.png' ); texture.wrapS = texture.wrapT = THREE.RepeatWrapping; + texture.anisotropy = 0; + texture.magFilter = THREE.NearestFilter; + texture.minFilter = THREE.NearestFilter; texture.repeat.set( 1,1); var selectmaterial = new THREE.MeshPhongMaterial( { map: texture,transparent:true,alphaTest:0.1 } );