#
luxiaotao1123
2021-12-17 809e230e2a6a2e586df8788946fe98be81459361
#
3个文件已修改
6个文件已添加
40 ■■■■ 已修改文件
static/img/skybox/nx.jpg 补丁 | 查看 | 原始文档 | blame | 历史
static/img/skybox/ny.jpg 补丁 | 查看 | 原始文档 | blame | 历史
static/img/skybox/nz.jpg 补丁 | 查看 | 原始文档 | blame | 历史
static/img/skybox/px.jpg 补丁 | 查看 | 原始文档 | blame | 历史
static/img/skybox/py.jpg 补丁 | 查看 | 原始文档 | blame | 历史
static/img/skybox/pz.jpg 补丁 | 查看 | 原始文档 | blame | 历史
static/js/app.js 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/StoreCrn.js 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/object/StoreShelf.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/img/skybox/nx.jpg
static/img/skybox/ny.jpg
static/img/skybox/nz.jpg
static/img/skybox/px.jpg
static/img/skybox/py.jpg
static/img/skybox/pz.jpg
static/js/app.js
@@ -16,7 +16,6 @@
        this.firstTime = 1;
        this.stats = null;
        this.goodTypes=[];//存储所有的库位类型
        this.wrkTasks = [];// 任务列表
        this.crnTasks = [];// 堆垛机列表
        this.time = 0;//标记堆垛机运行的时间
        this.progress = 0;
@@ -132,13 +131,13 @@
        }
        this.initBackground = function () {
            const cubeTextureLoader = new THREE.CubeTextureLoader();
            cubeTextureLoader.setPath( '../static/img/background/' );
            cubeTextureLoader.setPath( '../static/img/skybox/' );
            this.scene.background = cubeTextureLoader.load([
                "posx.jpg", "negx.jpg",
                "posy.jpg", "negy.jpg",
                "posz.jpg", "negz.jpg"
                "px.jpg", "nx.jpg",
                "py.jpg", "ny.jpg",
                "pz.jpg", "nz.jpg"
            ]);
            this.scene.background = new THREE.Color( 0xf0f0f0 );
            // this.scene.background = new THREE.Color( 0xf0f0f0 );
        }
        this.initReSize = function(object){
            window.addEventListener('resize', function () {
static/js/object/StoreCrn.js
@@ -1,5 +1,6 @@
import {MTLLoader} from "../lib/MTLLoader.js";
import {OBJLoader} from "../lib/OBJLoader.js";
import {Color} from "../three.module.js";
const xOffset = -1735;
const yOffset = -289;
@@ -69,6 +70,14 @@
                .setMaterials( materials )
                .setPath( '../static/model/obj/' )
                .load( '堆垛机本体.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";
@@ -86,6 +95,14 @@
                .setMaterials( materials )
                .setPath( '../static/model/obj/' )
                .load( '载货台.obj', function ( obj ) {
                    obj.traverse (function (child) {
                        if (child instanceof THREE.Mesh) {
                            child.material = new THREE.MeshLambertMaterial({
                                color: 0xD2691E
                            });
                        }
                    });
                    obj.scale.set(0.03, 0.03, 0.03);
                    obj.rotateY(- Math.PI / 2);
                    obj.name = option.crnNo + "-load";
@@ -103,6 +120,14 @@
                .setMaterials( materials )
                .setPath( '../static/model/obj/' )
                .load( '货叉.obj', function ( obj ) {
                    obj.traverse (function (child) {
                        if (child instanceof THREE.Mesh) {
                            child.material = new THREE.MeshLambertMaterial({
                                color: 0x363636
                            });
                        }
                    });
                    obj.scale.set(0.03, 0.03, 0.03);
                    obj.rotateY(- Math.PI / 2);
                    obj.name = option.crnNo + "-fork";
static/js/object/StoreShelf.js
@@ -18,8 +18,8 @@
    let shelfMat = new THREE.MeshLambertMaterial({
        color: 0x175EC0,
        transparent: true,
        opacity: .6
    });//定义支架和托盘的材质
        opacity: 0.6
    });
    //定义一个组合体
    let group = new THREE.Group();