Feral Heart

Help & Guidance => Game Help => Topic started by: Thandaya_Jamana on November 28, 2011, 01:52:19 am

Title: Material Troubles
Post by: Thandaya_Jamana on November 28, 2011, 01:52:19 am
Ok, I know how to make and apply meshes and collisions, the only thing that I just can't figure out is how to apply materials to my meshes.  Whenever I type the name, or nameMat, or name.material, or namemat, and whatever folder I put the file in, it just doesn't work! Any suggestions?
Title: Re: Material Troubles
Post by: Thierry on November 28, 2011, 08:46:40 pm
The material name you need to put is not the file name.

if you have a file named name.material, then open this file in notepad and you will find something like this:


material yourmaterialnameishere
{
   technique
   {
      pass
      {
         ambient 0.588235 0.588235 0.588235 1
         diffuse 0.588235 0.588235 0.588235 1
         specular 0 0 0 10 0
         cull_hardware none
         cull_software none
                        alpha_rejection greater_equal 128

         texture_unit
         {
            texture cuerda.png
         }
      }
   }
}


i have put some letters in red, they are the material name.
write this name while you are selecting your mesh.