Author Topic: Grass texture on object  (Read 863 times)

Offline Cannibalistic

  • Curious Wanderer
  • *
  • Posts: 19
  • Floof-O-Meter: 0
    • View Profile
Grass texture on object
« 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.

Offline greenart6

  • The Chicken God
  • Honored Hero
  • *****
  • Posts: 5,475
  • Country: us
  • Floof-O-Meter: 143
  • Spooky glowy ghost dogs
    • WornSkateboard
    • View Profile
Re: Grass texture on object
« Reply #1 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! ^^

Offline PoisonIVy12

  • Dedicated Supporter
  • ***
  • Posts: 274
  • Floof-O-Meter: 13
  • Colin the Cornhusky is Life
    • View Profile
    • Professor Flannigan's Lab
Re: Grass texture on object
« Reply #2 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.
Find me ingame as PoisonIVy12!

Cy, the eccentric rebel against the world. Oh, and wordsmith. :D