Commit Graph

33071 Commits

Author SHA1 Message Date
Sergey Sharybin
4e213765ec Fixes for keying screen:
- 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-11 07:46:36 +00:00
Monique Dewanchand
315698543b Fix for issue [#31981] for tiles opencl:
initialize radius with correct value
2012-07-10 20:46:42 +00:00
Campbell Barton
9c464ee2bb improved node frame text alignment and use default label font (not monospaced) 2012-07-10 20:44:25 +00:00
Monique Dewanchand
e8e8ceaea2 fix for Tiles bug - opencl:
[#31981] Bokeh Blur Node - Size input socket does not accept input from Value Input node, Values smaller than 0.1 will produce black output
2012-07-10 20:33:24 +00:00
Monique Dewanchand
8a4584d04d Fix for tiles bug:
[#31981] Bokeh Blur Node - Size input socket does not accept input from Value Input node, Values smaller than 0.1 will produce black output
2012-07-10 20:21:13 +00:00
Mitchell Stokes
831ae18622 Scaling non-power-of-two (NPOT) textures to powers of two is really time consuming and not necessary on graphics cards that can support NPOT textures. So, if the graphics card has NPOT texture support, don't bother scaling. If this patch causes issues, it can always be reverted and applied to Swiss instead. 2012-07-10 19:23:57 +00:00
Sergey Sharybin
f279576f1a Bump Blender version, so despill balance would stay untouched in
rare cases when it was intentionally set to 0.
2012-07-10 15:35:25 +00:00
Bastien Montagne
82277eb766 Make grumpy gcc in "overwarning" mode happy again... 2012-07-10 15:28:32 +00:00
Sergey Sharybin
ba8154e24a Keying screen: small fixes and improvements from tomato
- Fixed issues with calculating matte with balance != 0.5
  It used to be used concave combination of minimal and maximal
  channel values which could be inpredictable.
  Use concave combination of two non-major channels sorted
  by their index, so such combination would always use the same
  coefficients for particular non-major channels.

- Added despill balance slider which defines balance between
  non-major channels used for calculating average of two
  colors. Difference between average value and pixel value of
  major screen channel defines amount of despill. Balance of
  0.5 gives the same behavior as it was before this slider
  was added.

---
svn merge -r48678:48679 -r48789:48790 ^/branches/soc-2011-tomato
2012-07-10 14:53:36 +00:00
Sergey Sharybin
76ee9783a1 Improved cache management for movie clips from tomato branch
Replace pseudo-LRU approach of determining which buffer
to remove when running out of space allowed for cache
with approach which would remove the frame which is most
far away from newly added frame.

This is still a bit tricky because it's impossible to
distinguish which frame to delete in situation of:

        CCCC...CC
           ^

it's either user wants to extend left segment of cached
frames and buffers from right segment should be removed
or he wants to join this two segments and in that case
buffers from right segment should be removed.

Would need a bit more investigation which situation
is more common in general usecase.

Additional changes:

- Cleanup some memutil files (which are familiar to cache limiter)

- Add option to make moviecache verbose. If DEBUG_MESSAGES is
  defined in moviecache.c detailed logs would be printed to the
  console.

- Movie caches are now named which helps reading debug messages.
2012-07-10 14:43:50 +00:00
Sergey Sharybin
a41dc719bf Movie Clip Node: skip putting frame to cache when rendering animation
This helps keeping memory usage low and have cached segments untouched
when mixing stuff like tracking and rendering -- now you wouldn't be
need to re-cache segment you're working on after rendering.

---
svn merge -r48550:48552 ^/branches/soc-2011-tomato
2012-07-10 14:42:37 +00:00
Lukas Toenne
21f81ee279 Fix for center calculation in node transforms. This now uses the actual barycenter of node rect centers. 2012-07-10 13:50:51 +00:00
Sergey Sharybin
2de2b7eba8 Synchronize style cleanup changes made in tomato branch 2012-07-10 13:41:21 +00:00
Sergey Sharybin
165e8b0155 Fix compilation error when using MSVC 2012-07-10 12:57:09 +00:00
Sergey Sharybin
1360147e9e Tag ununsed variable and make function real explicit prototype. 2012-07-10 12:42:03 +00:00
Jeroen Bakker
dc65a26bf6 refactor node highlight code. New implementation will not write to
uninitialized memory. it happened when you delete a node that was being
executed. in the compostor
2012-07-10 12:23:49 +00:00
Sergey Sharybin
5cc0e5f751 Mango request: added an input node to use track's position in compositor
--
svn merge -r48088:48089 -r48091:48092 ^/branches/soc-2011-tomato
2012-07-10 11:01:25 +00:00
Sergey Sharybin
5b57f38fb5 Mango request: option to clamp result of Mix RGB and Color Math nodes
---
Merging r48792 from soc-2011-tomato into trunk
2012-07-10 10:36:18 +00:00
Sergey Sharybin
a158cb4e69 Mango request: disable compositing on file load.
This does not make much sense and just annoys in most of cases.

---
Merging r48793 from soc-2011-tomato into trunk
2012-07-10 10:31:05 +00:00
Lukas Toenne
80867d76e5 Fix #32052, Conflicts in unique node names.
All node group operators which move nodes directly between bNodeTree->nodes lists now make sure the node names are indeed unique in their new environment (the node group tree or the parent tree).
2012-07-10 09:31:08 +00:00
Sergey Sharybin
6b75a99c01 Tomato mango request: do not start compositing on file load 2012-07-10 09:12:39 +00:00
Sergey Sharybin
717ac64cb1 Tomato: added option to clamp result of Mix RGB and Color Math nodes 2012-07-10 09:12:33 +00:00
Sergey Sharybin
63ad458dba Tomato: fix typos in mask maps used for raster cache 2012-07-10 09:12:21 +00:00
Sergey Sharybin
3b35396576 Tomato: fix wrong default value for despill balance 2012-07-10 09:12:17 +00:00
Jeroen Bakker
e343f7f320 Inline the read Memory Buffer functions for speed optimizations. 2012-07-10 06:31:16 +00:00
Peter Larabell
492d9aabe0 some code refactors in raskter.c to sync it with build where mask tiling is being developed. Also adds a bit more mask tiling code. 2012-07-10 04:51:08 +00:00
Mitchell Stokes
1f9adff26f Fix for a crash caused by ReplaceMesh changing an objects physics shape. CcdShapeConstructionInfo::UpdateMesh() would change the CcdShapeConstructionInfo's m_meshObject, but didn't change m_meshShapeMap, which means the CcdShapeConstructionInfo object's destructor would not find it's m_meshObject in the m_meshShapeMap. This leaves some nasty dangling pointers laying around which caused issues if the scene was re-run, or the scene was changed to one that also had the mesh.
Note: This fix could cause other issues with shared physics meshes. In general, we may want to re-evaluate how we handle updating potentially shared physics meshes.
2012-07-10 02:05:06 +00:00
Campbell Barton
565f10a541 center node group text button vertically 2012-07-09 23:23:47 +00:00
Campbell Barton
0b1d5d42cf style cleanup: line length, also comment some unused code 2012-07-09 23:07:15 +00:00
Peter Larabell
689403bf57 updating raskter to support tiles compositor. this commit puts in some groundwork code to support tiles's pixel processor 2012-07-09 22:57:23 +00:00
Gaia Clary
f3fa96303b Fixed an exception during image export when a source image does not exist in the file system 2012-07-09 22:41:44 +00:00
Campbell Barton
24f672d57b fix for blender naming all new node groups "Missing Datablock" 2012-07-09 22:39:35 +00:00
Campbell Barton
df107939c9 rename BLI_getQuotedStr --> BLI_str_quoted_substrN to make it more clear its doing an allocation. 2012-07-09 22:16:50 +00:00
Gaia Clary
3c0579afc5 Removed unneeded variable from Image Exporter 2012-07-09 21:57:04 +00:00
Campbell Barton
954d2a9b31 style cleanup: missed previous commit 2012-07-09 20:37:09 +00:00
Bastien Montagne
7783b458ad And arabic is over 60% done too, now! :) 2012-07-09 20:02:30 +00:00
Campbell Barton
62df28a325 style cleanup: node drawing 2012-07-09 19:58:36 +00:00
Campbell Barton
e66a02e7e2 improve node text alignment with different zoom levels 2012-07-09 19:50:43 +00:00
Mitchell Stokes
a40c367a35 BGE: Fixing up the error message received when trying to add an object from an active layer. 2012-07-09 18:55:50 +00:00
Campbell Barton
6665cf4cde code cleanup: remove pointless casts (int -> short -> int) 2012-07-09 17:05:47 +00:00
Campbell Barton
a1d5261951 fix node drawing glitch where text alignment for output sockets would move the text X axis twice as much as it should have. 2012-07-09 16:51:08 +00:00
Campbell Barton
80fa54ab3c correction to last commit. aspect doesn't need to be calculated every time. 2012-07-09 16:26:01 +00:00
Antony Riakiotakis
4c7f7b6dbf Fix for #31962, changes image ignores correct aspect ratio. Made
unwrapper flush the correct aspect flag to mtpoly after unwrap. Faces
that have been unwrapped with correct aspect option will fix their
aspect each time a different image is assigned to them. I hope fix works
100%, I can't say that I really understood the bizarre aspect ratio
system.
2012-07-09 16:12:57 +00:00
Campbell Barton
54ed3dee68 fix for ugly pixelated drawing of node frame text. 2012-07-09 16:06:44 +00:00
Jeroen Bakker
bfe776cd1d removed depth aware defocus
add blur to radius buffer
2012-07-09 15:21:43 +00:00
Bastien Montagne
0dafa97ea3 UI translation from inside Blender UI: first part.
This commit reshapes a bit runtime button info getter, by adding a new uiButGetStrInfo() which accepts a variable number of uiStringInfo parameters, and tries to fill them with the requested strings, for the given button (label, tip, context, RNA identifier, keymap, etc.). Currently used mostly by existing ui_tooltip_create(), and new UI_OT_edittranslation_init operator.

It also adds a few getters (to get RNA i18n context, and current language iso code).

Finally, it adds to C operators needed for the py ui_translation addon:
*UI_OT_edittranslation_init, which gathers requested data and launch the py operator.
*UI_OT_reloadtranslation, which forces a full reload of the whole UI translation (including rechecking the directory containing mo files).

For the first operator to work, it also adds a new user preferences path: i18n_branches_directory, to point to the /branch part of a bf-translation checkout.
2012-07-09 14:25:35 +00:00
Campbell Barton
c185635ed0 svn merge ^/trunk/blender -r48749:48754 2012-07-09 12:57:04 +00:00
Sergey Sharybin
4e6a54e60b Tomato: fix for mask cache
That used to be a threading issue when two different operations
were allowed to access the same mask's cache. Now use lock in
BKE_mask_rasterize_layers so that should work fine now.
2012-07-09 11:45:07 +00:00
Sergey Sharybin
882269cb2c Fixed issue with missed cache update when disabling movie clip channels 2012-07-09 11:13:40 +00:00
Campbell Barton
98969c64ff code cleanup: move sequencer timecode into its own func. 2012-07-09 10:55:41 +00:00