Author Topic: How do I re-texture items?  (Read 1017 times)

Offline Chapawee

  • Dedicated Supporter
  • ***
  • Posts: 253
  • Floof-O-Meter: 17
    • View Profile
How do I re-texture items?
« on: October 13, 2013, 05:19:53 am »
How do I re-texture items? For example, I wanted to make a poster that says 'Welcome to Chapawee's Den." This may seem like a silly question, but how do I do things like this?
Moving to my new account: Windstrider. Hopefully everybody can find it ok!

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 re-texture items?
« Reply #1 on: October 13, 2013, 06:46:33 am »
For example I'll use a rock and make a texture for that, you can also use the rock.material file for this but just rename it.

1. Go to the Feralheart folder>> Media>> Objects>> Rock and copy and paste one of the textures.

2. Open the pasted texture using GIMP or another program and create your new image.

3. After you've finished making your texture save it as e.g TestRock.jpg the .jpg is important. Not all textures are .jpg but since it works with the .material file leave it as that.

4. Close it and go back to the Rock folder. See the material file (rock.material) open it up in Notepad (Right click>> Open/ Open with>> Notepad) You can also use Notepad++ for this.


5. Now the code should look something like this:

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

Copy and paste this bit just underneath and delete the rest:

material rockMat6
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture rockTex6.jpg
         }
      }
   }
}


material rockMat6

This is the name of the material in Object Maker. You can change it to whatever you want but for now call it rockMat7. Erase the rockMat6 and change it to rockMat7

texture rockTex6.jpg what you called your texture you type in here. Erase the rockTex6.jpg and replace it with the texture you made.

The material is done so save it by going to File>> Save. Open FH and go to Object Maker. Load the mesh you want to use and go to the tab called "Mesh" and click the object until the white border appears around it. When the border appears in the material box where it says rockMat, change it to the material name you made. The rock should change from its original texture to its new one made by you.

I hope this helps :)
« Last Edit: October 13, 2013, 06:52:29 am by Ingredient »
Will be inactive due to work and exams.

Offline Chapawee

  • Dedicated Supporter
  • ***
  • Posts: 253
  • Floof-O-Meter: 17
    • View Profile
Re: How do I re-texture items?
« Reply #2 on: October 13, 2013, 05:35:27 pm »
Ok, thanks! I just re-textured a ton of items. :3
Moving to my new account: Windstrider. Hopefully everybody can find it ok!

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 re-texture items?
« Reply #3 on: October 13, 2013, 07:20:02 pm »
Lol, no problem ^^
Will be inactive due to work and exams.