Jump to content

Spotlight Gallery

Sign in to follow this  

Browse the community's best work

32 topics in this forum

    • 59 replies
    • 32,311 views
  1. de_corse *final*

    • 74 replies
    • 40,509 views
    • 49 replies
    • 29,699 views
    • 80 replies
    • 24,230 views
    • 72 replies
    • 13,731 views
  2. ns_machina

    • 61 replies
    • 29,513 views
  3. dm_drift

    • 30 replies
    • 23,357 views
    • 77 replies
    • 20,048 views
  4. ctf_quarry [release]

    • 43 replies
    • 9,617 views
    • 22 replies
    • 18,664 views
    • 38 replies
    • 20,239 views
    • 47 replies
    • 27,244 views
  5. ins_baghdad

    • 19 replies
    • 8,790 views
    • 94 replies
    • 44,889 views
  6. awp_monopoly

    • 77 replies
    • 42,124 views
  7. [UT2k4] DM_Baroque

    • 27 replies
    • 19,811 views
    • 0 replies
    • 3,905 views
  8. DoD_Anemia_b1 (56k Heavy)

    • 32 replies
    • 22,324 views
    • 51 replies
    • 30,580 views
    • 35 replies
    • 21,283 views
  9. The Empire (3d work)

    • 31 replies
    • 21,240 views
  10. dod_salerno

    • 37 replies
    • 26,890 views
    • 199 replies
    • 46,985 views
    • 24 replies
    • 17,868 views
  11. de_dam_facility

    • 21 replies
    • 14,974 views
Sign in to follow this  
  • MapCore on Discord

  • Our picks

    • Post in [decompiled] dz_blacksite
      Alright, I did some testing with the new detail sprites and found out how more specifically how they work. @Mamorex was on the right track but there's a few key things you left out. 

      Removing $alphatest from the material or adding $translucent

      First, the detail sprites material - it's 2 detail sprite sheets side by side, so version A and version B. The different versions have to have same sprite positions and sizes. You only specify version A coordinates in the .vbsp.


      Next up, the detail sprites masks. Red and blue are for wind offset -- so you can have different parts of the sprites sway in the wind differently, you can see Valve isolated some blades of grass for this effect. The green channel is a tint mask and controls how much the sprites are affected by the $worldspacetint. 

      That brings us to the world space textures. They seem to automatically get resized to fit the whole map area, so it you resize the map you'd have to resize the textures too.

      The world space tint texture is pretty self explanatory, controls what color to tint the grass, 127 grey means no tint. 

      The world space masks texture uses the red channel to select which version of the sprites to use -- 0 is version A and anything more is version B. 

      The green channel of the texture controls the sprite size -- 127 is default, with darker making the sprites smaller and brighter making the sprites larger. The vmt command $minimumspritesize controls the cutoff point for the sprites, so the sprites smaller than the specified value don't get rendered which can act as a placement mask. 

      I don't know what the blue channel of this texture does, changing it had no effect on the sprites for me. 

       

      All this means sprites still get placed by vbsp on map compile, so they still use displacement alpha for the placement, but the new masks can manipulate sprites size and color after map compile.


       

       
  • Articles (view all)

×