how to display sketchup model with three.js, and remove and replace component in web browser? The sketchup team can open the javascript api ?
You need to find a file format that SketchUp can export and three.js can read.
In SketchUp Make, you have for example the option to export as .dae (Collada). In SketchUp Pro, you can also export as .obj. Also there are extensions to export to more formats. And apart from three.js’s default format, there are additional file reader extensions.
There is no JavaScript API.
are there some instructions about sketchup file format. so the third developers can convert skp to other 3d file by tools instead of sketchup extension.
You will need to use the C API to convert SKP to other formats.
Download:
If the links at the bottom of the above page, do not work …
You may need to register as a developer first.
UPDATE: Since this topic closed SketchUp now can natively export to .glB and .USDZ formats. ThreeJS likely has a loader for glTF and glB format.
Thank you for your answer.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.