问题
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