blender.git
7 years agoMerging r46111 through r46136 from trunk into soc-2011-tomato
Sergey Sharybin [Tue, 1 May 2012 09:17:22 +0000 (09:17 +0000)]
Merging r46111 through r46136 from trunk into soc-2011-tomato

7 years agobmesh py api:
Campbell Barton [Tue, 1 May 2012 06:50:43 +0000 (06:50 +0000)]
bmesh py api:
add mtexpoly image access

7 years agoMerging phase 1 of the BGE Harmony branch:
Daniel Stokes [Tue, 1 May 2012 02:50:17 +0000 (02:50 +0000)]
Merging phase 1 of the BGE Harmony branch:
 * Shadow color now usable in the BGE
 * Simplified the shadow panel while "Blender Game" renderer is active
 * Added variance shadow maps for the BGE
 * Buffered shadows on sun lamps in the BGE (orthographic)
 * Light textures in the BGE

7 years agoApply patch [#31179] COLLADA IMPORT instanced geometry improvement
Nathan Letwory [Mon, 30 Apr 2012 23:51:09 +0000 (23:51 +0000)]
Apply patch [#31179] COLLADA IMPORT instanced geometry improvement
from Martijn Berger

This patch improves importing instanced geometry consisting of multiple nodes.

7 years agofix shared vertex color (used with blur), to work with selection masking.
Campbell Barton [Mon, 30 Apr 2012 21:46:58 +0000 (21:46 +0000)]
fix shared vertex color (used with blur), to work with selection masking.

7 years agoCycles Addon:
Thomas Dinges [Mon, 30 Apr 2012 19:52:07 +0000 (19:52 +0000)]
Cycles Addon:
* Some tiny updates and cleanups to the Cycles addon entry.

7 years agoInfo Header:
Thomas Dinges [Mon, 30 Apr 2012 19:37:04 +0000 (19:37 +0000)]
Info Header:
* Added a new window submenu, which contains operators for duplicating the window, going fullscreen and toggling the system console on Windows.
* Removed the Toggle fullscreen button from the header, its available via menu or shortcut (ALT+F11).

Based on patch [#24709] Window menu added to Info menus by Elia Sarti (vekoon). Thanks!

7 years agobmesh - python api
Campbell Barton [Mon, 30 Apr 2012 18:54:14 +0000 (18:54 +0000)]
bmesh - python api

- bm.*.layers.*.verify()
- bm.*.layers.*.is_singleton
- bm.*.layers.*.copy_from(other)

also added api functons
- BM_data_layer_copy(...)
- CustomData_layertype_is_singleton(type)

7 years agoPatch [#30681] Improved Display of Header Statistics by Harley Acheson (harley),...
Thomas Dinges [Mon, 30 Apr 2012 18:37:34 +0000 (18:37 +0000)]
Patch [#30681] Improved Display of Header Statistics by Harley Acheson (harley), thanks!

* This patch changes the header statistics to something more meaningful
* Removed the blender.org string, version info is sufficient + not all Blender versions come directly from blender.org
* Use names like Faces, rather than abbreviations.
* Show Verts, Edges and Faces, independent of the current selection method in edit mode.
* Added TriCount into the header.

* Small change to the patch by myself, added a "v" in front of the version number.

7 years agoFix #31164: constructive modifier followed by subsurf modifier did not show
Brecht Van Lommel [Mon, 30 Apr 2012 16:29:01 +0000 (16:29 +0000)]
Fix #31164: constructive modifier followed by subsurf modifier did not show
face smoothing flags correctly. In fact it would do an invalid memory access,
using the -1 original index.

7 years agostyle cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_M...
Campbell Barton [Mon, 30 Apr 2012 16:22:40 +0000 (16:22 +0000)]
style cleanup: re - wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros

7 years agoCamera tracking: initial commit of dopesheet view for clip editor
Sergey Sharybin [Mon, 30 Apr 2012 16:19:20 +0000 (16:19 +0000)]
Camera tracking: initial commit of dopesheet view for clip editor

- Displays dopesheet information for selected tracks, and currently does not
  support any kind of editing.
- Changed regions to use the whole main region for such views as curves and dopesheet.
  This allows to have own panels with tools/properties in this area.
- Active clip is getting synchronized between different clip editor editors in the
  same screen, so updating of curve/dopesheet views happens automatically when one
  changes current clip in one of this editors.
- Panels in toolbox and properties panels are now separated to rely on current view
  mode, but some operators and poll functions still need to be updated.
- Added new screen called "Movie Tracking" where layout is configured to
  display timeline, main clip window, curves and dopesheet.

7 years agoCamera tracking: use texture buffers (if supported) to display clip editor frames
Sergey Sharybin [Mon, 30 Apr 2012 16:19:12 +0000 (16:19 +0000)]
Camera tracking: use texture buffers (if supported) to display clip editor frames

Use texture buffers to display frames of footage in clip editor. This allows
to apply bilinear filtering of proxied resolution which.

This also resolves incredibly slow performance when drawing 4K footage on
some videocards (was originally noticed on macbook pro). Also this allows
to avoid sending the whole frame to the video memory when working with a
single frame (i.e. before this patch the whole frame would be send to the
videocard when panning frame).

7 years agoVersioning patch fix for files from tomato branch
Sergey Sharybin [Mon, 30 Apr 2012 16:19:08 +0000 (16:19 +0000)]
Versioning patch fix for files from tomato branch

Quite harmless but it was silly mistake i a code probably introduced by
some automatic svn merge.

7 years agoFix #31180: limit selection to visible button in 3d header not showing up in
Brecht Van Lommel [Mon, 30 Apr 2012 14:52:30 +0000 (14:52 +0000)]
Fix #31180: limit selection to visible button in 3d header not showing up in
material draw mode.

7 years agodisable numpy installing if not found
Campbell Barton [Mon, 30 Apr 2012 14:51:40 +0000 (14:51 +0000)]
disable numpy installing if not found

7 years agocode cleanup: header cleanup
Campbell Barton [Mon, 30 Apr 2012 14:24:11 +0000 (14:24 +0000)]
code cleanup: header cleanup

7 years agoFix missing redraw when using circle select in uv editor, IRC report.
Brecht Van Lommel [Mon, 30 Apr 2012 13:45:24 +0000 (13:45 +0000)]
Fix missing redraw when using circle select in uv editor, IRC report.

7 years agoWord selection in the Text Editor:
Sv. Lockal [Mon, 30 Apr 2012 13:14:15 +0000 (13:14 +0000)]
Word selection in the Text Editor:

* Fix word selection for words with multibyte characters. No need to call txt_move_left() or txt_move_right(), because these functions work with symbols, not bytes
* Word selection now treats tabs the same way as spaces. Also useful for words with multibyte characters

7 years agoCycles: support for motion vector and UV passes.
Brecht Van Lommel [Mon, 30 Apr 2012 12:49:26 +0000 (12:49 +0000)]
Cycles: support for motion vector and UV passes.

Most of the changes are related to adding support for motion data throughout
the code. There's some code for actual camera/object motion blur raytracing
but it's unfinished (it badly slows down the raytracing kernel even when the
option is turned off), so that code it disabled still.

Motion vector export from Blender tries to avoid computing derived meshes
when the mesh does not have a deforming modifier, and it also won't store
motion vectors for every vertex if only the object or camera is moving.

7 years agoMerging r46096 through r46110 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 30 Apr 2012 12:09:25 +0000 (12:09 +0000)]
Merging r46096 through r46110 from trunk into soc-2011-tomato

7 years agoTomato: versioning patch for current files which have got curves view open
Sergey Sharybin [Mon, 30 Apr 2012 11:31:22 +0000 (11:31 +0000)]
Tomato: versioning patch for current files which have got curves view open

7 years agoFix compile error with msvc
Daniel Genrich [Mon, 30 Apr 2012 11:27:06 +0000 (11:27 +0000)]
Fix compile error with msvc

7 years agocode cleanup: clang warning - use of a pointer before checking its NULL.
Campbell Barton [Mon, 30 Apr 2012 11:08:53 +0000 (11:08 +0000)]
code cleanup: clang warning - use of a pointer before checking its NULL.

7 years agocode cleanup: quiet clang warnings, these would likely never but wont hurt to quiet...
Campbell Barton [Mon, 30 Apr 2012 10:47:32 +0000 (10:47 +0000)]
code cleanup: quiet clang warnings, these would likely never but wont hurt to quiet them,

7 years agostyle cleanup: edits to convex hull.
Campbell Barton [Mon, 30 Apr 2012 10:39:35 +0000 (10:39 +0000)]
style cleanup: edits to convex hull.

7 years agoTomato: disable texture buffers for intel cards due to they're constantly blinking...
Sergey Sharybin [Mon, 30 Apr 2012 10:04:20 +0000 (10:04 +0000)]
Tomato: disable texture buffers for intel cards due to they're constantly blinking with black frames

Also remove unused code.

7 years agoCycles: remove a few usages of double, to fix opencl warnings.
Brecht Van Lommel [Mon, 30 Apr 2012 10:03:13 +0000 (10:03 +0000)]
Cycles: remove a few usages of double, to fix opencl warnings.

7 years agoFix visual studio debug build issue with BVH boundbox, pointed out by Agustin Benavidez.
Brecht Van Lommel [Mon, 30 Apr 2012 10:00:55 +0000 (10:00 +0000)]
Fix visual studio debug build issue with BVH boundbox, pointed out by Agustin Benavidez.

7 years agoWITH_PYTHON_INSTALL_NUMPY option for unix/cmake, just copies from site-packages.
Campbell Barton [Mon, 30 Apr 2012 09:38:32 +0000 (09:38 +0000)]
WITH_PYTHON_INSTALL_NUMPY option for unix/cmake, just copies from site-packages.

7 years agoWindows / Scons:
Thomas Dinges [Mon, 30 Apr 2012 09:06:19 +0000 (09:06 +0000)]
Windows / Scons:
* Disable CUDA kernel compile per default, so people who don't use it can compile file with the default config.

7 years agopatch [#31091] PVS-Studio Analysis Fixes
Campbell Barton [Mon, 30 Apr 2012 08:35:18 +0000 (08:35 +0000)]
patch [#31091] PVS-Studio Analysis Fixes
from Jason Wilkins (jwilkins)

left out openjpeg changes since this library needs updating.

7 years ago- improve select grouped prefix/suffix from recent patch
Campbell Barton [Mon, 30 Apr 2012 08:24:44 +0000 (08:24 +0000)]
- improve select grouped prefix/suffix from recent patch
- added select similar direction (Y axis)

7 years agoTomato: initial commit of mask editing tools into SVN
Sergey Sharybin [Mon, 30 Apr 2012 07:43:21 +0000 (07:43 +0000)]
Tomato: initial commit of mask editing tools into SVN

- Added new dtaablock called Mask which might be re-used in any area.
  Currently editing of masks happens in clip editor and they might be used in
  compositor nodes only.
- Added new mode to clip clip editor to interact with masks.
  Implemented basic tools to create shapes, splines and points. Also implemented
  idea of UW points for feather which means feather points are have got U
  coordinate along spline (which is measured from 0 to 1) and W is it's weight
  meaning distance from main spline.
- Spline points might be parented to movie tracks.
  Interface for this isn't best yet.
- Rasterisaztion of masks happens in compositor node (Input -> Mask)
  Input image of this ode is used as reference for mask resolution.
  Currently all splines of all shapes are rasterizing independently which
  means shapes with holes are not supported.
  Also feather rasterization is not implemented.

  Rasterized was implemented by Pete Larbell, thanks!

Do not consider this is something finished, there's still lots of things to
be done (especially from interface and usability points of view).

7 years agoAdding Hungarian language.
Bastien Montagne [Mon, 30 Apr 2012 07:43:04 +0000 (07:43 +0000)]
Adding Hungarian language.

7 years agoMerging r46074 through r46095 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 30 Apr 2012 06:55:03 +0000 (06:55 +0000)]
Merging r46074 through r46095 from trunk into soc-2011-tomato

7 years agofix [#31181] Lightmap UV unwrap still broken
Campbell Barton [Mon, 30 Apr 2012 05:45:01 +0000 (05:45 +0000)]
fix [#31181] Lightmap UV unwrap still broken

raised python error with triangles.

7 years agoSequencer Preview Area:
Thomas Dinges [Sun, 29 Apr 2012 22:25:31 +0000 (22:25 +0000)]
Sequencer Preview Area:
* Fixed missing update, when changing render resolution.

7 years agoFixed UI bug in distance, chroma, and difference nodes that caused the threshold...
Robert Holcomb [Sun, 29 Apr 2012 20:07:29 +0000 (20:07 +0000)]
Fixed UI bug in distance, chroma, and difference nodes that caused the threshold to be limited by the falloff value.  These should be independent.  Cleaned up how falloff works in keying nodes.

7 years agoAdd per-brush weight field.
Nicholas Bishop [Sun, 29 Apr 2012 20:04:25 +0000 (20:04 +0000)]
Add per-brush weight field.

Patch from Jaggz H, thanks!

[#31096] Weight-painting: Brush-specific weights
http://projects.blender.org/tracker/?func=detail&atid=127&aid=31096&group_id=9

Each brush's weight can now be set individually, can also enable
unified setting (same as size and strength have.)

Added readfile code to the patch: subversion bumped to 1, brushes get
default weight of 0.5, unified weight enabled by default and value
from old vgroup_weight field.

7 years agoTomato: refactoring of dopesheet to allow different sort orders in list of channels
Sergey Sharybin [Sun, 29 Apr 2012 20:04:12 +0000 (20:04 +0000)]
Tomato: refactoring of dopesheet to allow different sort orders in list of channels

Store list of channels displaying in dopesheet separately from list of tracks.
This allows to re-sort channels in dopesheet independently from list of all
tracks (currently only alphabetic sorting is implemented).

This also allows to cache assorted information (like tracked segments of track)
but currently such a things are not bottlenecks and could be done after merge
dopesheet view into trunk.

TODO:
- Still have some deadlocks when drawing selected channels.
  Skipping channel background or keyframe drawing helps here but
  this need to be resolved.
- Bump sub-version and wrote code needed to convert pre-dopesheet interface
  with opened curve view displaying properly.
- Probably it'll worth caching tracked segments.

7 years agopatch [#30821] Wiki Quick Hack: Text editor duplicate line
Campbell Barton [Sun, 29 Apr 2012 18:53:43 +0000 (18:53 +0000)]
patch [#30821] Wiki Quick Hack: Text editor duplicate line
from Justin Dailey (dail)

made this Ctrl+D, to replace Delete.

7 years agopatch [#30834] Quick Hack: Select similar for bones in edit mode
Campbell Barton [Sun, 29 Apr 2012 18:23:33 +0000 (18:23 +0000)]
patch [#30834] Quick Hack: Select similar for bones in edit mode
from Felix Schlitter (dalai)

made some changes to select length measurement.

7 years agostyle cleanup: missed these from previous cleanup
Campbell Barton [Sun, 29 Apr 2012 17:55:54 +0000 (17:55 +0000)]
style cleanup: missed these from previous cleanup

7 years agoFix for [#31166] 2.63 applyRotation() makes Dynamic and Rigid object spin very fast
Mitchell Stokes [Sun, 29 Apr 2012 17:23:19 +0000 (17:23 +0000)]
Fix for [#31166] 2.63 applyRotation() makes Dynamic and Rigid object spin very fast

This bug was caused by r45902. CcdPhysicsController::RelativeRotate() was reading 2 values past the input because it was actually being passed a float[12] when it asked for a float[9] by KX_BulletPhysicsController::RelativeRotate(). Now KX_BulletPhysicsController::RelativeRotate() passes in a float[9] like it should have done to begin with.

7 years agostyle cleanup: function calls & whitespace.
Campbell Barton [Sun, 29 Apr 2012 17:11:40 +0000 (17:11 +0000)]
style cleanup: function calls & whitespace.

7 years agoSilence warning during DualCon compile: "Node *pointer[0];" gets MSVC compiler all...
Daniel Genrich [Sun, 29 Apr 2012 17:02:52 +0000 (17:02 +0000)]
Silence warning during DualCon compile: "Node *pointer[0];" gets MSVC compiler all exited and stuff.

7 years agoTomato: fixed opengl issue with intel cards
Sergey Sharybin [Sun, 29 Apr 2012 16:56:56 +0000 (16:56 +0000)]
Tomato: fixed opengl issue with intel cards

Issue was caused by some mixes of glRect called to draw zero-width rectangles
and glCalllist.

Resolved by not using glRect if rectangle is "degenerated".

7 years agoAdd convex hull operator (bmesh operator and wm operator.)
Nicholas Bishop [Sun, 29 Apr 2012 16:09:40 +0000 (16:09 +0000)]
Add convex hull operator (bmesh operator and wm operator.)

Image-heavy user documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/Convex_Hull

Thanks to Campbell for providing code review:
http://codereview.appspot.com/6114060

7 years agoAdd GHASH_ITER macro
Nicholas Bishop [Sun, 29 Apr 2012 16:09:28 +0000 (16:09 +0000)]
Add GHASH_ITER macro

7 years agostyle cleanup: whitespace / commas
Campbell Barton [Sun, 29 Apr 2012 15:47:02 +0000 (15:47 +0000)]
style cleanup: whitespace / commas

7 years agoTomato branch: correction to dopesheet background color versioning check
Sergey Sharybin [Sun, 29 Apr 2012 15:30:54 +0000 (15:30 +0000)]
Tomato branch: correction to dopesheet background color versioning check

7 years agoBugfix [#28826] Show Hidden button in Dopesheet and Graph Editor doesn't quite
Joshua Leung [Sun, 29 Apr 2012 15:05:19 +0000 (15:05 +0000)]
Bugfix [#28826] Show Hidden button in Dopesheet and Graph Editor doesn't quite
work

Show Hidden was handled by the same filtering function as Only Selected, but the
filters were being tested incorrectly (or to be precise, only Only Selected was
being considered).

This meant that it was only possible to show F-Curves belonging to hidden data
if that data happened to be selected first.

7 years agoCycles: missed merging this file from tomato branch, for normal output in node.
Brecht Van Lommel [Sun, 29 Apr 2012 14:23:50 +0000 (14:23 +0000)]
Cycles: missed merging this file from tomato branch, for normal output in node.

7 years agoMerging r46062 through r46073 from trunk into soc-2011-tomato
Sergey Sharybin [Sun, 29 Apr 2012 14:10:13 +0000 (14:10 +0000)]
Merging r46062 through r46073 from trunk into soc-2011-tomato

7 years agoBugfix [#31128] Vertex Slide can't be aborted with ESC key
Joshua Leung [Sun, 29 Apr 2012 13:58:43 +0000 (13:58 +0000)]
Bugfix [#31128] Vertex Slide can't be aborted with ESC key

7 years agoRemove variables tagged as unused. Easier to synchronize with current patches and...
Sergey Sharybin [Sun, 29 Apr 2012 13:45:31 +0000 (13:45 +0000)]
Remove variables tagged as unused. Easier to synchronize with current patches and makes
patches easier to read when variables are creating or e-using, but not un-commenting.

7 years agoBugfix [#31029] Select all in view3D don't update the graph editor immediately
Joshua Leung [Sun, 29 Apr 2012 13:24:10 +0000 (13:24 +0000)]
Bugfix [#31029] Select all in view3D don't update the graph editor immediately

One-liner fix. The code was assuming that editor.refresh() would do a
editor.redraw() too (like for Dopesheet), but that wasn't the case.

7 years agoCode cleanups - whitespace
Joshua Leung [Sun, 29 Apr 2012 13:20:28 +0000 (13:20 +0000)]
Code cleanups - whitespace

7 years agoquiet unused warnings
Campbell Barton [Sun, 29 Apr 2012 13:19:22 +0000 (13:19 +0000)]
quiet unused warnings

7 years agoPose armature cleanup: remove old commented code replaced by use of new generic pchan...
Bastien Montagne [Sun, 29 Apr 2012 13:18:59 +0000 (13:18 +0000)]
Pose armature cleanup: remove old commented code replaced by use of new generic pchan_to_pose_mat().

After two months, think we can get rid of it, it’s in svn anyway if we ever need it!

7 years agomingw32 compiles again
Joshua Leung [Sun, 29 Apr 2012 13:00:00 +0000 (13:00 +0000)]
mingw32 compiles again

"__force_inline" keyword used in Cycles header is not defined

7 years agowireframe option to crase edges at the hub, much nicer subsurf
Campbell Barton [Sun, 29 Apr 2012 12:33:56 +0000 (12:33 +0000)]
wireframe option to crase edges at the hub, much nicer subsurf

7 years agoCamera tracking: backport refactoring made in local branches with masking and dopeshe...
Sergey Sharybin [Sun, 29 Apr 2012 12:32:26 +0000 (12:32 +0000)]
Camera tracking: backport refactoring made in local branches with masking and dopesheet view into trunk

Mostly related on changes in poll functions for tracking operators and some changes
to how interface is initializing for different view types.

7 years agoFix Cycles to compile again on AMD OpenCL devices.
Daniel Genrich [Sun, 29 Apr 2012 12:20:06 +0000 (12:20 +0000)]
Fix Cycles to compile again on AMD OpenCL devices.

7 years ago- Synchronize with changes in trunk
Sergey Sharybin [Sun, 29 Apr 2012 11:16:40 +0000 (11:16 +0000)]
- Synchronize with changes in trunk
- Reverted parts of recent trunk merge related on changes for preview
  image save skip needed for startup.blend generation

7 years agobmesh: new wireframe tool
Campbell Barton [Sun, 29 Apr 2012 10:44:00 +0000 (10:44 +0000)]
bmesh: new wireframe tool

- makes wireframe from faces.
- options similar to inset (even offset, relative scale)
- copies face settings and loops (uvs, vcolors)
- optionally replaces the existing geometry.

7 years agoMerging r46043 through r46061 from trunk into soc-2011-tomato
Sergey Sharybin [Sun, 29 Apr 2012 10:15:04 +0000 (10:15 +0000)]
Merging r46043 through r46061 from trunk into soc-2011-tomato

7 years ago- Tag unused variables
Sergey Sharybin [Sun, 29 Apr 2012 09:34:51 +0000 (09:34 +0000)]
- Tag unused variables
- Use (void) instead () for function declarations without arguments

7 years agocompile fixes:
Nathan Letwory [Sun, 29 Apr 2012 00:44:49 +0000 (00:44 +0000)]
compile fixes:

* near and far var names confused mingw64, renamed
* mingw defines a macro named DrawText, confusing the DrawText function usage from KX_FontObject.

7 years agoAlso updating CMakeLists.txt.
Joerg Mueller [Sat, 28 Apr 2012 23:40:38 +0000 (23:40 +0000)]
Also updating CMakeLists.txt.

7 years agofix pthread path for windows builds
Nathan Letwory [Sat, 28 Apr 2012 23:15:34 +0000 (23:15 +0000)]
fix pthread path for windows builds

7 years agoFix for windows compile.
Joerg Mueller [Sat, 28 Apr 2012 22:59:55 +0000 (22:59 +0000)]
Fix for windows compile.

7 years agoSmoke: Support for moving obstacles. (Merge from Smoke2 branch)
Daniel Genrich [Sat, 28 Apr 2012 21:46:43 +0000 (21:46 +0000)]
Smoke: Support for moving obstacles. (Merge from Smoke2 branch)

Sponsored by the Blender Development Fund.
http://www.blender.org/blenderorg/blender-foundation/development-fund/

Remarks:
The original code was not designed to support moving obstacles so I had to introduce some velocity constraints into the code to prevent smoke from exploding. If this causes problems with "fire" emulation, please let me know.

7 years agobmesh api functions, not used yet:
Campbell Barton [Sat, 28 Apr 2012 18:39:37 +0000 (18:39 +0000)]
bmesh api functions, not used yet:
  BM_iter_elem_count_flag()
  BM_iter_mesh_count_flag()

7 years agoMerging r45936 through r46042 from trunk into soc-2011-tomato
Sergey Sharybin [Sat, 28 Apr 2012 18:27:32 +0000 (18:27 +0000)]
Merging r45936 through r46042 from trunk into soc-2011-tomato
y

7 years agoUser Preferences/ Themes
Thomas Dinges [Sat, 28 Apr 2012 17:16:38 +0000 (17:16 +0000)]
User Preferences/ Themes
* Tooltip section was there twice (User Interface category)
Issue introduced in r45092!

7 years agoCode and style cleanup in own modules in BKE and also mball module
Sergey Sharybin [Sat, 28 Apr 2012 16:49:00 +0000 (16:49 +0000)]
Code and style cleanup in own modules in BKE and also mball module

- Make sure functions are named in way BKE_<object>_<action> (same way as RNA callbacks)
- Make functions which are used by mball.c only static and remove their prototypes
  from public header file.

Further cleanup is coming.

7 years agostyle cleanup: editors / mesh & object
Campbell Barton [Sat, 28 Apr 2012 15:42:27 +0000 (15:42 +0000)]
style cleanup: editors / mesh & object

7 years agostyle cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_a...
Campbell Barton [Sat, 28 Apr 2012 15:14:16 +0000 (15:14 +0000)]
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.

7 years agoCorrection to recent commmit related on splitting audio channels: descriptions should...
Sergey Sharybin [Sat, 28 Apr 2012 15:05:35 +0000 (15:05 +0000)]
Correction to recent commmit related on splitting audio channels: descriptions shouldn't end with dot.

7 years agoCamera tracking: support of tripod motion solving
Sergey Sharybin [Sat, 28 Apr 2012 14:54:45 +0000 (14:54 +0000)]
Camera tracking: support of tripod motion solving

Expose option into interface to use modal solver which currently
supports only tripod motion.

This solver requires two tracks at least to reconstruct motion.
Using more tracks aren't improving solution in general, just adds
instability into solution and slows down things a lot.

Refirement of camera intrinsics was disabled due to it's not only
refines camera intrinsics but also adjusts camera position which
isn't necessary here

To use this solver just activate "Tripod Motion" checkbox in
solver panel.

Merged from tomato: svn merge ^/branches/soc-2011-tomato -r45622:45624 -r46036:46037

P.S. Quite experimental yet, requires more checking and probably
tweaks to prevent camera jumps when tracks apperars/disappears
from the screen.

7 years agoCamera tracking: small improvements to tripod solver"
Sergey Sharybin [Sat, 28 Apr 2012 14:40:37 +0000 (14:40 +0000)]
Camera tracking: small improvements to tripod solver"

- Disable camera refirement due to it's not only refines camera intrinsics
  but also adjusts camera position which isn't necessary here
- Detect rigid transformation between initial frame and current instead
  of detecting it between two neighbour frames.
  This prevents accumulation of error and seems to be working better
  in footages i've tested.

7 years agoHopefully a fix for [#31097] glibc error when playing sound using BGE
Joerg Mueller [Sat, 28 Apr 2012 13:37:44 +0000 (13:37 +0000)]
Hopefully a fix for [#31097] glibc error when playing sound using BGE

7 years agoAudio:
Joerg Mueller [Sat, 28 Apr 2012 13:16:29 +0000 (13:16 +0000)]
Audio:

* Fix for [#31099] Audio in Meta-Strips Plays Beyond Strip Cut
* Adding a split files option to the mixdown operator which then renders each channel into a separate file

7 years agocode cleanup: remove editmesh code left hanging around thats already been ported...
Campbell Barton [Sat, 28 Apr 2012 12:23:05 +0000 (12:23 +0000)]
code cleanup: remove editmesh code left hanging around thats already been ported to bmesh, also remove main editmesh header.

7 years agopatch [#31104] Correct comment for mul_qt_v3
Campbell Barton [Sat, 28 Apr 2012 11:45:28 +0000 (11:45 +0000)]
patch [#31104] Correct comment for mul_qt_v3
from Bill Currie (taniwha)

7 years agocode cleanup: replace some long ELEM7 checks with macro OB_TYPE_SUPPORT_EDITMODE()
Campbell Barton [Sat, 28 Apr 2012 10:33:32 +0000 (10:33 +0000)]
code cleanup: replace some long ELEM7 checks with macro OB_TYPE_SUPPORT_EDITMODE()

7 years agoCamera tracking: if there's no image for current frame display default grid
Sergey Sharybin [Sat, 28 Apr 2012 10:09:58 +0000 (10:09 +0000)]
Camera tracking: if there's no image for current frame display default grid
and allow to interact with tracks for operators which doesn't require image.

Merged from tomato branch: svn merge ^/branches/soc-2011-tomato -r45624:45625

7 years agoFix #31117: Segfault when removing Meshdeform Modifier
Sergey Sharybin [Sat, 28 Apr 2012 09:32:55 +0000 (09:32 +0000)]
Fix #31117: Segfault when removing Meshdeform Modifier

7 years agoFix: #31095: Incorrect clamping of labels for multibyte languages
Sergey Sharybin [Sat, 28 Apr 2012 09:21:16 +0000 (09:21 +0000)]
Fix: #31095: Incorrect clamping of labels for multibyte languages

7 years agoCycles: fix for CUDA build.
Brecht Van Lommel [Sat, 28 Apr 2012 09:10:20 +0000 (09:10 +0000)]
Cycles: fix for CUDA build.

7 years agoPoint Cache: allow baking external smoke caches. This needs to be cleaned up
Brecht Van Lommel [Sat, 28 Apr 2012 09:00:11 +0000 (09:00 +0000)]
Point Cache: allow baking external smoke caches. This needs to be cleaned up
a bit, I couldn't fully understand how the External setting is supposed to
work to make further changes, but this should make it work at least.

7 years agoAddons: "persistent" parameter for addon_utils.enable(), so that you can enable
Brecht Van Lommel [Sat, 28 Apr 2012 09:00:09 +0000 (09:00 +0000)]
Addons: "persistent" parameter for addon_utils.enable(), so that you can enable
addons from a startup script and keep them enabled after loading .blend files.

7 years agoCycles: merging features from tomato branch.
Brecht Van Lommel [Sat, 28 Apr 2012 08:53:59 +0000 (08:53 +0000)]
Cycles: merging features from tomato branch.

=== BVH build time optimizations ===

* BVH building was multithreaded. Not all building is multithreaded, packing
  and the initial bounding/splitting is still single threaded, but recursive
  splitting is, which was the main bottleneck.

* Object splitting now uses binning rather than sorting of all elements, using
  code from the Embree raytracer from Intel.
  http://software.intel.com/en-us/articles/embree-photo-realistic-ray-tracing-kernels/

* Other small changes to avoid allocations, pack memory more tightly, avoid
  some unnecessary operations, ...

These optimizations do not work yet when Spatial Splits are enabled, for that
more work is needed. There's also other optimizations still needed, in
particular for the case of many low poly objects, the packing step and node
memory allocation.

BVH raytracing time should remain about the same, but BVH build time should be
significantly reduced, test here show speedup of about 5x to 10x on a dual core
and 5x to 25x on an 8-core machine, depending on the scene.

=== Threads ===

Centralized task scheduler for multithreading, which is basically the
CPU device threading code wrapped into something reusable.

Basic idea is that there is a single TaskScheduler that keeps a pool of threads,
one for each core. Other places in the code can then create a TaskPool that they
can drop Tasks in to be executed by the scheduler, and wait for them to complete
or cancel them early.

=== Normal ====

Added a Normal output to the texture coordinate node. This currently
gives the object space normal, which is the same under object animation.

In the future this might become a "generated" normal so it's also stable for
deforming objects, but for now it's already useful for non-deforming objects.

=== Render Layers ===

Per render layer Samples control, leaving it to 0 will use the common scene
setting.

Environment pass will now render environment even if film is set to transparent.

Exclude Layers" added. Scene layers (all object that influence the render,
directly or indirectly) are shared between all render layers. However sometimes
it's useful to leave out some object influence for a particular render layer.
That's what this option allows you to do.

=== Filter Glossy ===

When using a value higher than 0.0, this will blur glossy reflections after
blurry bounces, to reduce noise at the cost of accuracy. 1.0 is a good
starting value to tweak.

Some light paths have a low probability of being found while contributing much
light to the pixel. As a result these light paths will be found in some pixels
and not in others, causing fireflies. An example of such a difficult path might
be a small light that is causing a small specular highlight on a sharp glossy
material, which we are seeing through a rough glossy material. With path tracing
it is difficult to find the specular highlight, but if we increase the roughness
on the material the highlight gets bigger and softer, and so easier to find.

Often this blurring will be hardly noticeable, because we are seeing it through
a blurry material anyway, but there are also cases where this will lead to a
loss of detail in lighting.

7 years agobump commit count, mingw32 -> mingw64
Nathan Letwory [Sat, 28 Apr 2012 08:47:37 +0000 (08:47 +0000)]
bump commit count, mingw32 -> mingw64

7 years agoAdd MingW as "platform"
Nathan Letwory [Sat, 28 Apr 2012 08:45:55 +0000 (08:45 +0000)]
Add MingW as "platform"

7 years agoStyle cleanup in own compositor nodes
Sergey Sharybin [Sat, 28 Apr 2012 08:43:24 +0000 (08:43 +0000)]
Style cleanup in own compositor nodes

7 years ago* UI fix for last commit, forgot to remove the plugin text strings.
Thomas Dinges [Sat, 28 Apr 2012 08:32:00 +0000 (08:32 +0000)]
* UI fix for last commit, forgot to remove the plugin text strings.

7 years agocode cleanup:
Campbell Barton [Sat, 28 Apr 2012 08:29:20 +0000 (08:29 +0000)]
code cleanup:
- replace inline face UV center calc.
- use const float[3] for mesh and uv functions.
- remove unused define