Author Topic: Rawr. This time it's Textures!  (Read 782 times)

Offline SpringLeaf

  • Experienced Traveler
  • **
  • Posts: 224
  • Floof-O-Meter: 13
  • Mysterious Seeker
    • View Profile
    • Bramble and Blossom
Rawr. This time it's Textures!
« on: July 14, 2013, 08:39:16 pm »
Ok, so I want to make mai own textures. Please tell me how and where to place them. Thanks, Kitten.
[size=70]I am not always online.
Please message me, I would love to make friends.[/size]

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Rawr. This time it's Textures!
« Reply #1 on: July 15, 2013, 02:20:25 am »
Where to place them depends on what you are planning to use the texture for, it doesn't really matter but it does help when you need to find them. I'll show you how to make a texture for a rock for example, so we wil l be using the Rocks folder, you can find it in the Media folder :)

The programs I would recommend using would be Notepad++ and GIMP  or Photoshop.

So go to your Rocks folder and copy and paste one of the texture images and do the same to the rock.material file. You should rename these pasted files. For this example I'm going to rename both pasted files as "LittleRock"

Now this is where those programs I mention come in handy. You can use GIMP/Photoshop to edit the image you renamed. Make sure you keep it's format as .jpg.

With Notepad++, we will use it to open the "LittleRock".material file. Right-click>> Open/Open With>> Notepad++. What you will see is all of the rock textures:

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
}
}
}
}

You don't need them all, so remove all but the first one. Which will give you this:

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

Rename it to whatever you like, I'm going to change it to "LittleRockMat" to match the image. This chooses the texture name (what to type in once you go to Object Maker)

Your new/editted image's name is you type in here, remember to leave the .jpg at the end of the file name.

LitteRock.jpg


Once you've changed those two areas then go File>> Save and you've just made a texture!

Go to Object Maker>> Mesh and load a rock or whatever you want, then type in the material name in the Material box. So I will type in LittleRockMat and that will change it to the texture I created.

Let me know if you have any questions :)
Will be inactive due to work and exams.