GithubHelp home page GithubHelp logo

kodsever / fbximporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avatarchik/fbximporter

0.0 1.0 0.0 5.17 MB

FBXImporter for Unity

License: MIT License

Rich Text Format 8.94% C# 6.98% C++ 79.39% C 4.69%

fbximporter's Introduction

FBXImporter

FBXImporter is a Unity plugin to import fbx model into Unity at runtime. It import fbx model just like you drag it into Unity, all the values in Transform component, RenderFilter component and Renderer component should be the same as you import the fbx model at edit time.

To use in Unity

  1. Copy TestModelImporter/Assets/Plugins/x86_64/FBXImporterUnmanaged.dll to /Assets/Plugins/x86_64

  2. Copy TestModelImporter/Assets/Assembly/ModelImporter.dll to /Assets

  3. Call ModelImporter.Importer.Import( fbxFilePath ) to import model

To modify source and build

  1. The project is using swig to wrap c++ interface to Unity, if your don't have it, download at http://www.swig.org/ and install it

  2. Open build/WindowsDesktop_vc140.sln, Open Property Page of swig interface file FBXImporter.i, change path under CustomBuildTool/CommandLine to your swig install path

  3. Build project FBXImporter, make sure all .cs files under FBXGenerated filter of project ModelImporter is generated by swig correctly

  4. Build project ModelImporter. If success, you should find FBXImporterUnmanaged.dll under bin or bin64, and managed ModelImporter.dll under build/WindowsDesktop_vc140/ModelImporter/bin/Release/

  5. Copy them to TestModelImporter project or your own Unity project to test

License

FBXImporter use a typical MIT license. Swig use GPL license, this project only use the tool swig.exe for build, no source included or binary linked, just like use gcc.exe. FBX SDK is a Autodesk product, see Autodesk_FBX_License.rtf for detail.

Known issues

  1. Animation is not supported

  2. Calculation of normals and tangents is not supported, if there is no such data in fbx file

  3. Split large mesh is not supported yet

  4. Performance is not tested

Thanks

Thanks Tristan ( CTO of Noitom Ltd ) for giving me permission to make this project open source
Thanks Tapani ( http://tapaniheikkinen.com/ ) who helped me generate fbx samples to debug

Contact

If there is any issue, please contact [email protected]

fbximporter's People

Contributors

drvkize0 avatar

Watchers

 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.