Volume Region: wrong attenuation calculation in some cases

Project:YafaRay
Component:YafaRay Core
Category:bug report
Priority:normal
Assigned:David Bluecame
Status:closed
Description

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:

https://github.com/YafaRay/Core/commit/8a85505fbf4f144058ba0280a0e52bbdc...

 

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.

Comments

#1

Example test scene attached.

AttachmentSize
volumes_issue.blend.zip 114.17 KB

#2

Status:ready to commit» fixed

Hello,

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

#3

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.

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

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

#4

Status:needs work» fixed

Hello,

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

#5

Status:fixed» closed

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