| | |
| | | } |
| | | } |
| | | this.initTransporter = function (object) { |
| | | // const manager = new THREE.LoadingManager(); |
| | | // new MTLLoader(manager) |
| | | // .setPath( '../static/model/obj/' ) |
| | | // .load( '13213.mtl', function ( materials ) { |
| | | // materials.preload(); |
| | | // new OBJLoader( manager ) |
| | | // .setMaterials( materials ) |
| | | // .setPath( '../static/model/obj/' ) |
| | | // .load( '13213.obj', function ( obj ) { |
| | | // obj.traverse (function (child) { |
| | | // if (child instanceof THREE.Mesh) { |
| | | // child.material = new THREE.MeshLambertMaterial({ |
| | | // color: 0xCD6839 |
| | | // }); |
| | | // } |
| | | // }); |
| | | // |
| | | // obj.scale.set(0.03, 0.03, 0.03); |
| | | // obj.rotateY(- Math.PI / 2); |
| | | // // obj.name = option.crnNo + "-body"; |
| | | // obj.position.x = 0; |
| | | // obj.position.y = 0; |
| | | // obj.position.z = 0; |
| | | // object.addObject( obj ); |
| | | // }, null, null ); |
| | | // }); |
| | | |
| | | } |
| | | this.initStoreObjects = function (object) { |
| | | if (this.firstTime === 1) { |
| | |
| | | { |
| | | objectName: 'floor', |
| | | objectType: 'cube', |
| | | length: 1400, |
| | | length: 2750, |
| | | width: 1200, |
| | | height: 1, |
| | | position: { |
| | | x: 700, |
| | | y: 600, |
| | | z: 0 |
| | | x: 1375, |
| | | y: 1, |
| | | z: 600 |
| | | }, |
| | | style:{ |
| | | color: 0x5F7480, |
| | | } |
| | | }, |
| | | { |
| | | objectName: 'floor', |
| | | objectType: 'cube', |
| | | length: 2750, |
| | | width: 1200, |
| | | height: 1, |
| | | position: { |
| | | x: 1375, |
| | | y: 310, |
| | | z: 600 |
| | | }, |
| | | style:{ |
| | | color: 0x5F7480, |
| | | transparent:1, |
| | | opacity:0.8 |
| | | } |
| | | } |
| | | ] |
| | | } |
New file |
| | |
| | | # 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware |
| | | # 创建的文件:22.12.2021 13:18:40 |
| | | |
| | | newmtl wire_028089177 |
| | | Ns 32 |
| | | d 1 |
| | | Tr 0 |
| | | Tf 1 1 1 |
| | | illum 2 |
| | | Ka 0.1098 0.3490 0.6941 |
| | | Kd 0.1098 0.3490 0.6941 |
| | | Ks 0.3500 0.3500 0.3500 |