Possible to add grass sprites onto blend texture?

Discussion in 'Mapping Questions & Discussion' started by snowsquirrel, Nov 29, 2016.

  1. snowsquirrel

    snowsquirrel L3: Member

    Messages:
    114
    Positive Ratings:
    18
    Ok for this to make sense, I have a blend texture but it doesn't have the grass sprites on it.

    What I'm wondering is whether I can edit the .vmt (or anything) so that grass sprites appear on my blend texture when I use the alpha tool (eg nature/blendgroundtograss007).

    Additionally, what does 'LST', '2DGLM' ect stand for?

    Thanks in advance!
     
  2. Idolon

    aa Idolon the worst admin

    Messages:
    1,421
    Positive Ratings:
    4,154
    If I'm not mistaken, detail props don't appear in TF2 Hammer no matter what you do, and only appear in-game.

    In addition, you'll need to go to Map Properties and choose the correct files from this list. If a texture tries to use a detail prop that isn't in the assigned .vbsp, nothing will show up. I'm not really sure why TF2 uses so many different .vbsp files (I believe HL2 only uses one file for the entire game, which contains more detail props than TF2 overall), but that's the way it goes.
     
  3. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    357
    Positive Ratings:
    267
    Detail sprites will show up in Hammer if "show detail" ( :detailsprites: ) is turned on. Though, it might only be on certain materials.
     
  4. snowsquirrel

    snowsquirrel L3: Member

    Messages:
    114
    Positive Ratings:
    18
    Its kinda hard to explain but I didn't mean to ask why sprites aren't appearing in hammer. I'm trying to figure out whether I can modify a texture (which doesn't use sprites even when in-game and was not coded to use sprites) to then have sprites (basically the same texture but with the sprites)
    eg: nature/blendgroundtograss_nodetail (no sprites) ---> nature/blendgroundtograss007 (sprites)

    Picture: http://imgur.com/a/hEhZO
     
  5. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    357
    Positive Ratings:
    267
    You use %detailtype for that in the vmt of your custom material.
     
  6. snowsquirrel

    snowsquirrel L3: Member

    Messages:
    114
    Positive Ratings:
    18
    Ah thanks. (apologies I am a noob). I found "detail/detailsprites_battlefield" which was inside "detailsprites_battlefield.vmt". Do I paste "detail/detailsprites_battlefield" into the .vmt of the texture I want sprites to have?
     
  7. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    357
    Positive Ratings:
    267
    No, in the vmt for the texture you will apply in your level, you have to add the "%detailtype" parameter, and the value for it should be a valid detail type. Valid detail types can be found in various .vbsp files found in the root tf directory. Remember that if you use a detail type, you must specify which detail file (.vbsp file) you are using in the map properties (same window as you set the skybox texture in). You might also need to change the detail type sprite sheet for your map if necessary (which in your case would be detail/detailsprites_battlefield.vtf).
    You can read more about detail types here: https://developer.valvesoftware.com/wiki/Detail_Props