Feral Heart

Help & Guidance => Game Help => Topic started by: Cannibalistic on May 23, 2015, 02:00:14 pm

Title: Grass texture on object
Post by: Cannibalistic on May 23, 2015, 02:00:14 pm
Hey there,
I'm making a map for a pack, where I'd like an 'underground' den.
So, I wanted to retexture a den with the grasstex I use in my map, which is 'Wgrasstex15'.
Sadly, I have don't have a clue how to do that.
Could someone help me out? I'd really appreaciate it.
Thank youuu.
Title: Re: Grass texture on object
Post by: greenart6 on May 23, 2015, 04:33:38 pm
I'd just go into the 'my_objects' folder and find a .material file, copy and paste the file so you have a different file, rename it, then just open that with Notepad or another word program. You'd just have to change a few things in there.

Quote
material rockMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture rockTex.jpg
         }
      }
   }
}

Change the first red line into what you'd like the Material to be called. (ex. "GrassTexture") The second red line is the name of the texture. (Ex. "Wgrasstex15.jpg", if the file is .png just change it to "Wgrasstex15.png")

Quote
material GrassTexture1
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture Wgrasstex15.jpg
         }
      }
   }
}

Just save the file, go into Object Maker and load up the file, and change the Material to whatever the first red line is. Hope this helps! ^^
Title: Re: Grass texture on object
Post by: PoisonIVy12 on May 27, 2015, 07:45:10 pm
So that's how it's done... I shall remember this the next time I try to make new building materials.