PrincessGod / objTo3d-tiles

Convert obj model file to 3d tiles
https://princessgod.github.io/objTo3d-tiles
Apache License 2.0
777 stars 232 forks source link

创建一个 .b3dm 瓦片,并自定义瓦片参数和属性表时报错 #9

Closed wgf120513 closed 6 years ago

wgf120513 commented 6 years ago

如果我不创建自定义参数只单独生成一个文件则不会报错,反之就会报错。 default 这个问题如何解决呢?

PrincessGod commented 6 years ago

@wgf120513 可以把你的 json 文件贴出来么?

wgf120513 commented 6 years ago

你是说customtilesetOptions.json 这个文件吗? default

PrincessGod commented 6 years ago

@wgf120513

wgf120513 commented 6 years ago

感谢,我回去试一下 125597524 邮箱:125597524@qq.com 签名由 网易邮箱大师 定制 在2018年03月06日 17:38,PrincessGod 写道: @wgf120513 json 文件不能有注释 经纬度是弧度不是角度,应除以360 推荐只使用 { "longitude": 1.23, "latitude": 1.23, "transHeight": 0 } 因为其他的值和根据模型自动算出。 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

wgf120513 commented 6 years ago

我刚才重新试了一下,现在提示有个length属性未定义。 default 这个问题是因为我的模型有问题吗? 我不生成自定义瓦片属性,则生成单独一个文件是没有问题的

PrincessGod commented 6 years ago

@wgf120513

属性表必须包含batchId字段,在导出的默认属性表中,batchId可以作为键值和模型名name字段对应。

所以在自定义属性表中也必须包好batchId作为键值。

具体可以参考示例中的默认属性表自定义属性表