View unanswered posts | View active topics It is currently 2019-11-18 11:18



Reply to topic  [ 3 posts ] 
 TWaver HTML5 3D 初体验,请教一些问题 
Author Message
新手上路

Joined: 2017-09-22 10:59
Posts: 5
Post TWaver HTML5 3D 初体验,请教一些问题
最近看到一个3D机房的例子,好酷!找到官网,收到相关js、demo等,自己用官网api做了个demo。然后觉得自己制作大型场景用api太繁琐。尝试使用模型库和编辑器。
使用模型库遇到一些问题,用make.js,如果模型列表list.html最后一列有数据,就可以直接load出来,没有就不行。再看make.js,发现没有数据的原js中的make.Default.registerObj('twaver.meeting.projector2', 'touyingyi002', './model/meeting/obj/touyingyi002/', {
name: "投影仪002",
description: "投影仪002描述",
icon: getMeetingIconPath('projector2.png'),
category: '办公模型',
type: 'mono.Element',
modelDefaultParameters: {}
});
modelDefaultParameters: {}是空的。有些模型的图片资源也是没有的。
再用编辑器导出json数据,按照官网的make.js和编辑器结合的用法,加载不出来,例如我建一个椅子3的模型,t.js报错unknown id: twaver.meeting.chair3;而且twaver.js总是报错Uncaught TypeError: Cannot set property 'Utils2D' of undefined
at twaver.js:50
at twaver.js:52。
我的QQ:1037889364,有没有技术支持的QQ能加一下,以便以后使用中请教问题,不胜感激!


Attachments:
File comment: 用编辑器导出json数据,按照官网的make.js和编辑器结合的用法,加载不出来
unkown.jpg
unkown.jpg [ 36.95 KiB | Viewed 2838 times ]
File comment: modelDefaultParameters: {}是空的。有些模型的图片资源也是没有的。
paramers.jpg
paramers.jpg [ 41.68 KiB | Viewed 2838 times ]
File comment: 自己的demo
demoroom.jpg
demoroom.jpg [ 47.49 KiB | Viewed 2839 times ]
2017-09-22 11:47
Profile
新手上路

Joined: 2017-09-22 10:59
Posts: 5
Post Re: TWaver HTML5 3D 初体验,请教一些问题
//模型测试
// 房间
var jsonObject = [{"id":"twaver.meeting.chair3","objectId":"JsonObject254EB2DECCA8417393369931B9FDB57C","position":[515.8742510695182,100,-702.9584088053896],"client":{"icon":"./model/meeting/icons/chair3.png","label":"椅子","category":"2d办公模型"},"style":{}}
];
var object3ds = make.Default.load({id: "twaver.combo",data:jsonObject});
network.getDataBox().addByDescendant(object3ds);
这是用编辑器导出json写的代码,报错Uncaught TypeError: Cannot set property 'Utils2D' of undefined
at twaver.js:50
at twaver.js:52
t.js:1 unknown id: twaver.meeting.chair3
t.js:1 Uncaught TypeError: Cannot read property 'setClient' of null
at Mt.Default.register.icon (t.js:1)
at Object._load (t.js:1)
at Object.load (t.js:1)
at init (demo6.html:95)
at onload (demo6.html:102)


2017-09-22 12:48
Profile
TWaver开发组
User avatar

Joined: 2017-02-22 10:01
Posts: 400
Post Re: TWaver HTML5 3D 初体验,请教一些问题
您好,关于Utils2D的错误请下载最新版的开发包。


2017-09-27 14:42
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron