sismics / docs

Lightweight document management system packed with all the features you can expect from big expensive solutions
https://teedy.io
GNU General Public License v2.0
1.99k stars 489 forks source link

Add a 3d model viewer #417

Open fire opened 4 years ago

fire commented 4 years ago

I would be able to have both static previews and 3d previews in Teddy (like www.sketchfab.com)

Visualization of different 3d file formats:

NektariosFifes commented 4 years ago

google modelviewer package could be usefull: https://modelviewer.dev/ .

vmario89 commented 4 years ago

the viewer from google looks really impressive. But the conversion of file formats is a problem. I am working a lot with STL files for 3d printing and lasercutting for example. Having some files about 500 mb sometimes. Conversion would destroy its original purpose and would create extra load. a native support would be the better approach

but supporting the formats to display i'd like too

jendib commented 4 years ago

And also the files need to be read server-side to create a thumbnail, which is no small task.

NektariosFifes commented 4 years ago

And also the files need to be read server-side to create a thumbnail, which is no small task.

https://modelviewer.dev/examples/tester.html . Here there is the option to create poster. This could be used for thumbnail.

vmario89 commented 4 years ago

regarding to this topic, gitea added some easy support for this(STL file format only). Just by adding Madeleine.js like the following:

for bulk handling STL files inside a Teedy instance maybe this can help (i can not really help. i am not a Java or JavaScript/node.js software dev) :/

jendib commented 4 years ago

Madeleine.js only supports STL files however, but yes it seems easy enough