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: 8684
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 427 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: 22
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: 8684
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 306 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.
looo
Posts: 786
Joined: Mon Nov 11, 2013 5:29 pm

Re: Sketchfab exporter

Postby looo » Wed Apr 26, 2017 2:05 pm

just wanted to try the sketch-fab exporter. But I can't find it in the web-module.
User avatar
yorik
Site Admin
Posts: 8684
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Sketchfab exporter

Postby yorik » Wed Apr 26, 2017 5:40 pm

Ah I forgot to announce this here, sorry... Since the sketchfab exporter (and other tools fromthe Arch WB such as Arch Git and Arch Bimserver) depend on external python modules that are annoying to bundle with freecad, I recently removed them from the FreeCAD source code, and turned them into an external workbench, where it is much easier to bundle other stuff (the requests module, for ex).

So now you need to install the "WebTools" workbench from the addons manager. The sketchfab exporter now lives there.
looo
Posts: 786
Joined: Mon Nov 11, 2013 5:29 pm

Re: Sketchfab exporter

Postby looo » Wed Apr 26, 2017 7:09 pm

wow this was a good experience:
needed 2 minutes to
- get the web-tools
- create account
- upload file

Very well done!
User avatar
yorik
Site Admin
Posts: 8684
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Sketchfab exporter

Postby yorik » Thu Apr 27, 2017 12:00 am

The sketchfab people told me they would create some freecad-specific pages to gather all models uploaded form freecad, etc. At some point we could add a new bbcode here too :)

*EDIT* Done! use

Code: Select all

[sketchfab]IDENTIFIER[/sketchfab]


User avatar
kkremitzki
Posts: 362
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Sketchfab exporter

Postby kkremitzki » Thu Apr 27, 2017 12:17 am

Nice! :D that is extremely slick.
User avatar
yorik
Site Admin
Posts: 8684
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Sketchfab exporter

Postby yorik » Thu Apr 27, 2017 2:47 am

Pretty good way to quickly produce nice renders with little effort...

pablogil
Posts: 519
Joined: Wed Nov 26, 2014 3:19 pm
Location: Badajoz (Spain)
Contact:

Re: Sketchfab exporter

Postby pablogil » Thu Apr 27, 2017 12:26 pm

yorik wrote:Pretty good way to quickly produce nice renders with little effort...


So, so cool!

I also thought the same :D
Dark and Light stylesheets v2.0 to theme your FreeCAD UI, more information here