This fork is to update Cinder-Assimp for Cinder 0.8.5 and C++11. It's intended for the following environments:
- OSX 10.8.2 & Xcode 4.6 (working)
- Windows 7/8 & Visual Studio 2012 (not working yet)
C++ Cinder Block to use the Open Asset Import Library. Assimp is a portable Open Source library to import various well-known 3D model formats in a uniform manner.
Based on ofxAssimpModelLoader by Anton Marini, Memo Akten, Kyle McDonald and Arturo Castro.
###To do list
- VBO support, instead of TriMesh
- GPU skinning
- Better material support
- Multitexture support
###Static library rebuild instructions
The Cinder-Assimp block has a statically compiled version included. The static library can be recompiled with the following steps:
Download Assimp from http://sourceforge.net/projects/assimp/files/assimp-3.0/assimp--3.0.1270-source-only.zip/download
####Build instructions on OSX (10.8.2, with clang and C++11)
git clone https://github.com/assimp/assimp cd assimp cmake -DASSIMP_ENABLE_BOOST_WORKAROUND=ON -DASSIMP_BUILD_STATIC_LIB=ON \ -D"CMAKE_OSX_ARCHITECTURES=i386;x86_64" \ -DCMAKE_CXX_FLAGS="-fvisibility-inlines-hidden -std=c++11 -stdlib=libc++" \ -DASSIMP_BUILD_NO_LWS_IMPORTER make
which creates libassimp.a in the code/ directory.
####Build instructions on Windows (not updated for C++11 yet)
unzip assimp--3.0.1270-source-only.zip cd assimp--3.0.1270-source-only cmake -DENABLE_BOOST_WORKAROUND=ON -DBUILD_STATIC_LIB=ON -G"Visual Studio 10" compile the lib in Visual Studio 10