GP 3.0: More conversions of the legacy grease pencil data. #106822
Labels
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#106822
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, the following data between the old and new data-block is converted:
Point attributes:
position
(orx
,y
, andz
)radius
(orpressure
, currently is saved pre-multiplied by the stroke thickness)opacity
(orstrength
)selection
(from theflag
>GP_SPOINT_SELECT
)Stroke (curve) attributes:
cyclic
(from theflag
>GP_STROKE_CYCLIC
)material_index
(ormat_nr
)Frame data:
frame_number
(previouslyframenum
)There is more data that needs to be converted:
Point attributes:
time
: seconds since start of drawing the stroke (should maybe be saved as delta between points?)uv_rot
: rotation of this point (for dot material mode)vert_color
: vertex color(Note:
uv_fac
, anduv_fill
can be calculated at runtime)Stroke attributes:
thickness
: thickness of the strokeinittime
: creation time of the strokecaps
: end caps flags (should probably be two boolean attributes for front and back)hardness
: controls the gradient falloff from the center line to the outer edge of the strokeaspect_ratio[2]
: x-y factor for dot shapes (why is this not a single factor?)fill_opacity_fac
: Opacisty factor for fillsuv_rotation
,uv_translation
,uv_scale
: For fillsvert_color_fill
: Fill "vertex" color.(Note: There are a lot of fields in the stroke that is actually runtime data. Like
triangles
,boundbox
,select_index
)Frame data (to be stored in the layer map):
selection
: frame selectionkey_type
: keyframe type shown in the UILayer data:
hide
,locked
,select
,use_lights
active
: This layer is active (should be stored as an index and a reference at runtime)parent
,parsubstr
: the parent object (could be a bone by name)line_change
: Thickness adjustmenttintcolor
opacity
viewlayername
: Name of the layer used to filter render output.blend_mode
Only used by annotations.gstep
,gstep_next
,gcolor_prev
,gcolor_next
: Onion skinning datamask_layers
: list of mask layers (how to convert this?)location
,rotation
,scale
: layer transformsbGPdata:
(should probably be baked into thepixfactor
radius
on the points and be replaced by using a thickness modifier)Needs to be moved tovertex_group_names
,vertex_group_active_index
CurvesGeometry
.onion_factor
,onion_mode
,onion_flag
,onion_keytype
(Should become a overlay setting. Idea: Use the object viewport display color for the grid color. Scale the grid to the bounding box of the object to make sure it is covered.)grid
aspect_ratio
could be a single floatvertex_paint_opacity
is always 1.0 because is was replaced by overlay value, so it can be removed. This prop is not visible in the UI.About layer active.... do we want save this as today? if we put in runtime this setting will not be saved.
Onion Skinning parameters would be moved to a separated "sub" struct to keep things organized... now it's not easy to know what is for onion and what not.
This commit
0b9a5381f9
adds the frame data and also converts it.This commit
c72ade033d
adds the active layer functionality.All the conversions (except for the weights which needs to happen in
CurvesGeometry
) have been committed.