blender-staging.git
4 years agoFix build error on OS X in previous commit, this define should stay.
Brecht Van Lommel [Mon, 1 Feb 2016 23:38:14 +0000 (00:38 +0100)]
Fix build error on OS X in previous commit, this define should stay.

4 years agoFix T47293: game engine crashes since Bullet upgrade.
Brecht Van Lommel [Mon, 1 Feb 2016 23:16:31 +0000 (00:16 +0100)]
Fix T47293: game engine crashes since Bullet upgrade.

This restores a modification that was there before.

4 years agoFix double metadata prefix when using strip's metadata
Sergey Sharybin [Mon, 1 Feb 2016 17:09:15 +0000 (18:09 +0100)]
Fix double metadata prefix when using strip's metadata

4 years agoCorrection to previous fix of multiple releases of same ImBuf
Sergey Sharybin [Mon, 1 Feb 2016 16:10:40 +0000 (17:10 +0100)]
Correction to previous fix of multiple releases of same ImBuf

Original change in d631252 was not quite correct because it
was missing release since the acquire() will return NULL.

Hopefully now all the cases are covered.

4 years agoFix T47288 Vector transform not behaving correctly with camera space and cycles
Alexander Romanov [Mon, 1 Feb 2016 15:46:32 +0000 (18:46 +0300)]
Fix T47288 Vector transform not behaving correctly with camera space and cycles

4 years agoFix potential access uninitialized metadata
Sergey Sharybin [Mon, 1 Feb 2016 15:33:29 +0000 (16:33 +0100)]
Fix potential access uninitialized metadata

4 years agoRemove debug-only code which sneaked in
Sergey Sharybin [Mon, 1 Feb 2016 15:29:45 +0000 (16:29 +0100)]
Remove debug-only code which sneaked in

4 years agoFix wrong information used for stamp when "Strip Metadata" is used
Sergey Sharybin [Mon, 1 Feb 2016 15:09:21 +0000 (16:09 +0100)]
Fix wrong information used for stamp when "Strip Metadata" is used

Such configuration used to cause quite confusing situation when
stamp will use actual scene's statistics but metadata from strip
will be used for the saved file (basically, causing different
information stamped and saved as metadata).

Don't think it was desired behavior and it's something what
artists here in the studio wants to be fixed.

4 years agoAdd theme settings for keyframe indication in 3D View
Gaia Clary [Mon, 1 Feb 2016 13:01:02 +0000 (14:01 +0100)]
Add theme settings for keyframe indication in 3D View

4 years agoCleanup: FileData->flags: Convert defines to anonymous enum.
Bastien Montagne [Mon, 1 Feb 2016 13:03:31 +0000 (14:03 +0100)]
Cleanup: FileData->flags: Convert defines to anonymous enum.

4 years agoFix T47238: Bug w/ view aligned constraint plane
Campbell Barton [Mon, 1 Feb 2016 10:42:39 +0000 (21:42 +1100)]
Fix T47238: Bug w/ view aligned constraint plane

When constraining on 2 axis, it was possible the plane was view-aligned causing odd glitches.

4 years agoAvoid duplicate getConstraintSpaceDimension calls
Campbell Barton [Mon, 1 Feb 2016 07:06:34 +0000 (18:06 +1100)]
Avoid duplicate getConstraintSpaceDimension calls

4 years agoCMake: Silent Numpy warning on OSX
Sergey Sharybin [Mon, 1 Feb 2016 09:39:16 +0000 (10:39 +0100)]
CMake: Silent Numpy warning on OSX

It is in the archive actually and being installed nicely by the looks of it.

4 years agoCMake: Attempt to fix wrong installation folder for requests on OSX
Sergey Sharybin [Mon, 1 Feb 2016 09:38:34 +0000 (10:38 +0100)]
CMake: Attempt to fix wrong installation folder for requests on OSX

4 years agoSequencer: IF effect strip only affects on a single strip use source metadata for...
Sergey Sharybin [Mon, 1 Feb 2016 09:19:55 +0000 (10:19 +0100)]
Sequencer: IF effect strip only affects on a single strip use source metadata for the result

