hicetnunc2000 / hicetnunc

hicetnunc UI/UX
http://hicetnunc.xyz
800 stars 281 forks source link

Thumbnails generator for GLB/GLTF objects #746

Open zmnv opened 3 years ago

zmnv commented 3 years ago

Hello. Does hicetnunc.xyz has thumbnail generation process when minting? Because all objects (i.e. the first 85k objects dataset) has the same thumbnail now:

Actually the creation process is very simple but.. I don't know how to store files right way...

Many object's sources has size around 40mb... it's very big when you try to see a lot of objects in a list.

PS: now I have something like that just to see hen objects catalog ONLY with 3d models with the same model viewer module. https://www.youtube.com/watch?v=eqLrYNmI2xw

andrevenancio commented 3 years ago

There is already work underway to generate other metadata fields besides artifactUri. We're generating displayUri and thumbnailUri for all old OBJKT before enabling this feature. It takes a while.

Secondly, as personal preference from hicetnunc founder we're deciding to explicitely disable the thumbnailUri generation here @tarwin has been generating all the previous displayUri. I think he already has a solution for GLB files.

tarwin commented 3 years ago

Yeah, I've got a solution for every file time. I've generated up to OBJKT 60,000 so far and ready to do the rest.

ertdfgcvb commented 3 years ago

We're generating displayUri and thumbnailUri for all old OBJKT before enabling this feature.

Slightly unrelated question: will the thumbnails also be generated for (interactive) SVGs uploaded without .ZIP packaging?

tarwin commented 3 years ago

The solution I have does create for interactive SVGs. I don't know if the frontend one does.

zmnv commented 3 years ago

Im done with my solution. I use it only for 3d objects. Sooooooo now there is 'heo gallery' and anyone can find the link on hen discord channel #3rd-party-tools.

Soooo... I can actualize my question — will hen create 'poster' automatically or user should upload thumbnail image as now forever?

I mean something like this but automatically: https://modelviewer.dev/examples/tester.html

  1. User upload one glb/gltf file
  2. Make a poster (automatically OR manual by user input when preview or something).
  3. Prepare object. Prepare thumbnail (generate poster and upload it with object source)
  4. meta "thumbnailUri" to this poster file
AlexandreRangel commented 3 years ago

Or this SVG icon (document with code inside :) https://github.com/microsoft/vscode-codicons/blob/main/src/icons/file-code.svg