BIMsurfer-before2019 icon indicating copy to clipboard operation
BIMsurfer-before2019 copied to clipboard

Rendering problem

Open sigurdne opened this issue 6 years ago • 6 comments

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

sigurdne avatar Aug 30 '18 12:08 sigurdne

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.

JoKr9527 avatar Sep 05 '18 09:09 JoKr9527

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.

rubendel avatar Sep 10 '18 08:09 rubendel

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

JoKr9527 avatar Sep 10 '18 09:09 JoKr9527

The master branch is the V2 version

rubendel avatar Sep 10 '18 11:09 rubendel

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.

JoKr9527 avatar Sep 11 '18 00:09 JoKr9527

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

sigurdne avatar Sep 15 '18 11:09 sigurdne