This way it's possible to have some color-correction modifications on
top of the render result and yet still have proper metadata stored.

Usecase: Access per-frame render-time of the movie frames from the
final export.

4 years agoCycles: Fix wrong clamping used for camera border
Sergey Sharybin [Mon, 1 Feb 2016 09:02:24 +0000 (10:02 +0100)]
Cycles: Fix wrong clamping used for camera border

4 years agoFix missing return after NULL check, from Coverity reports.
Bastien Montagne [Mon, 1 Feb 2016 07:34:29 +0000 (08:34 +0100)]
Fix missing return after NULL check, from Coverity reports.

4 years agoView2D: avoid divide-by-zero
Campbell Barton [Mon, 1 Feb 2016 04:05:45 +0000 (15:05 +1100)]
View2D: avoid divide-by-zero

4 years agoCleanup: unused TransInfo members
Campbell Barton [Mon, 1 Feb 2016 02:33:22 +0000 (13:33 +1100)]
Cleanup: unused TransInfo members

4 years agoFix transform crash in rare cases
Campbell Barton [Mon, 1 Feb 2016 04:15:10 +0000 (15:15 +1100)]
Fix transform crash in rare cases

In some cases transform modes would use the custom-data pointer,
other times the transform conversion functions would.

However with some combinations (bone mirror + bend for eg),
both conversion & transform mode would use this pointer causing a crash.

Fix this by having 2 custom-data pointers:
one for the mode, another for the data-type.

This also simplifies time-slide which was conditionally mixing mode/type data in the one array.

4 years agoFix T47289: Edges don't transform in face-mode
Campbell Barton [Mon, 1 Feb 2016 02:15:02 +0000 (13:15 +1100)]
Fix T47289: Edges don't transform in face-mode

4 years agoDocs: warning for loading duplicate movie-clips
Campbell Barton [Mon, 1 Feb 2016 00:55:59 +0000 (11:55 +1100)]
Docs: warning for loading duplicate movie-clips

4 years agoUI: minor tweaks to view orbit shortcuts show
Campbell Barton [Mon, 1 Feb 2016 00:01:00 +0000 (11:01 +1100)]
UI: minor tweaks to view orbit shortcuts show

4 years agoCleanup: pep8
Campbell Barton [Sun, 31 Jan 2016 13:47:10 +0000 (00:47 +1100)]
Cleanup: pep8

4 years agoDocs: add preset menu example
Campbell Barton [Sun, 31 Jan 2016 07:04:57 +0000 (18:04 +1100)]
Docs: add preset menu example

4 years agoPoint Cache: fix typo in smoke_openvdb_read.
Kévin Dietrich [Sat, 30 Jan 2016 22:29:59 +0000 (23:29 +0100)]
Point Cache: fix typo in smoke_openvdb_read.

4 years agoFix T47153: scroll wheel zoom fails with mouses that support smooth scroll on OS X.
Brecht Van Lommel [Sat, 30 Jan 2016 21:33:20 +0000 (22:33 +0100)]
Fix T47153: scroll wheel zoom fails with mouses that support smooth scroll on OS X.

4 years agoFix T47263: numpad4/6 rotates around worl Z axis and not view Y axis.
Bastien Montagne [Sat, 30 Jan 2016 18:07:36 +0000 (19:07 +0100)]
Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis.

Those two were the only one rotating around some world axis (turntable mode),
so better make their behavior consistent with other rotating numpad keys.

This breaks the turntable-rotation with numpad keys, though.

4 years agoFix T46455: Array modifier could generate chained mapping of vertices, leading to...
Bastien Montagne [Sat, 30 Jan 2016 16:17:05 +0000 (17:17 +0100)]
Fix T46455: Array modifier could generate chained mapping of vertices, leading to corrupted geometry.

That was the main issue (in both T46455 and T46690), solved by 'flattening' those chains (v1 -> v2 ->v3 etc.)
before calling `CDDM_merge_verts()`.

Also added note to `CDDM_merge_verts()` that it does not support chained mapping, along with
a basic assert that should catch most of those cases in future.

The logic of 'following mapping' was also rather broken, making a special case here when using
object-controlled offset is very weak. Further more, blindly following mapping in this case
was far from ideal, this could end to merging vertices rather far from each other.

