- Home /
Importing obj file with textures
I had downloaded a spaceship object from the web. The zip file includes: obj file, some Gif textures and MTL file. how can I import the object with the textures in place to unity3d? (sorry for my bad english... =])
Answer by BerggreenDK · Sep 26, 2011 at 08:56 PM
Just put in in your Ressource folder.
Drag the files into your Unity project, then create a material, assign the texture to it and then drag the material onto the OBJ file.
You can also do all this by scripting. But thats a more complex story.
Can I import the $$anonymous$$TL file? Because in my understand he includes the information about how to create the object and match the textures currectly.
Why bother? The object should have UV data on its mesh, and so just dragging a texture on in Unity should work.
I've not heard about $$anonymous$$TL file support, but perhaps someone have made a script if thats really neccessary? As @syclamoth states, why bother :-)
did my answer help you? or are you still stuck @tomer2911 ?
@BerggreenD$$anonymous$$ it seems to be an old topic but can you help me, I'm actually tring to get the same result as the drag an drop but with script. The point is to do it on the fly while the game is running. Thanks
Answer by tomer2911 · Sep 27, 2011 at 04:32 AM
Can I import the MTL file? Because in my understand he includes the information about how to create the object and match the textures currectly.
(I guess this was a faulty posting, please delete it to clean up this thread) :o)
Answer by kayy · Sep 28, 2011 at 03:44 PM
- If you have experience with Blender you can load the model into Blender and export it to fbx.
- There is an FBX Converter from Autodesk available for free and it doesn't need AutoDesk to be installed. It should work with OBJ but I didn't manage to get animations out of 3ds files. Go to the AutoDesk download site and look for FBX Converter
I know this is a long shot but I really hope you reply. So If I use FBX Converter will the textures "combine" with the model and not make them seperate when I import it to Unity?
It's some time ago that I worked with the FBX converter. In the past it does not automatically build a texture atlas. $$anonymous$$aybe you can use Unity's sprite packer although I only worked with it for UI (2D) stuff
Answer by noah_petro · Jul 20, 2017 at 06:36 PM
Is there any way to bypass Blender and Maya and just add an OBJ into Unity with vertex color data?