b3dm
Closed this issue · 11 comments
I filed to upload the jpg. So I paste the error line.
D:\课题\gltf2glb>python gltf2glb.py -b B3DM -o test.b3dm test.gltf
Traceback (most recent call last):
File "gltf2glb.py", line 232, in
main()
File "gltf2glb.py", line 220, in main
with open(args.b3dm, 'r') as f:
IOError: [Errno 2] No such file or directory: 'B3DM'
The argument to -b is the path to the file containing the JSON batch table to embed in the b3dm file. If you don't have any batch data, use "" as the argument to -b. Hope this helps.
wow! I succeed! Thank you very much!
@KermMartian While I have another question. Does the tool support to batch multi gltf models into one b3dm file?
That would be the 'cmpt' output type.
No, this is definitely not correct; the cmpt should be roughly the sum of the sizes of the b3dms. What arguments did you give packcmpt.py?
The order is “python packcmpt.py -o test.cmpt 1.b3dm 2.b3dm 3.b3dm 4.b3dm 5.b3dm”.
And I got the same result.
Did I give the wrong arguments?
Please try again with the latest commits and let me know if it works correctly for you.
The latest commit is useful, and the result is right.
Great. In that case, closing this issue for now.