Jump to content

Off-Topic

Everything else

2,635 topics in this forum

    • 0 replies
    • 339 views
    • 218 replies
    • 15,827 views
  1. Mapcore Discord

    • 9 replies
    • 2,453 views
    • 145 replies
    • 15,137 views
    • 0 replies
    • 58 views
    • 20 replies
    • 936 views
    • 217 replies
    • 12,105 views
    • 322 replies
    • 15,608 views
  2. Marvel Cinematic Universe

    • 79 replies
    • 4,484 views
    • 1,970 replies
    • 91,141 views
    • 13 replies
    • 314 views
  3. What movie is this?

    • 845 replies
    • 29,855 views
  4. The Lion King

    • 7 replies
    • 99 views
    • 2,923 replies
    • 109,271 views
  5. A Game of Thrones

    • 489 replies
    • 20,248 views
    • 69 replies
    • 1,634 views
    • 84 replies
    • 7,778 views
    • 63 replies
    • 3,926 views
    • 3 replies
    • 151 views
    • 64 replies
    • 3,838 views
    • 14 replies
    • 684 views
  6. First Man

    • 7 replies
    • 123 views
  7. Bloodline (Netflix)

    • 7 replies
    • 138 views
    • 1 reply
    • 90 views
  8. The Walking Dead

    • 311 replies
    • 15,187 views
  • 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)

×