- Home /
How to import OpenFlight with Pivot Points?
I have been trying to convert OpenFlight files to import into Unity and I am having issues with pivot points. If I export the files to Collada as mentioned in a previous answer I can import the model fine with all the textures but the pivot points for all the objects within the model have been moved to the origin of the model (0,0,0).
Does anyone know if there is a way to preserve the pivot points when exporting the OpenFlight files from creator? Or any other way I can import the OpenFlight files into Unity that will preserve the pivot points?
Answer by karljj1 · Jul 03, 2013 at 07:58 PM
Hi,
Are you still trying to do this? I have written an open source OpenFlight importer for Unity which may help you. I will be submitting to the asset store soon, just finishing a few things. It would be great to have someone to test for me :)
http://sourceforge.net/projects/uflt/
Karl
Hi,
I have had a quick test of your OpenFlight importer. It is helpfull in that it is loading in the materials that I lost when I exported fomr OpenFlight to collada however it is still missing the pivot points (DOFs).
The only tool that has worked for me so far was the OpenFlight importer in $$anonymous$$aya. However this only worked on some of my models and in some cases it skewed the meshes. It did preserve the pivot points though and allow me to export to fbx format for import to Unity.
Adrian
Hi Adrian,
I have not added support for the the DOF record yet, I will try to add it in the next few days. Also transformations are not yet applied, so all objects are at 0,0,0. This will also get implemented soon. I have just finished adding support for sgi textures(rgb, rgba).
$$anonymous$$arl
$$anonymous$$arl,
Sounds great. If you let me know when you have been able to add the DOF support I will be happy to test this for you as I have various complex OpenFlight files that I can test with.
Adrian
Hi Adrian,
I have added the DOF node, its working with the 1 model I have that has a DOF node :) The $$anonymous$$in, $$anonymous$$ax fields are not attached to the GameObject at the moment however they are available in the Database so you can pull them out and attach them.
I now need to get it so an imported model can be saved as an asset, at the moment they only persist in the scene and once you close it the textures, meshes and materials are lost.
$$anonymous$$arl
Hey $$anonymous$$arl,
I'm trying to import an openflight terrain into unity and was wondering what status of the project is. It sounds like this could be very useful but I was wondering how much has been implemented. Can it generate unity terrain from the openflight? Does it support external model references and LODs?