Brainache
Member
|
Material maps
Hello,
Can specular, bump, and occlusion maps be added to a material dynamically? (Does esenthel use occlusion maps?)
Example:
I am using the following to set the diffuse and normal maps, but I dont see anything similar for spec & bump.
mat.diffuse=Gfxs(gfxName);
mat.normal=Gfxs(norgfxName)
I've read the mesh editor documentation and have maps with _s and _b appended, but do not see any results...
Thanks
|
|
04-18-2009 04:32 PM |
|
Esenthel
Administrator
|
Re: Material maps
Hi,
You should create a material in Mesh Editor.
And not by adding "_b _s " but by adding ".b .s" to the file name.
You can create multiple materials, and then in the game dynamically change the materials for a particular mesh, via 'setMaterial'
|
|
04-18-2009 05:47 PM |
|