To address this issue, we now always follow mapping, but only as long as 'final' vertex remains
close enough from mapped one.

Finally, the search of 'closest' vertex to merge with was also quite bad, would just pick the first
one matching distance limit, instead of using the actual closest one - could lead to rather ugly
geometry deformations in case one would use not-so-small merge threashold!

4 years agoFix memory leak in hook modifier's data copy
Sergey Sharybin [Sat, 30 Jan 2016 14:40:24 +0000 (15:40 +0100)]
Fix memory leak in hook modifier's data copy

4 years agoCycles: Pass Blender's C++ RNA structures by reference
Sergey Sharybin [Sat, 30 Jan 2016 13:18:29 +0000 (14:18 +0100)]
Cycles: Pass Blender's C++ RNA structures by reference

This way we avoid passing structures which could be up to
few hundred bytes by value to the utility functions.

Ideally we'll also have to add `const` qualifier in majority
of the calls, but C++ RNA does not allow us to do that because
it does not know if some function modifies contents or not.

4 years agoCleanup: correct qsort comments
Campbell Barton [Sat, 30 Jan 2016 02:26:11 +0000 (13:26 +1100)]
Cleanup: correct qsort comments

Also add link to original source & parenthesize min macro.

4 years agoCleanup: line length
Campbell Barton [Sat, 30 Jan 2016 02:25:04 +0000 (13:25 +1100)]
Cleanup: line length

4 years agoCleanup for last commit, these variables are no longer needed.
Thomas Dinges [Sat, 30 Jan 2016 01:12:59 +0000 (02:12 +0100)]
Cleanup for last commit, these variables are no longer needed.

4 years agoCycles: Cleanup of OpenCL split kernel routines
Sergey Sharybin [Thu, 29 Oct 2015 15:56:27 +0000 (20:56 +0500)]
Cycles: Cleanup of OpenCL split kernel routines

The idea is to switch from allocating separate buffers for shader data's
structure of arrays to allocating one huge memory block and do some index
trickery to make it accessed as SOA.

This saves quite reasonable amount of lines of code in device_opencl and
also makes it possible to get rid of special declaration of ShaderData
structure.

As a side effect it also makes it easier to experiment with SOA vs. AOS
for split kernel.

Works fine here on NVidia GTX580, Intel CPU amd AMD Fiji cards.

Reviewers: #cycles, brecht, juicyfruit, dingto

Differential Revision: https://developer.blender.org/D1593

4 years agoCMake: Remove per-module Werror settings
Sergey Sharybin [Fri, 29 Jan 2016 23:04:52 +0000 (00:04 +0100)]
CMake: Remove per-module Werror settings

Seems i was the only one who was really up to using it and
i do have gcc-5 finally backported and installed here so
such a fine-tune flags are no longer needed.

4 years agoCycles: Remove code which was commented out for ages now
Sergey Sharybin [Fri, 29 Jan 2016 17:59:37 +0000 (18:59 +0100)]
Cycles: Remove code which was commented out for ages now

It was mainly unfinished code for volume in a split kernel which
should be done differently anyway to avoid such a code copy-paste.

The code didn't really work, so likely nobody will cry.

4 years agoCycles: Remove some unused variables from split kernel function
Sergey Sharybin [Fri, 29 Jan 2016 17:54:18 +0000 (18:54 +0100)]
Cycles: Remove some unused variables from split kernel function

4 years agoinstall_deps: disable ffmpeg in oiio, we do not need it and this lib varies too much...
Bastien Montagne [Fri, 29 Jan 2016 16:05:01 +0000 (17:05 +0100)]
install_deps: disable ffmpeg in oiio, we do not need it and this lib varies too much accross distros...

4 years agoFix i18n-related points in T47265 - mostly, fix non-translated items in enum-search...
Bastien Montagne [Fri, 29 Jan 2016 14:05:51 +0000 (15:05 +0100)]
Fix i18n-related points in T47265 - mostly, fix non-translated items in enum-search popup menu.

4 years agoBuildbot: Update master configuration
Sergey Sharybin [Fri, 29 Jan 2016 12:47:47 +0000 (17:47 +0500)]
Buildbot: Update master configuration

