Skip to content

kenkit/ogre-assimp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

Assimp -> Ogre adaptor

Included ogre2.1 branch--> Ogre>Assimp by riveranb just checkout ogre2.1 or clone directory from his branch.

This code was originally from OgreAssimp Converter tool which can be found at OgreAssimp converter

UH-60Blackhawk

kakashi

Basic useful feature list:

  • Allows you to import any model into Ogre using Assimp without using any external mesh conversion tools.
  • Imports textures.
  • Imports Skeletons if any.
  • Imports animations.

Sample Usage

You need to include (CMAKE Does not work use the following)

#include <importer.h> //Don't forget to add the .cpp files into you project.

And also link against Assimp lib and boost filesystem.

Importer::Importer naruto_mesh;

naruto_mesh.CreateMesh("NarutoMesh", "E:\\programming\\models\\Kakashi\\Kakashi.obj", Importer::LOW_QUALITY);//Create the mesh with name "NarutoMesh" of Low quality, set Importer::HIGH_QUALITY for high quality
obstaclescene = mSceneMgr->getRootSceneNode()->createChildSceneNode("obstaclescene_" );
obstacle = mSceneMgr->createEntity("obstacle_", "NarutoMesh");//Create an entity from the mesh "NarutoMesh"
obstaclescene->attachObject(obstacle);

Props to jacmoe and his OgreAssimp converter and all those who were responsible for making OgreAssimp from which this code is based on.

Discuss this project on Ogre Forum:

Lastly:

Any and all improvements made on this code are welcome.

Liscence:

This code use OgreAssimp Converter liscence. See also LISCENCE file

About

Assimp-based importer to import models into OGRE

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.4%
  • CMake 9.6%