Blender Git Commit Log

Git Commits -> Revision f0acdcf

Revision f0acdcf by Tamito Kajiyama (master)
October 30, 2011, 16:00 (GMT)
Fix for stroke rendering instability with stroke geometry shaders.

* Stroke::Resample(int nPoints) was not properly working when a wrong
value was returned from Stroke::getLength2D(), resulting in repeated
warning messages "Warning: incorrect points number" during stroke
rendering. The main cause was that stroke geometry shaders did not
update the two-dimensional (2D) length (also referred to as curvilinear
abscissa) after they modified the 2D points of stroke vertices. Now
all stroke geometry shaders make explicit calls for Stroke::UpdateLength()
that has been introduced for recomputing the 2D length. Many thanks to
Josef who reported the problem together with sample .blend files for
reproducing the issue.

* Missing Python wrapper of Stroke::getLength2D() was added.

Commit Details:

Full Hash: f0acdcf13526046236ce561736521100cba58ff1
SVN Revision: 41386
Parent Commit: 1f25228
Lines Changed: +46, -24

5 Modified Paths:

/release/scripts/freestyle/style_modules/parameter_editor.py (+3, -0) (Diff)
/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp (+25, -0) (Diff)
/source/blender/freestyle/intern/stroke/BasicStrokeShaders.cpp (+8, -0) (Diff)
/source/blender/freestyle/intern/stroke/Stroke.cpp (+7, -24) (Diff)
/source/blender/freestyle/intern/stroke/Stroke.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021