Jump to content

News

Sign in to follow this  

Moderator-posting only forum of game design and industry specific news posts

28 topics in this forum

  1. Where do you live?

    • 135 replies
    • 62,767 views
    • 23 replies
    • 13,614 views
    • 0 replies
    • 2,924 views
    • 72 replies
    • 38,041 views
    • 32 replies
    • 20,566 views
    • 21 replies
    • 15,633 views
    • 22 replies
    • 19,303 views
    • 15 replies
    • 17,463 views
    • 98 replies
    • 44,012 views
    • 52 replies
    • 36,365 views
  2. Raven Openings

    • 5 replies
    • 7,174 views
    • 6 replies
    • 6,724 views
    • 7 replies
    • 6,785 views
  3. game studios hiring

    • 36 replies
    • 25,582 views
  4. IO Interactive is hiring

    • 15 replies
    • 12,400 views
    • 10 replies
    • 7,173 views
    • 28 replies
    • 16,585 views
  5. Remake HL textures thread

    • 0 replies
    • 3,658 views
    • 13 replies
    • 8,745 views
    • 18 replies
    • 13,588 views
    • 13 replies
    • 8,293 views
    • 11 replies
    • 7,681 views
  6. Phun with Physics

    • 10 replies
    • 7,208 views
    • 21 replies
    • 14,535 views
    • 11 replies
    • 7,571 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)

×