Feral Heart

Help & Guidance => Game Help => Topic started by: IcyFrost on February 22, 2014, 09:36:07 pm

Title: Material Help?
Post by: IcyFrost 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)
Title: Re: Material Help?
Post by: Ingredient 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 :)

Title: Re: Material Help?
Post by: IcyFrost 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... ._.
Title: Re: Material Help?
Post by: Ingredient 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.

Title: Re: Material Help?
Post by: IcyFrost on February 23, 2014, 02:24:28 am
Thanks! =)
Title: Re: Material Help?
Post by: Ingredient on February 23, 2014, 02:46:14 am
No problem :)