GPencil: natural drawing building with 1 subdivision make animation slower too much that must be #104824
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#104824
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94
Blender Version
Broken: version: 3.5.0 Beta, branch: blender-v3.5-release, commit date: 2023-02-15 23:48, hash:
4cb119f5339f
Worked: (newest version of Blender that worked as expected)
Short description of error
hi, when i use the new feature natural drawing speed in build modifier, it work well but if i add subdivide modifier before it takes too long time (around x30 times some times x100) even with 1 subdivition.i add subdivide to ad smouth modifier and have nice controle
here the video,
#grease_pencil
@marcchehab Could you take a look. It looks you are not using the right number of points. Maybe you are using original stroke size and not the evaluated or maybe you are not calculating the time for the new created points.
Hi guys, sorry for the delay. I looked at it today but I'm fighting with my debugger currently. I'll have to continue tomorrow.
Short Update: The problem is that subdiv-modifier doesn't sanitize missing time values that points have (they show as 0). It just takes averages of neighbours, which if one neighbour is missing (0) creates huge deltas in time between points that are added up in the build modifier.
There are two solutions:
Refactor my time sanitization routine and make sub-div modifier call it also. Advantage: Clean solution. Disadvantage: Slows down subdiv-modifier for a feature that isn't even used most of the time. And a lot of work for little added value.
My preference: Make subdiv-modifier fill in 0 for time, making it - if anything - faster. Currently the build modifier is the only area where this data is needed and it has a sanitization routine.
In the future with GP 3.0 the sanitization could be run after strokes are drawn and saved into the stroke data from the start.
@antoniov Can I go with 2 ?
Agree with 2) The option 1) is not a good idea.
Here's a patch (I used master branch, but should work, right?)
@hamza-el-barmaki could you test this patch?
@marcchehab Could you create a Pull Request? You don't need commit rights to create the PR.
Here you can find how to do it: https://wiki.blender.org/wiki/Tools/Pull_Requests
Sure. Great this is now all in git 😊👌
8a4ead69a6
Hmmm I somehow have another user in the pull request. Is that a problem?
@marcchehab I guess you need now create the Pull Request using yourbranch <=> blender35 branches. Actually you have the commit in your froked branch, but you miss last step.
@marcchehab @antoniov hi,sorry i never does a compilation, no expirience there, one thing to mention i tried to use simplify with sample mode and i found that the animation go quickly not naturaly if we put this modiifer first then Build modifier (for other modes no worries), so when there is a new generated points we'll have unexpected quick animation. thank you and sorry.
Thanks a lot for your kind guidance, @antoniov ! Here is the pull request: #105306