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

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

Open
francesco-gallo opened this issue May 9, 2022 · 8 comments
Open

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

francesco-gallo opened this issue May 9, 2022 · 8 comments

Comments

@francesco-gallo
Copy link

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.

@gaoobin
Copy link

gaoobin commented May 9, 2022

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);
}

@francesco-gallo
Copy link
Author

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

@gaoobin
Copy link

gaoobin commented May 9, 2022

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

gaoobin commented May 9, 2022

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.

@francesco-gallo
Copy link
Author

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

@gaoobin
Copy link

gaoobin commented May 9, 2022

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

@francesco-gallo
Copy link
Author

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

Your code worked, thanks a lot!

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

2 participants