Cubemap errors

Discussion in 'Mapping Questions & Discussion' started by SirUnknown, May 31, 2016.

  1. SirUnknown

    SirUnknown L1: Registered

    Messages:
    36
    Positive Ratings:
    15
    Hey guys all of my reflections are the purple/black error texture, but I've put down the env_cubemaps and used buildcubemaps. The valve dev wiki says for tf2 you have to do these commands:

    And I did those, and the reflections are still wrong.

    I've also been getting this error when I use the buildcubemaps command:

    How do I fix this?
     
  2. sevin

    aa sevin

    Messages:
    959
    Positive Ratings:
    663
    That just builds cubemaps for LDR or HDR, whichever you're currently using in-game. Here is what I do:

    Code:
    mat_hdr_level 2
    mat_specular 0
    map mapname
    buildcubemaps
    disconnect
    mat_hdr_level 0
    map mapname
    buildcubemaps
    disconnect
    mat_hdr_level 2
    mat_specular 1
    map background01
    map mapname
    
    // if console spews errors about cubemap size
    mat_envmapsize 128
    mat_envmaptgasize 32
     
    • Thanks Thanks x 1
  3. Frosty Scales

    aa Frosty Scales

    Messages:
    85
    Positive Ratings:
    34
    Here's what I do:
    Code:
    mat_hdr_level 2
    mat_specular 0
    buildcubemaps
    mat_hdr_level 0
    disconnect
    map <mapname>
    buildcubemaps
    mat_hdr_level 2
    disconnect
    mat_specular 1
    map ctf_2fort (or any other map that isn't the one you're building cubemaps for)
    map <your map>
    From what I've seen the Valve wiki is pretty bad with this kinda stuff, so yeah. Also do know that this is for maps with both HDR and LDR, if yours is only LDR, then don't bother building twice on each setting.

    Edit: Got ninja'd :(
     
    • Thanks Thanks x 1
  4. iiboharz

    aa iiboharz Meme Queen

    Messages:
    720
    Positive Ratings:
    1,052
    That error you're getting, by the way, can be safely ignored.
     
    • Thanks Thanks x 1
  5. henke37

    aa henke37

    Messages:
    1,933
    Positive Ratings:
    456
    All the error says is that the engine couldn't default to the skybox for the cubamaps. Which isn't important, since you don't want to use the skybox as the cubemaps, you want to actually render them for real.
     
  6. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Check to see if you have two copies of your BSP file in your game's content directories. Those would be tf/maps, tf/custom/whatever/maps and tf/download/maps.

    Upload a BSP for us after you build cubemaps so we can have a look at it.
     
  7. SirUnknown

    SirUnknown L1: Registered

    Messages:
    36
    Positive Ratings:
    15