Author Topic: Material Troubles  (Read 1570 times)

Offline Thandaya_Jamana

  • Forum Newcomer
  • *
  • Posts: 7
  • Floof-O-Meter: 0
    • View Profile
Material Troubles
« 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?

Thierry

  • Guest
Re: Material Troubles
« Reply #1 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.