New to Hammer, quick question

Discussion in 'Mapping Questions & Discussion' started by Zappahcracker, Sep 4, 2009.

  1. Zappahcracker

    Zappahcracker L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    So I'm fairly new to hammer. I have made the level, the design and what not, not the actual pretty colors and items and whatnot, just the basic layout, and I have a working spawn and Koth cap point. It's pretty much done except for playtesting and making it look pretty. There doesn't seem to be much more to do with it.

    Well!

    There's just one problem: the point has purple squares and the melee weapons have purple squares. Just wondering what's up about that and what I should do.

    =D

    Thanks in advance.
     
  2. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    Purple squares are the sign of a missing texture. Odds are those particular ones are semitransparent and where you would normally see shiny reflections. When they occur in the place of reflections, it's a normal step in TF2 mapping. (When your entire floor or wall totally becomes entirely checkerboarded, that's a problem.)

    When you first build your map it doesn't have the many small snapshot images that it uses for plausibly-realistic fast reflections. You have to do "buildcubemaps" in the game itself, which will take a bunch of snapshots and overwrite your .bsp with a new version that has them embedded. You get the purple/black checkerboard because they're not generated and embedded yet.

    Just do this in console.
    • mat_specular 0;
    • buildcubemaps;
    • mat_specular 1;
    • disconnect;
    • sv_cheats 1;
    • mat_reloadallmaterials

    Then reload your map for shiny goodness.

    There's more to it in terms of getting really nice and semi-realistic reflections, or working with an HDR map, but that's the basic process.
     
    • Thanks Thanks x 1
    Last edited: Sep 4, 2009
  3. Zappahcracker

    Zappahcracker L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    Thank ye.
     
  4. Zappahcracker

    Zappahcracker L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    It's not working. =(
     
  5. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,521
    Cause he never told you to put in one or more env_cubemap entities. These are where the reflections are build from.
     
  6. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    What, was it not part of the whatnot? :p

    Yeah, env_cubemap entities define the points where reflection snapshots are taken from. Reflective surfaces will use whichever one is nearest to the player in order to determine what kind of stuff to reflect.
     
  7. Cameron:D

    Cameron:D L6: Sharp Member

    Messages:
    363
    Positive Ratings:
    146
    See mah sig for more info :3