CS:GO Hammer and engine updates

Discussion in 'Mapping Questions & Discussion' started by sevin, Feb 25, 2016.

  1. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    686
    Valve posted a blog entry for some new lighting and shader improvements made to CS:GO today following Operation: Wildfire, and there is some really cool stuff they go over. For an engine over a decade old, this is some real good shit right here.

    - improved -staticproplighting (fires more rays when calculating, no more blotchy shadows on props)

    [​IMG]

    - improved phong shading on world brushes (tf2 does not have this capability)

    [​IMG]

    - addition of anisotropic reflection emulation (think of the ripple and stretching effect of city lights reflecting on water at night)

    [​IMG]

    - more memory allocation to hammer for improved in-editor performance. Not sure of how much of an impact this has, but in other hammer news, they also added a nuke_zoo to the sdk content that is full of all of the new assets introduced in the new nuke in a bunch of categorized sections, most of which are tintable, modular, and skinned. Could this also mean more theme libraries in the future? I hope so, this one is cool as shit.

    [​IMG]

    - support for a 2nd uv set (created so the artists could put high-res decals on some crate models in different locations to create variety and uniqueness)

    [​IMG]

    - selective tinting on models with multiple textures. I assume this can be used for infinite color variations on multi-mapped models, like the forklift here.

    [​IMG]

    - cubemaps influenced by environment light brightness and color, for more tonally accurate reflections and special effects. They say it can be good for areas with hard shadow transitions as well.

    [​IMG]

    There's more, go read the entry here. I'm wigging out over CS:GO right now holy fuck.
     
    • Like Like x 4
    • Thanks Thanks x 2
  2. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    So that first screenshot... does that mean they already added lightmaps on props and I missed it?
     
  3. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    686
    Prop lightmaps in TF2 have been around since rd_asteroid was first released, so I can only guess it's been in CS:GO at least that long.
     
  4. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    Back when they added phong-on-lightmaps, people were asking Valve to add lightmapped models, so apparently not.
     
  5. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    686
    Finding some interesting things poking about in Hammer and GCFScape.

    A large portion of the models used in Nuke get their color from a tinting parameter in the prop_static's properties in Hammer. Most of their diffuse maps are just white. They essentially act as ambient occlusion layers to define shadows and highlights and are then tinted to whatever color is needed in Hammer.

    A similar process is done with materials, though this isn't a new thing. The blue stripes adorning many of the outside walls in Nuke are actually the same texture as the rest of the wall, just tinted blue in a separate VMT using $color. This saves on storage space since no extra VTF's are used.

    The decals are not visible in Hammer. They are generated using a single VTF with a collection of warning and information labels and another VMT that enables the decals for that model. I can only assume they are then procedurally generated on the second UV map Valve added support for when the map is compiled. This is how all the crates seem to have a random assortment of warning labels and other stickers, despite there only being a few separate crate models.
    You're probably right, I have not kept up with CS:GO much at all until the Wildfire update.
     
    • Thanks Thanks x 1
    Last edited: Feb 25, 2016
  6. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    Incidentally:
    This is more or less how I thought dynamic shadows worked already — storing the first bounce and subsequent bounces in two separate lightmaps and turning the former off if dynamic shadows are enabled. So yay me for figuring that out before Valve did, I guess.
     
  7. Vel0city

    aa Vel0city func_fish

    Messages:
    1,938
    Positive Ratings:
    1,540
    We need this.

    We need all of this. Just because.
     
  8. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    793
    Positive Ratings:
    235
    What's the actual chance of us getting those improvements though? I know Valve have been taking more community made maps for TF2, but it seems to me that in the long run CS:GO is their flagship they want people to create content for.
     
  9. Vel0city

    aa Vel0city func_fish

    Messages:
    1,938
    Positive Ratings:
    1,540
    It's slim.
     
  10. CommodoreKong

    aa CommodoreKong

    Messages:
    332
    Positive Ratings:
    304
    Doesn't CSGO run on a newer version of the Source engine then TF2? It may not be possible for TF2 to receive some of these upgrades, though if it is possible I imagine they'll want to include them in TF2 as well.
     
  11. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,883
    Positive Ratings:
    5,126
    Well, yeah, updating TF2's version would be the idea.
     
    • Agree Agree x 1
  12. Fr0Z3nR

    aa Fr0Z3nR Creator of blackholes & memes. Destroyer of forums

    Messages:
    6,391
    Positive Ratings:
    5,464
    I was saying this all last night during the conversation in chat about it.

    CSGO's engine might as well be Source 1.5, porting these features back to older versions could potentially prove to be just flat out not worth it. From what I understand of this stuff (which isn't as much as I'd like) it'd be easier to forward port TF2 to CSGO's engine... but even then, the amount of work needed might not be worth it.
     
  13. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    686
    Forgot to mention they also fixed the shaded textured view in Hammer. Couldn't they just give us that... :(
     
    • Agree Agree x 3
  14. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    I wonder how integrated the gameplay code for TF2 is with the rendering engine code. If it were me, I'd have kept them as separate as possible, to the point where it would have been possible — not easy, but possible — to lop off the gameplay part and lop it onto the other engine wholesale. Even then, though, I'd want to go back and redo basically everything — upgrade the textures to an acceptable resolution for a modern game, retool the models so they're actually the correct relative scale (seriously, some of the office props are just tiny compared to the player models), rebuild all the maps accordingly, and probably rewrite all of the code that's been giving them so much trouble over the years because it wasn't built with a loadout system in mind from the get-go.
     
    • Agree Agree x 1
  15. Vel0city

    aa Vel0city func_fish

    Messages:
    1,938
    Positive Ratings:
    1,540
    And while they're at it, give Source some proper multi threading instead of the crap system we have now, get rid of DX9 (Vulkan or DX11), make TF2 not so heavily bound to the CPU, etc.
     
  16. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    So basically just finish Source 2 and port everything over to that.
     
    • Agree Agree x 2
  17. Vel0city

    aa Vel0city func_fish

    Messages:
    1,938
    Positive Ratings:
    1,540
    Yes.
     
  18. Mikroscopic

    aa Mikroscopic

    Messages:
    615
    Positive Ratings:
    630
    I have absolutely no knowledge about how engines work, so anything with a 2 next to it sounds snazzy to me!
     
    • Like Like x 1
    • Agree Agree x 1
    • Funny Funny x 1
  19. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    793
    Positive Ratings:
    235
    But we already have Team Fortress 2, we need Team Fortress 3!
     
  20. hutty

    aa hutty

    Messages:
    495
    Positive Ratings:
    392
    Valve adds new rendering features to tf2 quite a bit actually like lightmapped models and texture streaming. I would expect more with the upcoming comp update.

    I don't see a TF2 source 2 port happening.

    If source 2 were to get involved, I would imagine they would do TF3, a from-scratch remake utilizing the new physics engine and a separate inventory to clean up some of the regrettable decisions during tf2's development (lime paint, ugly hats, cp_egypt, sniper). And I don't care how used to it all the try hard, quake veteran, soldiers are. Needing to jump+crouch+shoot in a split second to rocket jump feels glitchy and broken. Also loose cannon balls feel like they have a vague approximation of the concept of mass, and grappling to someone in mannpower should come with a preemptive seizure warning.
     
    • Agree Agree x 1