Blender Git Loki

Kaikki Blender Git kommitit.

Page: 1988 / 8462

December 15, 2019, 14:12 (GMT)
GPencil: Refactor: Implement Opacity Masking

This is better than previous implementation but has a higher cost.

We render masked layer to a RGBA16F buffer and we then mask the revealage
and the color in a 2 pass blending.

This could maybe optimized a bit to reduce to 1 blending on recent hardware
but the cost will still be way higher than the stencil method.

On the plus side, there is less code change than with the stencil.
December 15, 2019, 13:02 (GMT)
Revert "GPencil: Refactor: Add Top to bottom layer masking using stencil"

This reverts commit 6bcd877ebb9a99482bd7f15eae08a3b383b2a706.
December 15, 2019, 10:18 (GMT)
Merge branch 'master' into greasepencil-object

Conflicts:
release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
release/scripts/startup/bl_ui/properties_grease_pencil_common.py
release/scripts/startup/bl_ui/properties_paint_common.py
release/scripts/startup/bl_ui/space_topbar.py
release/scripts/startup/bl_ui/space_view3d.py
release/scripts/startup/bl_ui/space_view3d_toolbar.py

This commit has broken all new graese pencil Vertex Paint, Sculpt mode
and Weight mode and need a review.
December 15, 2019, 02:42 (GMT)
GPencil: Refactor: Add Top to bottom layer masking using stencil

This uses the 8bits as binary mask layer. This is really
efficient but has the downside of not allowing gradient transparency.

This also allows for different masking ranges and even (maybe) masking
boolean operations (nested masks etc..) but implementing this sort of
this might complexify the UI and the implementation.

The reason we went for binary visibility is that our blending modes
cannot operate correctly if not using a bottom-up rendering of the
layers (due to low precision color buffers). So blending all masked
layers to another temp buffer or blending layer top to bottom is not
doable without loosing the blending features. The workaround for this
would be to use RGBA16F everywhere and use many double buffers. Which
would kill performance and is really unpractical.

Now we just limit the number of masks to be 8. Lifting this limit
is a todo.
December 15, 2019, 02:19 (GMT)
GPencil: Refactor: Fix crash caused by material preview render
December 15, 2019, 02:14 (GMT)
DRW: Add DRW_shgroup_stencil_set to set all stencil test values

This is to allow more fine tuning. The other function is
deprecated and need to be replace.
December 14, 2019, 20:41 (GMT)
UI: tweaks to the brush Stroke panel

- Make sure the spacing controls are together
- Add separators around the dash controls
December 14, 2019, 19:30 (GMT)
Revert "GPencil: Refactor: Change Mask Behavior"

This reverts commit eb3fe4c8486fe1253cf8725b6083238dca7d256e.
December 14, 2019, 17:58 (GMT)
GPencil: Refactor: Change Mask Behavior

This is a work in progress Masking now done by a particular layer and
applied on all layers underneath.
December 14, 2019, 17:58 (GMT)
GPencil: Refactor: Fix broken selection
December 14, 2019, 17:48 (GMT)
UI: Brush Settings overhaul

This makes a number of changes to the tool settings brush UI:

- All brush-related controls are now grouped together, so you can see which items are brush settings are which are not. Previously it was all jumbled together.
- The brush picker is in a separate panel, so that you can switch brushes without worrying about the settings, or vice versa.
- Custom Icon settings moved from the Display settings(now known as Cursor) to the Brushes panel.
- UnifiedPaintSettings panels are removed and the contained options are now next to their relevant setting with a globe icon toggle. This is not displayed in the header.
- 2D Falloff and Absolute Jitter toggles were changed into enums, to make it clearer what happens when they are on or off.
- Adjust Strength for Spacing option was in the Options panel in some modes, but in the Stroke panel in others. It is now always under Stroke.
- Display (now Cursor) panel was reorganized, settings renamed.
- 2-option enums are annoying as a drop-down menu, so they are now drawn with expand=True.
- Smooth Stroke and Stabilizer options in grease pencil and other paint modes are now both called "Stabilize Stroke", for consistency and clarity.
- De-duplicated some drawing code between various painting modes' brush options. I tried to keep de-duplication reasonable and easy to follow.
- A few more tweaks - see D5928 for the extensive list.

Most of the patch is written by Demeter Dzadik, with some additions by myself

Differential Revision: https://developer.blender.org/D5928
Reviewers: Pablo Dobarro, Bastien Montagne, Matias Mendiola
December 14, 2019, 17:33 (GMT)
fix wrong comparison
December 14, 2019, 17:25 (GMT)
fix some warnings
December 14, 2019, 17:07 (GMT)
remove some old tests
December 14, 2019, 16:57 (GMT)
remove unused functionality
December 14, 2019, 16:50 (GMT)
use new indices functions
December 14, 2019, 16:44 (GMT)
more low level generic CPPType functions
December 14, 2019, 16:31 (GMT)
Industry Compat keymap: Add support for the context menu PC keyboard key
December 14, 2019, 16:16 (GMT)
Industry Compat keymap: Fix issue in UV editor Box Select tool

Shift-dragging with the Box Select tool would also select the nearest point.

Using a Click instead of Press event for selection (just like the default keymap) fixes this.
December 14, 2019, 16:16 (GMT)
add more functions to CPPType
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021