Explicit resource loading in Ogre (Mogre)

Posted by sebf on Game Development See other posts from Game Development or by sebf
Published on 2011-07-16T15:37:45Z Indexed on 2012/09/18 15:55 UTC
Read the original article Hit count: 276

I am just starting to learn Mogre and what I would like to do is to be able to load resources 'explicitly' (i.e. I just provide an absolute path instead of using a resource group tied to a directory).

This is very different to manually loading resources, which I believe in Ogre has a very specific meaning, to build up the object using Ogres methods. I want to use Ogres resource management system/resource loading code, but to have finer control over which files are loaded and in what groups they are.

I remember reading how to do this but cannot find the page again; I think its possible to do something like:

  • Declare a resource group
  • Declare the resource(s) (this is when the actual resource file name is provided)
  • Initialise the resource group to actually load the resource(s)

Is this the correct procedure? If so, is there any example code showing how to do this?

© Game Development or respective owner

Related posts about ogre

Related posts about resources