Open Asset Import library

Open Asset Import Library (short name: Assimp) is a portable Open Source library to import various well-known 3D model formats in a uniform manner.

Installing Assimp (need to do this only once)

  1. Download version 3.0 from here.Execute the installer. [Take note of the install directory]
  2. Create a new Environment Variable called ASSIMP_SDK, set it's value to also be the SFML directory e.g. "C:\Program Files\Assimp"
    1. Hold Win and press Pause , to open the System Properites window.
    2. In the System Properties window, click on the Advanced System settings link (on the left hand side).
    3. In the Advanced section, click the Environment Variables button.
    4. Under "System Variables", select the "New..." button.
    5. Variable name: ASSIMP_SDK
    6. Variable value: "C:\Program Files\Assimp"

Building a Visual Studio 2010 project to use Assimp &OpenGL

Create a new "Win32 Console Application" Project.

Make the following changes to project properties (see screen-shot)

  1. select "all configurations"
  2. select "VC++ Directories"
  3. add "$(ASSIMP_SDK)\include" to the list of include directories
  4. add "$(ASSIMP_SDK)\lib\x64" to the list of library directories
    Configuing Visual Studio to use Assimp

 

Add the following lines to any files using ASSIMP functions (just put these after any other #includes).