Sketchfab exporter

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
User avatar
yorik
Site Admin
Posts: 8549
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Sketchfab exporter

Postby yorik » Thu Mar 09, 2017 7:14 pm

I have been working on a sketchfab exporter for FreeCAD:

Screenshot from 2017-03-09 15-50-04.png
Screenshot from 2017-03-09 15-50-04.png (84.18 KiB) Viewed 185 times


The discussion thread on the sketchfab forum is here: https://forum.sketchfab.com/t/freecad-exporter/12903/2
and the branch: https://github.com/yorikvanhavre/FreeCAD/tree/sketchfab

There are still small glitches to solve but it is working already.

The idea would be to add this to the web workbench, it's a rather small script. Only it would *kind of* show inside FreeCAD a commercial product. I know that the most radicals here will probably complain, but the sketchbab people are cool, many of them are from the Blender community, and many other open-source apps (Blender for example) also have a built-in sketchfab exporter. Although sketchfab is not really an opensource thing, I think it is very opensource-friendly, so I don't see why not.

Ideas, opinions?
User avatar
regis
Posts: 7
Joined: Sun Jul 12, 2015 8:17 am
Contact:

Re: Sketchfab exporter

Postby regis » Sun Mar 12, 2017 12:59 am

Oh wow, :o I remember trying to export my stuff to sketch fab using the .obj or any file compatible with sketchfab, I got frustrated to realise I had to play with the textures once again or at the very least have the base colors of freecad in. This exporter can be great. :D
User avatar
yorik
Site Admin
Posts: 8549
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Sketchfab exporter

Postby yorik » Mon Mar 13, 2017 10:58 pm

The exporter has been merged in master now (it is in the Web workbench), and it now offers to upload as .iv, which actually uploads what you see in the 3D view, thus renders on sketchfab a pretty accurate version of the FreeCAD view:

screenshot.jpg
screenshot.jpg (86.97 KiB) Viewed 64 times


https://sketchfab.com/models/25cfcc0eae ... c1929d31ca

There might still be some bugs here and there, specially with the iv format. obj + mtl works better. I'll announce the feature later on after I do more testing.