Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nem0/OpenFBX
Lightweight open source FBX importer
https://github.com/nem0/OpenFBX
animation fbx loading model morph
Last synced: about 2 months ago
JSON representation
Lightweight open source FBX importer
- Host: GitHub
- URL: https://github.com/nem0/OpenFBX
- Owner: nem0
- License: mit
- Created: 2017-06-27T11:52:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T19:22:01.000Z (5 months ago)
- Last Synced: 2024-11-11T18:23:39.343Z (2 months ago)
- Topics: animation, fbx, loading, model, morph
- Language: C
- Homepage:
- Size: 3.86 MB
- Stars: 1,150
- Watchers: 37
- Forks: 135
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - OpenFBX
README
[![Discord Chat](https://img.shields.io/discord/480318777943392266.svg)](https://discord.gg/RgFybs6)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
![build status](https://github.com/nem0/openfbx/actions/workflows/build.yml/badge.svg)# OpenFBX
Lightweight open source FBX importer. Used in [Lumix Engine](https://github.com/nem0/lumixengine) and [Flax Engine](https://flaxengine.com/). It's an *almost* full-featured importer. It can load geometry (with uvs, normals, tangents, colors), skeletons, animations, blend shapes, materials, textures, cameras and lights.
[UFBX](https://github.com/bqqbarbhg/ufbx) is similar project in C.
Using [libdeflate](https://github.com/ebiggers/libdeflate) for decompression.## Use the library in your own project
Note: It's recommended to be familiar with fbx format to use this library, you can read about it more [here](http://help.autodesk.com/view/FBX/2017/ENU/?guid=__files_GUID_F194000D_5AD4_49C1_86CC_5DAC2CE64E97_htm).
1. add files from [src](https://github.com/nem0/OpenFBX/tree/master/src) to your project
2. useSee [demo](https://github.com/nem0/OpenFBX/blob/master/demo/main.cpp#L203) as an example how to use the library.
See [Lumix Engine](https://github.com/nem0/LumixEngine/blob/master/src/renderer/editor/fbx_importer.cpp) as more advanced use case.Alternatively, CMake support is provided by community but it's not supported by me - @nem0.
## Compile demo project
1. download source code
2. execute [projects/genie_vs19.bat](https://github.com/nem0/OpenFBX/blob/master/projects/genie_vs19.bat)
3. open projects/tmp/vs2019/OpenFBX.sln in Visual Studio 2019
4. compile and runDemo is windows only. Library is multiplatform.
![ofbx](https://user-images.githubusercontent.com/153526/27876079-eea3c872-61b5-11e7-9fce-3a7c558fb0d2.png)