Author Topic: Material Help?  (Read 1273 times)

Offline FeralHeartsRocks

  • Forum Newcomer
  • *
  • Posts: 1
  • Floof-O-Meter: 0
    • View Profile
Material Help?
« on: January 28, 2014, 01:03:04 am »
So I would like to put two separate materials on the same object in different spots. How would I do this?

Offline Shazadah

  • Dedicated Supporter
  • ***
  • Posts: 259
  • Country: us
  • Floof-O-Meter: 11
  • Call me NaruWolf
    • http://shay-wolf.deviantart.com
    • https://www.youtube.com/user/Mid
    • View Profile
Re: Material Help?
« Reply #1 on: January 28, 2014, 01:38:53 am »
Well first of all, to make a texture material in general if you do not know how to do that, you will need the code below for a basic (not transparent or animated) texture:

Code: [Select]
material [Nameoftexturehere]Mat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture [Imagenamehere].jpg
         }
      }
   }
}

[Nameoftexturehere]Mat<-- this is what you type into the material box located below the mesh box in Object Maker

[Imagenamehere]<-- Can be either .jpg or .png, this is the name of the texture's image which is gradually a 512x512 image, I recommend sticking to those dimensions to avoid stretching in the texture once its applied to the mesh of your choice

Notepad is recommended for writing codes like this, and once you've got the code the way you want it, you go to save and save it into (C:)>FeralHeart>media>materials as a .material file, however the location of the image does not matter as long as its somewhere within your FeralHeart files


Second of all, I am not too sure about what you mean by applying two separate textures to two different places on one mesh, perhaps some more details? Though I will take a guess, and say maybe try putting the two textures into one image and save it as a .jpg or .png, put into a code like the one above using Notepad and see how it turns out in Object Maker. Experiment around

Hope this was somewhat of a help...