Giter Club home page Giter Club logo

pyfbx_i42's Introduction

pyfbx_i42

Currently this project contains pyfbx/parse_bin.py, a simple but functional parser for binary FBX data written for Python3, which can load in the FBX hierarchy.

To create binary FBX files pyfbx/encode_bin.py a simple module to support writing FBX files.

Neither of these modules contain utility functions for dealing with the data. (So no special handling of Vector, Color, Matrix types for example).

This script is based on assimp's FBXBinaryTokenizer.cpp for the parser.

What Works

  • tested FBX files from 2006 - 2012. (parsing data seems not to depend on exact versions).
  • all known datatypes (float/int arrays, loading binary data, strings etc).
  • zlib compression.
  • parsing and re-encoding and FBX file. See: tests/reencode.py

What Doesn't Work

  • ASCII FBX. Currently the only workaround is to use fbxconvert to get a binary version.
  • Encoding currently uses a hard-coded date, FBX-SDK obfuscates the date and we don't yet know how to encode/decode the date value, so for now the real date is replaced with a constant value.

Examples

Currently there is a simple example script called fbx2json.py this standalone Python script will write a JSON file for each FBX passed, Even though its intended mainly as an example it may prove useful in some situations.

pyfbx_i42's People

Contributors

acgessler avatar ideasman42 avatar

Watchers

 avatar  avatar

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.