Grease Pencil merge tasks #54893

Closed
opened 2018-04-30 10:12:16 +02:00 by Joshua Leung · 18 comments
Member

Parent task to keep track of all GP branch merge related tasks.

Differential (mega-patch) task, with more links: D2889

Blocking Subtasks / Changes required before merge

  • Migrate Palettes and Palette Colors to Materials. - Needs code review. Some UI design issues remain (#54896)
  • Solve Depsgraph issues adding multiple GP Objects.
  • Enable depsgraph relationships with Materials.
  • Rename Array modifier. - Is now known as the "Instance" modifier 7a5747d5596
  • Convert operators to COW. - In progress.
    • Set up API for accessing COW evaluated GP data 356ce71a5f2 [Joshua]
    • Tag GP datablocks as needing updates [Antonio]
    • Check operators to know that COW data in appropriate operators is configured [Joshua/Antonio]
  • Refactor of UI, using new toolbars. [Postponed till after after merge. See #54896 for design decisions]
  • Disable temporarily VFX modifiers. - These are now removed from the branch. A replacement design can be worked on after the merge (as a more general system)
  • Fix issues (naming, DNA/draw-api/ID-handling, etc.) identified during code review (#55002)
  • Fix vertex group data storage issues identified during code review (#55002)

Postponed Issues

  • Convert Modifiers to use COW. [Too complex to get working before during codequest / before 2.8 DNA lockdown/Spring deadline]

    • Recode evaluation internals to occur in DEG callback instead of in draw manager + Remove current ghash-cache [Joshua]
    • Update modifiers [Joshua/Antonio]
  • Annotations support - i.e. "basic" GP features - as in 2.75/6, for non-3D view, workflow non-art use cases (#55455)

Other Todo's

  • Updated design docs (on wiki)
  • User documentation
Parent task to keep track of all GP branch merge related tasks. Differential (mega-patch) task, with more links: [D2889](https://archive.blender.org/developer/D2889) # Blocking Subtasks / Changes required before merge - ~~Migrate Palettes and Palette Colors to Materials.~~ - Needs code review. Some UI design issues remain (#54896) - ~~Solve Depsgraph issues adding multiple GP Objects.~~ - Enable depsgraph relationships with Materials. - ~~Rename Array modifier.~~ - Is now known as the "Instance" modifier 7a5747d5596 - ~~Convert operators to COW. - In progress.~~ - ~~Set up API for accessing COW evaluated GP data~~ 356ce71a5f2 [Joshua] - ~~Tag GP datablocks as needing updates~~ [Antonio] - ~~Check operators to know that COW data in appropriate operators is configured~~ [Joshua/Antonio] - ~~Refactor of UI, using new toolbars.~~ [Postponed till after after merge. See #54896 for design decisions] - ~~Disable temporarily VFX modifiers.~~ - These are now removed from the branch. A replacement design can be worked on after the merge (as a more general system) - ~~Fix issues (naming, DNA/draw-api/ID-handling, etc.) identified during code review~~ (#55002) - ~~Fix vertex group data storage issues identified during code review~~ (#55002) ## Postponed Issues - Convert Modifiers to use COW. [**Too complex to get working before during codequest / before 2.8 DNA lockdown/Spring deadline**] - Recode evaluation internals to occur in DEG callback instead of in draw manager + Remove current ghash-cache [Joshua] - Update modifiers [Joshua/Antonio] - ~~Annotations support - i.e. "basic" GP features - as in 2.75/6, for non-3D view, workflow non-art use cases~~ (#55455) # Other Todo's * Updated design docs (on wiki) * User documentation
Joshua Leung self-assigned this 2018-04-30 10:12:16 +02:00
Author
Member

Added subscriber: @JoshuaLeung

Added subscriber: @JoshuaLeung

Added subscriber: @antoniov

Added subscriber: @antoniov

We have the following subtask:

  • Migrate Palettes and Palette Colors to Materials.
  • Solve Depsgraph issues adding multiple GP Objects.
  • Enable depsgraph relationships with Materials.
  • Rename Array modifier.
  • Convert Modifiers to use COW. ->After merge
  • Convert operators to COW.
  • Refactor of UI, using new toolbars. ->After merge
  • Disable temporarily VFX modifiers.
  • Refactor weight data to use MDeformVert/MDeformWeight structs.

@JoshuaLeung do you need add them in phabricator as subtask?

We have the following subtask: - ~~Migrate Palettes and Palette Colors to Materials.~~ - ~~Solve Depsgraph issues adding multiple GP Objects.~~ - ~~Enable depsgraph relationships with Materials.~~ - ~~Rename Array modifier.~~ - Convert Modifiers to use COW. **->After merge** - ~~Convert operators to COW.~~ - Refactor of UI, using new toolbars. **->After merge** - ~~Disable temporarily VFX modifiers.~~ - ~~Refactor weight data to use MDeformVert/MDeformWeight structs.~~ @JoshuaLeung do you need add them in phabricator as subtask?
Author
Member

Regarding the UI (topbar/toolbar) changes:
After discussing with Campbell, it's probably better that we leave any changes here to after the merge. The toolbar stuff is still very much a moving target, so it's best to let that settle down for a week or so first. But, in the meantime, we can still continue any UI design work in preparation for that point.

Regarding the UI (topbar/toolbar) changes: After discussing with Campbell, it's probably better that we leave any changes here to after the merge. The toolbar stuff is still very much a moving target, so it's best to let that settle down for a week or so first. But, in the meantime, we can still continue any UI design work in preparation for that point.

I have completed the rename of Array modifier to Instance Modifier.

I have completed the rename of Array modifier to Instance Modifier.
Author
Member

@antoniov:
If/while you're waiting for other cleanups to do, go through and replace all the BKE_gpencil_batch_cache_dirty(gpd); calls in the GP operator code with DEG_id_tag_update(id, OB_RECALC_OB | OB_RECALC_DATA);

@antoniov: If/while you're waiting for other cleanups to do, go through and replace all the `BKE_gpencil_batch_cache_dirty(gpd);` calls in the GP operator code with `DEG_id_tag_update(id, OB_RECALC_OB | OB_RECALC_DATA);`

@JoshuaLeung Ok, I'm going to change BKE_gpencil_batch_cache_dirty(gpd).

@JoshuaLeung Ok, I'm going to change BKE_gpencil_batch_cache_dirty(gpd).

@JoshuaLeung I guess you mean:

DEG_id_tag_update(gpd->id, OB_RECALC_OB | OB_RECALC_DATA);
@JoshuaLeung I guess you mean: ``` DEG_id_tag_update(gpd->id, OB_RECALC_OB | OB_RECALC_DATA); ```

@JoshuaLeung I think this is what you wanted: 8098dc3d108c

Let me know if I need change it (specially anim_channels_defines.c, I was not totally sure about this).

@JoshuaLeung I think this is what you wanted: 8098dc3d108c Let me know if I need change it (specially **anim_channels_defines.c**, I was not totally sure about this).
Author
Member

I've just done a merge of 2.8 into the branch. We should now be up to date again, to keep working in sync, until the upcoming collections changes break things again.

I've just done a merge of 2.8 into the branch. We should now be up to date again, to keep working in sync, until the upcoming collections changes break things again.

@JoshuaLeung I have tested:

Depsgraph issues adding multiple GP Objects

With last 2.8 merge works, so we can set task as done.

@JoshuaLeung I have tested: > Depsgraph issues adding multiple GP Objects With last 2.8 merge works, so we can set task as done.

Added subscriber: @AdrianCabrera

Added subscriber: @AdrianCabrera

Added subscriber: @ideasman42

Added subscriber: @ideasman42

After receive the feedback from @ideasman42 and @JoshuaLeung I have moved the weights data from the points from bGPDspoint struct to bGPDstroke and I have created a separated array of MDeformVert (and MDeformWeight). Now the weighst use the same logic used for Meshes and Lattice.

I had to make a lot of changes in memory allocation, so this big refactor could produce some bug. We will test during next days to fix any issue.

This change has broken a little more the compatibility with Hero open movie files, but as we had a lot of breaks already, this is only one more.

After receive the feedback from @ideasman42 and @JoshuaLeung I have moved the weights data from the points from bGPDspoint struct to bGPDstroke and I have created a separated array of MDeformVert (and MDeformWeight). Now the weighst use the same logic used for Meshes and Lattice. I had to make a lot of changes in memory allocation, so this big refactor could produce some bug. We will test during next days to fix any issue. This change has broken a little more the compatibility with Hero open movie files, but as we had a lot of breaks already, this is only one more.

ToDo tasks:

· Review Keymaps conflicts ( see #55162)
· Review mode switching with new keymaps

There are conflicts with some keymaps, like brush change, with the new mode change keymaps. (Some were removed here aa722e8193a6)

We need adapt the shared modes (for example 5 key) to switch to GP draw mode for OB_GPENCIL Objects.

ToDo tasks: · Review Keymaps conflicts ( see #55162) · Review mode switching with new keymaps There are conflicts with some keymaps, like brush change, with the new mode change keymaps. (Some were removed here aa722e8193a6) We need adapt the shared modes (for example 5 key) to switch to GP draw mode for OB_GPENCIL Objects.

Added subscriber: @gobb_blend

Added subscriber: @gobb_blend
Brecht Van Lommel changed title from Grease Pencil Branch Merge (Parent Task) to Grease Pencil Tasks 2018-08-13 11:34:10 +02:00
Brecht Van Lommel changed title from Grease Pencil Tasks to Grease Pencil (parent task) 2018-08-13 11:36:28 +02:00

Removed subscriber: @gobb_blend

Removed subscriber: @gobb_blend
Brecht Van Lommel changed title from Grease Pencil (parent task) to Grease Pencil merge tasks 2018-11-19 14:23:24 +01:00

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
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
4 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#54893
No description provided.