Author Topic: How do i make my own Materials?  (Read 2695 times)

Offline paroxysm12

  • Curious Wanderer
  • *
  • Posts: 26
  • Floof-O-Meter: 0
  • Tepig's little lover!
    • View Profile
How do i make my own Materials?
« on: February 09, 2013, 06:36:11 am »
How do i make my own Materials? I have GIMP btw so i can only do it on gimp.I dont have photoshop.please help.I need this Material for a map.Im trying too make a Snow Material for my objects but i dont know how too make a Material.

Offline Tokoa

  • Pack & Pride Representative
  • ****
  • Posts: 1,005
  • Country: 00
  • Floof-O-Meter: 33
  • Orange.
    • View Profile
    • http://tokoas.deviantart.com/
Re: How do i make my own Materials?
« Reply #1 on: February 09, 2013, 06:41:56 am »
Well I'm not sure how to make them but there are materials made by other players in the addons and mods. Have you looked there?

Icon by Aveo and sig by WingsandFeathers on DeviantArt.

Offline paroxysm12

  • Curious Wanderer
  • *
  • Posts: 26
  • Floof-O-Meter: 0
  • Tepig's little lover!
    • View Profile
Re: How do i make my own Materials?
« Reply #2 on: February 09, 2013, 06:48:00 am »
yes but i cant even find a snow material.

Offline Tokoa

  • Pack & Pride Representative
  • ****
  • Posts: 1,005
  • Country: 00
  • Floof-O-Meter: 33
  • Orange.
    • View Profile
    • http://tokoas.deviantart.com/
Re: How do i make my own Materials?
« Reply #3 on: February 09, 2013, 07:00:27 am »
You can find some in your FeralHeart folder. Also there are some snow items that may come with materials of there own here - http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=11142.0
« Last Edit: February 09, 2013, 07:03:37 am by Tokoa »

Icon by Aveo and sig by WingsandFeathers on DeviantArt.

Offline paroxysm12

  • Curious Wanderer
  • *
  • Posts: 26
  • Floof-O-Meter: 0
  • Tepig's little lover!
    • View Profile
Re: How do i make my own Materials?
« Reply #4 on: February 09, 2013, 07:04:37 am »
i looked but theres no snow material.

Offline Tokoa

  • Pack & Pride Representative
  • ****
  • Posts: 1,005
  • Country: 00
  • Floof-O-Meter: 33
  • Orange.
    • View Profile
    • http://tokoas.deviantart.com/
Re: How do i make my own Materials?
« Reply #5 on: February 09, 2013, 07:12:25 am »
Like these here?

Icon by Aveo and sig by WingsandFeathers on DeviantArt.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: How do i make my own Materials?
« Reply #6 on: February 09, 2013, 10:10:46 am »
Just like Tokoa has mentioned, you can use those four images for an example :)

To make an actual material though you will need to copy and paste an already existing .material file and re-name it.

Let's open up the Rocks folder for example, Feralheart>> Media>> Objects>> Rocks. See that rock.material file? Copy and paste it then rename it to something like snowobjects for example.
Once you've done that you will need to open it with a program called Notepad.

Right-click the snowobjects.material file and select Open With. Then you should be able to choose the program Notepad. If you only have the Open option you may get a box like this:



Just choose the Select from a list of installed programs option and you should be able to choose Notepad from there :)

Once opened in Notepad, this is what you'll see.

Code: [Select]
material rockMat
{
technique
{
pass
{
ambient 0.1 0.1 0.1
cull_hardware none
cull_software none
texture_unit
{
texture rockTex.jpg
}
}
}
}
material rockMat1
{
technique
{
pass
{
ambient 0.1 0.1 0.1
cull_hardware none
cull_software none
texture_unit
{
texture rockTex1.jpg
}
}
}
}
material rockMat2
{
technique
{
pass
{
ambient 0.1 0.1 0.1
cull_hardware none
cull_software none
texture_unit
{
texture rockTex2.jpg
}
}
}
}
material rockMat3
{
technique
{
pass
{
ambient 0.1 0.1 0.1
cull_hardware none
cull_software none
texture_unit
{
texture rockTex3.jpg
}
}
}
}
material rockMat4
{
technique
{
pass
{
ambient 0.1 0.1 0.1
cull_hardware none
cull_software none
texture_unit
{
texture rockTex4.jpg
}
}
}
}
material rockMat5
{
technique
{
pass
{
ambient 0.1 0.1 0.1
cull_hardware none
cull_software none
texture_unit
{
texture rockTex5.jpg
}
}
}
}
material rockMat6
{
technique
{
pass
{
ambient 0.1 0.1 0.1
cull_hardware none
cull_software none
texture_unit
{
texture rockTex6.jpg
}
}
}
}

Of course these are the materials for all the rock textures, so you can delete five of them so you're left with one.

Before we go ahead to the next bit you should choose the image you want and rename it to something that's easy to remember and find. Copy the image of the snow texture and paste it in the Rocks folder with your .material file and rename it.

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

Now we can start editing :D Don't worry, it's really simple to understand ^^

We are making a new material name, how about SnowMat for example. This will be the name we will use to type in Object Maker to get the actual texture to show.

Here we will just type in the image name and format. Replace the rockTex.jpg with the image you've pasted and renamed. If you're using the textures from your terrains folder than leave the .jpg, if you downloaded one off the internet, make sure you know if it's a .jpg or .png.

We should end up with a slightly changed .mat file.

material SnowMat
{
   technique
   {
      pass
      {
         ambient 0.1 0.1 0.1
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture snowimageTex.jpg
         }
      }
   }
}

Lastly go File>>Save, not Save as. Now, if we open up Feralheart and load a mesh in Object Maker we should be able to use the new texture. Select the object and go to the Mesh tab, in the Material box type in the new material name. For example I would type SnowMat then I'd hit Enter on my keyboard.

Hopefully that should help you make a material, if you need any further assistance please let me know :)
Will be inactive due to work and exams.

Offline paroxysm12

  • Curious Wanderer
  • *
  • Posts: 26
  • Floof-O-Meter: 0
  • Tepig's little lover!
    • View Profile
Re: How do i make my own Materials?
« Reply #7 on: February 09, 2013, 10:12:55 am »
yes like those and thanks

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: How do i make my own Materials?
« Reply #8 on: February 09, 2013, 10:13:46 am »
No problem, please let me know how it goes :)
Will be inactive due to work and exams.