Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Summer Special
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Please be aware that this is not a tutorial request forum! Use the appropriate topic for the effect.
Sign in to follow this  
JoeVK

[IV] Colorable vehicle badges

Recommended Posts

JoeVK

I recently discovered how to make colorable badges on vehicles. R* did it on the Sabre Turbo, with the colorable "SABRE TURBO" lettering on the lower part of the body. Which is how I discovered how to do it.

 

First, a few notes before we begin. You'll need a texture you want to make colorable (obviously). I probably don't need to tell you that it has to have a transparency around the letters or design on the texture. And the parts of the letters or design you want to be colorable should be pure white, otherwise the color applied in-game will be off. It can have different colors in it, but the darker those colors are, the less they will change color. Black, for example, won't change color at all. You can use this to an advantage, however. For example, if your texture has letters that fade from white to black, when the color is applied in-game, the letters will fade from light to dark.

 

As I mentioned before, the Sabre Turbo uses this technique on the "SABRE TURBO" lettering on the lower body. The letters change color with CLR:1, so when the lower body stripe changes color, the lettering remains the same as the rest of the body. This technique is also used on the "SULTAN RS" lettering on the Sultan RS, but it's set up to change color with the body stripe. I'm using the same approach as Sabre Turbo's lettering on a current project. The car has a stripe that wraps around it's tail, and I put the car's name in colorable letters on the sides, right in the middle of the stripe. The stripe uses CLR:2, while the car's name and the rest of the body are CLR:1.

 

Another thing to note, the material doesn't have to be glossy. For example, if you use this technique for stripes, you could replace the white "vehicle_generic_smallspecmap" texture with a dark gray texture and the result would be a car with glossy paint and matte stripes. Or you could go the opposite way, and make the car have matte paint with glossy stripes.

 

Finally, this doesn't actually use the badges material. It might work with the badges material, but I haven't tried it. When R* used this technique, they used the vehglass material, and that's how I've been doing it. I also don't know if it works with GIMS or GIMS Evo, because I use Zmod2. But I don't see why it wouldn't work with GIMS. You will need OpenIV, because part of the process requires Openformats, and a text editor like Notepad or Notepad++. Okay, let's get started.

 

------------------------------------------------

 

In Zmod2's materials editor, make a copy of a vehglass material. Not a lights(vehglass) material, just vehglass. Rename it as necessary (i like to name materials the same as the texture).

 

Replace the main texture with your texture, and replace the dirt/mud/reflection texture (usually vehicle_generic_glassdirt) with vehicle_genericmud_car, or whatever you like to use. The remaining two textures are left alone.

 

Now, right above the "Texture Layers" section, you'll see a blue bar named "Extensions". Click it to expand that section. Once it's open, click on "User-Defined options" (just click the name, you don't have to check the checkbox). Now you'll see three "Options", GTA4:SPECMAP, GTA4:REFL, and GTA4:DIRT. Edit GTA4:REFL from 1.00000 to 0.400. This lowers the reflection of the new badges to a level equal with the main paint materials. If this step isn't taken, the badges will be crazy reflective in-game. You can raise or lower this to your liking. 0.400 is R*'s setting and is also my current preference.

 

Now just map your badges to the new material and you're done. I know what you're thinking, "But you didn't add a [CLR:x] tag to the end of the material!". No, I didn't. And you don't. Zmod2's export plugin apparently only exports CLR data with the paint, generic, mesh, and tire shaders. So what to do? Easy.

 

Once you export your vehicle to .wft, import it into an .img using OpenIV, then right click the .wft and export it to .oft (Openformats). Open the .oft with a text editor such as Notepad or Notepad++. Scroll down until you see the materials. You'll know them when you see them, it's a group of lines that start with "gta_vehicle_xxxx.sps" followed by a texture name and a lot of numbers. Find the line that has your main texture's name.

 

Immediately after your texture's name, you'll see "1.00000000;1.00000000;1.00000000". This is the section that controls whether or not the material is colorable, and what color number it uses (CLR:1, CLR:2, CLR:4). To make the material colorable, change the first "1.00000000" to "2.00000000". If you want it to change with CLR:2, change the other two "1.00000000" to "2.00000000".

It should now look like this: "2.00000000;2.00000000;2.00000000".

If you want it to change with CLR:4, it would be: "2.00000000;4.00000000;4.00000000".

 

Once that's done, save your changes, import the edited .oft into the .img, and you're done. Just make sure your main texture is in the vehicle's .wtd, and go ingame to test it out!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.