Skip to content

Cinder block for the 3d model importing Open Asset Import Library

Notifications You must be signed in to change notification settings

Dewb/Cinder-Assimp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cinder-Assimp

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

About

Cinder block for the 3d model importing Open Asset Import Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 50.7%
  • C 49.0%
  • Objective-C 0.3%