Volume Region: wrong attenuation calculation in some cases

Component:YafaRay Core
Category:bug report
Assigned:David Bluecame

I've seen that the Volume Regions attenuation calculations in some cases are incorrect, generating wrong colors, sometimes even negative colors.

For example, wrong calculation:

volumes_issue - wrong render.jpgvolumes_issue - wrong render.jpg


I've made a change that I hope solves the problem. The change, which will be included in the next YafaRay version, is here:



With the change applied, this is the correct render:

volumes_issue - fixed.jpgvolumes_issue - fixed.jpg


I will upload the scene in the first comment after this entry. For some reason the YafaRay website does not work well with attachments in the first post of an Issue entry.



Example test scene attached.

volumes_issue.blend.zip 114.17 KB


Status:ready to commit» fixed


This issue has been fixed in the new YafaRay v3.1.0-beta. See: http://www.yafaray.org/community/forum/viewtopic.php?f=15&t=5184


Status:fixed» needs work

Apparently I've fixed one problem and created another :-(

oort has reported new volumetric problems now in v3.1.0 that didn't happen in v3.0.2, probably caused by this change above.


I will have to think on another way of fixing the original problem without causing another!


Status:needs work» fixed


All these issues are (hopefully) solved now in the new v3.1.1-beta

See: http://www.yafaray.org/community/forum/viewtopic.php?f=15&t=5184


Status:fixed» closed

Fixed for more than 2 weeks without further feedback, closing.