AssimpModelFormat
Description
- Derived from
- 
ModelFormat abstract 
| Full source code is included in the Tinman 3D SDK download. | 
A ModelFormat implementation for:
Open Asset Import Library v5.* / v6.*
https://github.com/assimp/assimp
The AssimpModelFormat is available if any of the following native libraries is present in the search path of the process:
- 
'assimp6.x32.dll': 32-bit dynamic link library
- 
'assimp6.x64.dll': 64-bit dynamic link library
- 
'libassimp.so.6': dynamic link library
- 
'libassimp.6.dylib': dynamic link library
- 
'assimp5.x32.dll': 32-bit dynamic link library
- 
'assimp5.x64.dll': 64-bit dynamic link library
- 
'libassimp.so.5': dynamic link library
- 
'libassimp.5.dylib': dynamic link library
This class assumes that the library interfaces of all minor versions are binary compatible.
To re-build the dynamic libraries that are included in the Tinman 3D SDK (v5.*), please perform the following steps (you may use other library versions, toolsets or build options, of course):
- 
Install CMake 3 (https://cmake.org). 
- 
Download Assimp 5 (https://github.com/assimp/assimp/tags). 
- 
Choose generator 'Visual Studio 17 2022', using the 'Win32' and 'x64' platforms. 
- 
Use default build options of CMake, then apply the following: 
 ASSIMP_BUILD_ASSIMP_TOOLS = FALSE
 ASSIMP_BUILD_TESTS = FALSE
 ASSIMP_BUILD_ZLIB = TRUE
 ASSIMP_DOUBLE_PRECISION = FALSE
 CMAKE_C_FLAGS += ' /DWINVER=0x0601 /D_WIN32_WINNT=0x0601'
 CMAKE_CXX_FLAGS += ' /DWINVER=0x0601 /D_WIN32_WINNT=0x0601'
- 
Build the Assimp binaries (project assimpwith configurationRelease), then rename and copy each one into its respective SDK folder:
 bin/*/assimp5.x32.dll
 bin/*/assimp5.x64.dll
The ModelFormat.ReadModel method of this file format returns a IModelReader object that supports the following options: