Wavefront OBJ

参考

类别

导入 - 导出

菜单

File ‣ Import ‣ Wavefront (.obj)

OBJ是行业内广泛使用的事实标准。OBJ格式是一种流行的纯文本格式,但它只支持基本的几何与材质信息。

  • Mesh: vertices, faces, edges, normals, UVs

  • 按组/物体分离

  • 材质/纹理

  • NURBS曲线和曲面

Note

There is no support for mesh vertex colors, armatures, animation, lights, cameras, empty objects, parenting, or transformations.

Note

Blender目前仅支持复杂的基于节点的着色。OBJ 具有固定的类管道材质支持,此插件使用 Blender特色的 通用封装 来在两者之间转换。

Warning

导入非常大的OBJ文件(超过100mb),会消耗大量内存。

用法

Import geometry and curves to the OBJ format.

如果有与OBJ匹配的 .MTL 文件,那它的材质也会被导入。

属性

导入

包括

图像查找

当无法找到图像文件时启用递归搜索。

平滑组 Smooth Groups

通过锐边环绕OBJ平滑组。 请注意,仅在启用“边缘分割”修改器时才会显示这些内容。

行数(线)

将OBJ线和双面导入为网格边。

变换

钳制尺寸

OBJ文件的比例通常差别很大,此设置会将导入的文件固定为固定大小。

向前/向上轴

由于许多应用程序使用不同的“向上”轴,因此存在转换轴向设置,向前和向上轴——通过映射不同的轴,您可以转换应用程序默认的向上和向前轴之间的旋转。

Blender使用Y轴向前,Z轴向上(因为前视图沿+Y轴方向)。 例如,许多应用程序通常使用Y作为向上轴,在这种情况下,需要使用-Z轴向前,Y轴向上。

几何数据(Geometry)

拆分/保持顶点顺序

When importing an OBJ it's useful to split up the objects into Blender objects, named according to the OBJ-file. However, this splitting loses the vertex order which is needed when using OBJ-files as morph targets.It also loses any vertices that are not connected to a face or edge so this must be disabled if you want to keep the vertex order and loose vertices.

按物体拆分和按组拆分

When importing an OBJ it's useful to split up the objects into Blender objects, named according to the OBJ-file. However, this splitting loses the vertex order which is needed when using OBJ-files as morph targets. It also loses any vertices that are not connected to a face, so this must be disabled if you want to keep the vertex order.

就Blender而言,OBJ物体和组没有区别,因为它们只是两个分离级别,OBJ组不等同于Blender组,因此两者都可以选择用于拆分。

OBJ Export

Exporting OBJ-files is built into Blender without the need of an add-on. It's documentation can be found here: OBJ Exporter </files/import_export/obj>.

兼容性

缺失

以下部分功能缺失:

  • 高级材质设置——记录了材质选项,但很少有文件使用它们,并且可用的示例很少。

  • 法线——Blender会忽略导入文件中的法线,并根据几何体重新计算它们。