# Import models from Sketchfab using Castle Game Engine editor

**URL:** https://forum.castle-engine.io/t/import-models-from-sketchfab-using-castle-game-engine-editor/822
**Category:** News
**Created:** [June 9, 2023, 11:37am UTC](https://forum.castle-engine.io/t/import-models-from-sketchfab-using-castle-game-engine-editor/822 "2023-06-09T11:37:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)
#### Post date: [June 9, 2023, 11:37am UTC](https://forum.castle-engine.io/t/import-models-from-sketchfab-using-castle-game-engine-editor/822/1 "2023-06-09T11:37:44Z")

</div>

| [![Cat with jetpack from Sketchfab - https://sketchfab.com/3d-models/jetpack-cat-6838f7599617408485cd055cd0ce5182](https://forum.castle-engine.io/uploads/default/original/2X/6/696ad5b72285a4cdf163fd0b60769689e4e63e23.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/cat3.png "Cat with jetpack from Sketchfab - https://sketchfab.com/3d-models/jetpack-cat-6838f7599617408485cd055cd0ce5182") |
| [![Searching for a cat on Sketchfab](https://forum.castle-engine.io/uploads/default/original/2X/a/a8a59368ac23dddc7ab5c7aefdd100ad4ea73c18.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/cat2.png "Searching for a cat on Sketchfab") |
| [![Searching for trees on Sketchfab](https://forum.castle-engine.io/uploads/default/original/2X/0/0b55c51506255f74569ccf1d82f46a442dec5c0f.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/tree1.png "Searching for trees on Sketchfab") |
| [![Trees from Sketchfab - https://sketchfab.com/3d-models/low-poly-tree-scene-free-89daa5e21f0d4f08a59dba0d566e88bd](https://forum.castle-engine.io/uploads/default/original/2X/7/7a1e127bd90a5f3f7d5771c36666f42451ea7278.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/tree3.png "Trees from Sketchfab - https://sketchfab.com/3d-models/low-poly-tree-scene-free-89daa5e21f0d4f08a59dba0d566e88bd") |
| [![Searching for trees on Sketchfab](https://forum.castle-engine.io/uploads/default/original/2X/0/098ee3bdc376058fbe674095246e4853f7ceb0cb.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/tree2.png "Searching for trees on Sketchfab") |
| [![Searching for a cat on Sketchfab](https://forum.castle-engine.io/uploads/default/original/2X/2/2c34dcfa74a5671350c719548207f5115cf716bf.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/cat1.png "Searching for a cat on Sketchfab") |
| [![Cat, dog, car from Sketchfab](https://forum.castle-engine.io/uploads/default/original/2X/6/66e06eaa4d31bff763f55e1835f51873fe5b1bc0.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/cat4.png "Cat, dog, car from Sketchfab") |
| [![screenshot](https://forum.castle-engine.io/uploads/default/original/2X/3/3062eed3ec160d670a9a6c51096c63e64b8282a6.png)](https://castle-engine.io/wp/wp-content/uploads/2023/06/screenshot.png "screenshot") |

You can now easily search and import models from [Sketchfab](https://sketchfab.com/) inside _Castle Game Engine_ editor! This feature was fun to make and I’m sure it will be fun to use too 🙂

### How to use

1. 

2. Use the menu item _“Data -\> Import from Sketchfab…”_.

3. Search for any query, like `cat`, `tree`… Your imagination is your only limit, Sketchfab has an incredible number of models. There’s a checkbox to limit the results to contain _“Only Animated”_ models.

4. Pick the model you want to download. You can view the models using a list (with license, description, face count) or using a grid view (with thumbnail). You can also open the corresponding model in the Sketchfab website viewer.

5. Press _“Download”_ to download the glTF version of the model from Sketchfab. 

6. If you have some design open, with some [viewport](https://castle-engine.io/viewport_and_scenes) selected, then you can even _“Download and Add To Viewport”_. This is just a shortcut to download and drag-and-drop the glTF model into the viewport, instantiating `TCastleScene` pointing to the proper glTF model.

Enjoy!

Along with this, I have also improved the automatic `Name` assigned to dragged-and-dropped components. It now reflects the model URL. E.g. drag-and-dropping the `knight.gltf` will now create `SceneKnight1`. There is a smart rule to also generate useful names for models from Sketchfab-imported directories.

### License

The models’ licenses are clearly specified (in the search dialog and in downloaded `license.txt` files). They use various versions of the [Creative Commons](https://creativecommons.org/) licenses or _Public Domain_.

Following [Sketchfab docs](https://sketchfab.com/developers/download-api): _Sketchfab provides a library of over 1 million free models, available under Creative Commons licenses. Most models allow commercial use._ Read the [model licensing](https://sketchfab.com/developers/download-api/guidelines) for more details.

Note: Be wary of using _Non-Commercial_ or _Non-Derivatives_ variants of the _Creative Commons_ licenses. They are incompatible with general open-source definition, which has been stated explicitly e.g. by Debian (DFSG) and FSF. See [Creative Commons at Wikipedia](https://en.wikipedia.org/wiki/Creative_Commons_license) for more information. So works including these models cannot be distributed as freely as most open-source software. Other CC variants are cool.

### Caveats

1. Sketchfab export to glTF is not perfect.

2. A minority of Sketchfab models use a “specular glossiness” PBR workflow through a deprecated (by Khronos) [KHR\_materials\_pbrSpecularGlossiness](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness). We support it in CGE only partially — some models may look dark or too contrasting, like [this knight](https://sketchfab.com/3d-models/knight-multi-anim-bind-5ac12d133e5a4ef3a8eaf1c533306c87).

3. Some models expose just one big animation like `Take 001`, which is an artifact how some 3D software exports them.

---

<div class="post-metadata">

### Author: ![chikega](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/chikega/32/712_2.png) [@chikega](https://forum.castle-engine.io/u/chikega)
#### Post date: [June 10, 2023, 6:04pm UTC](https://forum.castle-engine.io/t/import-models-from-sketchfab-using-castle-game-engine-editor/822/2 "2023-06-10T18:04:06Z")

</div>

Awesome! 👍
