7
$\begingroup$

What is the difference between ambient occlusion vs environment lighting?

To me it looks like environmental lighting turns an image texture(or single color) into a hemi lamp source that shines from all angles but casts no shadows.

While Ambient occlusion turns a single color into a hemi lamp source that shines from all angles but casts some shadows.

Difference being: one has the ability to cast shadows and the other has the ability to use a texture as a lamp?

Actually, it looks like if you use environmental lighting, you automatically also use ambient occlusion just with less control over its shadows.

Im getting a circular error in my brain. Can-Not-Compute

The manual says the difference is

The difference is that Environment lighting takes into account the “ambient” parameter of the material shading settings, which indicates the amount of ambient light/color that that material receives.

But ambient occlusion has a similar setting called "Factor".

But the factor settings effects ambient occlusion for all objects while the "ambient" parameter effects just a single texture.

Is that it?

Here is a scene in Blender Render with AO on: enter image description here

and here is the same scene with environmental lighting on: enter image description here

So again, what is the difference?

enter image description here enter image description here

enter image description here enter image description here

$\endgroup$
5
  • $\begingroup$ related: blender.stackexchange.com/questions/7816/… $\endgroup$
    – user1853
    Commented Jul 15, 2016 at 0:26
  • $\begingroup$ @ cegaton Alright, but does that mean ambient occlusion is inside of Environmental mapping? Because environmental mapping has the "ambient" parameter in the material shading setting? $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 0:44
  • $\begingroup$ When you set up Environment It behaves like a sphere that surrounds the scene and lights the scene completely. If the environment is a single color you get the flattest possible light. Using an image as environment will make every pixel of that image behave like an emitter. $\endgroup$
    – user1853
    Commented Jul 15, 2016 at 0:48
  • $\begingroup$ @cegaton, what about the "ambient" parameter, does that have anything to do with ambient occlusion? $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 0:56
  • $\begingroup$ Trying to reproduce it, I feel like it's broken. My memories may be bad, but back in Blender 2.4 or so, it worked more like expected. $\endgroup$ Commented Jul 15, 2016 at 7:59

3 Answers 3

3
$\begingroup$

I wouldn't think of Ambient Occlusion as part of your scene lighting, it's really a tool to art direct your image, and (if you output it to a render pass) for extra flexibility in the post production of your image. As Duarte already mentioned it is not physically accurate but is much faster to calculate so it can be helpful to increase the visual appeal of the render.

If you look at many artists' making of videos, you'll generally see that the AO pass is added on in post and not usually as part of the scene render. It's technically a localized shadow effect that gives you more control over the contrast in crevices and surfaces that are close to each other.

I generally think of it as a tool to give you more control over the image, it's more of an art direction tool than a realistic lighting tool. I think it's more helpful to think of it that way. I know you can have AO enabled and combined into your raw render, but it's much more powerful as a post effect.

$\endgroup$
12
  • $\begingroup$ so the difference is that AO gets baked to a texture map but Environmental lighting doesnt? Is that it? $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 2:16
  • $\begingroup$ No, AO can be used as an effect added to the raw render, or it can be rendered separately as a render pass and then used in compositing to add additional depth to the image. The latter option provides more artistic control. $\endgroup$ Commented Jul 15, 2016 at 6:42
  • $\begingroup$ I personally would try to avoid using AO directly in your raw render, much more control in post $\endgroup$ Commented Jul 15, 2016 at 6:42
  • $\begingroup$ but if you baked the environmental lighting, wouldint you get the exact same texture? $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 6:43
  • $\begingroup$ If the env light was pure white and the strength was set properly, and all your materials were white, you might get a similar pass. The point is the AO is an extra effect to give you additional control over the darkness of crevices, contact shadows etc. $\endgroup$ Commented Jul 15, 2016 at 6:46
2
$\begingroup$

Bottom line is Ambient Occlusion is an approximation, it is used in place of real environment light when performance is a concern or realistic results are not needed/wanted.

It is fast and computationally inexpensive and yields 'good enough' results, it is a simplification and is not 'realistic' or physically correct.

Environment light however is (or can be depending on the Rendering engine implementation of course) physically correct and a 'real world phenomenon'. It can use real textures to simulate the natural lighting variations of a real world scene. It more realistic, but also a lot more complex to calculate and thus computationally expensive.

In Cycles, for example, enabling Ambient Occlusion overrides partially the natural lighting of a scene technically reducing realism and physical accuracy of a render.

$\endgroup$
13
  • $\begingroup$ so AO is the fast and dirty version of Environmental Lighting? $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 0:53
  • $\begingroup$ Yes it generally is sort of, depends a bit on the specific implementation of the rendering engine. I remember MentalRay for example had an ambient occlusion algorithm that took into account surrounding object's color. There are also non physically accurate real time versions of 'environment lighting', for real-time rendering (like PBR, game engines, etc.). But generally speaking most Ambient Occlusions are simpler and quicker than real Environment Lighting $\endgroup$ Commented Jul 15, 2016 at 1:04
  • $\begingroup$ okay, what about the "ambient" parameter in environmental lighting? $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 1:09
  • $\begingroup$ Where are you seeing this? Blender Internal? Cycles? Nodes? Properties window? $\endgroup$ Commented Jul 15, 2016 at 1:14
  • 1
    $\begingroup$ No as explained above the two simulate very similar aspects or lighting a scene but are totally separate effects and go about doing so in different ways. Depending on the render engine they can be used simultaneously on top of each other for more detail but are still independent from one another. $\endgroup$ Commented Jul 15, 2016 at 1:35
0
$\begingroup$

A google of "Enviroment Lighting vs Ambient Occlusion" yields a top result of a 2-post thread from the Blender Artists forums, with the second post saying this:

AO has to do with objects / surfaces close to gather, there by reducing lights reaching them. You get dark corners. Environment lighting is like fill lighting. It brighten up shadows.

I googled to understand it more and I feel complete now.

AO doesn't necessarily 'make the corners darker', when you have a bright light, it will amplify the bright parts and spread the light around a little. EL on the other hand doesn't touch the light you made but adds some more to everything, even where your light doesn't light up. EL can make the whole scene darker if you set it to a dark color.

how the hell do these not look different to you

$\endgroup$
14
  • $\begingroup$ now try putting that knowledge to use and test it out, I cant see any difference between them. $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 7:00
  • $\begingroup$ make an array of arrays of cubes stretching into the distance (with gaps between them!) and check the shadows between them? enviroment lighting uses raytracing vs ambient occlusion doing matrix multiplications of the rendered image. $\endgroup$
    – Aj Otto
    Commented Jul 15, 2016 at 7:03
  • $\begingroup$ tried it, they are still the same $\endgroup$
    – eromod
    Commented Jul 15, 2016 at 7:08
  • $\begingroup$ i'm triggered. i'm at work but i'm installing blender to investigate $\endgroup$
    – Aj Otto
    Commented Jul 15, 2016 at 7:09
  • 1
    $\begingroup$ they are not the same, even though they might look the same. $\endgroup$
    – Aj Otto
    Commented Jul 15, 2016 at 7:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .