Author Topic: How do you make a material?  (Read 1877 times)

Lone-Wolf

  • Guest
How do you make a material?
« on: July 31, 2011, 02:47:29 pm »
Im making a map and im trying to make a road. I have made it, but when I save it as Road.material GIMP says  'The given filename does not have any known file extension. Please enter a known file extension or select a file format from the file format list.' what am I doing wrong? Anyone know how to help?

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: How do you make a material?
« Reply #1 on: July 31, 2011, 03:02:21 pm »
Images aren't materials. Images are textures. Save your image as (you MUST save it as this for it to work) RoadTex, and make it a PNG file. (MUST BE A PNG) What you do is go to your materials folder, right click and drag a material file and select copy here (in the same folder) and it will make a copy of that material. Now, re-name it to Road. Then open it in notepad. Erase everything in there, and put this in:
Code: [Select]
material RoadMat
{
        technique
       {
               pass
               {
                    cull_hardware none
                    cull_software none
                    texture_unit
                    {
                      texture RoadTex.png
                     }
               }
       }
}
Now go in-game. Go to object maker and load whatever you are putting this texture on. In the MATERIAL blank, put RoadMat and it will load, if you did everything above correctly.

Lone-Wolf

  • Guest
Re: How do you make a material?
« Reply #2 on: July 31, 2011, 03:10:46 pm »
AWESOME!! THANKS!! Ur meh new favorite person :D

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: How do you make a material?
« Reply #3 on: July 31, 2011, 03:15:43 pm »
Your welcome and thanks. <3 Glad I could help. ;)