3D機(jī)房系統(tǒng)是最近用戶的需求,通過(guò)相關(guān)了解最后使用Three.js,也發(fā)現(xiàn)最近有東西可以寫出來(lái)分享:
分步實(shí)現(xiàn)3D效果
一 . 初始化3D模型參數(shù)
//參數(shù)處理 this.option = new Object(); this.option.antialias = option.antialias || true; this.option.clearCoolr = option.clearCoolr || 0x1b7ace; this.option.showHelpGrid = option.showHelpGrid || false; //對(duì)象 this.id = id; this.width = width(); this.height = height(); this.renderer = null;//渲染器 this.scene = null;//場(chǎng)景 this.camera = null;//攝像機(jī) this.selected=null; this.objects = []; this.mouseClick = new THREE.Vector2(); this.raycaster = new THREE.Raycaster(); this.controls = null;//鼠標(biāo)控制器 this.trsnaformControls = null;//鼠標(biāo)控制器 this.dragcontrols = null; this.objList = json.objects;//對(duì)象列表 this.eventList = json.events;//事件對(duì)象列表 this.dragList = []; this.objectStatusList = {}; this.clickList = []; var that = this;
本文題目:Three.js實(shí)現(xiàn)3D機(jī)房效果-創(chuàng)新互聯(lián)
網(wǎng)頁(yè)地址:http://www.chinadenli.net/article24/dcshce.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、電子商務(wù)、域名注冊(cè)、靜態(tài)網(wǎng)站、商城網(wǎng)站、服務(wù)器托管
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容