The assimp package

[ Tags: bsd3, graphics, library ] [ Propose Tags ]

Important: Install with cabal install --extra-include-dirs /usr/local/include/assimp/ Of course use the location of the include files on your system.

This library provides FFI bindings to the Assimp asset import library. It requires Assimp to already be installed. For more information about Assimp see the assimp website at http://assimp.sourceforge.net/.

This release corresponds to Assimp 2.0. When this package stabilizes I intend to track new releases of Assimp by also releasing new versions with the same version number, but this should be considered a beta release. Importing models is currently working. Textures and animations are untested.

Here is a sample program that imports a scene and then outputs the information contained in it.

module Main where

import System (getArgs)
import Graphics.Formats.Assimp

-- Defines the preprocessing we want assimp to perform
processing = [ CalcTangentSpace
             , Triangulate
             , JoinIdenticalVertices
             , SortByPType
             ]

main = do
  args <- getArgs
  scene <- importFile (head args) processing
  print scene                   -- Outputs all information in the scene
  getVersionMajor >>= print     -- Print the major version of assimp
  getVersionMinor >>= print     -- Print the minor version of assimp
  getVersionRevision >>= print  -- Print the version revision of assimp

See https://github.com/joelburget/Cologne/blob/master/Cologne/AssimpImport.hs for more.

Properties

Versions 0.1
Dependencies base (==4.*), haskell98, vect (>=0.4.6 && <0.5) [details]
License BSD3
Copyright Joel Burget 2011
Author Joel Burget
Maintainer joelburget@gmail.com
Category Graphics
Source repository head: git clone git@github.com:joelburget/assimp.git
Uploaded Tue May 24 14:10:47 UTC 2011 by JoelBurget
Distributions NixOS:0.1
Downloads 467 total (2 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-10-27 [all 11 reports]
Hackage Matrix CI

Modules

  • Graphics
    • Formats
      • Graphics.Formats.Assimp

Downloads

Maintainer's Corner

For package maintainers and hackage trustees