kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.47k stars 543 forks source link

3dviewer.net as a 3d pastebin? #2

Closed d33tah closed 7 years ago

d33tah commented 7 years ago

It would be great if one could upload a file (or point to it) and have it loaded automatically, sort of like 3d version of pastebin or imgur. Is this doable?

kovacsv commented 7 years ago

Good idea, I will think about it, but it seems to be a huge project :)

By the way you can use the viewer with self-hosted models. Take a look at the embeddable folder where you can find examples on it.

d33tah commented 7 years ago

Huge? Why would it be? Most of the code seems to already be there, the only thing left would be to have a way to load files from some external URL.

kovacsv commented 7 years ago

Yes, its true. But I think this solution should store the models in its own server, so the server side should be implemented. But yes, maybe not huge, just big :)

d33tah commented 7 years ago

How about adding the first step of not worrying about hosting and just pulling the resource from somewhere else? Would it be big as well?

kovacsv commented 7 years ago

No, I think this should be relatively small, if I can solve the cross-origin problem.

d33tah commented 7 years ago

One could delegate this problem to the hoster - just have the user enter a URL that works over cross-origin ;)

kovacsv commented 7 years ago

I'll give it a try. If you interested, feel free to collaborate on this task.

kovacsv commented 7 years ago

It seems working now :) http://3dviewer.net#https://cdn.rawgit.com/kovacsv/Online3DViewer/9e9ca71d/website/testfiles/cube.3ds

You can define the files as url hash separated with comma.