Three.js ctm loader issue of creating a parallel .js file for the .ctm file's reference

依然范特西╮ 提交于 2019-12-12 01:44:36

问题


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.


回答1:


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)



来源:https://stackoverflow.com/questions/38673495/three-js-ctm-loader-issue-of-creating-a-parallel-js-file-for-the-ctm-files-re

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!