Skip to content

Sketchfab for Blender 1.0.1

Compare
Choose a tag to compare
@AurL AurL released this 19 Oct 12:56
· 898 commits to master since this release
746e47b

Sketchfab Plugin v1.0.1 for Blender

Import glTF assets into Blender using Sketchfab download API

Important note about plugin for 2.8
The plugin is not guaranteed to work with all new releases. We will try to update it to make it work as much as possible.
For each update, we will just replace the 2.8 zip on this release, and update the following note with the version it has been tested on.

  • Current: Blender 2.80 (c4c62e6df55 from 2018-11-02)
  • Blender2.80 (55e3c17ccc1 from 2018-10-13)
    Don't hesitate to report if it doesn't work on new versions so that we can iterate :)

Changelog

  • Takes texture samplers into account
  • Fixes opacity channel import
  • Fixes root object name (with model name)

This plugin has been developped and tested on Blender 2.79 and works with Cycles
Note: a version for Blender 2.80 (Eevee) is also available

Documentation

If you have any issue, please have a look at this section before using "Report an issue" button in the plugin. You can also report through this link.

If you are using Blender on OSX

The plugin can have issues to check if the plugin is up-to-date. It's due to openssl using a protocol not alowed anymore on gihtub urls, for security concerns.
One possible fix is to update openssl (or the ssl client your using).
Version check is not mandatory to use the plugin, but you might miss some important updates.

If you are in this case, be sure to manually check if you're using the latest version of the plugin by comparing your version with the one available on https://sketchfab.com/importers/

How to use

Installation

Download the attached zip file and install it as a regular blender

Login, browse and import models

The addon is available in View3D -> Tools under the tab 'Sketchfab'.

You don't need to login to browse models but it's required if you want to import a model.

Importing models into Blender:

The plugin allows to download and import 100k+ free downloadable models into Blender.
Materials are converted to CYCLE materials, the importer is not compatible with other renderers.
Animation not supported yet, but it will be implemented in the next version. Animated model are available for search and download but animation data will be missing.

Known limits/issues and further improvements

My model doesn't look good, it's different from Sketchfab

There are still improvements to do on import, and Sketchfab to Blender (through glTF) conversion has some limits.
This section will give some hints about differences or issues that can be encountered when importing models into Blender.

I don't see anything after my model is imported:

Scale can vary a lot between different models, and the origin is not always at the center. Try to scale up/down the model in order to make it visible.
Note: root object is automatically selected after import, so you just need to use the scale shortcut "s" to scale up or down your model.
If it's not enough, select a mesh object in hierarchy and use numpad '.' or Blender menu to focus/align the view on it.

Transparency is looking weird, transparent objects are not visible:

Some models are using refraction, and it's not supported by glTF so it's converted to regular transparency.
Refraction is easy to spot on a model, you just need to check the Sketchfab version by clicking "View on Sketchfab"

My model has weird seams/normals:

Tangent space import is not working yet so you might experience rendering issue on some models with normal maps.
It's something we will improve in the next versions

My model is black, or has weird colors

It can be caused by several limits in material import.

  • The model has vertex colors: Vertex colors are always exported in glTF files (to allow edition) so they are always loaded in Blender. Sometimes this data is wrong or useless, and the author disables it on Sketchfab.
    You can easily check if the model has this color data by selecting one of the meshes and looking in mesh properties if it has a Vertex colors layer.
    Fix: remove vertex colors if they are not valid

  • The model has an outline: a way to have an outline on a Sketchfab model is to duplicate the mesh, flip it's faces and make the material single sided. It is not well imported yet, and it can gives some rendering issues.
    Example of a model with outline:

    • if base and ouline meshes have faces that are very close, Blender can render them totally transparent, so the model will have holes.
    • If your scene has a light casting shadows, it will make the base mesh look dark because of outline mesh casting shadows on it. There are several solutions to fix this.
  • Backface culling:
    Some models are set to use single sided materials, which is converted into Blender by using a trick with transparency and backfacing property.
    Fix: look for a "Geometry" node in the graph, removes the "backfacing" link et set the linked node "Mix Shader" factor to 0.

I have a weird behaviour and no error nor warning message shown:

If an error occurs, you will have an error or a stack trace in Blender's console.
You can open the console using "Windows => Toggle system console" but this feature is not always available (for example you don't have it on OSX). The workaround is to start Blender from command line: https://docs.blender.org/manual/en/dev/render/workflows/command_line.html . Outputs will be printed in the shell from which you launched Blender.