Weird Purple Lighting

Discussion in 'Mapping Questions & Discussion' started by LordNor, Jun 25, 2009.

  1. LordNor

    LordNor L3: Member

    Messages:
    134
    Positive Ratings:
    15
    Before you dismiss this as "problem with cubemaps", let me tell you it isnt. So far i was able to diagnose the problem as the skybox, I had a generic level, nothing fancy. Added a skybox with the skybox texture, then went into map properties and made it "sky_alpinestorm_01", after this i loaded the map and the flooring which is reflective and the metal walls became purple-tinted. Jarate jars and the demomans bottle do not have the cubemap effect so it aint cubemaps...help?

    I changed it to sky_hydro_01 and it goes away...? weird
     
  2. pitto

    pitto L3: Member

    Messages:
    109
    Positive Ratings:
    73
    try making cube maps that are for the individual floor/glass etc

    oh, not sure if this is obvious ... you did build the cube maps right?

    Cubemaps Info

    EDIT: I think the purple checkers is also possible if you have a leak
     
    • Thanks Thanks x 1
  3. Cameron:D

    Cameron:D L6: Sharp Member

    Messages:
    363
    Positive Ratings:
    146
    Yeah, it is a cube map issue....
    vvvvv​
     
  4. Malcolm

    Malcolm L3: Member

    Messages:
    123
    Positive Ratings:
    25
    Some skyboxes in tf2 have a generic cubemap loaded as long as you have an env_cubemap in your map. This generic cubemap is mostly a picture of the used sky. sky_alpinestorm_01 doesn't have such a picture, so the missing texture is shown pink-black.
    If you build your cubemaps without disabling mat_specular in that situation, the pink checkers will also be written into the cubemap and so they don't seem to get away.
     
  5. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    My guess is you were previously using a HL2 sky, which are equally sized images so the compiler can build a default cubemap. Once you switched to a TF2 sky it could no longer do that because valve makes the images different sizes. So yes, it is a cubemap issue, you have to add your own cubemap entities and build them as people have said.
    (and bottle/jarate DO use cubemaps)
     
  6. LordNor

    LordNor L3: Member

    Messages:
    134
    Positive Ratings:
    15
    lol okay i feel like an idiot....ill do what u guys said, if i cant fix it ill upload the map


    Update: It aint workin, the env_cubemap was always there...its inside the room. (Not sure how to upload my map? the attachment only allows for urls)

    Error Report in Console!
    Current mod isn't in a subdirectory of "game"!
    bounce: 1/1 sample: 1/2
    bounce: 1/1 sample: 2/2
    *** Error: Skybox vtf files for sky_trainyard_01 weren't compiled with the same size texture and/or same flags!
    Can't load skybox file sky_trainyard_01 to build the default cubemap!
     
    Last edited: Jun 25, 2009
  7. (-TN-) Ben2

    (-TN-) Ben2 L4: Comfortable Member

    Messages:
    172
    Positive Ratings:
    15
    had same problem quicky fix here

    load the map

    in console type
    mat_specular 0
    buildcubemaps

    disconnect from your map, then reload the map
    in the reloaded map type mat_specular 1
     
    • Thanks Thanks x 1
  8. LordNor

    LordNor L3: Member

    Messages:
    134
    Positive Ratings:
    15
    wow that worked, but only for that instance, i tried reloading it and the purple reflective floor is still there
     
    Last edited: Jun 25, 2009
  9. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,561
    Sometimes if you minimise whilst ingame certain cached data is lost, such as cubemap data. This was true for all HL2 based mods.

    Although since i updated my drivers a short while ago i havn't been effected since. I no longer lose my cubemap information when minimising my HL2 games.
     
  10. LordNor

    LordNor L3: Member

    Messages:
    134
    Positive Ratings:
    15
  11. (-TN-) Ben2

    (-TN-) Ben2 L4: Comfortable Member

    Messages:
    172
    Positive Ratings:
    15
    every time you run the map you have to do this
     
  12. LordNor

    LordNor L3: Member

    Messages:
    134
    Positive Ratings:
    15
    thisi s really frustrating, i know the problem is created by the skybox but i cant solve it!, i have a env_cubemap and it should work but all reflective surfaces are purple, not checkered purple and black! just purple
     
  13. (-TN-) Ben2

    (-TN-) Ben2 L4: Comfortable Member

    Messages:
    172
    Positive Ratings:
    15
    did u do what i said, and rememebr, every time you re-compile you have to go through the same process.
     
    • Thanks Thanks x 1
  14. LordNor

    LordNor L3: Member

    Messages:
    134
    Positive Ratings:
    15
    ur absolutely right, thank you so much it worked yay!