Author Topic: Texturing... Help!  (Read 1760 times)

Offline YukiRozu

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 0
    • View Profile
Texturing... Help!
« on: March 18, 2014, 02:19:59 pm »
So doing a map for an Rp, and my friend told me that I could retexture objects with the texture of the ground. So we went along doing that. Only to export the map several days later and find out that the 'Material cannot be found'...

I don't know what to do xD Been working on this map for several days straight.. What in the world did I do wrong! xD

Offline Bawfle

  • Courage is not the absence of fear but rather the judgement that something is more important than fear.
  • Elder Grey Pelt
  • ****
  • Posts: 3,147
  • Country: gb
  • Floof-O-Meter: 344
  • The Zambisi Pride
    • View Profile
Re: Texturing... Help!
« Reply #1 on: March 18, 2014, 03:27:22 pm »

To re-texture objects in the Object Make you need to  type in the material in the "Mat" box correctly. You can find out different material names by going to FeralHeart\Media\Objects and search through folders until you find the material/texture you want. If you want to find out what the material name is you need to open your object's .material file with Notepad. You can do this by right-clicking the .material file and choosing the "Open With" option then browse for the program Notepad. When you open a material file the first line contains the name you would type exactly into the Material box in Object Maker.

If I wanted a rock texture I would need to go to the Rocks folder and open the rock.material file and I would see something like this:

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

The letters in red is what you would type into the Material box in Object Maker.


Pixel Doll Commissioned and Coloured by RingoKioko
Inactive // Retired // Gone

Offline YukiRozu

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 0
    • View Profile
Re: Texturing... Help!
« Reply #2 on: March 18, 2014, 03:37:49 pm »
I did that for the cave that I worked on.

material Material.001/SOLID/TEX/ice.jpg
{
   technique
   {
      pass
      {
         diffuse 0.800000 0.800000 0.800000
         specular 0.110000 0.110000 0.110000 3.750000
         texture_unit
         {
            texture greensand.jpg
         }
      }
   }
}
material Material.001/SOLID/TEX/ice2.jpg
{
   technique
   {
      pass
      {
         diffuse 0.800000 0.800000 0.800000
         specular 0.110000 0.110000 0.110000 3.750000
         texture_unit
         {
            texture star12.jpg
         }
      }
   }
}


Is what's typed out, all the Png and the jpg is correct for the image and things like that.

AlphaEclipse

  • Guest
Re: Texturing... Help!
« Reply #3 on: March 18, 2014, 03:44:53 pm »
You have to add the new texture after "texture" in the .material:

Quote
Let me show you an example to help. Let's say we made a texture, and we want to put it on an object.
Let's just use this code sturf in notepad for our material, eh?

Code: [Select]
material [MATERIALNAMEYOUWANT]
{
technique
{
pass
{
alpha_rejection greater 128
cull_hardware none
cull_software none

texture_unit
{
texture [TEXTURENAME].png or .jpg, any type of file really like .gif
}
}

}

}

Take away alpha_rejection greater 128 if you want, if the object has no transparency really. You can leave it there though. ^^
There are other object material codes too, but let's just load the material name in Object Maker after adding a mesh to the scene.
I hope this made sense and well... helped. >_<

Offline YukiRozu

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 0
    • View Profile
Re: Texturing... Help!
« Reply #4 on: March 18, 2014, 04:44:49 pm »
I do not quite understand what you mean. I apologize xD I've been working on this map without any breaks, other then a few hours of sleep.


Offline YukiRozu

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 0
    • View Profile
Re: Texturing... Help!
« Reply #5 on: March 18, 2014, 05:58:44 pm »
I figured out what was wrong. It was a very very derpy me xD I apologize for everything.