Giter Site home page Giter Site logo

fbx's Introduction

C++ Library for reading and writing FBX files

This library allows you to read and write fbx files.

It currently supports full fbx binary format. It works even with larger files.

Also includes fbxdump which allows you to inspect fbx files in json format.

References

FBX format description

FBX file structure

Javascript port

fbx.js

fbx's People

Contributors

berkus avatar jskorepa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fbx's Issues

I can't load fbx in 3dmax 2015 - wrong shading encoding

deferance

Left side comes from 3ds max, the right one is created via

file.read(prevFileName);
file.write(newName);

lines below 43A8 are from uint8_t footer[] static variable,


3F70 and 4278 should be created based of this part

{ "name": "Shading",
     "properties": [
          { "type": "C", "value": true }
     ]
 },

true should be represented as 'T'(54) not '.'(1)

Incorrect vector initializer

Hi, very neat library! I am planning to use it in my modeling tool for fbx export.
I found a minor issue of values initializer, for example, here:

FBXProperty::FBXProperty(const std::vector<bool> a) : type('b'), values(a.size()) {

values is been initialized with a size, this will double the size of the vector. These values initializers should be removed.

File is corrupted test.fbx

"The file could not be imported for the following reason : File is corrupted test.fbx"

Hi, when i import the fbx-model into MAYA run into this error, and the test.fbx have the same size (26KB) of the source-fbx model

文件名: test.fbx
文件目录: G:
文件版本: 7.4.0
文件创建者: Blender (stable FBX IO) - 2.78 (sub 0) - 3.7.7
文件自定义写入器: 否
文件创建时间: 2017/6/27 13:25:36
文件轴方向: Y-up (RH)
文件单位: 厘米
系统轴方向: Y-up
系统单位: 厘米
系统帧速率: 30
文件帧速率: 30
文件内容:

文件名: b.fbx
文件目录: G:
文件版本: 7.4.0
文件创建者: Blender (stable FBX IO) - 2.78 (sub 0) - 3.7.7
文件自定义写入器: 否
文件创建时间: 2017/6/27 13:25:36
文件轴方向: Y-up (RH)
文件单位: 厘米
系统轴方向: Y-up
系统单位: 厘米
系统帧速率: 30 警告: 帧速率不匹配
文件帧速率: 24
文件内容: 3 元素, 1 材质

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.