Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering problem #264

Open
sigurdne opened this issue Aug 30, 2018 · 6 comments
Open

Rendering problem #264

sigurdne opened this issue Aug 30, 2018 · 6 comments

Comments

@sigurdne
Copy link

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
Copy link

JoKr9527 commented Sep 5, 2018

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
Copy link
Member

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
Copy link

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

@rubendel
Copy link
Member

The master branch is the V2 version

@JoKr9527
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants