A MOGRE newcomer asks for tutoirals

Kwang1imsa

09-03-2011 17:30:41

Hey MOGRE community.

Last time I bombarded you guys with questions about resources, Beauty (being a fantastically dedicated member) took the time to write out an in-depth tutorial and then post it on the wiki.

Well I have a lot more questions and I thought, might as well list them (and keep listing them) here. Then, maybe some experienced members can write a few articles explaining these and that will not only help me, but future newcomers as well.

To get started off:

A tutorial on Materials (linked from the resources page?)
Main Questions:
-After it is loaded into your resources, how do you re-calling them and applying them to an entity?
-Perhaps more in-depth information about materials, their properties, and etc.

As I go through my MOGRE misadventures, I'll keep posting questions I run into. I usually search the existing wiki/forums for answers, but if I can't find one that sheds light on what I need, I'll post it up here. However, if you find some post/article that already contains the answer, please redirect me.

Beauty

24-04-2011 13:30:42

Beauty (being a fantastically dedicated member) took the time to write out an in-depth tutorial and then post it on the wiki
Thanks for your compliment. :D
I don't remember to this. Can you give me a link, please?

I never applied materials to a mesh by code.
A few information and several related links I added to the Material page of the wiki:
http://www.ogre3d.org/tikiwiki/-Material

But I applied materials to ManualObjects. (for dynamic object creation)
If you need such information, I added many details here:
http://www.ogre3d.org/tikiwiki/ManualObject

how do you re-calling them
When a material was loaded to the MaterialManager, you need only its (unique) name for access.
If you want to create or modify a material, you need access to the material properties. Only in this case you need to get a material pointer (type MaterialPtr).
The call is MaterialManager.GetMaterial() or similar.

A small example for material creation by code I published on this wiki page:
http://www.ogre3d.org/tikiwiki/MOGRE+Line+3D

As I go through my MOGRE misadventures, I'll keep posting questions I run into.
It's good to know experience reports from Mogre newcomers. Feel free to post problems, successes, suggestions, etc.

Beauty

24-04-2011 13:43:44

Oh, I found a similar forum topic:
viewtopic.php?f=8&t=14170

AliAkdurak

25-04-2011 08:36:27

A tiny and late advice for learning materials is first decide how much you want to learn :). It goes from simple color and texture to Vertex / Pixel / Geometry Shaders! For simple color and texture I used the main manual it has extremely large coverage of materials and how they work. Get YAOSE before you get headaches of writing materials. For shaders JaJadoo's shader guide is a very good starting point but that subject is a profession all by itself. Again if you can check the manual for how entities behave it explains the basics very good. I know this post may not help a lot but this is how I learned the material concept and it takes a lot of work :).