m3g格式验证
当加载我的 model.m3g 文件时,Loader 抛出 IOException,表明我的 .m3g 无效,但它没有告诉哪里或哪个对象无效。
网络上的浏览者也无法打开它;它们也不提示任何特定的错误消息。
我知道该文件大部分都很好,因为我可以手动解析该文件并知道每个网格、外观、世界、相机、背景对象都是有效的。
如何进一步诊断?
When loading my model.m3g file, Loader throws IOException, indicating my .m3g is not valid, but it doesn't tell where or which object is invalid.
Viewers floating around on the web can't open it either; nor do they prompt any specific error message.
I know the file is mostly good because I can manually parse the file and know each Mesh, Appearance, World, Camera, Background object are valid.
How can I diagnose further?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IOException来自以下2个原因:
1. 如果名称或从中引用的任何资源无法解析或访问
2. 如果名称中的数据或从中引用的任何资源中的数据不符合 M3G 和 PNG 文件格式规范。
对于“移动 3D 图形 API 的文件格式”,请参阅以下链接:
http://www.developer.nokia.com/document/Java_Developers_Library_v2/GUID-07274ED2-697C-4987-ABE9-7FFE82605633/file-format.html
IOException comes from the following 2 reasons:
1. if name, or any resource referenced from it, cannot be resolved or accessed
2. if the data in name, or in any resource referenced from it, is not in accordance with the M3G and PNG file format specifications.
for "File Format for Mobile 3D Graphics API" refer the following link:
http://www.developer.nokia.com/document/Java_Developers_Library_v2/GUID-07274ED2-697C-4987-ABE9-7FFE82605633/file-format.html