Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom BatchTable #6

Open
klars3000 opened this issue Jan 21, 2018 · 1 comment
Open

Custom BatchTable #6

klars3000 opened this issue Jan 21, 2018 · 1 comment

Comments

@klars3000
Copy link

Hi, I'm trying to test your library using a custom batch table and a custom tileset options file, but I'm getting an error message (see below). I followed your instructions to the letter:

  • I have an obj file with 95 objects
  • I defined a custom batch table with ints 0..94 for "batchId, 0..94 for "batchIdNew", and 95 string "myString" in the subarray "newname"

I am then running the following line in terminal:
obj23dtiles -i "./myOBJFile.obj" --tileset -p "./customTilesetOptions.json" -c "./customBatchTable.json"
.... followed by the error message:
Custom BatchTable properties's length should be equals to default BatchTable 'batchId' length.

What am I doing wrong here? Thanks for any pointers. Regards,

@PrincessGod
Copy link
Owner

OK, maybe I know what happened.

I don't know how many objects will be parsed from your obj file.
So you can output default BatchTable by

obj23dtiles -i ./myOBJFile.obj --b3dm --outputBatchTable

and you will get a myOBJFile_batchTable.json file in your model folder. then you can checkout how many objects has been parsed. For example by checkout batchId array's length.

Then you can make your own BatchTable follow the default batchTable,
add your own property correspondence name property which present your object name.

Hopes that will be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants