opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
173 stars 87 forks source link

How to Cache the Model data in BIMVIE #105

Open ChilamYan opened 6 years ago

ChilamYan commented 6 years ago

Hi Ruben, I have a large ifc model about 500MB, and I found the bimvie needs a long time to load from the BimServer, if any ways I can cache the model before bimvie loading, so avoid to load the model from BimServer again? thanks.

rubendel commented 6 years ago

You could try to implement caching with any of the available offline-storage capabilities of HTML5, most of them are still restricted in size though, would be happy to see any contributions in this direction.

ChilamYan commented 6 years ago

I found bimvie is using web socket to load the model, whole process is very complicate. Could you give me some directions or some methods to cache? And whether I can divide the model to many glb files and use the browser cache? Today the serializer of gltf2 still not perfect and I don’t know how to try.And I found xeogl sample, it can cache the gltf after loading, could you share me how can I use that mechanism to the bimvie?

rubendel commented 6 years ago

That's a lot of questions: