Author Topic: Material Help?  (Read 1259 times)

Offline IcyFrost

  • Finest Floof
  • ***
  • Posts: 672
  • Floof-O-Meter: 25
  • what is life? life is cheese.
    • View Profile
Material Help?
« on: February 22, 2014, 09:36:07 pm »
I want to make a custom material for an already existing in-game object, but I don't know what to save it as (using GIMP) or how to edit the coding (using Notepad). I don't want to make a mesh itself, but I want to make a material for an already existing mesh. Or would I need Blender or Python instead of GIMP?

Sorry if I repeated myself.... (tired x.x)

Because yes, everyone needs Canada in their signatures.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Material Help?
« Reply #1 on: February 23, 2014, 01:14:45 am »
Making a new material is very simple, all you need is the image and an existing material file.

If you were to make a rock texture, go to your Feralheart > Media > Objects > Rocks and copy and paste the one of the .material files. Re-name it to whatever you please. Then open it up in Notepad.

Delete everything there and just leave this script inside:

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

The parts I've highlighted in red are the parts you need to change. The first one is the material name, so what you would need to type into Object Maker to make the new texture show.

The next part is the image. Type in your image name and format, remember all capital letters if used. Not sure if the code still works if you change the image format to .png.

This script is very basic, you will have to explore the Feralheart folder if you want to make an animated texture. I hope this helps :)

« Last Edit: February 23, 2014, 01:23:46 am by Ingredient »
Will be inactive due to work and exams.

Offline IcyFrost

  • Finest Floof
  • ***
  • Posts: 672
  • Floof-O-Meter: 25
  • what is life? life is cheese.
    • View Profile
Re: Material Help?
« Reply #2 on: February 23, 2014, 01:55:17 am »
Thanks, that did help but I have one more question (xD). What should I name the file while saving it, and what format do I put it in? Should I save it as (name)Mat?
I hate to ask... ._.
« Last Edit: February 23, 2014, 02:19:37 am by IcyFrost »

Because yes, everyone needs Canada in their signatures.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Material Help?
« Reply #3 on: February 23, 2014, 02:04:55 am »
If you want you can, it still works either way. Sometimes if the name is really long I don't worry about adding the Mat at the end but if it's something like "GreenShiny" then I will add Mat at the end - GreenShinyMat.

Will be inactive due to work and exams.

Offline IcyFrost

  • Finest Floof
  • ***
  • Posts: 672
  • Floof-O-Meter: 25
  • what is life? life is cheese.
    • View Profile
Re: Material Help?
« Reply #4 on: February 23, 2014, 02:24:28 am »
Thanks! =)

Because yes, everyone needs Canada in their signatures.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Material Help?
« Reply #5 on: February 23, 2014, 02:46:14 am »
No problem :)
Will be inactive due to work and exams.