fanvanzh / 3dtiles

The fastest tools for 3dtiles convert in the world!
Apache License 2.0
1.98k stars 594 forks source link

how can i run the command line on a directory and not only single file? #135

Open ofirbentov opened 4 years ago

ofirbentov commented 4 years ago

Hi, I had run the command line and receive 3d object, but i can do it only for single file, when i try to put the directory as output im getting this error

error: The following required arguments were not provided: --output

this is the command i used- C:\3dtiles>3dtile.exe -f gltf -i C:\Users\OSGB\Data\Tile+019+022\Tile+019+022_L1900010t3.osgb -o C:\Users\OSGB\Data\Tile+019+022\Tile+019_+022_L19_00010t3.glb

i want to run the command for all the folder with the osgb files and convert as batch the full folder to 3d-tiles.

will be great full for suggestions.... thanks!

fanvanzh commented 4 years ago

If your file format is osgb, use -f osgb, the full command will be like this:

3dtile.exe -f osgb -i C:\Users\OSGB -o C:\Users\OSGB_tile

the sub directory Data will be auto discoverd, follow the ReadMe for details.

ofirbentov commented 4 years ago

Thanks for your quick reply, Yes it worked, but it produces b3dm file and not glb... Coundlt make it the create a full GLB folder, I do succeed when I use the gltf command line, but I cam create them only one by one, anyway to do batch from full OSGB folder to GLB?

Thanks for your help, Appreciate it

fanvanzh commented 4 years ago

you can do this through writing a batch script, while is .bat file . you can list your osgb file by dir *.osgb /s /b command, the edit script-text in batch mode, it will be easy to realized.