4 years agoInstall_deps.sh: attempt to add OpenVDB, not working for now.
Bastien Montagne [Fri, 29 Jan 2016 10:05:37 +0000 (11:05 +0100)]
Install_deps.sh: attempt to add OpenVDB, not working for now.

OpenVDB is like a 30-years old lib when it comes to building it - not even a configure.sh script!
This makes it impossible to auto-build (install_deps is not a new CMake!).

So for now, just storing some template code for it, and expected version/deps data
in --show-deps option.

4 years agoSequencer: It is now possible to append strip's modifiers to all selected ones
Sergey Sharybin [Fri, 29 Jan 2016 08:17:33 +0000 (09:17 +0100)]
Sequencer: It is now possible to append strip's modifiers to all selected ones

Previously it was only possible to replace all existing modifiers with the
new list, which isn't so great for grading.

Ideally we should also have some sort of merge policy here, but that's for
later.

4 years agoSkip save-as history running from another Operator
Campbell Barton [Fri, 29 Jan 2016 06:00:32 +0000 (17:00 +1100)]
Skip save-as history running from another Operator

So scripts can call Save-As without adjusting 'Recent Files'.
Uses same logic and file reading,

4 years agoFix T47271: Vertex Group to Selected missing update
Campbell Barton [Fri, 29 Jan 2016 04:05:14 +0000 (15:05 +1100)]
Fix T47271: Vertex Group to Selected missing update

4 years agoFix crash running transform in background mode
Campbell Barton [Fri, 29 Jan 2016 04:03:49 +0000 (15:03 +1100)]
Fix crash running transform in background mode

4 years agoCleanup: remove unused code
Campbell Barton [Fri, 29 Jan 2016 03:31:29 +0000 (14:31 +1100)]
Cleanup: remove unused code

4 years agoCycles: Remove few function arguments needed only for the split kernel
Sergey Sharybin [Thu, 14 Jan 2016 14:58:22 +0000 (19:58 +0500)]
Cycles: Remove few function arguments needed only for the split kernel

Use KernelGlobals to access all the global arrays for the intermediate
storage instead of passing all this storage things explicitly.

Tested here with Intel OpenCL, NVIDIA GTX580 and AMD Fiji, didn't see
any artifacts, so guess it's all good.

Reviewers: juicyfruit, dingto, lukasstockner97

Differential Revision: https://developer.blender.org/D1736

4 years agoFFmpeg: Experiment with use of nb_frames from a stream when known
Sergey Sharybin [Thu, 28 Jan 2016 15:38:05 +0000 (16:38 +0100)]
FFmpeg: Experiment with use of nb_frames from a stream when known

The idea is to use known number of frames in the stream when possible
instead of trying to deduct it from a stream duration and time base,
which could potentially give some rounding errors.

This, i.e., solves quicktime encoded files from animators to open
just fine in sequencer.

Another report done by the main Nieve guy (aka venomgfx)

4 years agoCycles: Make OpenCL's argument wrapper able to get int/float values directly
Sergey Sharybin [Thu, 28 Jan 2016 14:03:01 +0000 (15:03 +0100)]
Cycles: Make OpenCL's argument wrapper able to get int/float values directly

4 years agoFix T47228: Ghost not handling predictably keycodes when first keymap is non-latin.
Bastien Montagne [Thu, 28 Jan 2016 13:57:33 +0000 (14:57 +0100)]
Fix T47228: Ghost not handling predictably keycodes when first keymap is non-latin.

Why this is not working in original code and works int this one remains mystery
(see comments for details).

Note that we still do not support at all non-latin keymaps for our shortcuts,
this would be nice to add someday, but that's a TODO, not a bug.

Reviewers: sergey, campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D1746

4 years agoCycles: Enable compilation of sm_37 kernels by default
Sergey Sharybin [Thu, 28 Jan 2016 10:59:40 +0000 (11:59 +0100)]
Cycles: Enable compilation of sm_37 kernels by default

Makes sense to keep support of top-range cards "out of the box".

