assimp

C/C++ 2025-08-07

开放资产导入库( assimp )

Open Asset Import Library是一个将各种3D文件格式加载到共享的内存格式中的库。它支持40多种用于导入的文件格式,并为导出的文件格式选择越来越多。

当前的项目状态


为C和C ++提供了API。存在各种绑定与其他语言(C#,Java,Python,Delphi,d)。 assimp还在Android和iOS上运行。此外, assimp具有各种网格后处理工具:正态和切线空间的产生,三角剖分,顶点缓存局部优化,去除退化原语和重复的顶点,通过原始类型进行分类,冗余材料的合并等等。

项目活动

文档

阅读我们的最新文档。

预建二进制

从我们的Itchi ProjectSpace下载二进制文件。

测试数据

克隆我们的模型数据库。

社区

  • 在assimp讨论委员会上提出问题。
  • 在https://di**scord*.gg/s9kjfaem上找到我们
  • 向Reddit询问assimp社区。
  • 用assimp -tag在stackoverflow上询问。
  • 没有什么可用吗?在assimp -Issue Tracker上提出问题或问题报告

支持的文件格式

请参阅支持格式的完整列表。

建筑

首先阅读我们的构建说明。我们在VCPKG中可用,我们的构建系统是CMAKE。如果您在很大程度上使用CMAKE,那么您就会知道该怎么做。

端口

  • 安卓
  • Python
  • 。网
  • 帕斯卡
  • JavaScript(alpha)
  • JavaScript/node.js接口
  • Unity 3D插件
  • 虚幻的发动机插件
  • JVM完整JVM端口(当前状态)
  • haxe-port the assimp -haxe-port。

其他工具

QT5-ModelViewer是基于QT5和assimp的进出口能力的强大观众。
assimp -Ciewer是基于IMGUI和assimp (实验)的资产视角的实验实现。

存储库结构

开放资产导入库在C ++中实现。目录结构看起来像这样:

assimp `) /samples A small number of samples to illustrate possible use cases for assimp ">
/code		Source code
/contrib	Third-party libraries
/doc		Documentation (Doxygen source and pre-compiled docs)
/fuzz           Contains the test code for the Google Fuzzer project
/include	Public header C and C++ header files
/scripts 	Scripts are used to generate the loading code for some formats
/port		Ports to other languages and scripts to maintain those.
/test		Unit- and regression tests, test suite of models
/tools		Tools (old assimp viewer, command line ` assimp `)
/samples	A small number of samples to illustrate possible use cases for assimp

源代码以以下方式组织:

code/Common			The base implementation for importers and the infrastructure
code/CApi                       Special implementations which are only used for the C-API
code/Geometry                   A collection of geometry tools
code/Material                   The material system
code/PBR                        An exporter for physical-based models
code/PostProcessing		The post-processing steps
code/AssetLib/	Implementation for import and export of the format

贡献

我非常感谢为assimp做出贡献。涉及的最简单方法是提交有关主要存储库主分支的更改的拉动请求。

贡献者

代码贡献者

由于所有贡献的人,该项目的存在。 [贡献]。

财务贡献者

成为财务贡献者,并帮助我们维持社区。 [贡献]

个人

组织

您可以与您的组织一起支持该项目。您的徽标将在此处显示您网站的链接。 [贡献]

执照

我们的许可证基于修改后的3条bsd -license。

非正式摘要是:做任何您想做的事,但在您的产品中包括assimp的许可文本 - 如果我们的代码不起作用,请不要起诉我们。请注意,与LGPLED代码不同,您可以静态链接到assimp 。有关法律详细信息,请参阅许可证文件。

下载源码

通过命令行克隆项目:

git clone https://github.com/assimp/assimp.git