Open francesco-gallo opened 2 years ago
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);
}
I already added a guard like it, but it didn't solve the problem...
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.
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.
The bimserver is working just fine, I'm having problem only with bimsurfer v3. That would help, thanks!
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。
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?
Your code worked, thanks a lot!
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.