4 years agoCycles: Make kernel compilable for 3.7 compute capability
Sergey Sharybin [Thu, 28 Jan 2016 10:56:09 +0000 (11:56 +0100)]
Cycles: Make kernel compilable for 3.7 compute capability

It is used by GK210 GPUs which could be found in, i.e. Tesla K80.

4 years agoFix/Workaround T46412: Defocus node not working on Windows 32 bit
Sergey Sharybin [Thu, 28 Jan 2016 10:39:17 +0000 (11:39 +0100)]
Fix/Workaround T46412: Defocus node not working on Windows 32 bit

The issue was caused by some functions in compositor returning
garbage values. Partially the issue was caused by vc12_xp toolset
we're using, but even with regular vc120 toolset nodes like bokeh
image did not work correct.

This is a bit weird solution, which could indicate some sort
of compiler bug, but is also actually makes sense because we do
use SSE intrinsics in the compositor now. Maybe it all gets
interfered in some way.

In any case, if someone wants to find a real solution for the
issue please go ahead.

This shouldn't have affect on supported platform because we
already demand CPU to have SSE2 support.

4 years agoWM: allow filesel to execute a modal operator
Campbell Barton [Thu, 28 Jan 2016 08:52:49 +0000 (19:52 +1100)]
WM: allow filesel to execute a modal operator

4 years agoOpenGL: optimize ED_screen_draw
Mike Erwin [Thu, 28 Jan 2016 07:51:22 +0000 (02:51 -0500)]
OpenGL: optimize ED_screen_draw

One draw call for all screen area outlines instead of one per line.
(Two for retina displays)

One draw call for area split line instead of two.

En/Disable GL_BLEND once for area join arrow instead of twice.

4 years agocleanup: spelling, comments, alignment
Mike Erwin [Thu, 28 Jan 2016 06:35:50 +0000 (01:35 -0500)]
cleanup: spelling, comments, alignment

fixed pet peeve “frustrum” and other non-functional changes.

4 years agoCleanup: warnings & style
Campbell Barton [Thu, 28 Jan 2016 06:23:12 +0000 (17:23 +1100)]
Cleanup: warnings & style

4 years agocleanup: spelling / typos
Mike Erwin [Thu, 28 Jan 2016 05:30:50 +0000 (00:30 -0500)]
cleanup: spelling / typos

no functional changes

4 years agoUsual i18n/UI messages fixes.
Bastien Montagne [Wed, 27 Jan 2016 21:20:26 +0000 (22:20 +0100)]
Usual i18n/UI messages fixes.

4 years agoFix T47252: FileBrowser: buffer overflow with scripts defining too long 'filter_glob...
Bastien Montagne [Wed, 27 Jan 2016 17:04:50 +0000 (18:04 +0100)]
Fix T47252: FileBrowser: buffer overflow with scripts defining too long 'filter_glob' string.

Fixed this with three changes:
* filter_glob is now 255 char max (63 could be a bit limited in some rare cases).
* IO templates now explicitely define max len of that property (such that scripters are aware of the limit).
* ED_fileselect_set_params() is now safe regarding too long strings from a 'filter_glob' op property.

4 years agoFix clear keyframes op not reporting when called over a locked fcurve.
Bastien Montagne [Wed, 27 Jan 2016 16:23:55 +0000 (17:23 +0100)]
Fix clear keyframes op not reporting when called over a locked fcurve.

Debug print here is not that useful to common user, and keyframe deletion
does report warning, so do the same for clear op.

Reported by venomgfx over IRC, thanks.

4 years agoTracking: Remove unfinished code from automation experiments
Sergey Sharybin [Wed, 27 Jan 2016 15:25:22 +0000 (16:25 +0100)]
Tracking: Remove unfinished code from automation experiments

4 years agoTracking: Update plane track solution after joining point tracks
Sergey Sharybin [Wed, 27 Jan 2016 15:20:17 +0000 (16:20 +0100)]
Tracking: Update plane track solution after joining point tracks

Was in fact long term TODO, it all should work fine now.

4 years agoTracking: De-duplicate code for tracking a sequence and single frame
Sergey Sharybin [Wed, 27 Jan 2016 15:01:20 +0000 (16:01 +0100)]
Tracking: De-duplicate code for tracking a sequence and single frame

