pattern-x / gemini-viewer-examples

Examples and demos for gemini-viewer sdk, which is a WebGL based BIM model viewer, built on three.js. It is used to view dwg/dxf, gltf, obj, ifc models, etc.
189 stars 42 forks source link

uploading ifc files is not supported #121

Open kanbang opened 9 months ago

kanbang commented 9 months ago

uploading ifc files is not supported

url: https://pattern-x.github.io/gemini-viewer-examples/#/Upload_your_local_model

console out: [LoadingHelper] IFC is not supported directly since three.js r150! (anonymous) @ gemini-viewer.esm.min.js:1 gemini-viewer.esm.min.js:1 Uncaught (in promise) Not supported!

Is it just me using it the wrong way?

yanzexuan1 commented 9 months ago

You are right, ifc is not supported in this version. Three.JS removed IFCLoader from its internal package, so we need to handle ifc by ourselves.

To do this, we can write a plugin (based on both IFC.js and gemini-viewer) that loads ifc and add the loaded object to viewer.