Editing A VTF

Discussion in 'Mapping Questions & Discussion' started by Exactol, Dec 6, 2013.

  1. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    So, I want to edit nature/blendgroundtograss008 to have no detail sprites, but I cant seem to get the vtf decompiled. Any suggestions/somone who made that texture already?
     
  2. Beetle

    Beetle L9: Fashionable Member

    Messages:
    627
    Positive Ratings:
    141
    VTFEdit > Load the vtf > Export as png (renamed, of course)

    also, I'm pretty sure it's the vmt that gives a texture sprites.
     
  3. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    You can edit the sprites out of a vtf im pretty sure. How do I edit the parameters of the vtf?
     
  4. Beetle

    Beetle L9: Fashionable Member

    Messages:
    627
    Positive Ratings:
    141
    I'm not sure what you mean. The parameters of the vtf ARE what's in the vmt. Maybe someone else knows something I don't.
     
  5. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    Is there a way to edit them? When I open a vtf in vtfedit, its just the image
     
  6. wareya

    wareya L7: Fancy Member

    Messages:
    493
    Positive Ratings:
    172
    Brush textures in TF2 are made up of a vmt (material) and vtf (image) combination. Every valid brush texture has a vmt/material, which at the minimum, defines the image that makes up the texture and what kind of "material" it is. The material defines things like what kind of decals and sounds the texture makes, special properties like having different friction, and for blending textures, what textures blend together with what mask. It also states what detail textures, like grass blades, the texture has. You want to edit the vmt, not the vtf. The vtf only contains image data.
     
  7. Beetle

    Beetle L9: Fashionable Member

    Messages:
    627
    Positive Ratings:
    141
    and you open the vmts the same way to open the vtfs - in VTFEdit
     
  8. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    Oh, so i have to edit the vmt to edit the properties?
     
  9. wareya

    wareya L7: Fancy Member

    Messages:
    493
    Positive Ratings:
    172
    Yes.
     
  10. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    Oh, ok ty. Would I have to tie the vmt to the vmf or something?
     
  11. wareya

    wareya L7: Fancy Member

    Messages:
    493
    Positive Ratings:
    172
    The vmt contains lines that state what vtfs it uses. That part's in text. The vmf then refers to vmt files based on wherever you use a texture on a brush. That part's in hammer.

    vmf - map source, text based

    vmt - material, text based
    vtf - texture, binary blob
     
  12. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    Where would the vmf's be located? It took me long enough to find the vtfs.
     
  13. wareya

    wareya L7: Fancy Member

    Messages:
    493
    Positive Ratings:
    172
    tf2_misc_dir.vpk -- under the same directory in there as in the texture vpk
     
  14. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    Odd, I only see vpks in there
     
  15. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    Oops, I meant there were no vmfs, not vpk
     
  16. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    Well, they should be in there, under /materials/.
     
  17. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    ?All thats in there is vtfs. Could someone send me the vtf for blendgroundtograss008_tooltexture?
     
  18. henke37

    aa henke37

    Messages:
    1,890
    Positive Ratings:
    443
    The file extension is vmt, not vmf or vtf.

    You can find the vmt at tf2_misc_dir.vpk/materials/nature/blendgroundtograss008.vmt. Right next to the blendgroundtograss008_nodetail.vmt material file...
     
  19. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    I keep getting the file extension names mixed up, lol. But there are no vmts. All thats there are vtfs
     
  20. Exactol

    aa Exactol Certified Hammer Hacker

    Messages:
    396
    Positive Ratings:
    453
    Finally found a site that had a download for it. Thanks to all that tried to help