Giter Club home page Giter Club logo

fbx-conv's Introduction

fbx-conv

fbx-conv can convert some middle format (such as fbx, blend, obj, etc) to .c3b or .c3t which are used by cocos2d-x.

Precompiled Binaries

You can download the precompiled binaries from https://github.com/cocos2d/cocos2d-x-3rd-party-libs-bin/.

Building

You'll need an installation of the FBX SDK 2014. Once installed, set the FBX_SDK_ROOT to the directory where you installed the FBX SDK. Then run the project which you want at "build/xxxx/" . These we generate Visual Studio and XCode project.

Command-line USAGE:

  • Windows - fbx-conv.exe [options] <input>
  • Mac - fbx-conv [options] <input>

###Options/flags

  • -? -Display help information.
  • -f -Flip the V texture coordinates.
  • -m <size> -The maximum amount of vertices or indices a mesh may contain (default: 32k)
  • -n <size> -The maximum amount of bones a nodepart can contain (default: 40)
  • -v -Verbose: print additional progress information
  • -g -Whether you need to merge the same mesh which have the same vertex attribute
  • -a -Export c3b(binary) and c3t(text)
  • -b -Export c3b(binary)
  • -t -Export c3t(text)
  • -c <size> -The compression level: 0 , 1 (default: 0)
  • -l -Export model data only.
  • -j -Export animation data only.
  • -ma <ext_anim_file_1.fbx ext_anim_file_2.fbx ...> -Merge animations to result file and print new timings

###Example fbx-conv -a boss.FBX

Note:

  1. Model need to have a material.
  2. contain only one skeleton.

Thanks

Special thanks to libgdx fbx-conv, We used their code and do some change.

fbx-conv's People

Contributors

xoppa avatar badlogic avatar stbachmann avatar gered avatar songchengjiang avatar tangziwen avatar maximtwo avatar minggo avatar jwisniewski avatar alex55i avatar cpascal avatar

Watchers

Koveshnikov Peter 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.