How to display sketchup model with three.js


#1

how to display sketchup model with three.js, and remove and replace component in web browser? The sketchup team can open the javascript api ?


#2

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. :thinking:


#3

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.


#4

You will need to use the C API to convert SKP to other formats.
http://extensions.sketchup.com/developer_center/sketchup_c_api/sketchup/index.html

Download the SDK (bottom of page).
http://extensions.sketchup.com/developer_center/sketchup_c_api/

If the links at the bottom of the above page, do not work …
You may need to register as a developer first.
https://extensions.sketchup.com/en/application


#5

Thank you for your answer.


#6

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.