修改模型

master
夜笙歌 3 months ago
parent 1d8d2355db
commit 4439eb3a7e

@ -0,0 +1,75 @@
# 3ds Max Wavefront OBJ Exporter v0.99 - (c)2007 guruware
# ´´½¨µÄÎļþ:14.10.2024 13:25:02
newmtl Mat3d66_1176892_7_9595
Kd 0.7109 0.7109 0.7109
Ks 0.9000 0.9000 0.9000
Tr 0.0000
d 1.0000
Tf 1.0000 1.0000 1.0000
Pr 0.9000
Pm 0.0000
Pc 0.0000
Pcr 0.0000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
newmtl wire_190039004
Kd 0.7451 0.1529 0.0157
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
Tf 1.0000 1.0000 1.0000
Pr 0.6800
Pm 0.0000
Pc 0.0000
Pcr 0.0000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
newmtl wire_255255000
Kd 1.0000 1.0000 1.0000
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
Tf 1.0000 1.0000 1.0000
Pr 0.6800
Pm 0.0000
Pc 0.0000
Pcr 0.0000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
map_Kd maps\3d66Model-1176892-files-21.JPG
newmtl wire_255000255
Kd 0.0000 0.0000 0.0000
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
Tf 1.0000 1.0000 1.0000
Pr 0.6800
Pm 0.0000
Pc 0.0000
Pcr 0.0000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
map_Kd maps\3d66Model-1176892-files-3.jpg
newmtl wire_000255000
Kd 0.0000 1.0000 0.0000
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
Tf 1.0000 1.0000 1.0000
Pr 0.6800
Pm 0.0000
Pc 0.0000
Pcr 0.0000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
map_Kd maps\3d66Model-1176892-files-23.jpg

File diff suppressed because it is too large Load Diff

@ -1,13 +1,13 @@
# 3ds Max Wavefront OBJ Exporter v0.99 - (c)2007 guruware
# ´´½¨µÄÎļþ:14.10.2024 13:25:02
# ´´½¨µÄÎļþ:23.10.2024 08:58:52
newmtl Mat3d66_1176892_7_9595
Kd 0.7109 0.7109 0.7109
Ks 0.9000 0.9000 0.9000
newmtl wire_000255000
Kd 0.0395 0.1043 0.0000
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
Tf 1.0000 1.0000 1.0000
Pr 0.9000
Pr 0.6800
Pm 0.0000
Pc 0.0000
Pcr 0.0000
@ -15,8 +15,8 @@ newmtl Mat3d66_1176892_7_9595
Ke 0.0000 0.0000 0.0000
illum 2
newmtl wire_190039004
Kd 0.7451 0.1529 0.0157
newmtl wire_255000255
Kd 0.0489 0.0509 0.0758
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
@ -30,7 +30,7 @@ newmtl wire_190039004
illum 2
newmtl wire_255255000
Kd 1.0000 1.0000 1.0000
Kd 0.6453 0.6753 0.7441
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
@ -42,25 +42,33 @@ newmtl wire_255255000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
map_Kd maps\3d66Model-1176892-files-21.JPG
newmtl wire_255000255
Kd 0.0000 0.0000 0.0000
Ks 0.3500 0.3500 0.3500
newmtl Mat3d66_1176892_7_9595
Kd 0.7109 0.7109 0.7109
Ks 0.9000 0.9000 0.9000
Tr 0.0000
d 1.0000
Tf 1.0000 1.0000 1.0000
Pr 0.6800
Pr 0.9000
Pm 0.0000
Pc 0.0000
Pcr 0.0000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
map_Kd maps\3d66Model-1176892-files-3.jpg
newmtl wire_000255000
Kd 0.0000 1.0000 0.0000
newmtl wire_190039004
Ns 32
d 1
Tr 0
Tf 1 1 1
illum 2
Ka 0.7451 0.1529 0.0157
Kd 0.7451 0.1529 0.0157
Ks 0.3500 0.3500 0.3500
newmtl wire_255255255
Kd 0.0484 0.0504 0.0750
Ks 0.3500 0.3500 0.3500
Tr 0.0000
d 1.0000
@ -72,4 +80,27 @@ newmtl wire_000255000
Ni 1.5000
Ke 0.0000 0.0000 0.0000
illum 2
map_Kd maps\3d66Model-1176892-files-23.jpg
newmtl 07___Default
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.2510 0.3569 0.5490
Kd 0.2510 0.3569 0.5490
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
newmtl 08___Default
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.2902 0.2902 0.2902
Kd 0.2902 0.2902 0.2902
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000

