Gpencil: Eraser deletes strokes/points behind the camera #128714

Closed
opened 2024-10-07 19:04:51 +02:00 by Gabriele-Pala · 5 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.70

Blender Version
Broken: version: 4.3.0 Alpha, branch: main, commit date: 2024-10-01 23:16, hash: 0c1a5002141f
Worked: Broken in 4.2 as well, may be always been like this

Short description of error
The Grease Pencil Eraser also erases strokes/points that are behind the camera/viewport (not visible while erasing) leading to unwelcome surprises

Exact steps for others to reproduce the error

  • create a grease pencil object
  • draw a bunch of strokes so that some are in front of the camera and some in the back
  • erase in front of the camera -> the ones on the back gets erased too

uploading a .blend file as an example

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2080 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 560.70 **Blender Version** Broken: version: 4.3.0 Alpha, branch: main, commit date: 2024-10-01 23:16, hash: `0c1a5002141f` Worked: Broken in 4.2 as well, may be always been like this **Short description of error** The Grease Pencil Eraser also erases strokes/points that are behind the camera/viewport (not visible while erasing) leading to unwelcome surprises **Exact steps for others to reproduce the error** - create a grease pencil object - draw a bunch of strokes so that some are in front of the camera and some in the back - erase in front of the camera -> the ones on the back gets erased too uploading a .blend file as an example
Gabriele-Pala added the
Severity
Normal
Type
Bug
Status
Needs Triage
labels 2024-10-07 19:04:52 +02:00

Can reproduce the issue. Since it has always been like this, it could be limitation of the tool. @filedescriptor Can you check?

Can reproduce the issue. Since it has always been like this, it could be limitation of the tool. @filedescriptor Can you check?
Member

Can confirm as well.

Can confirm as well.
YimingWu added
Module
Grease Pencil
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-10-08 07:21:28 +02:00
Member

Looks like ED_view3d_project_float_global didn't check whether results are V3D_PROJ_RET_OK. Will try make a quick fix.

Looks like `ED_view3d_project_float_global` didn't check whether results are `V3D_PROJ_RET_OK`. Will try make a quick fix.
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-10-08 15:35:59 +02:00

Hi @ChengduLittleA !

Thanks for the quick response, we tested on 4.4.0 alpha daily build, and it is fixed there. It (unsurprisingly) isn't fixed on 4.3.0 beta yet.

Is it likely that this fix could get back ported to 4.3 as well? Otherwise it will be a while before we can use the fix?

image

Hi @ChengduLittleA ! Thanks for the quick response, we tested on 4.4.0 alpha daily build, and it is fixed there. It (unsurprisingly) isn't fixed on 4.3.0 beta yet. Is it likely that this fix could get back ported to 4.3 as well? Otherwise it will be a while before we can use the fix? ![image](/attachments/d9e54478-67a4-4594-b04f-1b11a612f3f2)
Member

Ah actually this should have go into 4.3 first and merge into 4.4. I made a mistake there. Will cherry-pick into 4.3. Thanks for the notice :D

Ah actually this should have go into 4.3 first and merge into 4.4. I made a mistake there. Will cherry-pick into 4.3. Thanks for the notice :D
Sign in to join this conversation.
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
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#128714
No description provided.