[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52060] trunk/blender/source/blender/ compositor/operations/COM_MovieDistortionOperation.cpp: Fixes for movie distortion node
Sergey Sharybin
sergey.vfx at gmail.com
Sat Nov 10 05:59:41 CET 2012
Revision: 52060
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52060
Author: nazgul
Date: 2012-11-10 04:59:32 +0000 (Sat, 10 Nov 2012)
Log Message:
-----------
Fixes for movie distortion node
- Somehow this node was using nearest interpolation which seems have been
passed from compositor node. It was using b-spline interpolation with
old compositor implementation. Now forced this node to use bilinear
interpolation, which should be close enough.
- Operation should be marked as complex it seems, otherwise area of
interest wouldn't make any affect on it's behavior.
Modified Paths:
--------------
trunk/blender/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp
Modified: trunk/blender/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp
===================================================================
--- trunk/blender/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp 2012-11-10 03:11:18 UTC (rev 52059)
+++ trunk/blender/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp 2012-11-10 04:59:32 UTC (rev 52060)
@@ -49,7 +49,9 @@
this->m_movieClip = NULL;
this->m_cache = NULL;
this->m_distortion = distortion;
+ setComplex(true);
}
+
void MovieDistortionOperation::initExecution()
{
this->m_inputOperation = this->getInputSocketReader(0);
@@ -105,10 +107,10 @@
if (this->m_cache != NULL) {
float u, v;
this->m_cache->getUV(&this->m_movieClip->tracking, x, y, &u, &v);
- this->m_inputOperation->read(output, u, v, sampler);
+ this->m_inputOperation->read(output, u, v, COM_PS_BILINEAR);
}
else {
- this->m_inputOperation->read(output, x, y, sampler);
+ this->m_inputOperation->read(output, x, y, COM_PS_BILINEAR);
}
}
More information about the Bf-blender-cvs
mailing list