Distorted cubemaps

Discussion in 'Mapping Questions & Discussion' started by Codename22, Mar 27, 2010.

  1. Codename22

    Codename22 L1: Registered

    Messages:
    46
    Positive Ratings:
    20
    Hello everyone, I have a problem regarding my cubemaps.
    Not all cubemaps tough it seems to be only these windows.
    The cubemaps are basically distorted, as seen on the pictures they do change depending on your position. I didn't build cubemaps on those screenshots so the effect is more obvious but even after they are built they still act strange.

    Screenshots:
    http://dl.dropbox.com/u/3920996/pl_gorge/pl_gorge_b5_380006.jpg
    http://dl.dropbox.com/u/3920996/pl_gorge/pl_gorge_b5_380007.jpg
    http://dl.dropbox.com/u/3920996/pl_gorge/pl_gorge_b5_380008.jpg
    http://dl.dropbox.com/u/3920996/pl_gorge/pl_gorge_b5_380009.jpg

    I think it is because of the window frame brushes but I rather have a workaround then that I have to create less interesting windows ;) :p
     
  2. temion

    temion L2: Junior Member

    Messages:
    77
    Positive Ratings:
    4
    You have to enter "mat_specular 0" in console before you build the cube maps. Then after you build use "mat_specular 1" to get things back to normal; this removes the purple checkers so when you build they don't show up in the cube maps after.
     
  3. Leminnes

    aa Leminnes

    Messages:
    1,317
    Positive Ratings:
    801
    The message you have entered is too short. Please lengthen your message to at least 1 characters.
     
    • Thanks Thanks x 2
  4. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,816
    Positive Ratings:
    4,655
    Where is the cubemap entity?
    If its not in the center of the room, try putting it there.
    If it is, I have no idea.
     
    • Thanks Thanks x 2
  5. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Try switching maps.
     
    • Thanks Thanks x 2
  6. Codename22

    Codename22 L1: Registered

    Messages:
    46
    Positive Ratings:
    20
    The cubemap entity was in the middle of the room at first, then I also tried putting them right in front of the windows but still failed.
    I also tried assigning the glass window brush face to the cubemap entity but didn't help anything either.
    The window frame first had a reflective texture so I thought that would cause it but after changing that material nothing happened.
    These windows in this room are the only ones that act strange in my map and I used the same texture before in my map without any problems. But those could be seen from multiple sides so those didn't have nodraw textures on the backside but replacing the nodraw textures with glass textures in this room also didn't help.
    The only thing that actually could make a difference is the window-frame-func_detail-brush around it so I tried to add it separately and it happens that it works without the window frame. I tried to clip the window frame to see it that helped anything but like all other thing I tried it didn't.
    I think I tried everything but my cubemaps still end up distorted.

    http://dl.dropbox.com/u/3920996/pl_gorge/DistortedCubemaps.jpg

    It looks like I really need to make new window frames then :(
     
  7. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    HDR or LDR? Alt+tabbing or not?
     
  8. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    As temion said, the most likely cause for this is mat_specular. Before building cubemaps be sure to set mat_specular 0, otherwise the purple checkers get build into the cubemaps.
     
  9. honeymustard

    honeymustard L9: Fashionable Member

    Messages:
    698
    Positive Ratings:
    273
    I don't think you read his post, Tapp.
     
  10. Dr. ROCKZO

    Dr. ROCKZO L8: Fancy Shmancy Member

    Messages:
    580
    Positive Ratings:
    159
    God, we're just so used to the standard "Purple Checkers Problem - Halp Please!"

    Codename, if it's only that one room that's having the trouble, and recreating the windows fixes it, go for it. It sounds like a strange problem.. Are the windows a custom texture?
     
  11. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    Try having the windows not overlap with their frames.
     
  12. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    I do not believe his post regarded anything related to mat_specular, or anything else which would indicate he has already done so. Anyway, could you post the actual cubemap source files?
     
  13. Lancey

    aa Lancey Currently On: ?????

    Messages:
    3,076
    Positive Ratings:
    1,314
    He hasn't built the cubemaps because it's easier to see without them.
     
  14. gamemaster1996

    gamemaster1996 L13: Stunning Member

    Messages:
    1,065
    Positive Ratings:
    131
    How on earth are they distorted. As usual somebody gets it when not wanting to.
     
  15. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,682
    Have you tried completely remaking the brush with a different texture? That could rule out if it is a cubemap bug or a texture/glass bug.
     
  16. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    delete the env_cubemap(s) and/or brushes, rebuild, recompile on full...


    pl_gorge? I'm actually kinda interested because I'm a huge pl fan.