stLib icon indicating copy to clipboard operation
stLib copied to clipboard

Ability to view 3mf files

Open kbekus opened this issue 3 years ago • 4 comments
trafficstars

hey there, great app, I really like it. Is there any way to add .3mf model viewing to it?

kbekus avatar Sep 20 '22 04:09 kbekus

Hello, 3mf is not currently supported, but, it will go on the roadmap. There are 2 possible challenges with this feature. The current backend imagine generation library doesn't support 3mf, there is a specific library that handles 3mf, but at first glance it doesn't support rendering ( probably out of scope), how common is it for the 3mf files to actually have the thumbnail defined in it's package? Maybe I could use that instead of rendering it.... On the 3d viewer, I'll need to do some research as well...

EduardoOliveira avatar Sep 20 '22 05:09 EduardoOliveira

Hello @kbekus I'm having some trouble finding 3mf files with the thumbnail information set. Can you provide some samples?

Thank you

EduardoOliveira avatar Sep 21 '22 09:09 EduardoOliveira

hey there, thanks for considering adding 3mf support. I've attached a couple of example files that have the thumbnail as part of their meta, please yell out if you need more. I've had to change the file extension from .3mf to .zip so I can upload them. Please just rename them back from .zip to .3mf

cheers, Kristan Dirty Bird - BOB Duct Left V1 v1.1.zip

DB Dragon-Rapido Core V1.1.zip

kbekus avatar Sep 21 '22 11:09 kbekus

Hi there, I've released v0.12, it handles 3mf as model. The preview image comes from the thumbnail if present, otherwise a generic item is shown. The in browser 3d viewer works the same as for stls

Please feel free to reach out if you find any bugs

EduardoOliveira avatar Sep 21 '22 17:09 EduardoOliveira