Giter Site home page Giter Site logo

Comments (10)

xeolabs avatar xeolabs commented on May 18, 2024 1

@sha-N yes I'll add an option to BIMServerLoader - see #22

from xeokit-sdk.

sha-N avatar sha-N commented on May 18, 2024

Side note

BIMSURFER2 which is based on SceneJS renders the above model as follows

image

and in BIMSURFER3 when quantization is disabled, it also behaves in a similar fashion.

from xeokit-sdk.

sha-N avatar sha-N commented on May 18, 2024

@xeolabs can you provide some pointers on where to start for resolving this, I just got started on this whole bimserver stuff a week back, trying to catch up on what is available and how is it done.

from xeokit-sdk.

xeolabs avatar xeolabs commented on May 18, 2024

This is a quantization accuracy error, which is not an error within xeokit as such. It is caused by your floating-point geometry losing accuracy when xeokit internally quantizes it to integers. Two things you can try:

  • increasing or decreasing the scale of your model
  • ensuring that your model is centered at [0,0,0]

For example:

var model = bimServerLoader.load({
    //..
    scale: [0.5, 0.5, 0.5],    
    position: [-90, 0, 0] 
});

from xeokit-sdk.

sha-N avatar sha-N commented on May 18, 2024

Thank you for the reply, I had tried changing the scale with no luck.

can internal quantization be disabled once, *** Download quantized geometry from BIMServer - in progress** is done

from xeokit-sdk.

xeolabs avatar xeolabs commented on May 18, 2024

No, quantization can't be disabled. Are you able to share your IFC file, or any IFC file that reproduces this issue for you? Then I can investigate ways to make quantization more robust.

from xeokit-sdk.

sha-N avatar sha-N commented on May 18, 2024

Yes, I will send you the link in mail, shall i send to this id [email protected] ?

Please check of a solution as this SDK is kind of a perfect solution for the problem Im trying to solve.

from xeokit-sdk.

xeolabs avatar xeolabs commented on May 18, 2024

Yes, please send to that email, thanks.

from xeokit-sdk.

sha-N avatar sha-N commented on May 18, 2024

Hi, were you able to reproduce the issue

from xeokit-sdk.

sha-N avatar sha-N commented on May 18, 2024

Hi, Solved the issue as per your comment by setting the position: parameter.

Right now it is kind of a workaround,

  • load the model at position [0, 0, 0]
  • get initial camera position
  • use inverse of these coordinates on next load as position.

Update

If anybody else face similar issue

Position information can be retrieved from bimserver using ServiceInterface method: "getModelMinBounds" and multiply the coordinates with value of scale

@xeolabs is it possible to avoid the step.

from xeokit-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.