Author Topic: can you make an objects material a texture?  (Read 1178 times)

Lone-Wolf

  • Guest
can you make an objects material a texture?
« on: October 12, 2011, 07:59:56 pm »
Im trying to make a tunnel, by using black on certain parts of the map and laying a flattened plateau over it, but i dont want it to be too noticable. So i went into object maker and im looking for a way to make a plateau with deepgreenGrass as its texture.. any help?

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: can you make an objects material a texture?
« Reply #1 on: October 13, 2011, 05:17:06 am »
Ok so i think ur saying u want the deepgreengrass from map maker to become a plateaus material in object maker yes?

If so well wat i would do is.....

1. Open up in GIMP or something a new tab 256x256, then copy and paste the grass into that box.
2. Save it as deepgreenGrassTex.jpg in watever folder in the Objects folder id save it in the Grass folder or Rocks folder.
3. Watever folder its in copy and paste the material file then open it up in Notepad.4.

4.
material GrassMat
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            texture grass.png
         }
      }
   }
}

Change this to watever u want. Wen u type this up in Object Maker the texture will show up for example greengrassMat
Type waat ur texture was here. So type deepgreenGrassTex.jpg like it was saved as.

Ok click save NOT save as then just close the thing. Open Object Maker in FH and bring the plateau or watever up. Then in the Material box type in greengrassMat. Then the texture should appear.

Is this wat u mean? Anyway i hope it helps
Will be inactive due to work and exams.