Closed yadunandan6176 closed 9 months ago
(Sorry for the delay here)
First, a minor comment: You said that you are using the command
npx 3d-tiles-tools ...
and I see that this is also written as the "Usage: ..."
part of the output, but this is not the right thing to print - that help message will have to be updated to match the information from the README
Beyond that, the details depend on whether you installed the 3D Tiles Tools, or whether you cloned the repository.
If you installed the 3D Tiles Tools with npm install -g 3d-tiles-tools
, then you might want to type
3d-tiles-tools --version
at the command line. It should print 0.3.2
(which is currently the latest version)
If it does not print 0.3.2
, then it means that you have an older verison of the 3D Tiles Tools installed. You should run
npm update -g 3d-tiles-tools
Afterwards, you can run
3d-tiles-tools --version
again to confirum that you have the latest version.
The latest version should offer the convertB3dmToGlb
command.
Running npx 3d-tiles-tools...
will by default run any version of the 3D Tiles Tools that are installed globally. And (similar to the point above), you can run
3d-tiles-tools --version
to see whether there is a potentially older version of the tools installed.
In oder to directly execute the code of the cloned repository, you have to write
npx ts-node ./src/main.ts convertB3dmToGlb ...
(This is mentioned briefly in the Developer Setup section of the README. The point here is that npx ts-node...
has to be used to "directly execute the .ts
file from the repo", so to speak...)
In any case, I'll leave this issue open as a reminder that
npm update...
call)npx 3d-tiles-tools...
, but only 3d-tiles-tools...
Hi I'm trying to convert B3dm file to glb using 3d-tiles-tools.
I tried using the convertB3dmToGlb command as I wanted to convert the batch table information to feature table, I used the following command:
npx 3d-tiles-tools convertB3dmToGlb -i ./data/example.b3dm -o ./data/example.glb
But when I execute the above command it throws the following error:
As per the help convertB3dmToGlb is not listed in options but it is listed in readme file. May I know know to use this functionality.