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文件的对象和一个.js文件,我能够创建对象的.ctm文件,但我无法以与三个相同的方式为它创建.js ref文件。 js示例文件正在使用它。任何人都可以帮我解决这个问题吗?或者,如果我从示例plz中做出一些错误的理解!指南。
1 个解决方案
#1
0
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)
我相信.ctm文件实际上由多个.ctm文件组成,并使用join_ctm.py脚本进行组合(https://github.com/mrdoob/three.js/blob/dev/utils/converters/ctm/join_ctm.py )。这个脚本输出.js文件,然后告诉CTMLoader如何再次加载每个部分。 (它实际上只是JSON描述每个连接的.ctm文件的偏移量)
#1
0
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)
我相信.ctm文件实际上由多个.ctm文件组成,并使用join_ctm.py脚本进行组合(https://github.com/mrdoob/three.js/blob/dev/utils/converters/ctm/join_ctm.py )。这个脚本输出.js文件,然后告诉CTMLoader如何再次加载每个部分。 (它实际上只是JSON描述每个连接的.ctm文件的偏移量)