Kwang1imsa
05-03-2011 06:06:48
Hey MOGRE Community,
I've read the basic tutorials on MOGRE and have really found them to shed little to no light on my questions. Instead, they seem to take the "show you code and tell you that they'll explain it in detail later but never do" approach.
Here's my ultimate goal:
I want to be able to import a mesh file and attach it to an entity. This raises several questions:
What is the basic process of loading resources into MOGRE?
I've read the wiki post and I understand kinda the lifecycle of a resource, but can someone shed some more light on this for me?
Where do I go from there?
Where do I head after I load the mesh? There are so many different objects in MOGRE (Mesh, ManualObject, etc.), I'm a bit overwhelmed and I feel like I chicken without a head.
I'm assuming ResourceGroupManager, MeshManager and MeshSerializer have something to do with it.
From what I understand, after you create a mesh, you assign it a name with a string that is stored in some managing object. Then, you can use sceneManager to create an entity by loading the mesh name you assigned earlier. Am I correct?
If someone can answer this, can they provide code with this as well as an explanation of each line?
Thanks guys, you've been so helpful so far with my introduction into MOGRE. It's really hard to find MOGRE-specific documentation and I usually end up looking towards the OgreWiki for more information. Perhaps when I learn a little more, I'll be able to contribute as well.
I've read the basic tutorials on MOGRE and have really found them to shed little to no light on my questions. Instead, they seem to take the "show you code and tell you that they'll explain it in detail later but never do" approach.
Here's my ultimate goal:
I want to be able to import a mesh file and attach it to an entity. This raises several questions:
What is the basic process of loading resources into MOGRE?
I've read the wiki post and I understand kinda the lifecycle of a resource, but can someone shed some more light on this for me?
Where do I go from there?
Where do I head after I load the mesh? There are so many different objects in MOGRE (Mesh, ManualObject, etc.), I'm a bit overwhelmed and I feel like I chicken without a head.
I'm assuming ResourceGroupManager, MeshManager and MeshSerializer have something to do with it.
From what I understand, after you create a mesh, you assign it a name with a string that is stored in some managing object. Then, you can use sceneManager to create an entity by loading the mesh name you assigned earlier. Am I correct?
If someone can answer this, can they provide code with this as well as an explanation of each line?
Thanks guys, you've been so helpful so far with my introduction into MOGRE. It's really hard to find MOGRE-specific documentation and I usually end up looking towards the OgreWiki for more information. Perhaps when I learn a little more, I'll be able to contribute as well.