It was not so much better from performance point of view to have
a special case here and it only made us having two entry points
to the same things, which was rather annoying.

Should no be functional changes for artists.

4 years agoTracking: Solve some TODOs
Sergey Sharybin [Wed, 27 Jan 2016 13:27:37 +0000 (14:27 +0100)]
Tracking: Solve some TODOs

Should not be functional changes.

4 years agoAtomics: Use _InterlockedAnd8 direction for 342bit MSVC
Sergey Sharybin [Wed, 27 Jan 2016 13:16:02 +0000 (14:16 +0100)]
Atomics: Use _InterlockedAnd8 direction for 342bit MSVC

That's what MSDN tells you to do and that's how to solve the compilation
error problem with it.

4 years agoTracking: Remove code which was dead for quite some time now
Sergey Sharybin [Wed, 27 Jan 2016 13:13:19 +0000 (14:13 +0100)]
Tracking: Remove code which was dead for quite some time now

4 years agoTracking: Cleanup, de-duplicate some code
Sergey Sharybin [Wed, 27 Jan 2016 13:06:55 +0000 (14:06 +0100)]
Tracking: Cleanup, de-duplicate some code

4 years agoBuildbot: Enable OpenVDB BLOSC for the Linux builders
Sergey Sharybin [Wed, 27 Jan 2016 11:49:42 +0000 (12:49 +0100)]
Buildbot: Enable OpenVDB BLOSC for the Linux builders

4 years agoOpenVDB: Get rid of hardcoded TBB variables and enabled for Linux buildbot
Sergey Sharybin [Wed, 27 Jan 2016 11:26:26 +0000 (11:26 +0000)]
OpenVDB: Get rid of hardcoded TBB variables and enabled for Linux buildbot

4 years agoOMP -> BLI_task: BKE's pbvh.c
Bastien Montagne [Wed, 27 Jan 2016 11:14:00 +0000 (12:14 +0100)]
OMP -> BLI_task: BKE's pbvh.c

Should be the last bit of sculpt/paint code, now this is fully using BLI_task.

Note that PBVH normals update is now about 20% quicker than with OMP code
(from 27ms to 21ms with a big stroke over a 500k vertices monkey), even though
a missing thread-protection was added... atomic primitives ftw!

For the records, with the missing `#pragma omp critical` section added,
previous code was like four times slower (above 100ms).

4 years agoPIL_time_utiledefines: add TIMEIT_AVERAGED variants to block timing macros.
Bastien Montagne [Wed, 27 Jan 2016 10:48:30 +0000 (11:48 +0100)]
PIL_time_utiledefines: add TIMEIT_AVERAGED variants to block timing macros.

This variant behave exactly as TIMEIT_START etc., but it also sums up all times in
a static var and prints out average execution time - very useful when dealing
with small/quick pieces of code that get executed often, to get some meaningful results.

4 years agoatomic_ops: add atomic_fetch_and_and_uint8 wrapper.
Bastien Montagne [Wed, 27 Jan 2016 10:46:27 +0000 (11:46 +0100)]
atomic_ops: add atomic_fetch_and_and_uint8 wrapper.

Needed by incomming changes in pbvh.c.

Note that we make it much simpler than for other primitives in this file - think
we could revise its content to make it simpler one day...

4 years agoFix T46624: Preview is not always correctly updated
Sergey Sharybin [Wed, 27 Jan 2016 10:04:21 +0000 (11:04 +0100)]
Fix T46624: Preview is not always correctly updated

It is possible that preview was not updated to correspond a
new context when width of preview is the same for two contexts.

4 years agoSequencer: Fix crash when trying to change filepath of Sound strip
Sergey Sharybin [Wed, 27 Jan 2016 10:01:41 +0000 (11:01 +0100)]
Sequencer: Fix crash when trying to change filepath of Sound strip

It was not implemented and fallback RNA-based approach was not
correct since there's no filepath property of sound strip.

4 years agoBuildbot: Fix for missing spnav for Linux builds
Sergey Sharybin [Wed, 27 Jan 2016 09:21:51 +0000 (10:21 +0100)]
Buildbot: Fix for missing spnav for Linux builds

