7 Tips For Better Lighting in Unity
Subscribe:  iCal  |  Google Calendar
7, Mar — 12, Jun
San Francisco US   19, May — 24, May
London GB   29, May — 1, Jun
Birmingham GB   1, Jun — 4, Jun
Taipei TW   5, Jun — 10, Jun
Latest comments
by derjyn@gmail.com
5 hours ago

$16 for a *very* non-performant material? If this was intended for use in high-detail scenes, not meant for gameplay, one would generally just use a flipbook animation, or looping HD video texture (both of which are higher quality and available for free all over). I love options, but c'mon, that's pretty steep. $5, maybe. And you can loop in materials, using custom HLSL nodes. Also, there are better ways of doing this, all around. Somewhere on the forums, Ryan Brucks (of Epic fame) himself touched on this. I've personally been working on a cool water material (not "material blueprint", thankyouverymuch) and utility functions, and am close to the quality achieved here, sitting at ~180 instructions with everything "turned on". The kicker? It's pure procedural. No textures are needed. So this is cool, no doubt about that. In my humble opinion though, it's not "good". It doesn't run fast, and it's more complicated than it needs to be.

Lee is right - you can use a gradient effect when you vertex paint in your chosen 3d modelling platform (I've done it in max), meaning the wind effect shifts from nothing to maximum along the length of the leaf/branch/whatever.

by Lee Stojkovic
6 hours ago

I'm fairly certain you can vertex paint the bottoms of the foliage and control the movement using vertex colors along with the wind node. I did this in an earlier project and was able to create a scene with grass that moved less and less as it went down until stationary. I created the grass and painted the vertexes black to red (bottom to top) in Maya.

7 Tips For Better Lighting in Unity
21 August, 2017

Justin from LMHPoly allowed us to repost his article on setting up a perfect lighting in Unity. 7 useful tips for your atmospheric scenes. 

My 7 tips for better lighting in Unity 5.6 and up.

Tip 1. Use Linear Color Space. It’s important to choose a ‘Color Space’ before lighting your project. The preferred Color Space for realistic rendering is Linear. By default Unity use Gamma Color Space. To change it go to (Edit > Project Settings > Player), inside Other Settings tab you will find Color Space* – change it to Linear. Read more about Gamma and Linear Color Space HERE.

Gamma vs Linear (no Post-Processing)

Gamma vs Linear (with Post-Processing)

Tip 2. Use Global Illumination (GI) – for more realistic lighting. It’s a system that models how light is bounced off of surfaces onto other surfaces (indirect light) rather than being limited to just the light that hits a surface directly from a light source (direct light). Read more about Global Illumination.

Realtime Global Illumination OFF vs Realtime Global Illumination ON.

To turn on Realtime Global Illumination go to (Window > Lighting > Settings), Lighting window will appear. Open Scene tab inside Lighting window and enable Realtime Global Illumination. You can change Realtime GI resolution by changing Indirect Resolution.

Both Baked GI and Precomputed Realtime GI have the limitation that only Static objects can be included in the bake/precomputation – so moving objects cannot bounce light onto other objects and vice versa. However they can still pick up bounce light from static objects using Light Probes.

Tip 3. Color Harmony. You must understand colors to create nice lighting and atmosphere in the scene. Read more about Color Harmonies.

Scene use 2 Complementary colors of Blue and Orange.

Scene use 3 main Analogus colors from Green to Yellow.

Scene use 2 main Complementary colors of Blue and Orange.

Different lighting colors can change the scene mood drastically:

Tip 4. Use very Light Colors, Don’t use Over Saturated colors! Light colors are much more pleasant to the eye, and looks more realistic. Watch this video to Understand Colors more – by Andrew Price.

Over Saturated Colors vs Light Colors.

Tip 5. Play with Lights – change Light Direction and Shadows to get different results.

Tip 6. Play with Ambient Color to change shadows color. You can get pretty nice results by changing shadows color.

You can do it by going to (Window > Lighting > Settings), Lighting window will appear. Inside Lightingwindow open Scene tab and set Environment Lighting Source to Color. Now you can change Ambient Color to any color you want.

Tip 7. Use Post-Processing image effects. By using Post-Processing image effects you can improve overall scene lighting very drastically. Here is an example in Unity 5.6 – I’ve used FREE Post Processing Stack from Unity Asset Store.

Post-Processing OFF vs Post-Processing ON

Post-Processing OFF vs Post-Processing ON

I hope that these few tips will help you to improve your overal lighting in Unity. Keep learning and practice every day! 

If you have any questions, feel free to ask!

The article was originally published here.

Source: lmhpoly.com

Leave a Reply

3 Comments on "7 Tips For Better Lighting in Unity"




These are render settings, and have very little to do with lighting. As Lights, and Light Parameters, as well as setups / key fill, back are not discussed.


Great! Thanks.