DroneDB / Hub

Web GUI for DroneDB
Other
7 stars 3 forks source link

OBJ thumbnails #71

Open pierotofy opened 2 years ago

pierotofy commented 2 years ago

This is a tricky problem to solve, since Nexus files require an OpenGL context to render a model and server-side rendering in places where X is not present do not have it.

One crazy but ingenious idea could be to generate thumbnails at the first successful render on the client side (via Javascript) and send the thumbnail to the server.

Other approaches would need a processing server that has an OpenGL context able to 1. Download the nexus model, 2. Render it and 3. Send it back to Registry. This seems the approach used by Sketchfab, but it doesn't suit very well for self-host scenarios.

Another approach could be to render the model directly instead of a thumbnail for all model objects. But I think this adds significant bandwidth to all clients viewing the file list.