fbx material export wrong in Unity #47728

Closed
opened 2016-03-09 01:36:49 +01:00 by Terry Morgan · 14 comments

System Information
Operating system and graphics card
windows 7 intel HD 460 onboard

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen)
Worked: (optional)
2.76b

Short description of error
I made a dungeon with 3 materials, floor, ceiling, walls. The fbx only imports 1 material
into Unity, while the OBJ imports all 3.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

Dungeon's too big but here's how to make one.
https://sites.google.com/site/terrymorgan1213/tutorials/blender_dungeon_from_scratch

**System Information** Operating system and graphics card windows 7 intel HD 460 onboard **Blender Version** Broken: (example: 2.69.7 4b206af, see splash screen) Worked: (optional) 2.76b **Short description of error** I made a dungeon with 3 materials, floor, ceiling, walls. The fbx only imports 1 material into Unity, while the OBJ imports all 3. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps Dungeon's too big but here's how to make one. https://sites.google.com/site/terrymorgan1213/tutorials/blender_dungeon_from_scratch
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @terrymorgan

Added subscriber: @terrymorgan

Added subscriber: @mont29

Added subscriber: @mont29

Please follow our submission template and guidelines and make a complete, valid bug report, with required info, precise description of the issue, precise steps to reproduce it, small and simple .blend and/or other files to do so if needed, etc. Videos end/or links to external sites etc. are not acceptable as bug report (they can be provided as additional information only).

Please follow our submission template and guidelines and make a complete, valid bug report, with required info, precise description of the issue, precise steps to reproduce it, **small and simple** .blend and/or other files to do so if needed, etc. Videos end/or links to external sites etc. **are not acceptable** as bug report (they can be provided as additional information **only**).
Author

Here's an example fbx and obj
example export 518k
https://dl.dropboxusercontent.com/u/102638093/example_export.zip

Here's an example fbx and obj example export 518k https://dl.dropboxusercontent.com/u/102638093/example_export.zip

Please try to attach files here, external storage tends to vanish over time… example_export.zip

Unfortunately, this archive is missing the main piece - the .blend file itself.

I can confirm obj has several materials/textures, and FBX has only one, but without the original .blend file this is rather useless. ;)

Please try to attach files here, external storage tends to vanish over time… [example_export.zip](https://archive.blender.org/developer/F289606/example_export.zip) Unfortunately, this archive is missing the main piece - the .blend file itself. I can confirm obj has several materials/textures, and FBX has only one, but without the original .blend file this is rather useless. ;)
Author

Here's a little piece, hope it's enough

https://dl.dropboxusercontent.com/u/102638093/dungeon_hallway.zip

92K

Here's a little piece, hope it's enough https://dl.dropboxusercontent.com/u/102638093/dungeon_hallway.zip 92K

dungeon_hallway.zip

Does not really help, there is only one material in that .blend, so there is only one in exported FBX… nothing new so far.

[dungeon_hallway.zip](https://archive.blender.org/developer/F289623/dungeon_hallway.zip) Does not really help, there is only one material in that .blend, so there is only one in exported FBX… nothing new so far.
Author

Here's one with the 3 mats, textures are in the example_export.zip I think

https://dl.dropboxusercontent.com/u/102638093/dungeon_hallway_3_mats.zip
72k

Here's one with the 3 mats, textures are in the example_export.zip I think https://dl.dropboxusercontent.com/u/102638093/dungeon_hallway_3_mats.zip 72k

dungeon_hallway_3_mats.zip

sigh well, that one has three materials, which are all three exported to FBX, and load back as three materials in Blender. Did you try to load that one in Unity? given the first FBX you gave here only had one material…

[dungeon_hallway_3_mats.zip](https://archive.blender.org/developer/F289631/dungeon_hallway_3_mats.zip) *sigh* well, that one has three materials, which are all three exported to FBX, and load back as three materials in Blender. Did you try to load that one in Unity? given the first FBX you gave here only had one material…
Author

beats the heck out of me, the dungeon hallway imports properly to Unity as an FBX, it's just
my main dungeon only has 1 material, at least it's not a bug with blender I guess, if it doesn't do
animated FBX then it will be. Thanks for checking, not to change subject, but is there some addon
that will lock verts edges and faces, I'm always trashing my model in uv editing, if I click in
3d view instead of uv view.

beats the heck out of me, the dungeon hallway imports properly to Unity as an FBX, it's just my main dungeon only has 1 material, at least it's not a bug with blender I guess, if it doesn't do animated FBX then it will be. Thanks for checking, not to change subject, but is there some addon that will lock verts edges and faces, I'm always trashing my model in uv editing, if I click in 3d view instead of uv view.

Added subscriber: @JeannotLandry

Added subscriber: @JeannotLandry

You know you can simply put your .blend in the Unity Project assets folder and it will properly import everything for you. After that, when you double click on your asset, it will open blender (from unity) so you can edit your model. I always work in unity that way, saves everything from model, armature, actions (animations), UVs, smoothing groups, shape keys, materials and textures. Most people think you have to export .fbx to work with unity, but really, no need, just save your .blend, and put it in your unity assets folder (in your operating system, not through unity with drag and drop)....

You know you can simply put your .blend in the Unity Project assets folder and it will properly import everything for you. After that, when you double click on your asset, it will open blender (from unity) so you can edit your model. I always work in unity that way, saves everything from model, armature, actions (animations), UVs, smoothing groups, shape keys, materials and textures. Most people think you have to export .fbx to work with unity, but really, no need, just save your .blend, and put it in your unity assets folder (in your operating system, not through unity with drag and drop)....

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2016-03-13 19:23:49 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#47728
No description provided.