Feral Heart

Help & Guidance => Game Help => Topic started by: Shenzai on August 25, 2011, 10:10:04 pm

Title: I can't change the texture of an object! [FIXED]
Post by: Shenzai 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 (http://buttonslady927.blogspot.com/2011/08/to-z-map-tutorial-object-maker-1-of-2.html). Am I just being stupid?

Thank you!


Title: Re: I can't change the texture of an object!
Post by: Jayfeather55 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.
Title: Re: I can't change the texture of an object!
Post by: Shenzai 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!
Title: Re: I can't change the texture of an object!
Post by: Jayfeather55 on August 26, 2011, 12:01:34 am

Your welcome :3