In order to make this happen, the shaders need attached to the textures somehow. In NWShader, I used material files to handle this. The concept is each mod, hak or texture pack has a file listing textures, the shader to be used, and any settings.
What I'm trying to figure out now is the syntax for those. The current options are:
Simple XML form:
<Material texture="flat_texture.dds" effect="bump.fx">
<Parameter name="bump_texture" value="bump_texture.dds" />
</Material>Simple curly form:
material "flat_texture.dds"
{
effect = "bump.fx";
parameters
{
bump_texture = "bump_texture.dds";
}
}Since this system will be used most by artists, I'd like to get some feedback from you before going one way or the other.
I will be making simple tools, and potentially a Max plugin, to help handle this, but those all depend on which format is used. They also won't be out immediately, so there might be a short period where materials are written by hand.
Anyone have a preference between the above snippets?
Modifié par pkpeachykeen, 15 janvier 2012 - 10:47 .





Retour en haut






