engines and materials

Started by
1 comment, last by Daaark 18 years, 6 months ago
In many 3d engines I've seen Material associated with 3d objects, and I'm a little iffy as to the purpose of a Material class. Does it just start out as an abstract class and is then derived for textures and shaders? I'm thinking textures in particular, since, in my own engine, that's one of the next things on my mental ToDo list.
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
Advertisement
Well a material class would hold information about the appearance of a suface. So in basic engines it would be just a texture or a series of textures and in more advanced engines you would introduce shaders etc. If you have n number of objects in the scene, u can sort them by material etc, since each material object would have a name.

ace
Materials are good for saving preset combinations of textures / light maps / etc.. You can loop through materials for rendering, and not by textures.

This topic is closed to new replies.

Advertisement