Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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. use

See [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 run

Demo is windows only. Library is multiplatform.

![ofbx](https://user-images.githubusercontent.com/153526/27876079-eea3c872-61b5-11e7-9fce-3a7c558fb0d2.png)