Feral Heart

Help & Guidance => Game Help => Topic started by: Bluminescent on December 04, 2012, 12:18:24 am

Title: Billboards?
Post by: Bluminescent on December 04, 2012, 12:18:24 am
How do I make a billboard? I mean.. it's confusing. Seriously how? o3o
Title: Re: Billboards?
Post by: Thierry on December 04, 2012, 12:21:08 am
You can load any material as billboard, just type the material name.

You need to open any .material file with notepad and search for the material name.
The material name comes after the keyword material just like this:

material lights
{
   technique
   {
      pass
      {
         ambient 0.588235 0.588235 0.588235 1
         diffuse 0.588235 0.588235 0.588235 1
         specular 0 0 0 10 0

         texture_unit
         {
            texture greenlights.jpg
         }
      }

   }
}
Title: Re: Billboards?
Post by: Bluminescent on December 04, 2012, 12:34:11 am
How do I make a material file? I want to make a Justin Bieber billboard for a troll map really bad. X3
Title: Re: Billboards?
Post by: Bluminescent on December 04, 2012, 12:38:40 am
Nvm. I'll test this.
Title: Re: Billboards?
Post by: Thierry on December 04, 2012, 12:46:16 am
take a new blank text file and add a code like this, just change the material name and the image file (marked in white):

material JustinBieber
{
   technique
   {
      pass
      {
         ambient 0.588235 0.588235 0.588235 1
         diffuse 0.588235 0.588235 0.588235 1
         specular 0 0 0 10 0

         texture_unit
         {
            texture Justin.jpg
         }
      }
   }
}

Then save it as a .material file. Be sure you can see all file extensions, and the file name end with .material  (not .txt or .material.txt )
Title: Re: Billboards?
Post by: Bluminescent on December 04, 2012, 12:47:26 am
Ok. Thanks!