Grease Pencil 3d space problem #60325

Closed
opened 2019-01-08 17:18:29 +01:00 by Łukasz · 10 comments

System Information
Operating system: Windows 7 64x
Graphics card: nvidia gts 250

Blender Version
Latest one from the download section.

I had a plan to paint over the color on a 3d sculpted head with a grease pencil. The thing is grease pencil in my scene do not obey 3d space order instead it show the stroke that was painted last in front of camera(does't matter if its in front or back of the head). Someone had that problem perhaps ? head overpaint test.blend

test grease0001-0075.mkv

**System Information** Operating system: Windows 7 64x Graphics card: nvidia gts 250 **Blender Version** Latest one from the download section. I had a plan to paint over the color on a 3d sculpted head with a grease pencil. The thing is grease pencil in my scene do not obey 3d space order instead it show the stroke that was painted last in front of camera(does't matter if its in front or back of the head). Someone had that problem perhaps ? [head overpaint test.blend](https://archive.blender.org/developer/F6221471/head_overpaint__test.blend) [test grease0001-0075.mkv](https://archive.blender.org/developer/F6221476/test_grease0001-0075.mkv)
Author

Added subscriber: @skarlok

Added subscriber: @skarlok
Łukasz changed title from Grease Pencil to Grease Pencil 3d space problem 2019-01-08 17:18:58 +01:00

Added subscriber: @antoniov

Added subscriber: @antoniov

I have tested your drawing and I think you try to do something against the design of grease pencil object.

Grease pencil object is a 2D environment in a 3D space, that means that 2D data is over 3D data. In your drawing, the hair looks that was drawn after head (you can try it setting to back the hair strokes). As the strokes of the hair were drawn after the head, they will be always on top (in 2d last drawn is on top always).

The relationship with 3D is between objects, but inside one GP object, the 3D space disappears (I mean, the position of the stroke is less important than real 3D position). This is done on purpose after a very long time of analysis and studying 2D problems, so it wasn't a trivial decision.

I have tested your drawing and I think you try to do something against the design of grease pencil object. Grease pencil object is a 2D environment in a 3D space, that means that 2D data is over 3D data. In your drawing, the hair looks that was drawn after head (you can try it setting to back the hair strokes). As the strokes of the hair were drawn after the head, they will be always on top (in 2d last drawn is on top always). The relationship with 3D is between objects, but inside one GP object, the 3D space disappears (I mean, the position of the stroke is less important than real 3D position). This is done on purpose after a very long time of analysis and studying 2D problems, so it wasn't a trivial decision.
Author

Is there any other way around to achieve the effect in Blender 2.8 that i was hoping to get in the end of that project? My goal was to fully paint it with loose strokes (add light and shadow). So it could be a turnable object ?

My first attempt with grease ended like that. female-sketch.png

But it was on a flat space so i wanted to go further with the tool and started with that head project.
To be honest i think it could be nice to paint like this in 3d space. For example turnable background object for animation?

Is there any other way around to achieve the effect in Blender 2.8 that i was hoping to get in the end of that project? My goal was to fully paint it with loose strokes (add light and shadow). So it could be a turnable object ? My first attempt with grease ended like that. ![female-sketch.png](https://archive.blender.org/developer/F6223301/female-sketch.png) But it was on a flat space so i wanted to go further with the tool and started with that head project. To be honest i think it could be nice to paint like this in 3d space. For example turnable background object for animation?

Added subscriber: @ZedDB

Added subscriber: @ZedDB

@antoniov so is this solved with the commit you mentioned?

@antoniov so is this solved with the commit you mentioned?

@ZedDB Yes and no. The problem with opaque strokes yes, but if stroke use alpha no, but this is related to a more general alpha issue.

@ZedDB Yes and no. The problem with opaque strokes yes, but if stroke use alpha no, but this is related to a more general alpha issue.
Antonio Vazquez was assigned by Sebastian Parborg 2019-03-03 10:26:57 +01:00

Added subscriber: @EnzioProbst

Added subscriber: @EnzioProbst

Wrong z-testing only happens to Grase pencil Stroke, not to alpha blend material.
I wonder whats the difference in rendering.
As the sphere is opaque it writes to z-buffer, so if alpha blend shader does depth testing against z-buffer it should be occluded correctly.
image.png
grease_pencil_depth_sorting.blend

Wrong z-testing only happens to Grase pencil Stroke, not to alpha blend material. I wonder whats the difference in rendering. As the sphere is opaque it writes to z-buffer, so if alpha blend shader does depth testing against z-buffer it should be occluded correctly. ![image.png](https://archive.blender.org/developer/F7065905/image.png) [grease_pencil_depth_sorting.blend](https://archive.blender.org/developer/F7065888/grease_pencil_depth_sorting.blend)
Antonio Vazquez was unassigned by Dalai Felinto 2019-12-23 16:35:26 +01:00

Closed as duplicate of #66293

Closed as duplicate of #66293
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#60325
No description provided.