Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-19Freestyle: Python API documentation updates.Tamito Kajiyama
Fixed dead references of API identifiers (e.g., freestyle.types.Interface0D) due to relocations of the identifiers into submodules. Also made various minor revisions of mark-ups and typos.
2014-09-18Fix for missing Freestyle sections in the Blender Python API documentation.Tamito Kajiyama
Freestyle sections of the API docs were empty due to Freestyle module reorganization in commit rB6498b96ce7081db039354228213d72e8c70bd3aa. Module __all__ property was added to submodules so as to properly exclude irrelevant documentation elements such as mathutils.Vector.
2014-09-11Freestyle: Fix for missing quality control on line rendering in Cycles.Tamito Kajiyama
Freestyle was using the default Cycles rendering settings (e.g., the number of samples) and users could not change them. Now all render parameters (except for film_transparent) are inherited for Freestyle stroke rendering. Problem report by Danny Grimm on Facebook, thanks!
2014-09-02Better fix for T41464: Material Boundary bug in Freestyle.Tamito Kajiyama
The problem addressed here is that there was no mean to check if an iterator points the last of the elements being iterated over. Such checking is necessary to reliably dereference the iterator (i.e., calling the operator*() method of the underlying C++ iterator object). Now Interface0DIterator and StrokeVertexIterator have an .at_last property to check if an iterator points the last element. Using this new API feature, the present commit partly reverts the previous commit rBeb8964fb7f19 to better address T41464. Differential revision: https://developer.blender.org/D752 Author: flokkievids (Folkert de Vries) Reviewed by: kjym3 (Tamito Kajiyama)
2014-08-20Fix T41464: Material Boundary bug in Freestyle.Tamito Kajiyama
The reported issue was caused by an old bug combined with another bug introduced by recent Freestyle Python API updates. The old bug was that a mutable reference to CurvePoint was treated as if it were immutable. Iteration over CurvePoint objects is implemented by the C++ CurvePointIterator class, whose dereference method CurvePointIterator::operator*() returns a reference to a mutable data member (probably originally intended for better performance). Hence the returned reference may vary upon iteration over different CurvePoints. This implementation detail was overlooked and the returned reference was treated as immutable (which is the case in fact for other Interface0D subclasses except for CurvePoint). This bug was surprisingly old as it existed before the beginning of Freestyle integration into Blender. The other bug was in the MaterialBoundaryUP0D predicate class that was not properly handling the end of iteration. It is noted that when the iter() and next() built-in functions are applied to Interface0DIterator, it is no longer possible to reliably check the end of iteration by the .is_end property of the iterator. Namely, the .is_end property works as expected only when iteration is carried out in combination with the conventional .increment() and .decrement() methods of the iterator. For this reason the commit rBb408d8af31c9 was partly reverted to recover the previous definition of MaterialBoundaryUP0D.
2014-08-17CleanupCampbell Barton
2014-08-13Fix possible uninitialized var useCampbell Barton
2014-08-13SpellingCampbell Barton
2014-08-12Freestyle: Removed the stored bContext from the Controller class.Tamito Kajiyama
The stored context object was used for creation of shade nodes. A closer look at the node system showed that the context is not actually used when shader nodes are added to a shader node tree. Relying on this fact, now a NULL pointer is passed to nodeAddStaticNode() instead of the stored bContext pointer.
2014-08-12Freestyle: removed dead code in BlenderStrokeRenderer.Tamito Kajiyama
2014-08-12Freestyle: Removed debugging code (use G.main instead of Freestyle-local ↵Tamito Kajiyama
struct Main).
2014-08-12Fix for vertex colors not working properly.Tamito Kajiyama
Looks like the issue was caused by a UV map name starting with a lower case letter (e.g., "color"). Capitalizing the name fixed the problem. Also adjusted the creation of custom data layers to optimize things a bit.
2014-08-12Fix for wrong link in the line style shader nodes due to a typo.Tamito Kajiyama
2014-08-12Fix for SCENE_OT_freestyle_stroke_material_create not respecting "use_nodes" ↵Tamito Kajiyama
line style prop.
2014-08-12Freestyle: Proper support for alpha transparency in line style shader nodes ↵Tamito Kajiyama
for Cycles.
2014-08-12Freestyle: Fix for error handling in SCENE_OT_freestyle_stroke_material_create.Tamito Kajiyama
2014-08-12Freestyle: Fix for an increasing reference count of images in copied Image ↵Tamito Kajiyama
Texture shader nodes.
2014-08-12Freestyle: Properly reconnect links from a UV Along Stroke node to a UV Map ↵Tamito Kajiyama
node.
2014-08-12Freestyle: Caching of auto-generated materials from line style shader nodes.Tamito Kajiyama
2014-08-12Removed/disabled debugging code.Tamito Kajiyama
2014-08-12Freestyle: an improved workflow of line style shading nodes.Tamito Kajiyama
Removed the previous changes for passing a line style through the Controller, and revised the BlenderTextureShader to assign the shader node tree of a line style (if specified) to strokes. This way the assignment of shading nodes can be done through both the Freestyle GUI and Python scripting.
2014-08-12WIP commit just for a record of a working snapshot of code revisions for ↵Tamito Kajiyama
node-based textured strokes.
2014-08-12Made temporary changes to use G.main rather than Freestyle-local Main for ↵Tamito Kajiyama
debugging.
2014-08-12Freestyle: Fix for a crash during access to Scene properties from within Python.Tamito Kajiyama
2014-08-12Freestyle: Keep a reference of the line style in Stroke rather than in ↵Tamito Kajiyama
StrokeRep.
2014-08-12Fix for renamed API functions in rB415af0b.Tamito Kajiyama
2014-08-12Freestyle: Removed a debug print in BlenderStrokeRenderer::GetStrokeShader().Tamito Kajiyama
2014-08-12Freestyle: Added "blend_type" and "use_clamp" options to the Output Line ↵Tamito Kajiyama
Style shader node.
2014-08-12Freestyle: Fix for stroke_shader node default values copied from the Output ↵Tamito Kajiyama
Line Style node.
2014-08-12Follow-up to rB647969f9b617: Renamed CTX_data_linestyle_from_scene() to ↵Tamito Kajiyama
BKE_get_linestyle_from_scene().
2014-08-12Freestyle: Added preliminary support for textured strokes in Cycles.Tamito Kajiyama
Now the shader node tree of a line style ID datablock is used to define textures as well as their mapping and influence. TODO: Textures alpha channel mapping and influence. TODO: Blend mode in the Output Line Style shader node.
2014-08-12Enabled USE_CYCLES_FOR_STROKE_RENDERING compile-time flag by default.Tamito Kajiyama
2014-08-12Always use the Blender Internal renderer for stroke rendering.Tamito Kajiyama
2014-08-12Added new operator "Create Freestyle Stroke Material" for testing.Tamito Kajiyama
2014-08-12Fix for hard-coded #include file paths.Tamito Kajiyama
2014-08-12Removed ad-hoc use of R_PERSISTENT_DATA for Freestyle/Cycles.Tamito Kajiyama
2014-08-12Initial implementation of Cycles materials for Freestyle stroke rendering.Tamito Kajiyama
2014-08-12Proof-of-concept implementation of Freestyle support for Cycles.Tamito Kajiyama
2014-08-07Cleanup: Remove special code for Visual Studio 2008.Thomas Dinges
Goodbye VC2008, it has been a pleasure (more or less) :D SCons / CMake cleaenup will follow. Differential Revision: https://developer.blender.org/D715
2014-08-05Cleanup: indentationCampbell Barton
2014-07-24Freestyle Python API: Updates and speedups for the parameter editorTamito Kajiyama
In addition to D319, this patch updates the parameter editor, the UI of Freestyle. Using new API functionality and experience gained in making D319, this patch provides a quite noticable speedup for commonly-used Freestyle linestyle modifiers. As this patch touches a lot of code (and mainly the foundations) it is likely that mistakes are made. The patch has been tested with a regression suite for Freestyle (https://github.com/folkertdev/freestyle-regression-tests/tree/master), but testing with scenes used in production is very much appreciated. Differential revision: https://developer.blender.org/D623 Author: flokkievids (Folkert de Vries) Reviewed by: kjym3 (Tamito Kajiyama)
2014-07-23Freestyle: minor speedup by omitting unnecessary transform matrix operations ↵Tamito Kajiyama
in the file loader. Previously the imported mesh data were transformed by a local-to-world projection matrix through NodeTransform. Now that the file loader assumes the imported mesh data already in the camera coordinate system, an indentity matrix was supplied to NodeTransform. The present commit avoids this redundant matrix operation by using NodeGroup instead of NodeTransform, recalling the latter is a subclass of the former with extra matrix computations.
2014-07-22Freestyle: added a note on #include "DNA_material_types.h".Tamito Kajiyama
2014-07-13Freestyle: minor docstring fixes.Tamito Kajiyama
2014-07-09Freestyle: fix for crash in the constructor of ↵Tamito Kajiyama
freestyle.types.StrokeVertexIterator.
2014-07-07Per-material line color settings for Freestyle.Tamito Kajiyama
New properties 'line_color' and 'line_priority' are added to Material ID data blocks. The 'line_color' property allows users to specify a per-material line color that can be used as a Freestyle line color through Material color modifiers of line style settings. The new line color property is intended to provide a solution for line color stylization when a proper Freestyle support for Cycles is implemented (likely as part of the upcoming Blender 2.72 release; see Patch D632). Materials in Cycles are usually set up using shader nodes, and Freestyle won't be capable of retrieving colors and other properties from node-based materials any soon. The new line color property of materials addresses this foreseen limitation by providing artists with an intuitive alternative mean to specify line colors on a per-material basis independently from node trees. The 'line_priority' property gives users a way to control line colors at material boundaries. When a line is drawn along a feature edge at material boundaries, one of the two materials on both sides of the edge has to be picked up to determine the line color. So far there was no way to control this selection (which was in effect at random). Now the material with a higher line color priority will be selected. The new per-material line settings are shown in the new Freestyle Line tab in the Material context of the Properties window (only when Freestyle is enabled).
2014-07-04Fix for a wrong threads count shown in Freestyle debug mode (--debug-freestyle).Tamito Kajiyama
2014-07-01Second attempt to fix T40833: Crash when rendering with freestyle.Tamito Kajiyama
The cause of the crash was identified in an uninitialized member variable `Main->lock`. Now that struct Main has a few member variables whose values are dynamically allocated, per-render Freestyle-specific Main data structures will be allocated and released using `BKE_main_new()` and `BKE_main_free()`, respectively. This revision complements the commit rB6135556f4556.
2014-07-01Python: remove redundant castsCampbell Barton
2014-06-30Attempt to fix T40833: Crash when rendering with freestyle.Tamito Kajiyama
Constant crashes under Linux seem due to an uninitialized variable.