Giter VIP home page Giter VIP logo

unityfbxexporter's Introduction

========================= Unity FBX Exporter (1.0)

GitHub: https://github.com/KellanHiggins/UnityFBXExporter Contact: [email protected]

The Unity FBX Exporter is a simple FBX writer designed to export static objects from Unity into the FBX format, preserving the materials, game object hierarchy and textures attached.

It was written for the Unity asset Building Crafter (http://u3d.as/ovC) which allows anyone using Unity to create buildings right in Unity without any modeling experience.

Left is Unity

Features

  1. Can export any GameObject into FBX format.

  2. Supports FBX format 7.3, around 2013.

  3. Exports materials into the FBX file.

  4. Exports texture references into the FBX file.

  5. Can make a copy of all materials and link them to newly minted FBX file.

  6. Can make a copy of all textures and link them to newly create materials.

  7. Export very deeply hierarchical Game Objects with just a few clicks.

Known limitations

  1. Linear algebra is hard. GameObjects rotations won't be exported correctly. If you can fix this, PLEASE DO.

  2. FBX format will only recognize diffuse maps and normal maps when exporting. Can not include height maps, for example.

  3. Textures only support PBR Unity 5 shaders.

  4. Scaling is not supported yet.

  5. Only exports one UV map, not a AO UV 2 map.

  6. Sort of works at Runtime. Needs to use File.IO instead of AssetDatabase to truly work at runtime.

  7. Sometimes the reimported FBX files don't find the right materials. C'est la vie.

  8. Exporting a prefab in the Project Tab sort of works. Needs more testing

Tutorial

It is very simple to use this exporter. You shouldn't have any problems, and if you do, please add an issue to the Github project

  1. Select any GameObject in the scene.

  2. Select the type of export you'd like

  3. "Only GameObject" will export a new FBX but not create any new materials or textures and use the original as reference

  4. "With new Materials" will export a new FBX and create new materials with the GameObject name + _ + material name

  5. "With new Materials and Textures" does 2b plus copying textures to a new folder. This one takes a while. Be patient.

  6. Wait a bit

  7. If you've selected new textures, wait a bit longer. Copying and reimporting the textures takes Unity's brainpower.

  8. Check the folder.

  9. Usually the materials will align, but if you have a FBX in the root area it may create new materials instead of finding the old ones.

  10. Success! You now have a brand new FBX file with everything parented correctly. Remember rotations in children still don't work.

NOTE: Sometimes the fbx file imports the materials as recursive instead of project wide for GameObject only export. If this happens, delete all the materials and reimport the FBX file using Project-Wide for material search.

Maya

This was created without owning Maya, so please give feedback on how opening these FBX files work. You can give feedback at [email protected].

Export to Blender

Blender 2.70 doesn't take ASCII FBX files. So you'll need to download the converter from the FBX site. Then convert it to a binary file and then import it into blender. Because the relative texture names are correct, blender will import your albedo and normal texture. Pretty neat!

unityfbxexporter's People

Contributors

kellanhiggins avatar

Watchers

Aurélien Drouet avatar James Cloos 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.