@ -93,22 +93,26 @@
}
.threeLabelContent {
width: 100px;
display: none;
width: 200px;
height: auto;
color: #fff;
text-align: center;
background-color: rgba(23, 48, 97, 0.8);
border: 2px #fff3 solid;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
.threeLabelContent:before {
/*content: '';*/
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
content: '';
width: 0;
height: 0;
border-left: 5px solid transparent;
@ -159,14 +163,15 @@
})
renderer.setClearColor(0x000000, 0)
controls = new OrbitControls(camera, renderer.domElement)
controls.target = new THREE.Vector3(-654,-871,1578)
controls.update()
renderer.setSize(window.innerWidth, window.innerHeight)
camera.position.set(-654.1022064424016, 4834.69689867419, 1578.7786933814155)
camera.position.set(-298,4839,734)
camera.rotation.x = -1.57
camera.rotation.y = -2.95
camera.rotation.z = -0.03
camera.rotation.y = -6.10
camera.rotation.z = 0
camera.updateProjectionMatrix()
controls.target = new THREE.Vector3(-298,612,734)
controls.update()
// scene.add(pointLight)
scene.add(ambient)
@ -180,9 +185,9 @@
labelRenderer.domElement.style.top = '0'
labelRenderer.domElement.style.pointerEvents = 'none'
document.body.appendChild(labelRenderer.domElement)
label = new CSS2DObject(document.getElementById('threeLabel'))
label.position.set(-999999, -999999, -999999)
scene.add(label)
// label = new CSS2DObject(document.getElementById('threeLabel'))
// label.position.set(-999999, -999999, -999999)
// scene.add(label)
const geometry = new THREE.BoxGeometry(1, 1, 1);
@ -196,8 +201,8 @@
renderer.render(scene, camera)
labelRenderer.render(scene, camera)
tween.update()
console.log(camera)
console.log(controls)
// console.log(camera)
// console.log(controls)
}
animate()
@ -256,17 +261,18 @@
$.post(ctx + 'api/getCountNumberById', {id: id.toString()}, (e) => {
console.log(e)
label.position.set(405, -5, 3423)
$("#threeLabelContent").html(e.data.map(v => `${v.areaName} - ${v.countNumber}`).join('<br>'))
new tween.Tween(camera.position).to(new THREE.Vector3(383, 439, 3553), 500).start()
camera.position.set(383, 439, 3553)
camera.rotation.x = -0.9742
camera.rotation.y = -0.2454
camera.rotation.z = -0.3435
controls.target = new THREE.Vector3(832, -1042, 2547)
camera.updateProjectionMatrix()
controls.update()
// label.position.set(405, -5, 3423)
$("#threeLabelContent").css('display','block')
$("#threeLabelContent").html(e.data.map(v => `<p>名称:${v.areaName} 编号:${v.locationCode} 数量: ${v.countNumber}</p>`).join('<br>'))
// new tween.Tween(camera.position).to(new THREE.Vector3(383, 439, 3553), 500).start()
// camera.position.set(383, 439, 3553)
// camera.rotation.x = -0.9742
// camera.rotation.y = -0.2454
// camera.rotation.z = -0.3435
// controls.target = new THREE.Vector3(832, -1042, 2547)
// camera.updateProjectionMatrix()
// controls.update()
})
}

Loading…
Cancel
Save