| 1 | Load a creature modeled and animated in Blender through `resource.xml` . |
| 2 | See https://castle-engine.io/creating_data_resources.php . |
| 3 | |
| 4 | This demonstrates various ways of exporting animated 3D models |
| 5 | to Castle Game Engine, the same ("knight") creature is exported |
| 6 | in different ways: |
| 7 | |
| 8 | - Single file for all animations (glTF, X3D, castle-anim-frames) |
| 9 | |
| 10 | - Multiple files, different file for each animation (multiple X3D, multiple castle-anim-frames) |
| 11 | |
| 12 | We declare them in resource.xml files with different names |
| 13 | ("KnightSingleXThreeD", "KnightMultipleXThreeD", and so on) |
| 14 | so the engine (ObjectPascal code) sees them as different creature resources. |
| 15 | In a real game, you would choose just one approach to exporting, |
| 16 | and have a single creature named just "Knight". |
| 17 | |
| 18 | ## What is the best approach? |
| 19 | |
| 20 | Single glTF file ( `data/knight_single_gltf/` ). |
| 21 | This works with latest Blender exporter to glTF out-of-the-box, |
| 22 | and gives the best performance and features. |
| 23 | |
| 24 | ## Authors and license |
| 25 | |
| 26 | * The knight 3D model author: |
| 27 | |
| 28 | The model in knight.blend and with texture in textures/knight.png |
| 29 | based on http://opengameart.org/content/animated-knight |
| 30 | by Clement Wu, Nikolaus & Botanic. |
| 31 | |
| 32 | Licensed on |
| 33 | CC-BY 3.0 |
| 34 | CC-BY-SA 3.0 |
| 35 | GPL 3.0 |
| 36 | GPL 2.0 |
| 37 | or above versions of these. |
| 38 | |
| 39 | It was somewhat retouched by Michalis Kamburelis. |
| 40 | |
| 41 | * This rest of the example code and data is by Michalis Kamburelis, |
| 42 | license LGPL >= 2, like the rest of Castle Game Engine, |
| 43 | see https://castle-engine.io/license.php . |