OBJ vs 3DS - 什么是Android 3D开发的最佳格式

时间:2011-03-08 17:41:40

标签: android opengl-es 3d

3d模型的首选文件格式是什么? OBJ或3DS格式? 我会在Android上使用它。 因此,模型的文件大小应该小并且快速解析。 谢谢

1 个答案:

答案 0 :(得分:6)

根据我的经验,OBJ要好得多。 3DS文件有一些缺点,使其可用性降低。

1) The number of vertices and polygons per mesh is limited to 65536.
2) Accurate vertex normals cannot be stored in the .3ds file.

OBJ很容易解析,因为它几乎已经采用正确的渲染格式。只需填充顶点数组,正常数组和渲染。另一个选择是您可以在PC上将数据重新格式化为您自己的数据格式,以便设备更快地读取文件。要查看更详细的答案,请在此处查看我的帖子:Fastest way to load arrays of vertices and face indices into OpenGL-ES?