🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Continuing Materials

Published June 22, 2008
Advertisement

Materials in XML

After spending some time working on the XML format for the material system, I have arrived at quite a different format than I had originally envisioned. Even so, after the third or fourth revision I feel fairly comfortable with it and it seems pretty intuitive to put together.

I have also been thinking about the term 'material' and I think SimmerD was right - it doesn't really fit completely in this context. The reason being that my materials actually define the shaders as well, which allow for geometry manipulations. I think the standard term 'material' typically refers to something like a BRDF. Even so, I can't think of a better term to use so the current implementation is a "CMaterialDX9".

Once the XML file loader is complete, then I can begin to formalize several material types. It has been a long, long time that I have been manually loading each of the parameters and textures and views for each object - finally having a unified and standard material definition (data driven nonetheless) will be a great improvement in efficiency.
Previous Entry Materials
Next Entry Hieroglyph 3
0 likes 1 comments

Comments

Ashkan
I also use the term "Material" but I've been thinking about the alternatives. What about EffectInstance? A material is basically an effect + configurable parameters.
July 06, 2008 05:37 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement