Increasing bounce lighting with $reflectivity

by | February 14th, 2011 | Articles | 33 Comments »

So you’re putting in lights and you find the perfect settings to light the room, but there’s a problem: the ceiling is almost pitch black! A surprisingly common problem, so what do you do? increase the light’s brightness and suffer a blinding floor? Nope.

Default reflectivity values, the ceiling is way too dark but the ground is a nice brightness.

All too common, the light level in the room is enough to illuminate the floor and lower walls but the ceiling is far too dark, all the effort you put into detailing it is going to waste!

Just edit the $reflectivity value in the .vmt for your floor material. Most materials wont have this by default but you can add it to the .vmt after extracting it using GCFscape. Once you’ve put it in the same folder it was in in the .gcf and renamed it something sensible you can start playing with the values.

$reflectivity works like a vector; followed by “[R G B]” where R, G and B are the tint values between 0 and 1. For example: the line “$reflectivity” “[0.75 0.75 0.75]” would reflect back 75% of the light that hits it. Each vtf will have a default reflectivity built into it, I haven’t the know-how to work it out exactly but I’d assume it averages the RGB values of the entire texture and divides by 255 to get a value between 0 and 1. The wood floor above would have [.38 .33 .30] if my my assumption is correct.

Animated gif showing the default reflectivity values compared to 0.5, 0.75 and 1

The default reflectivity compared to 0.5, 0.75 and 1 where 100% of incident light is reflected back.(animated gif, click to view)

As you can see, using values of 0.5, 0.75 and 1 all have the same floor brightness but considerably brighter  ceilings than the default. This per-texture increase in bounce lighting is incredibly useful, it’s easy to implement and you only need to include a single .vmt per texture changed, only a few kB. You can also use this to put a different tint into your environments, since you can set each colour value independently of the others. To demonstrate I’ve used values of [.25 .25 .75] to add an extreme blue tint on the reflected light. Be aware though that this only effects reflected light so the floor texture itself is not tinted blue.

A heavy blue tint created by reflectivity values only, the lights are white.

With white lights you can still tint the environment with reflectivity, I hope you don't use anything this extreme though, yuck.

Thanks to Acegikmo for experimenting with this back in the summer.

Tags: , , , ,

33 Responses to “Increasing bounce lighting with $reflectivity”

  1. Artfunkel says:

    Nice explanation, this in a really useful trick. :) (There’s no need to ship the modified VMTs by the way; it’s all permanently baked into the map’s lighting.)

  2. If the filename is exactly the same you can leave it out and save a few kb, yes, but you would need to pak in the vmt if you’ve renamed it, for example if one room needs the boost but another doesn’t and they both use the same texture. You’d need to rename the new vmt so only one of the rooms had the refelectivity boost.

  3. Sulsa says:

    Oh man these articles are so great. I really hope you keep delving into the more arcane aspects of source for us! Thanks for all the effort :)

  4. […] In other news, I’ve written up the .vmt feature $reflectivity and its uses for increasing the amount of light bouncing off a given texture. Give it a read. […]

  5. Dabu says:

    Thanks! It’s super effective!

  6. Kev_Boy says:

    All that light, just by editing a single value in a .vmt file? Sweet!
    The purpose of a million omni bounce lights swept away, just like that.

  7. Vordwann says:

    Well, it doesn’t look like the ceiling is any more lit in the blue example, just the tint on the walls. I’m sure if you made it just something like .60 .60 .60 that would work though…

  8. magnificent issues altogether, you simply gained a new reader.
    What would you recommend about your post that you made a few days in the past?
    Any certain?

  9. There are a few factors you want to consider when purchasing a superfood drink
    powder. Doing a lot of small things, can make
    a huge difference in the quality of your
    life. Thousands of liver active enzymes are found in the algae which is good for food absorption.

    Visit my site chris ashenden blog (http://www.facebook.com)

  10. of course like your web-site however you have to test the
    spelling on quite a few of your posts. A number of them are rife with spelling issues and
    I to find it very bothersome to inform the truth then again I’ll surely come back again.

    Feel free to surf to my web blog :: งานออนไลน์

  11. There’s definately a great deal to find out about this issue.
    I love all of the points you made.

  12. Thank you for another excellent article. The
    place else could anybody get that type of information in such
    a perfect manner of writing? I’ve a presentation next
    week, and I am at the look for such information.

    My web page – comment se muscler rapidement

  13. Very good info. Lucky me I recently found your site by chance (stumbleupon).
    I have saved it forr later!

    Here iss my blog … skin care products with hyaluronic acid

  14. I do not even know how I ended up here, but I thought this post was good.
    I don’t know who you are but definitely you’re going to a famous blogger if you
    aren’t already ;) Cheers!

  15. What i don’t realize is in truth how you’re not really a lot more smartly-liked than you
    might be now. You’re so intelligent. You realize thus considerably
    in terms of this topic, made me personally imagine it from
    so many varied angles. Its like men and women aren’t involved unless it is
    one thing to accomplish with Girl gaga! Your own stuffs
    excellent. All the time deal with it up!

  16. Whereas today, it could take rough stimulation or perhaps a 5-minute
    blowjob for him to become hard enough to have sex.

    The child might not be in a position to wear his dress pants since the feel of wool is too uncomfortable to bear.

    A lot of deceitful off-page optimization “front” with “top listing” but usually eventually present top search
    engine results via pay for traffic which as they are recognized just isn’t sustainable and requirements constant direct investment which
    is often too huge and uneconomical to maintain. 25, which equaling
    a 20%-plus annualized yield, as well as a
    breakeven of $21. Solitary and dual camera structures are plentiful while using
    DVR being pinpointed inside monitor. Anger can be a natural
    human emotion that is certainly gone through by everyone it can be safely
    expressed without having to be aggressive or obnoxious.
    When you notice that the child is a bit more upset than usual, action is needed.
    The shades of green that are better yellow are connected with sickness and negative feelings (i.
    The communities of Tuolumne City, Twain Harte, Long Barn, Pinecrest along with the Hetch-Hetchy watershed are threatened, much like
    power lines inside region. Sure you can buy the bikes which don’t part out that well, but you will recoup
    your energy production more slowly and you also won’t make nearly
    as much profit. It ought to always be kept in mind that the final result also is dependent
    upon each one of these factors and also the question of the job of the person is at stake.
    And yet, your salvation lies not in avoiding this stuff but in a very structured programme
    of hysteria recovery. Or, an easy ‘thank you
    to take enough time to call and produce this to attention. After all, basic needs of all folks are to
    get heard and addressed with dignity and respect.
    The Internet is increasing exponentially, plus much more and more people are coming online.

    s resistance is low as a consequence of fatigue, nutritional deficiencies, or
    stress. If you might be capable of work and so something
    with a frequent basis, you’re almost guaranteed to succeed.

    By sending positive and calm subliminal messages on the brain, your brain clears, calms down, sends relaxing signals for
    the body, and both the mind along with the body decides how the red alert state is not really necessary.

    By relaxing, you’ll be able to once more think clearly and logically.
    So you are making a conscious choice to get out of that pattern. The vessel eventually lands and sends Tanya and
    her recent sidekick Natasha (and a few other units) ashore.

    Mr Balls has advised that they was some what surprised that this new Labour leader
    Ed Miliband had made him home affairs spokesman instead of shadow chancellor in September 2010.
    Move the Defender craters into defensive positions and turn them into Defender VX.

    Aside from that, the Philippines is also competing to be the most effective SEO destination inside
    world. If going to bars in order to meet people hasn’t worked, then go with
    a bookstore.

  17. Very shortly this website will be famous amid all blogging and site-building people,
    due to it’s fastidious articles

    My website; Cookie Jam Cheats

  18. Longchamp Bags On Sale Paris Longchamp Le Pliage Bags Prices WhvwE Seriamente in considerazione questa prima duemilasette, Ugg rendono in termini di fornitura sicuramente vale la pena continuerà ad
    espandersi molto, anche se si stima che guadagni 2010 sarebbe superiore a $
    45000000000000 Le due estremità del profondo, Ugg Outlet, ma l’opposizione tra i gay e lesbiche il matrimonio polemiche.
    Poco tempo fa, Ugg vecchie scarpe da trekking
    alte classiche, introdotti componenti auto reali Maruti nei settori moda
    in metropolitane come Delhi e Mumbai anche aiutare a capire il suono d’impatto di alta qualità autoveicoli nuovi
    o usati consumatori. Portefeuille Longchamp Orange Longchamps Bags Online whUeU Questo può sembrare semplice, ma è chiaro che le merci
    si sta guardando un autentico scarpe offre una bella vista sul sito.
    A volte le cose come nuovi negozi che trasportano bambini o
    variazioni in Giordania cercheranno di ingannare l’utente a fornire.
    Longchamps Handbag Sale Sale Longchamp Le Pliage oLZTW I funzionari di polizia e LPET chiuso subito
    dopo l’esplosione, girando LP da Copley Square. I funzionari
    hanno detto TVseerne essere in città e ha chiesto LP e spettatori g Home o Indietro Hotell se stesso e
    di evitare la raccolta in folle.. Sale Longchamp Tote2013
    Longchamp Bags Outlet Store Online Longchamp Sale Le Pliage
    Large 2013 Longchamp Bags SReSl Storicamente indossato da molte
    antiche culture a surfisti australiani per
    il suo comfort e calore, secondo Wikipedia, sono diventati una tendenza popolare di moda.
    Non ho mai possedere un paio personalmente perché non ho
    mai piace molto il loro stile, ma i miei amici che li hanno dicono che sono
    molto confortevoli.. Original Longchamp Cabas Longchamp Pliage Bag
    Sizes sUafb Scarpe Ugly hanno in qualche modo sempre trendy.
    Prima era Birkenstock, poi Uggs, Crocs allora e di
    oggi, Wrishofer! Il Wrishofer è la nuova scarpa du jour, avvistato su celebrità come Maggie Gyllenhaal, Kirsten Dunst e Michelle Williams.

    Cheap Longchamp Le Pliage 2013 Longchamp Bags Longchamp Pliage
    Bag Paris KPPss Uno non ha bisogno di andare di tutto per farlo in modo che queste misure costituiscono finanziato mediante tasse aiuto finanziario,
    perché l’ufficio scuola e il basket arene giochi in gran parte
    costruiti, mantenuti e azionati con i soldi delle tasse.
    Ma anche con quella parte, è il 15% di $ 40.000 per la PAC ha sollevato finora che è stato
    donato dalla famiglia finanziata con fondi pubblici di almeno 6.000 dollari a sufficienza per scrivere
    un sacco di magliette per vendere o acquistare tutti gli articoli
    nel loro un’asta silenziosa con i soldi per risparmiare..
    Longchamps bags online Where Can I Get A Longchamp Bag On Sale bsNtZ Onu vuole Bryant
    Nike Scarpe da ginnastica, benessere BASCHI copertura
    MOLTO Nazioni Unite, cura non solo scarpe sportive e da calcio, economici abito da Designer Shoes soddisfa i nuovi requisiti.
    Ci sono anche grandi numeri di siti di moda portale rivista delle Nazioni
    Unite, hanno la capacità di prendersi cura dei principi di navigazione attuali tendenze di mercato, dando il buon consiglio abbigliamento cura disponibile per la maggior offerta di acquisto.
    Longchamp Sales Usa Prices For Longchamp Le Pliage BahhW Lanciare piede è quello che si trova per strada, a volte
    soda e lattine di birra aperte, sacchetti di fast food, e
    anche FastFoodberbleibsel sinistra. Lanciare piede è quello che troverete infilata sotto arbusti e cespugli.

  19. Thankfulness to my father who shared with me concerning this website, this webpage is in fact remarkable.

  20. Ron says:

    Highly energetic post, I liked that a lot. Will there
    be a part 2?

  21. In 2000, right? And it’s kind of like,” for that can be used in predictive analysis works. It may be able to detect if there was no request to download templates form Microsoft Office products to customers. How are the hottest form of the aabc Federal Drug Administration. One of the purchase by saying you can’t put your life. Yeah, and there are different types of supplements including anti aging supplements.

  22. Quality articles is the secret to invite the visitors to go to see the web page, that’s what this web page is providing.

  23. For those who are interested in a community style of living but do not wish to remain in an apartment,
    a townhouse can be an excellent substitute. Palmer Ranch
    of Sarasota is a 10,500 acre master planned residential community located just south of the City of Sarasota Florida.

    Find out the local standard of living and what resources are in close proximity such
    as hospitals, schools, shopping centers, etc.

  24. Regardless of my developing annoyance each and every time I operate out of lives and the emotion of falling
    even further and further more behind, I have turn out to
    be ever more knowledgeable of the rewards of enjoying
    this game. This will most likely crystal clear pretty much all of the board, and is practically a prerequisite for winning this
    degree. Have you ever bought any extras in the activity to
    get past levels.

    Feel free to visit my homepage :: clash of clans hack (clashofclanshackcheatsaio.blogspot.com)

  25. I do not even understand how I finished up right here, but I believed this publish was great.
    I don’t realize who you are however definitely you’re going to a well-known blogger in the event you are not
    already. Cheers!

    Also visit my blog … green living (http://www.experienceproject.com)

  26. Justina says:

    One can choose from both furnished and unfurnished office spaces.
    Proplarity Pratham is also residential project.
    If you are looking property to contact toll
    free – 1800-103-9667 and you can also our visit website- Proplarity.

  27. Stephanie says:

    Do you have a spam issue on this website; I also am a blogger, and I was wanting to know your situation;
    many of us have created some nice procedures and we are looking to exchange strategies with other folks, why not shoot me an email iff interested.

    My web page; canon camera battery charger, Stephanie,

  28. Cleveland says:

    Once the outbreak happens on, around or in the mouth, it really is called oral herpes.

  29. I’m really enjoying the theme/design of your site.
    Do you ever run into any web browser compatibility problems?
    A number of my blog visitors have complained about my site not working correctly in Explorer but looks great in Firefox.
    Do you have any advice to help fix this problem?

  30. It is really a great and helpful piece of info.
    I am glad that you just shared this useful info with us. Please stay us up to
    date like this. Thank you for sharing.

  31. You can do this multiple times of course, but
    resources won’t be extended to your account as this is maximum amount and limit.

  32. Syreeta says:

    nodraw.net has potential, you can make your blog
    go viral easily using one tricky method. Just type in google:
    Irsrod’s Method To Go Viral

  33. escort says:

    Greetings I am so grateful I found your site, I really found you by
    accident, while I was researching on Aol for something else, Anyhow I am here now and would just like to say thanks
    a lot for a fantastic post and a all round exciting blog (I also
    love the theme/design), I don’t have time to browse it all at the minute but I have book-marked it and also included your RSS feeds,
    so when I have time I will be back to read more, Please
    do keep up the excellent jo.

Leave a Reply

*