we are investigating the use of ThreeJS to display 3D models exported from Autodesk Navisworks.
We exported a test model from Navisworks and tried to view it using ThreeJS.
We experimented with 2 export formats, namely FBX and KMZ.
We’ve had success with FBX (after resaving it with Paint 3D).
We have tested with ThreeJS R105 and have these 2 questions. Your advice would be highly appreciated:
1. Opening FBX files
We used FBXLoader. When trying to open the FBX file as exported form Navisworks, it fails to display. The error from the loader is: TypeError: Cannot read property ‘replace’ of undefined.
The console logs looks like this (I added logging the output of the loader):
THREE.FBXLoader: FBX binary version: 7500
TypeError: Cannot read property ‘replace’ of undefined
When I however open the FBX file (as exported from Navisworks) with Paint 3D and save a copy of it as an FBX file, it displays correctly in ThreeJS .
THREE.FBXLoader: FBX binary version: 7400
Is there any way in which we can display the FBX as exported from Navisworks (without the need to resave with Paint 3D).
2. Opening KMZ files
We used KMZLoader and ColladaLoader.
When trying to open a KMZ file as exported from Navisworks, we get the following error:
“KMZLoader: Couldn’t find .dae file.”
It seems like the KMZLoader only looks at the dae file. The KMZ file exported from Navisworks however does not have a dae file included. All the model details are in the KML file itself.
is there any way in which we can display the KMZ export from Navisworks using only the KML file in the KMZ file?
I attach the three test files:
stair.fbx (as exported from Navisworks - not displaying the model)
stair_saved_with_Paint3D.fbx (exported from Navisworks, then opened and saved with Paint3D - model is displaying)
stair.kmz (as exported from Navisworks - not displaying due to “missing” dae file)
stair.zip (551.0 KB)