| Project: | YafaRay |
| Version: | 0.1.1 |
| Component: | Blender Exporter |
| Category: | bug report |
| Priority: | normal |
| Assigned: | 3D_Animator |
| Status: | active |
Hi everyone !
The first i want to thank YafaRay developers for this great render.
I think not a bad beat would add check material transparency options in AO settings,
or add this options in local material settings for individual check - affect from AO.
Best regards !
PS. Sorry my bad english

Comments
#1
I think this is more a bug than a feature request. The same problem is evident rendering glass with AO: the interior of a glass can is always black because "shadowed" by glass.
That's because the AO routine checks every ray for intersection with something without checking its transparency.
Regards
#2
Just a question:
in the source code the solution is already present, but commented out
directlight.cc:
shadowed = /* (trShad) ? scene->isShadowed(state, lightRay, sDepth, scol) : */ scene->isShadowed(state, lightRay);
Removing the comments everything works well. So, why the comments ? Any problem with the code ?
The commented code can also return in "scol" the amount of transparency, so it would be possible to calculate AO even better than with a simple true/false status...
Thanks