Feral Heart

Help & Guidance => Game Help => Topic started by: xPuRfectDisastRx on October 23, 2012, 06:55:41 pm

Title: Re-Texturing Objects?
Post by: xPuRfectDisastRx on October 23, 2012, 06:55:41 pm
Hi, I have a Tv mesh I downloaded. I, however want to put a "show" on the Tv. I know how to edit it, but the thing is, I want four seperate Tvs with different shows. I'm confused on how to get it. The original Tv has 3 textures on it. front, back and sides. Help?
Title: Re: Re-Texturing Objects?
Post by: CreamWolf on October 23, 2012, 07:14:29 pm
What you could do is make the four different textures (usually of the one on the front, since this is where the screen is), and modify the material file so that there are four different materials in it as well, each pointing to a different texture.
Title: Re: Re-Texturing Objects?
Post by: Ingredient on October 24, 2012, 08:40:36 am
If you know what the image of the tv screen looks like then all you have to do is find the image in the my_objects folder and edit it. Since you want different images though you will need to make a new material file. Copy and paste the original one and open it up with Notepad (right-click, Open with, Installed Programs, Notepad).

material TelevisionMat
{
   transparency_casts_shadows on
   receive_shadows on
   technique
   {
      pass
      {
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
            texture tvimage.png
         }
      }
   }
}

The new image you made? Type it in here, including it's format.
To prevent texture problems, let's change the old material to a new one.

Title: Re: Re-Texturing Objects?
Post by: xPuRfectDisastRx on October 26, 2012, 10:20:50 pm
Thanks, but there are three there. It's like this:
material FrontOfTvTexture
{
   transparency_casts_shadows on
   receive_shadows on
   technique
   {
      pass
      {
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
       FrontOfTvTexture.png
         }
      }
   }
}
material BackOfTvTexture
{
   transparency_casts_shadows on
   receive_shadows on
   technique
   {
      pass
      {
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
      BackOfTvTexture.png
         }
      }
   }
}
material SideOfTvTexture
{
   transparency_casts_shadows on
   receive_shadows on
   technique
   {
      pass
      {
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
       SideOfTvTexture.png
         }
      }
   }
}

There could be two side ones, I don't remember.
Title: Re: Re-Texturing Objects?
Post by: Ingredient on October 26, 2012, 10:33:08 pm
Yes, i believe that would be the tv screen. So merely copy and paste that code a few times then change the material and image.png.

Code: [Select]
material FrontOfTvTexture
{
   transparency_casts_shadows on
   receive_shadows on
   technique
   {
      pass
      {
         diffuse 0.05 0.05 0.05 1
         cull_hardware none
         cull_software none

         alpha_rejection greater_equal 128

         texture_unit
         {
       FrontOfTvTexture.png
         }
      }
   }
}

Remember you need to copy the original image before editing, also remember to click Save (not Save as)
Title: Re: Re-Texturing Objects?
Post by: xPuRfectDisastRx on October 27, 2012, 06:40:34 pm
oh ok
Title: Re: Re-Texturing Objects?
Post by: Ingredient on October 27, 2012, 09:51:08 pm
Let me know if you have any problems or questions, i'm willing to explain it more clearly if you don't understand :)
Title: Re: Re-Texturing Objects?
Post by: xPuRfectDisastRx on October 30, 2012, 08:39:57 pm
 well I dun understand, but I came up with a different idea. (since the four TV screens were for security cameras, I thought I'd just pack them all on one screen, cuz, it looks realistic like that anyways, so it works:) and im happy. [.color]
Title: Re: Re-Texturing Objects?
Post by: Ingredient on October 31, 2012, 01:30:37 pm
Oh so that's what you meant by four screens xD

Well, i'm glad that it works out for you :D