Unity .obj导入正在重新组合子对象

时间:2017-10-18 15:43:39

标签: unity3d import .obj

我有一个表示地图的.obj文件(由OSM2World生成)并包含多个子对象,如Bench,Bridges,Buildings ......这些子对象具有以下命名约定:ObjectName + index。 这是文件中的摘要:

...
o Building1536
usemtl BUILDING_DEFAULT_0
f 67932 67933 67930
f 67933 67931 67930
f 67930 67931 67928
f 67931 67929 67928
v  -47.185 7.5 280.942
f 67928 67929 71008
v  -47.185 0.0 280.942
f 67929 71009 71008
f 71008 71009 67932
f 71009 67933 67932
usemtl ROOF_DEFAULT_0
f 67928 67932 67930
f 71008 67932 67928
o Building1537
usemtl BUILDING_DEFAULT_0
f 65093 65094 65091
f 65094 65092 65091
f 65091 65092 65089
f 65092 65090 65089
f 65089 65090 63035
f 65090 63036 63035
f 63035 63036 63033
f 63036 63034 63033
f 63033 63034 65093
f 63034 65094 65093
usemtl ROOF_DEFAULT_0
f 65091 63033 65093
f 65089 63035 63033
f 65089 63033 65091
...

当我在Unity项目中导入它时,ObjectNameX子对象被“抽象”为单个“Building”对象:

enter image description here

当我在Blender中打开它时,我得到了预期的结果(多个ObjectNameX对象):

enter image description here

任何避免这种行为的想法?

感谢您的帮助。

0 个答案:

没有答案