Odd Skybox problem

Discussion in 'Mapping Questions & Discussion' started by Poisontrigger, Mar 13, 2015.

  1. Poisontrigger

    Poisontrigger L1: Registered

    Messages:
    17
    Positive Ratings:
    2
    I was testing out different skys on my map to see whether a day time or night time setting would be better. So I went here to get the sky names:

    https://developer.valvesoftware.com/wiki/Team_Fortress_2_Sky_List

    When I compiled the map and tested it.The sky was there but water and reflective textures were reflecting black and purple textures, they still had their base textures though. I compiled again with Vrad off and testing out all of the sky names. looking at the compile log, only sky_hydro_01 and sky_badlands_01 works.

    Is this some sort of sky discrimination?
     
  2. Lampenpam

    aa Lampenpam

    Messages:
    1,018
    Positive Ratings:
    337
    Why do you think the missing reflections have something to do with the skybox texture?
    You have to build cubemaps to make them work.
     
  3. Poisontrigger

    Poisontrigger L1: Registered

    Messages:
    17
    Positive Ratings:
    2
    These are the logs I get:

    Code:
    *** Error: Skybox vtf files for skybox/sky_nightfall_01 weren't compiled with the same size texture and/or same flags!
    Can't load skybox file skybox/sky_nightfall_01 to build the default cubemap!
    *** Error: Skybox vtf files for skybox/sky_nightfall_01 weren't compiled with the same size texture and/or same flags!
    Can't load skybox file skybox/sky_nightfall_01 to build the default cubemap!
    This is the error I get.

    Code:
    Creating default LDR cubemaps for env_cubemap using skybox materials:
       skybox/sky_hydro_01*.vmt
     ! Run buildcubemaps in the engine to get the correct cube maps.
    Creating default HDR cubemaps for env_cubemap using skybox materials:
       skybox/sky_hydro_01*.vmt
     ! Run buildcubemaps in the engine to get the correct cube maps.
    This is what it should look like.
    If hydro and badlands can build the default cubemap why not everything else? I feel like there is a deeper underlying problem somewhere. Putting in cubemaps in the map doesn't help. Typing the buildcubemaps command crashes the game.
     
  4. Lampenpam

    aa Lampenpam

    Messages:
    1,018
    Positive Ratings:
    337
    ah you can compleetly ignore this compile errors, they are always there.
    And the only reason I know that makes building cubemaps crash the game, is when you use a resolution which is smaller then the cubemap texture resolution, which is by default already very small actually. It's 512x512
     
    • Thanks Thanks x 1
  5. Poisontrigger

    Poisontrigger L1: Registered

    Messages:
    17
    Positive Ratings:
    2
    The black and purple textures are gone! Thanks! :)
    Kinda sucks that if and when I have to do this I to set my game resolution to 800x600 then back to 640x480. I don't have that beefy of a computer.

    Only thing that bother me now is why is it like this? Why does it give those errors when hydro and badlands skys don't.
     
  6. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,461
    Positive Ratings:
    236
  7. Vel0city

    aa Vel0city func_fish

    Messages:
    1,900
    Positive Ratings:
    1,512
    If you have to run your game at 640x480 then you should NOT be using Hammer for anything. If you plan to make serious maps and you have that little power compiling a half decent map can take waaaaaaaaay too long and even crash the VRAD portion for running out of memory. It's already limited because it's 32-bit but having even less RAM is not something you'd want.

    Besides, what are your specs anyway?

    It gives the errors because those two skyboxes have default cubemaps to give to reflective surfaces. All the other skyboxes don't and so you have to manually make cubemaps which is something that should be done anyway.
     
  8. Poisontrigger

    Poisontrigger L1: Registered

    Messages:
    17
    Positive Ratings:
    2
    I have a Samsung RV510-A09UK Laptop, WIndows 7 64 bit with 3 GB of RAM and Intel Dual Core at 2.1GHz. What really holds it back is poor graphics other than that it can load up things very fast. Hammer runs perfectly fine, though I do see compiling becoming a hassle, I re-compiled viaduct with just the BSP and VIS settings and that took 20 Minutes.

    Thanks for the tip. The way the error presents itself through the log and thinking it was a serious problem that could break my map. :glare:
     
  9. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,834
    Positive Ratings:
    4,753
    That laptop has a 1366 x 768 screen, you shouldn't have to scale your resolution up to a 15 year old standard to build cubemaps.