question

Lucas Tebib avatar image
Lucas Tebib asked ·

[HtoA] Visible to shadow rays causes issue on a shader

Hi,


Houdini version: 18.0.597

HtoA version: 5.5.0.0


I have a problem with 2 geometries:

- a stone wall, textured entirely with triplanar and noises

- a book shelf, untextured (just a default Standard Surface)


Both geometries are clean, without any unnecessary attribute or group.


Here's a screenshot of the viewport:

1605227364281.png

Here's how my wall should look like in the diffuse_albedo and Ambient Occlusion AOVs -please ignore the floating pieces:

good-albedo.pnggood-ao.png


When I try to display the book shelf geometry in the render, here's what happens:

bad-albedo.pngbad-ao.png



Here's what I've tried to do or looked at so far:


- Investigated my wall shader, nothing changed

- Created a new Houdini scene, nothing changed

- Disabled the subdivision and displacement on my wall, nothing changed

- Imported new versions of the geometries, nothing changed

- Tested on both CPU and GPU, nothing changed

- Tried to display any other geometry from my scene, everything works fine until I display the book shelf geometry or the books I have on the book shelves

- A lot more stuff I don't remember (been on it for several hours now)


I checked the log file and nothing wrong or related is in it.


The only workaround I found is to uncheck the "Visible to Shadow Rays" parameter on the book shelf geometry node. With this, I can render both geometries together without having the problem.

But obviously this is not a viable solution, as I don't have the correct shadows on my book shelf geometry.


The shader that is being affected by this issue uses an AmbientOcclusion node. From what I can see after all my tests, is that the Shadow Rays of my book shelf geometry are affecting the AmbientOcclusion of my wall geometry (it basically invert the normals of my geometry but only for the AmbientOcclusion, as the N AOV looks good).


I currently run out of idea on how to fix that.


I can of course make several render layers in order to composite everything together later on, but the render is quite heavy and long on my poor PC so I'd like to avoid that as much as possible.

shadersshadow
good-albedo.png (722.0 KiB)
good-ao.png (350.5 KiB)
bad-albedo.png (659.4 KiB)
bad-ao.png (367.4 KiB)
1605227364281.png (225.7 KiB)
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.

1 Answer

· Write an Answer
Lucas Tebib avatar image
Lucas Tebib answered ·

Hi,


After a few tests I realized the ambient occlusion far clip might actually be too strong in my case (I left it at 100, which is the default).

I didn't think it would come from this, as my two geos always has the same distance between each other, but kinda make sense anyway: my geos are really really tall (250 meters), so after some point, the AO far clip needs to be reduced (or the falloff, depending on the needs).


I'm glad I found a workaround for this.

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.

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.