realXtend/naali — pull request #509 by A-K (2012-08-14 11:25:20+00:00)
Title: Openassetimport

This pull request includes support for importing collada files through Open Asset Import Library. Although it's tested mainly with collada files, other file types that are supported by Assimp should work also (no guarantee promised). The importer is tested with Linux only. Modified core files are OgreMeshAsset.h and OgreMeshAsset.cpp.

OgreMeshAsset has been modified to use OpenAssetImport to convert collada files to ogre meshes. When collada file includes materials, OpenAssetImport generates ogre materials and loads textures, if needed, into the Ogre resource system directly. OgreMaterialAssets or TextureAssets are not created, except in a case where the textures are on a remote asset server and have to be requested first.

Two demo scenes ( AssimpDemoScene and AssimpDemoScene2) are created to test the importer.