TexturePainting: does not paint on faces where a vertice is behind the viewport #70128

Closed
opened 2019-09-20 23:10:06 +02:00 by Roman · 17 comments

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

Blender Version
Broken: version: 2.81 (sub 12), branch: master, commit date: 2019-09-20 15:42, hash: adfe68e202
Worked: (optional)

I know that alpha, but still ... In Texture Paint layout, if you draw on the surface at a fairly right angle, then everything is fine, but if you tilt the camera, the brush stops painting.

Any model, including simple plain. When drawing in single texture mode and in material mode. When sculpting this is not observed.

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86 **Blender Version** Broken: version: 2.81 (sub 12), branch: master, commit date: 2019-09-20 15:42, hash: `adfe68e202` Worked: (optional) I know that alpha, but still ... In Texture Paint layout, if you draw on the surface at a fairly right angle, then everything is fine, but if you tilt the camera, the brush stops painting. Any model, including simple plain. When drawing in single texture mode and in material mode. When sculpting this is not observed.
Author

Added subscriber: @Elevenlevel

Added subscriber: @Elevenlevel
Member

Added subscriber: @Mets

Added subscriber: @Mets
Member

I cannot reproduce this. Please provide clearer reproduction steps, perhaps screenshots, video, or a blend file.

I cannot reproduce this. Please provide clearer reproduction steps, perhaps screenshots, video, or a blend file.
Author

https://1drv.ms/u/s!AgIaQataEAPAvhG0jP-TFDn75T9V Here's a short video example of how this works. Just a scene with a simple plane.
https://yadi.sk/d/Dot7CvhGMMil0w This is a scene from the video. I'm not sure that it is needed, since there is nothing special about it.

https://1drv.ms/u/s!AgIaQataEAPAvhG0jP-TFDn75T9V Here's a short video example of how this works. Just a scene with a simple plane. https://yadi.sk/d/Dot7CvhGMMil0w This is a scene from the video. I'm not sure that it is needed, since there is nothing special about it.
Member

Thanks for the files. Please attach files directly to the tracker via drag drop, like so:
untitled.blend

I can reproduce the issue in that file, but not in a fresh file, so I feel like some option is causing it. Do you have any ideas?

Thanks for the files. Please attach files directly to the tracker via drag drop, like so: [untitled.blend](https://archive.blender.org/developer/F7767008/untitled.blend) I can reproduce the issue in that file, but not in a fresh file, so I feel like some option is causing it. Do you have any ideas?

Added subscriber: @capnm

Added subscriber: @capnm

I can reproduce the issue in that file, but not in a fresh file, so I feel like some option is causing it. Do you have any ideas

This is a long-term bug that you can also abuse as a feature:
texture-paint.jpg

Should be easy reproducible:
blender --factory-startup → a, x → add plane → texture paint → single image → new → play with the viewport angle / zoom and paint

> I can reproduce the issue in that file, but not in a fresh file, so I feel like some option is causing it. Do you have any ideas This is a long-term bug that you can also abuse as a feature: ![texture-paint.jpg](https://archive.blender.org/developer/F7767243/texture-paint.jpg) Should be easy reproducible: blender --factory-startup → a, x → add plane → texture paint → single image → new → play with the viewport angle / zoom and paint
Member

Ah yeah, I can do it in a fresh file now too. I guess I was just unlucky last time, and I didn't realize zoom level could influence it too.

Ah yeah, I can do it in a fresh file now too. I guess I was just unlucky last time, and I didn't realize zoom level could influence it too.

Added subscriber: @Alumx

Added subscriber: @Alumx

Adding more geometry to your object, greatly helps with this issue
2019-09-25 16-21-52.mp4

Adding more geometry to your object, greatly helps with this issue [2019-09-25 16-21-52.mp4](https://archive.blender.org/developer/F7774723/2019-09-25_16-21-52.mp4)

Added subscribers: @Jeroen-Bakker, @mano-wii

Added subscribers: @Jeroen-Bakker, @mano-wii
Jeroen Bakker was assigned by Germano Cavalcante 2019-09-26 19:41:09 +02:00

@Jeroen-Bakker, do you mantain this area?
It seems that when one of the vertices in the looptri is behind the camera the whole triangle is ignored.

@Jeroen-Bakker, do you mantain this area? It seems that when one of the vertices in the looptri is behind the camera the whole triangle is ignored.
Member

It is a limitation of the current system; B279 shows same behavior.

It is a limitation of the current system; B279 shows same behavior.
Jeroen Bakker changed title from With a strong tilt of the camera does not draw to TexturePainting: does not paint on faces where a vertice is behind the viewport 2019-10-01 08:16:15 +02:00
Member

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro
Member

Just rechecked. This is a limitation of the current system, without an easy fix. Vertices are converted to screen space. When a vertice cannot have a screen space coordinate (for example in when a vertices is behind the viewport, the whole face is not selected for the stroke as it would always lead to undesired behavior (flipping strokes).

There are multiple possible solutions:

  • Do actual clipping in 3d space, not in 2d space as it is currently implemented.
  • Do not use vertices but the actual rendered UV map. Needs whole overhaul of the system.

As texture painting system will be redone in the near future I don't think it is good to invest our time in fixing this issue in the old system.

@PabloDobarro do you agree with that?

Just rechecked. This is a limitation of the current system, without an easy fix. Vertices are converted to screen space. When a vertice cannot have a screen space coordinate (for example in when a vertices is behind the viewport, the whole face is not selected for the stroke as it would always lead to undesired behavior (flipping strokes). There are multiple possible solutions: * Do actual clipping in 3d space, not in 2d space as it is currently implemented. * Do not use vertices but the actual rendered UV map. Needs whole overhaul of the system. As texture painting system will be redone in the near future I don't think it is good to invest our time in fixing this issue in the old system. @PabloDobarro do you agree with that?
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Actually this is a known limitation of the system and also documented in the manual. Not considered a bug.
https://docs.blender.org/manual/en/dev/sculpt_paint/texture_paint/introduction.html#perspective-view-faces-behind-the-view

Actually this is a known limitation of the system and also documented in the manual. Not considered a bug. https://docs.blender.org/manual/en/dev/sculpt_paint/texture_paint/introduction.html#perspective-view-faces-behind-the-view
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
6 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#70128
No description provided.