-
-
Notifications
You must be signed in to change notification settings - Fork 109
Importing into Unity
Out of the box, Unity supports .obj file imports via the ModelImporter, as well as .ogg audio and .png textures. All you need to do is drag-and-drop the files into your asset folder, or directly export the files to your Unity project:
- Open wow.export
- Change your wow.export export directory to a folder in your unity project, eg
[Path to Project]/Assets/wow.export/ - Select then export the files you want via wow.export
- Open Unity, or if already open, return to Unity's window
Unity will automatically detect the new files and import them using it's default stack.
- Easy, no special software or packages required
- Can't take advantage of metadata
- Does not add doodads to the proper positions for WMOs/ADTs (building and map tiles)
- Requires a lot of configuration for materials
- Does not configure the UV2 channel
wow.export comes with a Blender add-on that can be installed from the hamburger menu on the top right of the application. From there, you can use that importer to add objects to your scene. If importing a WMO or ADT tile, it will automatically place models at the correct coordinates.
Unity can import .blend files natively. One possible method of using this approach:
- Create a new project in Blender
- Import model assets you have exported via wow.export, using the wow.export blender add-on
- Save the Blender project in your Unity project's asset folder, eg
[Path to Project]/Assets/Blender/ironforge.blend - Drag the objects from your blend file directly into the scene
- Doodads are correctly placed in the scene
- Changes made in your blend file will automatically be applied in Unity
- Adds another step to your import pipeline
- Materials most likely require a lot of work to get looking similar to their appearance in-game
- Blend files can be huge if they are too big, and will require optimization
Similar to the method above, we can use Blender to export an FBX object similar to what we used in the first step. In fact, under the hood, Unity use's Blender's FBX export methods to generate the objects present in .blend files.
- Create a new project in Blender
- Import model assets you have exported via wow.export, using the wow.export blender add-on
- In Blender, choose
File -> Export As - Configure your export to package texture information into the FBX file
- Save the FBX file in your Unity project's asset folder, eg
[Path to Project]/Assets/Blender Exports/ironforge.fbx
- Doodads are correctly placed in the scene
- Your FBX model is now immutable
- Adds two additional steps to your import pipeline
- Materials most likely require a lot of work to get looking similar to their appearance in-game
- Blend files can be huge if they are too big, and will require optimization