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
2012-07-16Masks: feather self-intersection collapse functionSergey Sharybin
This implements simple function which collapses internal loops caused by self-intersections into a singularity. This loops can't be removed because rasterizer expects points of feather be aligned with points from spline itself.
2012-07-16barycentric_weights_v2_quad wasn't working quite right, rewrite as an ↵Campbell Barton
expanded version of interp_weights_poly_v2() that cuts down duplicate calculations.
2012-07-16add 2d version of interp_weights_poly_v3Campbell Barton
2012-07-16small speedup for mask rasterizer, only do single sided check for triangle ↵Campbell Barton
intersection.
2012-07-15math function to get the intersection point between 2 lines (not 2 segments ↵Campbell Barton
which we already have).
2012-07-15minor refactor for rect functions. more consistent naming.Campbell Barton
2012-07-14mask rasterization: use a simpler method to check if a bucket intersects ↵Campbell Barton
with a triangle.
2012-07-14rename vars for line dist funcs to make more senseCampbell Barton
2012-07-14header comment cleanup, explain whats the difference between confusingly ↵Campbell Barton
named drarnode.c and node_draw.c.
2012-07-14use gcc attributes for BLI alloc functionsCampbell Barton
2012-07-14add is_quad_convex_v2(), SET_UINT_IN_POINTER, GET_UINT_FROM_POINTER macros & ↵Campbell Barton
some minor edits.
2012-07-13Fix #32087: Crash while changing values in comp editor (bt and blender included)Sergey Sharybin
Issue was caused by threading conflict between compositor output node which is freeing buffers used by render result image and image draw code which could use buffers at the same time as compositor frees this buffers. Solved by adding adding lock around viewer image invalidation and image drawing. Use renamed LOCK_PREVIEW mutex for this, which si not called LOCK_DRAW_IMAGE. With new compositor locking for preview is not needed so it could be removed. Added the same lock around viewer operation which also frees buffers used by viewer image. It's actually quite difficult to check whether this is indeed needed. This code seems to be using acquire/release technique, but somehow acquiring ImBuf before invalidating it in compositor operation doesn't resolve the issue, so probably it's not actually locking acquire and things should be checked deeper.
2012-07-13new function barycentric_weights_v2_quad(), like barycentric_weights_v2 but ↵Campbell Barton
for quads. takes vecs and a point and assigns 4 weights, needed for nice quad interpolation for mask feathering.
2012-07-12add bli rect min/max functions.Campbell Barton
2012-07-12- add a temp var for edge scanfill (fits in 4 bytes alignment - won't ↵Campbell Barton
increase mem usage) - make keyindex an unsigned int, since its used to store vertex indices - use BLI_in_rcti_v for IN_2D_VERT_SCROLL and IN_2D_HORIZ_SCROLL
2012-07-12add bli rect funcs BLI_rctf_init_minmax, BLI_rcti_init_minmaxCampbell Barton
2012-07-11vector versions of BLI_in_rctf / BLI_in_rcti, (BLI_in_rctf_v, BLI_in_rcti_v)Campbell Barton
use where possible.
2012-07-11code cleanup: use const for passing vectorsCampbell Barton
2012-07-11Fixes for keying screen:Sergey Sharybin
- Fixed issue with black areas appearing when too many sites are defined. Currently tweak epsilon value for this, but probably actual issue is somewhere else, can't see it yet. - Fixed issue with bright pixels appearing in the sites, was caused by accumulating color for pixels, which isn't needed. Once color for pixel was set stop iterating via triangles. Could give some speedup too. - Ignore markers which are outside of frame bounds, they were giving bad triangulation and they can't affect on gradient due to color fir such sites is not known. - Sites used to be created at position without track offset taken into account.
2012-07-10Inline the read Memory Buffer functions for speed optimizations.Jeroen Bakker
2012-07-10rename BLI_getQuotedStr --> BLI_str_quoted_substrN to make it more clear its ↵Campbell Barton
doing an allocation.
2012-07-08correct another case of nonnull (all should be correct now), and comment ↵Campbell Barton
about color conversion.
2012-07-08code cleanup: quiet uninitialized memory use warning for X11 - harmless in ↵Campbell Barton
this case but always gave warnings with memcheck (RGB color for alpha zero icon color wasnt initialized). also some other minor changes.
2012-07-08use gcc attrubutes to warn on unused return values and arguments which ↵Campbell Barton
shouldnt be NULL. also remove IDP_AppendArray's return value which wasnt the new item in the array (which is odd/misleading), but wasnt used anywhere either.
2012-07-08style cleanupCampbell Barton
2012-07-07style cleanup: use c style comments in C codeCampbell Barton
2012-07-07code cleanup: dont use function calls like dot_v3v3, pow and sqrt within ↵Campbell Barton
macros which results in calling the function multiple times needlessly. also added some comments.
2012-07-05Code cleanup: move PBVH ray/AABB intersection test to BLI_math_geomNicholas Bishop
2012-07-05style cleanupCampbell Barton
2012-07-03More spell and typo fixes (mostly visualise->visualize, grey->gray, ↵Bastien Montagne
normalise->normalize).
2012-07-02code cleanup: minor editsCampbell Barton
2012-07-01style cleanupCampbell Barton
2012-07-01style cleanup: commentsCampbell Barton
2012-06-27style cleanupCampbell Barton
2012-06-26Optimization of keying screen nodeSergey Sharybin
When creating tile data include only triangles which have got intersection with tile's rectangle only. This saves quite a lot of per-pixel iterations through triangles which simply can not affect on current tile. In fact, it's AABB check is used here. It could be improved further, but it'll slowdown tile data generation with questionable speedup. Another major slowdown is in fact caused by voronoi triangulation code. Currently it's used naive algorithm which is O(N^2) where N is number of edges. Added few euristics there and removed unused part of code, which gave quite noticeable speedup already. This could be improved further, but this node is not ment to be used for lots of markers. It's also generates wrong triangulation when there're many sites used. Need to be investigated further.
2012-06-25comment for TODO - rgb_to_bw / rgb_to_grayscale usage.Campbell Barton
2012-06-25style cleanupCampbell Barton
2012-06-24Fix [#31807] Ngon triangulation errorBastien Montagne
Notes: *This implements a quite simple algorithm, which simply checks angles (actually, absolute cosines) of created tri and remaining face (which may be a tri, quad, or more NGon), so that both are "best" (ie avoid as much as possible too much narrow/wide corners), and also checks the new edge is OK (i.e. does not goes "out" of original face). *Incidently, it fixes a typo in that bm_face_goodline() func! *It's quite performant (a bit quicker than previous code, as far as I have tested it) and prevent creation of completely flat triangles as much as possible, but it's far from being a "best" solution (as it is still a "progressive" one)! *It also introduces a new math func (in BLI_math_vector.h), cos_v3v3v3, which computes cosine (ie dot product of normalized vectors) and is roughly a quicker replacement for angle_v3v3v3, when real angles are not needed.
2012-06-24style cleanypCampbell Barton
2012-06-23rename WITH_BUILTIN_GLEW, WITH_SYSTEM_GLEW & negate.Campbell Barton
2012-06-22fixed function name: BLI_rebase_path, reworked description, added enum ↵Gaia Clary
bli_rebase_state for defined return values
2012-06-22use an inline function for rgb -> bw conversion.Campbell Barton
2012-06-17style cleanup:Campbell Barton
also fix for building ghost test and fix double free in one of the tests
2012-06-17code cleanup: includes, also correct some py example typosCampbell Barton
2012-06-14Keying Screen node from tomato branchSergey Sharybin
Merge Keying Screen node developed in tomato branch into trunk. This node is aimed to make dealing with non-even greenscreens better by generating gradiented image which could be used a input for keyer nodes. Based on building voronoi diagram using motion tracking markers as sites position and average pattern color as color for that site. Pretty straignforward node, some documentation is there http://wiki.blender.org/index.php/User:Nazg-gul/Keying#Screen_color
2012-06-13style cleanupCampbell Barton
2012-06-13move one line color conversion functions to be inline.Campbell Barton
2012-06-13add rgb_to_luma_y(), was being done inline in many places.Campbell Barton
2012-06-13yse BLI_math for the compositor in more places.Campbell Barton
2012-06-10style cleanupCampbell Barton