Blender Git Loki
Git Commits -> Revision 9c883a1
Revision 9c883a1 by Lukas Toenne (master) January 22, 2014, 13:37 (GMT) |
Fix T38011 and cleanup of Lens Distortion node code. The area-of-interest calculation for that node didn't work reliably. It tries to estimate the distorted rectangular area based on min/max distortion and dispersion values, but this fails in some cases and leaves uninitialized buffer chunks. So now simply use the full input rect as the area, even though it may not be as efficient - at least it works ... Also cleaned up the code somewhat to make it understandable, using separate functions for common stuff instead of cryptic walls of math. |
Commit Details:
Full Hash: 9c883a1ecabe387533909b1e3116c2c30418f6e9
Parent Commit: 418aafd
Lines Changed: +243, -212
4 Modified Paths:
/source/blender/compositor/nodes/COM_LensDistortionNode.cpp (+7, -8) (Diff)
/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h (+0, -4) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp (+215, -179) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.h (+21, -21) (Diff)
/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h (+0, -4) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.cpp (+215, -179) (Diff)
/source/blender/compositor/operations/COM_ScreenLensDistortionOperation.h (+21, -21) (Diff)