Problem with glass

Discussion in 'Mapping Questions & Discussion' started by Pawlakov, Jun 24, 2013.

  1. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34
    I have a huge glass window on my map, but it have ugly pink grid. Why?
     
    Last edited: Jun 24, 2013
  2. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    Welcome to your first lesson in cubemaps

    Very early on, before you start the fine detailing in your maps, depending on what sky texture you're using your reflective surfaces will be looking for something to reflect. If they don't know what they're supposed to reflect, they'll default to the "missing" texture, the purple checkers. A very simple and rudimentary fix is putting an env_cubemap entity anywhere in your map. Run your map, and in console, type buildcubemaps
     
    • Thanks Thanks x 1
  3. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34
    I have many cubemaps but i forgot to "buildcubemaps".
    When i tried to build cubemaps is displayed:
    "Can't load skybox file sky_upward to build the default cubemap!"
     
  4. ics

    aa ics http://ics-base.net

    Messages:
    684
    Positive Ratings:
    416
    You need to build cubemaps with HDR and without it. The error is normal at this stage. So basically you do this:

    map mapname
    sv_cheats 1 (i usually do this just incase)
    mat_specular 0
    buildcubemaps (wait for them to build)
    disconnect
    mat_specular 1
    mat_reloadallmaterials
    switch HDR on or off (off if it was on, on if it was off for the first build)
    map mapname
    mat_specular 0
    buildcubemaps

    Done.
     
    • Thanks Thanks x 1
  5. Fish 2.0

    Fish 2.0 L6: Sharp Member

    Messages:
    324
    Positive Ratings:
    116
    If you haven't compiled with HDR then you can just do this; if you don't know what HDR is then you likely won't have compiled it.



    map mapname
    sv_cheats 1
    mat_specular 0
    buildcubemaps (wait for them to build)
    disconnect
    mat_specular 1
    mat_reloadallmaterials
    map mapname

    Done.
     
    • Thanks Thanks x 1
  6. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34
    I doesn't work! "Can't load skybox file sky_upward to build the default cubemap!"
     
  7. LeSwordfish

    aa LeSwordfish semi-trained quasi-professional

    Messages:
    4,109
    Positive Ratings:
    6,059
    Don't worry about that. It will still work, you can ignore that error.
     
    • Thanks Thanks x 1
  8. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34
    should i connect again after disconnection?
     
  9. Pawlakov

    Pawlakov L4: Comfortable Member

    Messages:
    154
    Positive Ratings:
    34
    Yes it works tanks all!!!