Three.js ctm loader 为 .ctm 文件的参考创建并行 .js 文件的问题 [英] Three.js ctm loader issue of creating a parallel .js file for the .ctm file's reference

查看:39
本文介绍了Three.js ctm loader 为 .ctm 文件的参考创建并行 .js 文件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 CTM 加载器时,该函数需要一个 .ctm 对象文件和一个 .js 文件,我能够创建对象的 .ctm 文件,但我无法以相同的方式为其创建 .js ref 文件就像three.js example 文件正在使用它.任何机构都可以在这个问题上帮助我吗?或者,如果我从示例中做出了一些错误的理解,请!指南.

While working with CTM loader the function requires a .ctm file of object and one .js file, I am able of creating .ctm file of object but I am not able of creating a .js ref file for it in same manner like three.js example file is using it. Can any body help me on this issue? Or if I am making some wrong understanding from the example plz! guide.

推荐答案

我相信 .ctm 文件实际上是由多个 .ctm 文件组成并使用 join_ctm.py 脚本(https://github.com/mrdoob/three.js/blob/dev/utils/转换器/ctm/join_ctm.py).这个脚本输出 .js 文件,然后告诉 CTMLoader 如何再次加载每个部分.(它实际上只是描述每个连接的 .ctm 文件的偏移量的 JSON)

I believe that .ctm file is actually made of multiple .ctm files and combined using the join_ctm.py script (https://github.com/mrdoob/three.js/blob/dev/utils/converters/ctm/join_ctm.py). This scripts outputs the .js file which then tells the CTMLoader how to load each of the parts back out again. (It's actually just JSON describing the offset to each of the concatenated .ctm files)

这篇关于Three.js ctm loader 为 .ctm 文件的参考创建并行 .js 文件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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