question

Andrew Noh avatar image
Andrew Noh asked ·

How can I connect the Ambient Occlusion Shader to a textured Arnold Standard Shader?

Hi everyone,

I was wondering if it's possible to get Ambient Occlusion connected to a Standard Arnold Shader that has texture files connected to it? Basically would like to get the dark shadow AO added onto my textured environment.

Is there any way to achieve this?

arnoldshaderstandard surfacearnold shader network editorstandard
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Aaron Ross avatar image
Aaron Ross answered ·

Here's the source for Mike Farnsworth's AO Light Filter

aolightfiltershader.zip


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Aaron Ross avatar image
Aaron Ross answered ·

There's a material called aiLayerShader that lets you composite materials on each other. This would be the way to go if you want to mask the entire material and all components... diffuse, specular, SSS, etc.

Another way to go would be to send the AO to the Weight inputs of each material component such as diffuse or specular.

Still another way to go, depending on the results you want, would be to install the AO Light Filter. It's a secret magic Arnold plugin that is not included with the installation. There's no good reason this isn't available. It's super useful. You can get fake GI by disabling all Diffuse rays, adding a Skydome without shadows, and then adding the AO Light Filter to the Skydome.

aolightfilter.zip


aolightfilter.zip (7.8 KiB)
Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Zeno Pelgrims avatar image
Zeno Pelgrims answered ·

You can use a mix shader with the AO shader connected to the mix parameter, or you can use a layered texture shader and mix the AO shader on top of the diffuse only.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane answered ·

@Mads Drøschler
Update for cinema4D create menu
Put: AOLightFilter.dll & AOLightFilter.mtd in: C:\Program Files\Maxon Cinema 4D R21\plugins\C4DtoA\arnold\plugins
you can access the plugin via Arnold Shader Network Editor in Light filter section
If you want to get ambient_occlusion_lightfilter showing in create menu (Create->arnol->Light Filter)
you have to override c4d_symbols.h with provided one
override in C:\Program Files\Maxon Cinema 4D R21\plugins\C4DtoA\res
put arnold light_filter.str in : C:\Program Files\Maxon Cinema 4D R21\plugins\C4DtoA\res\strings_en-US\description
put ainode_light_filter.res in : C:\Program Files\Maxon Cinema 4D R21\plugins\C4DtoA\res\description

aoLightFilter_update_C4DtoA.zip


2 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Perfect!
Looking at updating later today :)


0 Likes 0 · ·

https://www.masd.dk/arnold-ao-light-filter/


Updated, if you have time, try see if I got the instruction somewhat right.

0 Likes 0 · ·
Tatjana Jukova avatar image
Tatjana Jukova answered ·

Hi all, I've followed the installation instructions Mads has on his website(C/ProgramData/Autodesk/ApplicationPlugins), but I don't see the light filter show up in drop down menu for skydomes. His tutorial video is of little help sadly, as well since it doesn't cover installation of this plugin. Am I missing something?..A little help will be appreciated :)

9 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

I don't know where the file have to go if you use Maya, but in MAX it should work if you put the .dll file into the root folder of the Arnold plugin.

0 Likes 0 · ·

in maya the best way is to create a folder(LightFilter) with 02 subfolders(ae & bin)
AOLightFilter.dll & AOLightFilter.mtd in bin folder
AOLightfilterTemplate.py in ae folder
then add ARNOLD_PLUGIN_PATH & MTOA_TEMPLATES_PATH variables
ARNOLD_PLUGIN_PATH = C:\LightFilter\bin
MTOA_TEMPLATES_PATH = C:\LightFilter\ae

Here is LightFilter for Maya Houdini and Cinema4D
LightFilter.zip

here is the aeTemplate file

and here is the edited mtd file

0 Likes 0 · ·
Mads Drøschler avatar image Mads Drøschler rachid Hadj Abderrahmane ·

OK, I think Im going to update the files on my git where its located and rewrite description on site so it works with your py file.

0 Likes 0 · ·
Show more comments
Show more comments
jack frost avatar image
jack frost answered ·

If somebody else wants to use that with Arnold 4 ...


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Aaron Ross avatar image
Aaron Ross answered ·

"is that any different from comping over an AO pass with the same settings?"

Depends on how much comping you want to do. If you saved the skydome illumination out as its own light group AOV render pass, then multiplied that with the AO pass, then yes, you'd get the same result ... transparent objects notwithstanding. If you did have transparent objects, then you'd need to create a material override for those so they wouldn't capture the AO pass. Using the light filter makes the whole job way easier.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

jack frost avatar image
jack frost answered ·

Thanks for that! Seems to have a similar effect as the shadow controls Renderman had for years.

However, maybe I'm missing something but is that any different from comping over an AO pass with the same settings?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

jack frost avatar image
jack frost answered ·

Would you also have the source for that filter?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Amy Mcclure avatar image
Amy Mcclure answered ·

Thanks Zeno, I know how to use a mix shader but what do you mean by layered? Just want to improve.

1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Layer textures are here.

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.