# AO exclude/include

**URL:** <https://forums.chaos.com/t/ao-exclude-include/126972>\
**Category:** Announcements\
**Created:** [January 26, 2014, 1:05pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972 "2014-01-26T13:05:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ondra\_1](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@Ondra\_1](https://forums.chaos.com/u/Ondra_1)\
**Post date:** [January 26, 2014, 1:05pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/1 "2014-01-26T13:05:26Z")

</div>

I’ve added new modes to the ambient occlusion shader to allow excludes/includes for the occlusion, either by list, or on the same object basis:

 ![oNlborG.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/3/9/3914f04fb924008931452d91b5ef24c6b464edb1.jpeg)

---

<div class="post-metadata">

**Author:** ![MatEvil](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@MatEvil](https://forums.chaos.com/u/MatEvil)\
**Post date:** [January 26, 2014, 1:23pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/2 "2014-01-26T13:23:58Z")

</div>

Good 😉

---

<div class="post-metadata">

**Author:** ![kregred\_1](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kregred\_1](https://forums.chaos.com/u/kregred_1)\
**Post date:** [January 26, 2014, 1:38pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/3 "2014-01-26T13:38:44Z")

</div>

Just perfect! It is often necessary.

---

<div class="post-metadata">

**Author:** ![antanas\_1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@antanas\_1](https://forums.chaos.com/u/antanas_1)\
**Post date:** [January 26, 2014, 4:15pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/4 "2014-01-26T16:15:27Z")

</div>

Great !

---

<div class="post-metadata">

**Author:** ![Polymax\_1](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Polymax\_1](https://forums.chaos.com/u/Polymax_1)\
**Post date:** [January 26, 2014, 4:56pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/5 "2014-01-26T16:56:05Z")

</div>

Useful feature! Thank you!

---

<div class="post-metadata">

**Author:** ![cgi.ghost](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/cgi.ghost/32/185640_2.png) [@cgi.ghost](https://forums.chaos.com/u/cgi.ghost)\
**Post date:** [January 26, 2014, 6:00pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/6 "2014-01-26T18:00:10Z")

</div>

You keep adding features, that I’ve been asking other engine developers for year, like it’s no problem!

Amazing KM, keep it up!

---

<div class="post-metadata">

**Author:** ![nerosama](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@nerosama](https://forums.chaos.com/u/nerosama)\
**Post date:** [January 26, 2014, 6:17pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/7 "2014-01-26T18:17:40Z")

</div>

Great !!!

---

<div class="post-metadata">

**Author:** ![bair\_tsyrenov](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@bair\_tsyrenov](https://forums.chaos.com/u/bair_tsyrenov)\
**Post date:** [January 27, 2014, 7:43am UTC](https://forums.chaos.com/t/ao-exclude-include/126972/8 "2014-01-27T07:43:13Z")

</div>

its good, Thank you!

---

<div class="post-metadata">

**Author:** ![jjaz82](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jjaz82](https://forums.chaos.com/u/jjaz82)\
**Post date:** [January 27, 2014, 8:33am UTC](https://forums.chaos.com/t/ao-exclude-include/126972/9 "2014-01-27T08:33:34Z")

</div>

Smart AO.. 😃 Perfect

---

<div class="post-metadata">

**Author:** ![fellazb](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@fellazb](https://forums.chaos.com/u/fellazb)\
**Post date:** [January 27, 2014, 9:28am UTC](https://forums.chaos.com/t/ao-exclude-include/126972/10 "2014-01-27T09:28:21Z")

</div>

In MR you have another way of setting up AO. There is the default feature like you illustrate (put a AO shader in the diffuse slot), but the second one is pretty neat. It only creates AO where there’s no direct light and gives a realistic approach of using AO because it only appears on indirect illumination spots. This can be found under the “special effects” tab of the A&D shaders.

See attachment for the difference. It would be very nice to see such a feature for AO in Corona.

 ![ao_(in)direct.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/7/9/79c8d4d30ea38d8d64ccdd104ca3e7da9aaca346.jpeg)

---

<div class="post-metadata">

**Author:** ![fellazb](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@fellazb](https://forums.chaos.com/u/fellazb)\
**Post date:** [January 27, 2014, 11:07am UTC](https://forums.chaos.com/t/ao-exclude-include/126972/12 "2014-01-27T11:07:08Z")

</div>

Rawalanche,

You’re true about that, see attachment.

but I’d like to address the fact that AO shouldn’t be used (or far less) at places with direct light. An online manual posted somewhere on this forum tells a same story.

[http://www.slideshare.net/ozlael/hable-john-uncharted2-hdr-lighting](http://www.slideshare.net/ozlael/hable-john-uncharted2-hdr-lighting) (page 173 (and some pages before and after to explain the principle))

The AO in the special effects roll-out of the A&D shader deals with this quite clever I think unless the fact that it actually generates AO the same way as you stated but with a better refinement.

 ![ao_(in)direct2.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/b/5/b5851c80fa6280476faab1067839e688d522d835.jpeg)

---

<div class="post-metadata">

**Author:** ![Ondra\_1](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@Ondra\_1](https://forums.chaos.com/u/Ondra_1)\
**Post date:** [January 27, 2014, 2:52pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/13 "2014-01-27T14:52:13Z")

</div>

AO in Corona is meant only as a dirt simulation, not GI simulation, and as such, is independent on the actual lighting. You should never, ever get into a situation where you need to “enhance” the GI solution with AO in Corona.

---

<div class="post-metadata">

**Author:** ![Midge\_S](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Midge\_S](https://forums.chaos.com/u/Midge_S)\
**Post date:** [January 27, 2014, 3:15pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/14 "2014-01-27T15:15:29Z")

</div>

How about inverse AO? I tend to use it to detail edges of things such as metal objects with rust or scratches on the edges.  
Combined with being able to plug in a map you can get some pretty nice effects.

---

<div class="post-metadata">

**Author:** ![Ondra\_1](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@Ondra\_1](https://forums.chaos.com/u/Ondra_1)\
**Post date:** [January 27, 2014, 5:59pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/15 "2014-01-27T17:59:27Z")

</div>

already done, check the invert checkbox

---

<div class="post-metadata">

**Author:** ![Utroll](https://avatars.discourse-cdn.com/v4/letter/u/f19dbf/32.png) [@Utroll](https://forums.chaos.com/u/Utroll)\
**Post date:** [January 27, 2014, 6:49pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/16 "2014-01-27T18:49:44Z")

</div>

Nice about all those new modes.  
Is it possible to have ‘only other objects’ and ‘exclude list’ working at the same time or is it a dropdown menu ?

---

<div class="post-metadata">

**Author:** ![Ondra\_1](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@Ondra\_1](https://forums.chaos.com/u/Ondra_1)\
**Post date:** [January 27, 2014, 7:19pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/17 "2014-01-27T19:19:13Z")

</div>

it is a radio button

---

<div class="post-metadata">

**Author:** ![art-MIXER](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/art-mixer/32/235073_2.png) [@art-MIXER](https://forums.chaos.com/u/art-MIXER)\
**Post date:** [January 28, 2014, 4:49pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/18 "2014-01-28T16:49:03Z")

</div>

Thank you very much, this is exactly what I asked here [http://forum.corona-renderer.com/index.php/topic,2527.0.html](http://forum.corona-renderer.com/index.php/topic,2527.0.html) Your efficiency is respected)

---

<div class="post-metadata">

**Author:** ![belly](https://avatars.discourse-cdn.com/v4/letter/b/f4b2a3/32.png) [@belly](https://forums.chaos.com/u/belly)\
**Post date:** [January 29, 2014, 10:50am UTC](https://forums.chaos.com/t/ao-exclude-include/126972/20 "2014-01-29T10:50:14Z")

</div>

I absolute agree with Rawalanche!!

---

<div class="post-metadata">

**Author:** ![d252\_1](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@d252\_1](https://forums.chaos.com/u/d252_1)\
**Post date:** [September 29, 2015, 10:03am UTC](https://forums.chaos.com/t/ao-exclude-include/126972/21 "2015-09-29T10:03:33Z")

</div>

Hey! I have a question..  
Is there any way to create invisible object that generates AO?  
if I turn down the opacity - AO dissapears aswell if I turn off Renderable checkbox..  
In my workflow I really need not-renderable objects to generate AO is there any way to achieve it?

---

<div class="post-metadata">

**Author:** ![Tanakov](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@Tanakov](https://forums.chaos.com/u/Tanakov)\
**Post date:** [September 29, 2015, 1:30pm UTC](https://forums.chaos.com/t/ao-exclude-include/126972/22 "2015-09-29T13:30:45Z")

</div>

Yes there is, just make a second render with CTexmap Renderpass and CoronaAO in it, then add the AO in post.
