R99后如何使用THREE.JSONLoader? [英] How to use THREE.JSONLoader after R99?

查看:34
本文介绍了R99后如何使用THREE.JSONLoader?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在 JSONLoader 被移除了,之前 JSONLoader 加载的模型怎么加载?

Now the JSONLoader had been removed, how could I load the models that loaded by JSONLoader before?

推荐答案

是的,JSONLoader 已从带有 R99three.js 中删除.但是加载器仍然可以作为 LegacyJSONLoader.如果您将该文件包含在您的项目中,您可以创建一个 LegacyJSONLoader 实例并像以前一样加载您的 JSON 模型.

Yes, JSONLoader was removed from three.js with R99. But the loader is still available as LegacyJSONLoader. If you include the file into your project, you can create an instance of LegacyJSONLoader and load your JSON model as before.

请记住,您使用的是过时的 JSON 格式.您可能需要考虑通过 GLTFExporter 以便使用面向未来的 3D 格式.以下示例演示了上述导出器的用法:

Keep in mind that you are using an obsolete JSON format. You might want to consider to export your models to glTF via GLTFExporter in order to use a future-proof 3D format. The following example demonstrates the usage of the mentioned exporter:

https://threejs.org/examples/misc_exporter_gltf.html

这篇关于R99后如何使用THREE.JSONLoader?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