light control...

Discussion in 'Mapping Questions & Discussion' started by Spamdini, Mar 7, 2008.

  1. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    hey guys another good question for you. im putting together a map that has a really deep pit lets say. its really wide as well. what i want to do is make it dark, so the player cant see the bottom. ie player looks down and he can see the pit walls for a while and then they slowly fade to black and it just looks like an endless hole.

    any ideas on how this can be acheived?

    thanks in advance.
     
  2. ZargonX

    ZargonX L3: Member

    Messages:
    109
    Positive Ratings:
    4
    You know, I'm having the exact same issue. I've been doing some experiements with fog down the pit to simulate the blackness, with mild success. I'll see if I can come up with anything better...
     
  3. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    in HL2 single player in one pit they used 4 blocks with a black texture on one side and nodraw on the other, they were non-solid as well (was playing synergy last night and fell in the pit, synergy has a wall jump mod, so i landed safely at the bottom, getting out was another thing, which is why i saw the black textured blocks)
     
  4. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    im looking for more of a fade effect though trackhed. i understand how that works though. did it fade along the sides from the texture of the pit walls to the black?

    lemme know what u find zargonx and ill do the same...
     
  5. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    well thats all in the textures
    you see... light isnt really light in its proper sense in the game
    it only provides luminosity to textures and various graphic layers.
    so making a texture along the sides of the pit that gradually fades to black while adding a light that fades at a similar rate will give the illusion of light actually becoming non-existant.
     
    Last edited: Mar 7, 2008
  6. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    ya except i dont have a texture that fades to black. i would imagine there would be a brush ent that can be made to reduce the light exposure in certain areas by a mapper determined value. like a func_blocklight that i can place in my pit where i want.
     
  7. poopster101

    poopster101 L4: Comfortable Member

    Messages:
    155
    Positive Ratings:
    5
    see you have to take the texture that you have applied to your pit and open it in photoshop or w/e you use and apply a gradient to it fading from transparent to black going down the side of the texture, then make the vtf/vmf and put into your materials folder, then you apply it to your pit and adjust your lighting
     
  8. Fyfey

    Fyfey L2: Junior Member

    Messages:
    54
    Positive Ratings:
    4
    Put black fog in... then when it get's more filled with fog... it will eventually turn completely black.
     
  9. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    And make the bottom that tool texture. There is a black texture under your tools that reflect no light.
     
  10. l3eeron

    l3eeron L8: Fancy Shmancy Member

    Messages:
    594
    Positive Ratings:
    85
    Yep...

    Black fog and black texture at the bottom...

    How detailed does the pit need to be? Is the pit game area?

    My worthless advice is to keep it simple
     
  11. Koei

    Koei L4: Comfortable Member

    Messages:
    186
    Positive Ratings:
    4
    Yep, that will work. I did that at a part of my upcoming map and it looks fine (at least in low light, haven't tested it in a completely 100% lit room.)
     
  12. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    yeah mainly i was just trying to keep it simple, if it is quite a wide and deep pit that you're filling with fog, it could reduce performance on slower systems
     
  13. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    ill try to make some alpha to black textures as overlays and see if those work
     
  14. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    ok, but yes the pit is huge. its atleast 2048x2048 units and i say atleast because its not a square, its longer than it is wide.
     
  15. Spamdini

    Spamdini L2: Junior Member

    Messages:
    61
    Positive Ratings:
    1
    maybe ill just have to make my own blend texture with the cliff i want to use and black and play with it.
     
  16. Earl

    Earl L6: Sharp Member

    Messages:
    284
    Positive Ratings:
    37
    You could put a series of func_brushes in the hole with about 10% alpha each. Give the brushes the black texture, and stack them horizontally. If they're thin enough, or the alpha shift is very small, if you add enough of them it will give a good fade to black effect as you look down.
     
  17. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    i think thats how they did it in the HL2 map i was playing, i just didnt understand the alpha properly