Grease Pencil export SVG / PDF - can create Incorrect Strokes, Layer order and Error #86973

Open
opened 2021-03-27 10:39:27 +01:00 by Sam Cogheil · 4 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-26 21:30, hash: 9b87d3f029
Worked: n/a

Short description of error
Firstly compliments on the work on this branch of work thus far.

All below issues noted with various attempts at PDF/SVG Exporting default Cube r/click converted to GP. PDF and SVG results appear to be similarly affected.

cubed-gp_blend.png - View from Blender

cubed-gp_svg.png - Result of SVG/PDF export

note: Frontmost and Rearmost 'panes' are both colored green

issues:1. Export always results inWireFrame Stokes over Fills (i.e. All strokes are shown on top of fills, effectively producing incorrect object occlusion)
2. Export sometimes resulted in incorrect Fill layer ordering (i.e. Bottom of cube is above sides in SVG layer order)
3. On different attempts (start from scratch) - sometimes the PDF export fails with: ERROR: error_no=1017, detail_no=13
4. If I start in 3D mode. Convert cube to GP. Export in default User perspective the resultant file is un-useable

queries:

  1. Attempting to paint (tint) a single surface of the GP converted cube seems impossible - without deconstructing the cube. Otherwise the paint bleeds to any surface 'under' the tint brush. I have also tried to paint (tint) with Origin on Surface etc. Should this be possible?
  2. An unsaved document always starts export path in 'My Documents' (which seems to be true for all other export operations too). It also does not remember last save location. Seems there is no option to set default Export path (I think)?

Exact steps for others to reproduce the error

issue: 1 & 2 (see: cubed-gp.blend, cubed-gp.svg, cubed-gp1.pdf), 3

  • Start in 2D mode
  • Add Cube mesh object
  • R/Click convert to Grease Pencil
  • File > Export > Grease Pencil as SVG / PDF

issue: 4 (see: cubed-gp2.svg)

  • Start in General (3D) mode
  • R/Click default cube, convert to Grease Pencil
  • File > Export > Grease Pencil as SVG / PDF
  • Result un-useable SVG/PDF (no dimensions and all point values are the same)

cubed-gp.blend

cubed-gp.svg

cubed-gp1.pdf

cubed-gp2.svg

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-26 21:30, hash: `9b87d3f029` Worked: n/a **Short description of error** Firstly compliments on the work on this branch of work thus far. All below issues noted with various attempts at PDF/SVG Exporting default Cube r/click converted to GP. PDF and SVG results appear to be similarly affected. ![cubed-gp_blend.png](https://archive.blender.org/developer/F9911518/cubed-gp_blend.png) - View from Blender ![cubed-gp_svg.png](https://archive.blender.org/developer/F9911517/cubed-gp_svg.png) - Result of SVG/PDF export note: Frontmost and Rearmost 'panes' are both colored green ***issues*:**1. Export always results in**WireFrame Stokes over Fills** (i.e. All strokes are shown on top of fills, effectively producing incorrect object occlusion) 2. Export sometimes resulted in **incorrect Fill layer ordering** (i.e. Bottom of cube is above sides in SVG layer order) 3. On different attempts (start from scratch) - sometimes the PDF export fails with: **ERROR: error_no=1017, detail_no=13** 4. If I start in 3D mode. Convert cube to GP. Export in default User perspective the **resultant file is un-useable** ***queries*:** 1. Attempting to paint (tint) a single surface of the GP converted cube seems impossible - without deconstructing the cube. Otherwise the paint bleeds to any surface 'under' the tint brush. I have also tried to paint (tint) with Origin on Surface etc. Should this be possible? 2. An unsaved document always starts export path in 'My Documents' (which seems to be true for all other export operations too). It also does not remember last save location. Seems there is no option to set default Export path (*I think*)? **Exact steps for others to reproduce the error** issue: 1 & 2 (*see: cubed-gp.blend, cubed-gp.svg, cubed-gp1.pdf*), 3 - Start in 2D mode - Add Cube mesh object - R/Click convert to Grease Pencil - File > Export > Grease Pencil as SVG / PDF issue: 4 (*see: cubed-gp2.svg*) - Start in General (3D) mode - R/Click default cube, convert to Grease Pencil - File > Export > Grease Pencil as SVG / PDF - Result un-useable SVG/PDF (no dimensions and all point values are the same) [cubed-gp.blend](https://archive.blender.org/developer/F9911532/cubed-gp.blend) ![cubed-gp.svg](https://archive.blender.org/developer/F9911528/cubed-gp.svg) [cubed-gp1.pdf](https://archive.blender.org/developer/F9911515/cubed-gp1.pdf) ![cubed-gp2.svg](https://archive.blender.org/developer/F9911516/cubed-gp2.svg)
Author

Added subscriber: @SimplSam

Added subscriber: @SimplSam

Added subscriber: @antoniov

Added subscriber: @antoniov

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I think the problem is that you expect something different of what the tool does. The export is not checking occlusion, just export all Strokes, visible or not. If you want to export only visible geometry and check occlusion, add a LineArt modifier to cube and export that data.

I think the problem is that you expect something different of what the tool does. The export is not checking occlusion, just export all Strokes, visible or not. If you want to export only visible geometry and check occlusion, add a LineArt modifier to cube and export that data.
Philipp Oeser removed the
Interest
Grease Pencil
label 2023-02-09 15:19:40 +01:00
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
2 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#86973
No description provided.