Better material organization
Posted: Wed Feb 03, 2010 12:35 pm
Ogre comes with plenty of useful materials / shaders, but finding / overview all is painful. I mean: Example.material has Examples/Robot which is a great sample to HW skinning, but it is at the middle of the file, and first I didn't think examples.material has it. Ok, Examples/Robot used in samples, but another examples:
- WoodPallet (in Example.material) don't even has the Examples/ prefix (and lot of materials in the file)
- Examples/ShowUV (Normal, ...): great for debug, wrote the same for myself, but I just figured out this is in the Example.material file. Not a huge work to write it, but if I has it why should I rewrite?
I would separate the material and compositor scripts as well.
The material collection should be an easily searchable and extensible one - to allow anybody to extend it for own use or to extend Ogre's core material-library. With a community like Ogre has a lot more material sample could exist if the structure is easy to understand and posting/broadcasting is simple and straightforward. I think this is a huge potential, but now it's hard to get what I'm looking for, and often I found weeks/months later a very similar material/shader I had to write in the Ogre-material-library (directory in the SDK), or in Wiki.
- WoodPallet (in Example.material) don't even has the Examples/ prefix (and lot of materials in the file)
- Examples/ShowUV (Normal, ...): great for debug, wrote the same for myself, but I just figured out this is in the Example.material file. Not a huge work to write it, but if I has it why should I rewrite?
I would separate the material and compositor scripts as well.
The material collection should be an easily searchable and extensible one - to allow anybody to extend it for own use or to extend Ogre's core material-library. With a community like Ogre has a lot more material sample could exist if the structure is easy to understand and posting/broadcasting is simple and straightforward. I think this is a huge potential, but now it's hard to get what I'm looking for, and often I found weeks/months later a very similar material/shader I had to write in the Ogre-material-library (directory in the SDK), or in Wiki.