Blender Git Loki

Kaikki Blender Git kommitit.

Page: 2009 / 8462

December 8, 2019, 00:26 (GMT)
Merge branch 'greasepencil-object' into greasepencil-refactor
December 8, 2019, 00:26 (GMT)
GPencil: Refactor: Add back basic fill drawing
December 8, 2019, 00:23 (GMT)
GPencil: Refactor: Draw gpencil strokes using instanced quad

Using the instance range drawing (DRW) & the attrib multiload (GPU) we
use the instancing of quad geometry to draw arbitrary thick lines using
only the vertex shader.
December 8, 2019, 00:18 (GMT)
GPUVertFormat: Add GPU_vertformat_multiload_enable

This add the possibility to fetch multiple adjacent vertex data in a single
vertex shader invocation.
December 8, 2019, 00:15 (GMT)
Draw Manager: Add new DRW_shgroup_call_instance_range

This is to be able to create drawcalls that only render a range of the
instance buffer.

Very needed for the new GPencil stroke rendering.
December 7, 2019, 19:38 (GMT)
Fix ShaderNodeCustomGroup.copy method being called too often

This is only supposed to happen when copying nodes that are part of the user
editable database, not temporary copies for the dependency graph.

The LIB_ID_COPY_LOCALIZE test was wrong because it is a combination of multiple
bitflags as pointed out by Bastien, and was actually redundant anyway since
LIB_ID_CREATE_NO_MAIN is part of it.
December 7, 2019, 19:03 (GMT)
Merge branch 'master' into greasepencil-object
December 7, 2019, 18:06 (GMT)
Shaders: noise and wave distortion now work uniformly instead of diagonally

Previously Noise and Wave texture nodes would use noise functions within a [0,1]
range for distortion effects. We either add or subtract noise from coordinates,
never do both at same time. This led to the texture drastically shifting on the
diagonal axis of a plane / cube. This behavior makes the Distortion input hard
to control or animate. Capabilities of driving it with other texture are also
limited, diagonal shifting is very apparent.

This was fixed by offsetting the noise function to a signed range and making it
zero-centered. This way noise is uniformly added and subtracted from coordinates.
Texture pattern sticks to main coordinates which makes it way easier to control.

This change is not strictly backwards compatible, there is versioning to ensure
the scale of the distortion remains similar, but the particular pattern can be
a little different.

Differential Revision: https://developer.blender.org/D6177
December 7, 2019, 17:22 (GMT)
GPencil: Refactor: Use iterator to populate draw passes

Also remove a bug in gpencil_batch_cache_valid that prevented the use
of gpencil_batches_ensure more than once per redraw.
December 7, 2019, 16:16 (GMT)
UI: Custom Face Orientation Colors

Adds theme settings to allow change of front and back faces of the Face Orientation overlay

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

Reviewed by Jeroen Bakker
December 7, 2019, 13:57 (GMT)
Merge branch 'greasepencil-object' into greasepencil-refactor
December 7, 2019, 13:56 (GMT)
GPencil: Refactor: Add new logic to create batches and store draw passes

We introduce a new set of temp objects (GPENCIL_tVfx, GPENCIL_tLayer,
GPENCIL_tObject) allocated in BLI_memblocks to allow fast traversal and
easy memory management.

We also introduce an iterator to iterate over visible strokes of an object
to avoid code duplication.

Strokes are all in one batch and the fill batch will only contain indices
to the stroke buffer.

For now the objects are only drawn at the center only with white 1px stroke
and all strokes are not interupted (the finish at center).
December 7, 2019, 12:52 (GMT)
Shader Nodes: Add Interpolation modes to Map Range node

Modes: Linear interpolation (default), stepped linear, smoothstep and smootherstep.

This also includes an additional option for the **Clamp node** to switch between **Min Max** (default) and **Range** mode.

This was needed to allow clamping when **To Max** is less than **To Min**.

Reviewed By: JacquesLucke, brecht

Differential Revision: https://developer.blender.org/D5827
December 7, 2019, 12:33 (GMT)
Maths Node: Additional functions

When creating shaders and using maths functions it is expected that Blender should match functions in other DCC applications, game engines and shading languages such as GLSL and OSL.

This patch adds missing functions to the Blender maths node.

Ideally, it would be nice to have these functions available to vectors too but that is not part of this patch.

This patch adds the following functions trunc, snap, wrap, compare, pingpong, sign, radians, degrees, cosh, sinh, tanh, exp, smoothmin and inversesqrt.

Sign function is based on GLSL and OSL functions and returns zero when x == 0.

Differential Revision: https://developer.blender.org/D5957
December 7, 2019, 10:01 (GMT)
Merge branch 'master' into functions
December 7, 2019, 05:37 (GMT)
Cleanup: remove unused arguments
December 7, 2019, 02:20 (GMT)
Preferences: correct experimental flag use

Add utilities for checking when experimental features
should be used.
December 6, 2019, 21:10 (GMT)
UI: File Browser Volumes and System Lists Icons

Allows each File Browser list item in Volumes and System to use individual icons.

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

Reviewed by Julian Eisel
December 6, 2019, 20:16 (GMT)
UI: disk to disc icon dat file rename

Changes file names of two icon 'dat' files to reflect previous identifier rename.

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

Reviewed by Julian Eisel
December 6, 2019, 19:03 (GMT)
Tool System: experimental fallback tool support

Implement T66304 as an experimental option,
available under the preferences "Experimental" section.

- When enabled most tools in the 3D view have a gizmo.
- Dragging outside the gizmo uses the 'fallback' tool.
- The fallback tool can be changed or disabled in the tool options
or from a pie menu (Alt-W).
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021