The official Open-Asset-Importer-Library Repository. Loads 40+ 3D-file-formats into one unified and clean data structure.
 
 
 
 
 
 
Go to file
Jan Krassnigg 1e93280f47 Infrastructure for reporting progress
This commit adds two classes:
* ProgressTracker
* ProgressScope

The first is for users to implement, and to instantiate when they desire
to get informed about the overall progress.

The second is to be added to all functions that may take a considerable
amount of time, such that they can report back how far along they are.

These are much more convenient to use than the existing ProgressHandler.
ProgressScope is designed such that it only requires "local knowledge"
about upcoming and finished work. Scopes are nested and combined to
form the final global progress.

The active ProgressTracker is stored in a thread_local pointer.
This is a consicius decision since in assimp there is often no 'context'
passed through. The ProgressTracker may be needed anywhere, and it would
be tedious and a huge change to pass it through to every function.
Therefore, using a thread_local variable makes it accessible everywhere,
without a major interface change. Since assimmp is single-threaded,
but may be run in parallel on multiple threads, a thread_local is a
good trade-off, in my opinion.

This change only adds few uses of ProgressScope, to generally show how
it would be used. Also for our use cases these where the most pressing
places to add progress reporting, so this already covers loading from FBX
files pretty well.
2023-08-01 14:06:12 +02:00
.github Update sanitizer.yml 2023-06-22 21:43:52 +02:00
cmake-modules Fix problems setting DirectX_LIBRARY 2022-08-11 22:10:16 +03:00
code Infrastructure for reporting progress 2023-08-01 14:06:12 +02:00
contrib Merge branch 'master' into UpdatePugiXml 2023-06-28 16:04:49 +02:00
doc Fix: Fix typo in doc 2023-02-21 21:34:49 +01:00
fuzz Update: Enable export for fuzzer tests 2023-05-15 09:18:30 +02:00
include/assimp Infrastructure for reporting progress 2023-08-01 14:06:12 +02:00
packaging Update script_x86.iss 2021-11-15 08:41:23 +01:00
port Remove deprecated swig files. 2023-07-23 12:49:25 +02:00
samples Fix: Replace back_inserter usage. 2023-03-06 21:13:40 +01:00
scripts fix scan_printf script error code handling 2023-03-04 15:00:43 +01:00
test Merge branch 'master' into fix_malformed_irr_files 2023-07-14 20:40:56 -07:00
tools Fix:Use correct encoding 2023-03-01 21:40:45 +01:00
.clang-format ry to fix 2013-specific warnings in mesh.h 2020-03-19 15:10:46 +01:00
.editorconfig Implemented: Add editor config rules for *.txt files 2015-06-30 19:59:55 -06:00
.gitattributes exclude repository-settings from source-package generated via 'git archive' 2017-09-03 23:03:48 +02:00
.gitignore Update .gitignore 2021-07-29 21:38:23 +05:30
BUILDBINARIES_EXAMPLE.bat udpate build script to fit "Visual Studio 16 2019" Generator 2022-02-18 19:01:47 +08:00
Build.md Fixed some grammar and spelling mistakes 2022-11-21 15:51:21 -05:00
CHANGES Update CHANGES 2018-05-16 21:19:30 +02:00
CMakeLists.txt Remove /WX from CMakeLists for MSVC 2023-07-15 15:54:15 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2023-03-22 20:00:09 +01:00
CONTRIBUTING.md Improve the contribution guide 2018-06-10 19:10:38 +02:00
CREDITS Initial FBX Export Support, sponsored by MyDidimo (mydidimo.com). 2018-02-19 13:53:55 +01:00
CodeConventions.md Change to what seems to be agreed upon (in line with PR #566) 2015-05-21 09:00:34 -04:00
Dockerfile Update_ Use latest ubuntu image and switch to ninja 2023-05-31 20:45:51 +02:00
INSTALL Fixed typo 2022-07-31 22:08:27 +02:00
LICENSE Update license 2021-04-03 12:09:23 +02:00
Readme.md Merge branch 'master' into kimkulling-patch-1 2023-03-29 20:41:54 +02:00
SECURITY.md Create SECURITY.md 2022-06-07 20:58:45 +02:00
assimp.pc.in use GNUInstallDirs where possible 2020-04-03 00:44:44 +02:00
revision.h.in Fixes for Windows/MSYS2 2022-04-07 03:07:57 -07:00

Readme.md

Open Asset Import Library (assimp)

Open Asset Import Library is a library to load various 3d file formats into a shared, in-memory format. It supports more than 40 file formats for import and a growing selection of file formats for export.

Current project status

Financial Contributors on Open Collective C/C++ CI Coverity Scan Build Status Codacy Badge

Coverage Status Join the chat at https://gitter.im/assimp/assimp Average time to resolve an issue Percentage of issues still open

APIs are provided for C and C++. There are various bindings to other languages (C#, Java, Python, Delphi, D). Assimp also runs on Android and iOS. Additionally, assimp features various mesh post processing tools: normals and tangent space generation, triangulation, vertex cache locality optimization, removal of degenerate primitives and duplicate vertices, sorting by primitive type, merging of redundant materials and many more.

Latest Doc's

Please check the latest documents at Asset-Importer-Lib-Doc.

Prebuild binaries

Please check our Itchi Projectspace

If you want to check our Model-Database, use the following repo: https://github.com/assimp/assimp-mdb

Communities

And we also have a Gitter-channel:Gitter Join the chat at https://gitter.im/assimp/assimp

Supported file formats

You can find the complete list of supported file-formats here

Building

Take a look into the https://github.com/assimp/assimp/blob/master/Build.md file. We are available in vcpkg, and our build system is CMake; if you used CMake before there is a good chance you know what to do.

Ports

Other tools

open3mod is a powerful 3D model viewer based on Assimp's import and export abilities.

Repository structure

Open Asset Import Library is implemented in C++. The directory structure looks like:

/code		Source code
/contrib	Third-party libraries
/doc		Documentation (doxysource and pre-compiled docs)
/fuzz           Contains the test-code for the Google-Fuzzer project
/include	Public header C and C++ header files
/scripts 	Scripts 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

The source code is organized in the following way:

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/<FormatName>	Implementation for import and export for the format

Contributing

Contributions to assimp are highly appreciated. The easiest way to get involved is to submit a pull request with your changes against the main repository's master branch.

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

Our license is based on the modified, 3-clause BSD-License.

An informal summary is: do whatever you want, but include Assimp's license text with your product - and don't sue us if our code doesn't work. Note that, unlike LGPLed code, you may link statically to Assimp. For the legal details, see the LICENSE file.

Why this name

Sorry, we're germans :-), no english native speakers ...