WIP: GPv3: Compound shapes rendering and operators #116698

Draft
casey-bianco-davis wants to merge 28 commits from casey-bianco-davis/blender:GPv3-Compound-Shapes into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

This adds the following operators:

  • Join shape operator (Shift J) used to join multiple curves into one shape.
  • Separate shape operator (Alt P) used to separate a curves into it's own shape.
  • Select shape operator (Shift L) used to select all curves that make up the shape.

This PR is still WIP and so the following changes should be made:

  • Add more comments explaining the logic and algorithms.
  • Use threading everywhere it's possible.
  • Separate valid mesh checks code out of triangles function
  • Use BLI_polyfill_calc_arena when a shape is only made of one curve.
  • Use simplify draw logic when the shape id attribute does not exists.
    - Create array_utils function for getting the maximum value of an array. used std::max_element instead.
  • Fix draw order problem.
  • Create video showing these changes.
  • Use Array instead of BLI_memarena_alloc for projverts
  • Use shape vs shape_id consistently

Resolves: #114071

This adds the following operators: - Join shape operator (Shift J) used to join multiple curves into one shape. - Separate shape operator (Alt P) used to separate a curves into it's own shape. - Select shape operator (Shift L) used to select all curves that make up the shape. This PR is still WIP and so the following changes should be made: - [ ] Add more comments explaining the logic and algorithms. - [x] Use threading everywhere it's possible. - [x] Separate valid mesh checks code out of `triangles` function - [ ] Use `BLI_polyfill_calc_arena` when a shape is only made of one curve. - [ ] Use simplify draw logic when the shape id attribute does not exists. ~~- [ ] Create `array_utils` function for getting the maximum value of an array.~~ used `std::max_element` instead. - [x] Fix draw order problem. - [ ] Create video showing these changes. - [x] Use Array instead of `BLI_memarena_alloc` for `projverts` - [x] Use `shape` vs `shape_id` consistently Resolves: #114071
casey-bianco-davis added 11 commits 2024-01-02 00:21:26 +01:00
casey-bianco-davis added a new dependency 2024-01-02 00:23:53 +01:00
Iliya Katushenock added this to the Grease Pencil project 2024-01-02 00:24:19 +01:00
Iliya Katushenock added the
Interest
Grease Pencil
label 2024-01-02 00:24:45 +01:00
casey-bianco-davis requested review from Falk David 2024-01-02 00:25:18 +01:00
casey-bianco-davis removed a dependency 2024-01-28 00:25:40 +01:00
casey-bianco-davis added 17 commits 2024-02-12 07:21:10 +01:00
This pull request has changes conflicting with the target branch.
  • scripts/presets/keyconfig/keymap_data/blender_default.py
  • source/blender/blenkernel/intern/grease_pencil.cc
  • source/blender/draw/intern/draw_cache_impl_grease_pencil.cc
  • source/blender/editors/grease_pencil/intern/grease_pencil_edit.cc
  • source/blender/editors/sculpt_paint/grease_pencil_paint.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u GPv3-Compound-Shapes:casey-bianco-davis-GPv3-Compound-Shapes
git checkout casey-bianco-davis-GPv3-Compound-Shapes
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#116698
No description provided.