I did some experiments on adding support to load from a url, the link below has a version of the app with a url field: https://viewportxyzdev.herokuapp.com/
The problem is that, since everything is done client side, for this to work, the resource needs to have flexible CORS policy.
So while it works for a url like https://files.mcneel.com/rhino3dm/models/RhinoLogo.3dm , most file sharing services (dropbox, google drive, wetransfer) have strict CORS policies which block requests made by browser from a different origin.
I think I’m going to hold of on this feature in production for now.
Very cool Morteza! I was working on something similar while putting rhino3dm together that I just haven’t had any time to really get to a useful level.
Looks very nice @stevebaer, I love that the appearance resembles the original Rhino appearance. Are you using compute in any way for this?
Absolutely, I would love to combine efforts to make these as useful as possible for the community.
Hi @fergus.hudson, I haven’t had much time recently to work on viewport.xyz but I’d be curious to look into what’s causing the issue. Can you provide the problematic file by any chance?
Anyway, @stevebaer and I focused our efforts on rview so that’s the most up to date. Maybe at some point in the future I merge those back into viewport.xyz for those who are interested in its sharing featue.