Author Topic: Re-Texturing Objects?  (Read 1829 times)

xPuRfectDisastRx

  • Guest
Re-Texturing Objects?
« 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?

Offline CreamWolf

  • Pack & Pride Representative
  • ****
  • Posts: 1,427
  • Country: aq
  • Floof-O-Meter: 76
  • OG Island Boi
    • View Profile
Re: Re-Texturing Objects?
« Reply #1 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.


He will eat your LAVENDER cookies.
#BlameRingo

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Re-Texturing Objects?
« Reply #2 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.

Will be inactive due to work and exams.

xPuRfectDisastRx

  • Guest
Re: Re-Texturing Objects?
« Reply #3 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.

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Re-Texturing Objects?
« Reply #4 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)
Will be inactive due to work and exams.

xPuRfectDisastRx

  • Guest
Re: Re-Texturing Objects?
« Reply #5 on: October 27, 2012, 06:40:34 pm »
oh ok

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Re-Texturing Objects?
« Reply #6 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 :)
Will be inactive due to work and exams.

xPuRfectDisastRx

  • Guest
Re: Re-Texturing Objects?
« Reply #7 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]

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Re-Texturing Objects?
« Reply #8 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
Will be inactive due to work and exams.