Skip to main content
replaced http://blender.stackexchange.com/ with https://blender.stackexchange.com/
Source Link

Related: How to get length of specific ray type and use that as color?How to get length of specific ray type and use that as color?

So the idea is to use the Light Path node's Ray Length to form the basis for ambient occlusion but the Camera position relative to the object is a part of the Ray Length info and this makes such a calculation difficult since this alter the results based on how far a specific position is to the camera.

Here is a demonstration of what I meanenter image description here.

Here's a node setup that shows this effect.

enter image description here

For AO to work, this effect has to be cancelled out since the dirt and grime which tends to accumulate in crevices will not be affected by how far the viewer is from the object.

So my question is this. Does anyone have some ideas on how to remove the camera influence from the Ray Length result?

Related: How to get length of specific ray type and use that as color?

So the idea is to use the Light Path node's Ray Length to form the basis for ambient occlusion but the Camera position relative to the object is a part of the Ray Length info and this makes such a calculation difficult since this alter the results based on how far a specific position is to the camera.

Here is a demonstration of what I meanenter image description here.

Here's a node setup that shows this effect.

enter image description here

For AO to work, this effect has to be cancelled out since the dirt and grime which tends to accumulate in crevices will not be affected by how far the viewer is from the object.

So my question is this. Does anyone have some ideas on how to remove the camera influence from the Ray Length result?

Related: How to get length of specific ray type and use that as color?

So the idea is to use the Light Path node's Ray Length to form the basis for ambient occlusion but the Camera position relative to the object is a part of the Ray Length info and this makes such a calculation difficult since this alter the results based on how far a specific position is to the camera.

Here is a demonstration of what I meanenter image description here.

Here's a node setup that shows this effect.

enter image description here

For AO to work, this effect has to be cancelled out since the dirt and grime which tends to accumulate in crevices will not be affected by how far the viewer is from the object.

So my question is this. Does anyone have some ideas on how to remove the camera influence from the Ray Length result?

Tweeted twitter.com/#!/StackBlender/status/494376312371679232
Source Link
MarcClintDion
  • 9.7k
  • 7
  • 33
  • 57

Cycles: How can the camera position be removed from the Light Path node's Ray Length

Related: How to get length of specific ray type and use that as color?

So the idea is to use the Light Path node's Ray Length to form the basis for ambient occlusion but the Camera position relative to the object is a part of the Ray Length info and this makes such a calculation difficult since this alter the results based on how far a specific position is to the camera.

Here is a demonstration of what I meanenter image description here.

Here's a node setup that shows this effect.

enter image description here

For AO to work, this effect has to be cancelled out since the dirt and grime which tends to accumulate in crevices will not be affected by how far the viewer is from the object.

So my question is this. Does anyone have some ideas on how to remove the camera influence from the Ray Length result?