4 years agoFix T47250: OpenVDB crash
Kévin Dietrich [Wed, 27 Jan 2016 09:13:31 +0000 (10:13 +0100)]
Fix T47250: OpenVDB crash

Issue was that the domain matrix was not initialized properly on the
first frame (in smokeModifier_init), which caused OpenVDB to throw an
exception for trying to create a VDB grid with non-affine transform.

4 years agoWorld textures displaying for viewport in BI.
Alexander Romanov [Wed, 27 Jan 2016 09:06:57 +0000 (12:06 +0300)]
World textures displaying for viewport in BI.

This patch supports "Image or Movie" and "Environment map" types of world texture for the viewport.
It supports:

  - "View", "AngMap" and "Equirectangular" types of mapping.

  - Different types of texture blending (according to BI world render).

  - Same color blending as when it lacked textures (but render via glsl).

{F207734}
{F207735}

Example: {F275180}
Original author: @valentin_b4w

Regards,
Alexander (Blend4Web Team).

Reviewers: sergey, valentin_b4w, brecht, merwin

Reviewed By: merwin

Subscribers: campbellbarton, merwin, blueprintrandom, youle, a.romanov, yurikovelenov, AlexKowel, Evgeny_Rodygin

Projects: #rendering, #opengl_gfx, #bf_blender:_next

Differential Revision: https://developer.blender.org/D1414

4 years agoWM: Support showing reports for modal operators
Campbell Barton [Wed, 27 Jan 2016 06:33:35 +0000 (17:33 +1100)]
WM: Support showing reports for modal operators

This isn't common use, but modal operators may make reports while they're running.
Now they're displayed in the info header.

4 years agoNDOF: enable 3D mouse support on Mac by default
Mike Erwin [Wed, 27 Jan 2016 02:08:57 +0000 (21:08 -0500)]
NDOF: enable 3D mouse support on Mac by default

We used to require the 3Dconnexion driver installed at build-time so
this was turned off.

I reworked the code last year to remove the driver dependency so
there’s no reason not to enable this.

4 years agoFix bplayer (c)
Bastien Montagne [Tue, 26 Jan 2016 21:01:30 +0000 (22:01 +0100)]
Fix bplayer (c)

4 years agoCleanup: forgot to comment again debug timing print in paint_stroke.c
Bastien Montagne [Tue, 26 Jan 2016 20:58:54 +0000 (21:58 +0100)]
Cleanup: forgot to comment again debug timing print in paint_stroke.c

4 years agoCleanup: remove OMP's 'critical' sections in BKE_pbvh_node_add_proxy/free_proxies.
Bastien Montagne [Tue, 26 Jan 2016 13:30:44 +0000 (14:30 +0100)]
Cleanup: remove OMP's 'critical' sections in BKE_pbvh_node_add_proxy/free_proxies.

Not so useful now that we use BLI_task! Not sure why those were ever added actually,
readng carefully that code only modified data here is the PBVHNode, which is only
used/affected by one thread at a time ever. And shared read data (PBVH itself) is
not modified during brush execution itself, so it's safe to use it threaded too.

4 years agoMinor correction to API docs
Campbell Barton [Tue, 26 Jan 2016 20:51:53 +0000 (07:51 +1100)]
Minor correction to API docs

4 years agoCleanup: minmac -> minmax & RE_render_ext naming
Campbell Barton [Tue, 26 Jan 2016 20:32:48 +0000 (07:32 +1100)]
Cleanup: minmac -> minmax & RE_render_ext naming

Use more conventional API word-ordering for RE_render_ext

4 years agoCMake: Correction in comment in previous commit
Sergey Sharybin [Tue, 26 Jan 2016 14:42:53 +0000 (15:42 +0100)]
CMake: Correction in comment in previous commit

4 years agoCMake: Corrections around disabling Boost
Sergey Sharybin [Tue, 26 Jan 2016 14:41:06 +0000 (15:41 +0100)]
CMake: Corrections around disabling Boost

Were some missing dependencies in the checks.

4 years agoFix bplayer (c)
Bastien Montagne [Tue, 26 Jan 2016 13:03:53 +0000 (14:03 +0100)]
Fix bplayer (c)

