Author Topic: I can't change the texture of an object! [FIXED]  (Read 1393 times)

Offline Shenzai

  • Familiar Grounds Dweller
  • **
  • Posts: 64
  • Floof-O-Meter: 5
  • The Artist Fennec Fox!
    • View Profile
    • I'm on DeviantArt!
I can't change the texture of an object! [FIXED]
« on: August 25, 2011, 10:10:04 pm »
I don't know what am I doing wrong.
I'm trying to make a Dark fern for my Dark map, but the texture doesn't want to appear on the object!

First I edited the original fern texture to my DarkFern texture.
Then I copied the fern.material and renamed it to 'DarkFernMat'. I edited it so it looks like this:
Quote
material DarkFernMat
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         diffuse 0.5 0.5 0.5 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            DarkFern.png
         }
      }
   }
}
Then I placed DarkFernMat.material, fern1.mesh and DarkFern.png into my_objects.
When I load the mesh in the maker, it appears like the original green fern. So, I type 'DarkFernMat' in the material space and all what appears is a black and yellow texture.

I don't know what's happening! I followed this tutorial. Am I just being stupid?

Thank you!


« Last Edit: August 26, 2011, 02:46:45 am by Shenzai »

Offline Jayfeather55

  • Community Champion
  • ****
  • Posts: 1,609
  • Country: us
  • Floof-O-Meter: 165
  • It's been 6 years?!
    • View Profile
Re: I can't change the texture of an object!
« Reply #1 on: August 25, 2011, 11:09:32 pm »
material DarkFernMat
{
        transparency_casts_shadows off
        receive_shadows off
   technique
   {
      pass
      {
         diffuse 0.5 0.5 0.5 1
                        cull_hardware none
                        cull_software none

                        alpha_rejection greater_equal 128

                        texture_unit
                        {
            texture DarkFern.png
              }
      }
   }
}

You didn't have the word "texture" before the image name D:

That should work now.
« Last Edit: August 25, 2011, 11:11:24 pm by Jayfeather55 »

Offline Shenzai

  • Familiar Grounds Dweller
  • **
  • Posts: 64
  • Floof-O-Meter: 5
  • The Artist Fennec Fox!
    • View Profile
    • I'm on DeviantArt!
Re: I can't change the texture of an object!
« Reply #2 on: August 25, 2011, 11:49:23 pm »
OhMyDog! :o How silly I am! hehe, I might have erased it by mistake, thinking it was still the name I had to replace XD
I knew it would be something very stupid...
Thank you so much! ;D Now it works perfectly!

Offline Jayfeather55

  • Community Champion
  • ****
  • Posts: 1,609
  • Country: us
  • Floof-O-Meter: 165
  • It's been 6 years?!
    • View Profile
Re: I can't change the texture of an object!
« Reply #3 on: August 26, 2011, 12:01:34 am »

Your welcome :3