opensourceBIM / BIMsurfer-before2019

This is the repository of the v1 and v2 version of BIM Surfer. It is not maintained anymore. Find the most recent version on https://github.com/opensourceBIM/BIMsurfer
MIT License
432 stars 195 forks source link

Rendering problem #264

Open sigurdne opened 6 years ago

sigurdne commented 6 years ago

Hi

I am trying to get the bimsurfer to work: I have installed BIMserver v 1.5.101 and loaded the demoproject: "Schependomlaan" BIMvie.ws seems to work fine

I have cloned the bimsurfer to https://github.com/sigurdne/BIMsurfer

And added the latest bimserverclient from https://github.com/opensourceBIM/BIMserver-JavaScript-API

I have also refactored the html-files by moving the inline javascript to js-files

The bimserverclient is loaded in <head/> as:

<script type="module"> import BimServerClient from './bimserver/bimserverclient.js'; var api = new BimServerClient("http://localhost:8082/"); window.BimServerClient = api; </script>

So far - so good: I can connect to bimserver, and the projects are listed in both firefox and google chrome

When moving to the actual model - it starts promising by fetching all the data from the server and setting up the tree-menu at the left, but there are some issues with the rendering:

DataInputStreamReader.js?bust=1535625808677:81 Uncaught RangeError: Invalid typed array length: -1088624543 at new Float32Array () at DataInputStreamReader.readFloatArray (DataInputStreamReader.js?bust=1535625808677:81) at BimServerGeometryLoader._readObject (BimServerGeometryLoader.js?bust=1535625808677:339) at BimServerGeometryLoader.processMessage (BimServerGeometryLoader.js?bust=1535625808677:32) at BimServerGeometryLoader.process (BimServerGeometryLoader.js?bust=1535625808677:45) at xeoViewer. (BimServerModelLoader.js?bust=1535625808677:79) at xeoViewer.EventHandler.fire (EventHandler.js?bust=1535625808677:32) at Class. (xeoViewer.js?bust=1535625808677:163) at Class.fire (xeogl.js?bust=1535625808677:10962) at update (xeogl.js?bust=1535625808677:278)

Also: it complains about a missing function "warn()" in BimServerGeometryLoader.js

And for another model I tried - there was a complaining about "loaderSettings" from the server - which seems to be initiated as part of a query from BimServerGeometryLoader.js

Any quick-fix?

Regards

screenshot from 2018-08-30 14-07-37

JoKr9527 commented 6 years ago

hi,I also encountered the same problem. I think the data transmission is too large, so tell me the size of your IFC file conveniently.?The size of my file is 90M, and I have a 87M that can load successfully. Perhaps,We can try to solve this problem.

rubendel commented 6 years ago

Pretty sure this has nothing to do with the file size, especially not the size of the IFC file.

I think you need to use a never version of BIMserver (GIT HEAD). That version is working with the latest version of BIMsurfer V2 here.

JoKr9527 commented 6 years ago

hi, But I didn't find the branch of V2 version.

rubendel commented 6 years ago

The master branch is the V2 version

JoKr9527 commented 6 years ago

Well, I'm currently using the master branch, and I'm trying to learn your code, and I've found that the architecture is really beautiful, and you're great.

sigurdne commented 6 years ago

Did another attempt - and made sure the code is current. Followed the eclipse guide for server (Version: 1.5.103-SNAPSHOT). It works perfectly for a simple example http://openifcmodel.cs.auckland.ac.nz/Model/Details/127

But it had some trouble at the end with the Schependomlaan-example - and stopped with a

Uncaught TypeError: Cannot read property "add" of undefined

Regards

screenshot from 2018-09-15 13-17-19