BIMsurfer icon indicating copy to clipboard operation
BIMsurfer copied to clipboard

Is it possible to load more roids on the same surfer?

Open francesco-gallo opened this issue 3 years ago • 8 comments

When I try to do so, the new model seems to replace the previous one, but I can still see the camera pivot from the previous model.

francesco-gallo avatar May 09 '22 16:05 francesco-gallo

Each time the demo code creates a new view, it can be solved by adding a judgment.

if(!this.bimServerViewer){
    this.bimServerViewer = new BimServerViewer(this.settings, this.canvas, window.innerWidth, window.innerHeight, stats);
}

gaoobin avatar May 09 '22 20:05 gaoobin

I already added a guard like it, but it didn't solve the problem...

francesco-gallo avatar May 09 '22 20:05 francesco-gallo

There are a lot of errors in the code. I have changed a lot. I'm still revising it. I'll send you a copy after I finish it. image

gaoobin avatar May 09 '22 21:05 gaoobin

I just find the BIMServer project the day before yesterday and thought no one attention it. My BIMServer is running OK. I'm looking at this project today. I'm a little happy to see someone ask questions.

gaoobin avatar May 09 '22 21:05 gaoobin

The bimserver is working just fine, I'm having problem only with bimsurfer v3. That would help, thanks!

francesco-gallo avatar May 09 '22 21:05 francesco-gallo

dev.html and minimal.html has been running . See attachment for code. In addition to these two pages, the files in path 'viewer' are also modified. Now you just modify the server address and account password. The reason of dev page is not displayed, which is mainly caused by the settings of bimserverviewer. In addition, I added conditional judgment。 image

BIMsurfer-bimsurfer3-0.0.272.zip

gaoobin avatar May 09 '22 22:05 gaoobin

Thanks @gaoobin , I'm trying to merge your code with mine. I saw that on BimSurfer.js, on load(), there isn't anymore the check "if (params.loadertype == 'fromserver' / 'gltf')" Has it been merged to behave in the same way?

francesco-gallo avatar May 10 '22 07:05 francesco-gallo

Your code worked, thanks a lot!

francesco-gallo avatar May 10 '22 11:05 francesco-gallo