Feral Heart

Help & Guidance => Game Help => Topic started by: Lone-Wolf on July 31, 2011, 02:47:29 pm

Title: How do you make a material?
Post by: Lone-Wolf 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?
Title: Re: How do you make a material?
Post by: Ruby1234 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.
Title: Re: How do you make a material?
Post by: Lone-Wolf on July 31, 2011, 03:10:46 pm
AWESOME!! THANKS!! Ur meh new favorite person :D
Title: Re: How do you make a material?
Post by: Ruby1234 on July 31, 2011, 03:15:43 pm
Your welcome and thanks. <3 Glad I could help. ;)