4 years agomesh_evaluate.c: OMP -> BLI_task, and some more parallelization.
Bastien Montagne [Tue, 26 Jan 2016 09:15:08 +0000 (10:15 +0100)]
mesh_evaluate.c: OMP -> BLI_task, and some more parallelization.

Only concerns poly normals computing, have usual 10% speedup of affected code for OMP -> BLI_task switching.

Also parallelized the 'weighted accum' part (used when computing both polys and vertices normals,
when using modifiers e.g.), which gives nice 325% speedup (from 66ms to 20ms for a 500k poly monkey
with simple deform modifier e.g.). ;)

4 years agoFix T46679: ZMask layers don't update w/ animation
Campbell Barton [Tue, 26 Jan 2016 12:29:51 +0000 (23:29 +1100)]
Fix T46679: ZMask layers don't update w/ animation

Make sure z-mask layers aren't excluded for animation evaluation.

4 years agoFix T47214: Keyed Particles don't render correctly when used for point density input
Sergey Sharybin [Tue, 26 Jan 2016 11:50:55 +0000 (12:50 +0100)]
Fix T47214: Keyed Particles don't render correctly when used for point density input

The issue was caused by different AABB used by Cycles and texture sampler.

Instead of trying to keep this two functions in sync we now do have an
utility call in the point density node to query the AABB.

4 years agoCMake: Keep Schur specializations OFF by default config
Sergey Sharybin [Tue, 26 Jan 2016 10:47:53 +0000 (11:47 +0100)]
CMake: Keep Schur specializations OFF by default config

Now when doing full build is real easy on all platforms, we can
only keep it enabled for the blender_full configuration.

4 years agoCompositor: Speedup movie (un)distortion operation
Sergey Sharybin [Tue, 26 Jan 2016 10:42:55 +0000 (11:42 +0100)]
Compositor: Speedup movie (un)distortion operation

Avoid per-pixel camera intrincs object construction and synchronization.

Here on a bit synthetic file it gives about 40% speedup with a single node.

4 years agoFix compilation error after recent luma changes on certain platforms
Sergey Sharybin [Tue, 26 Jan 2016 08:57:25 +0000 (09:57 +0100)]
Fix compilation error after recent luma changes on certain platforms

See T47243 for some more details.

4 years agoCorrect commented printfs
Campbell Barton [Mon, 25 Jan 2016 21:05:20 +0000 (08:05 +1100)]
Correct commented printfs

4 years agoUpgrade Bullet to version 2.83.
Brecht Van Lommel [Sun, 17 Jan 2016 20:35:32 +0000 (21:35 +0100)]
Upgrade Bullet to version 2.83.

I tried to carefully preserve all patches since the last upgrade.

Improves T47195, cloth collision detection bug.

Differential Revision: https://developer.blender.org/D1739

4 years agoCorrect own error in recent BVH nearest ray
Campbell Barton [Mon, 25 Jan 2016 20:36:32 +0000 (07:36 +1100)]
Correct own error in recent BVH nearest ray

4 years agoFix T46456: Crash when aborting stroke while using dyntopo.
Bastien Montagne [Mon, 25 Jan 2016 19:22:30 +0000 (20:22 +0100)]
Fix T46456: Crash when aborting stroke while using dyntopo.

Basically, the 'fake undo' restoring orig coordinates in this case cannot work with dyntopo,
since it assumes nothing was added/removed.

For now, just prevent this 'restoration' when dyntopo is used, this is no ideal solution
from user PoV - but it's better than plain ugly crash!

Complete solution seems much more involved and outside of scope of bug handling, added a TODO note:
http://wiki.blender.org/index.php/Dev:Source/Development/Todo/Tools#Sculpting

4 years agoFix various potential bugs from coverity reports (NULL dereference, negative number...
Bastien Montagne [Mon, 25 Jan 2016 15:55:08 +0000 (16:55 +0100)]
Fix various potential bugs from coverity reports (NULL dereference, negative number assigned to uint...).

Note: the wm_jobs needs proper fix, we cannot have that kind of inconsistencies in some 'public' API!