Snap feature doesn't take in account wired objects and backface culling #73971

Closed
opened 2020-02-18 14:57:44 +01:00 by Dimensional · 6 comments

System Information
Operating system: Windows-10-10.0.17763-SP0 64 Bits
Graphics card: GeForce GTX 960M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: 77d23b0bd7
Worked: (optional)

Short description of error
The snap feature doesn't take in account objects with display_type as 'WIRED' and backface culling, letting objects snap to vertices/edges/faces that are not visible in the viewport.

Exact steps for others to reproduce the error

  1. Add object A;
  2. Set A so that one or more of its edges/faces is not visible in the viewport setting its display_type as 'WIRED' or using backface culling;
  3. Add object B so that, by the viewport POV, A is behind object B;
  4. Add object C;
  5. Enable the snap feature;
  6. Try to snap object C to object A hovering it over the non-visible parts of object

B;snap_wired_backface_culling.blend

**System Information** Operating system: Windows-10-10.0.17763-SP0 64 Bits Graphics card: GeForce GTX 960M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19 **Blender Version** Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash: `77d23b0bd7` Worked: (optional) **Short description of error** The snap feature doesn't take in account objects with display_type as 'WIRED' and backface culling, letting objects snap to vertices/edges/faces that are not visible in the viewport. **Exact steps for others to reproduce the error** 1. Add object A; 2. Set A so that one or more of its edges/faces is not visible in the viewport setting its display_type as 'WIRED' or using backface culling; 4. Add object B so that, by the viewport POV, A is behind object B; 5. Add object C; 5. Enable the snap feature; 6. Try to snap object C to object A hovering it over the non-visible parts of object B;[snap_wired_backface_culling.blend](https://archive.blender.org/developer/F8347596/snap_wired_backface_culling.blend)
Author

Added subscriber: @duodequinquagesimum

Added subscriber: @duodequinquagesimum

Added subscriber: @ckohl_art

Added subscriber: @ckohl_art

Added subscribers: @mano-wii, @iss

Added subscribers: @mano-wii, @iss

You can exclude back geometry from snapping:
https://docs.blender.org/manual/en/latest/scene_layout/object/editing/transform/control/snap.html#additional-snap-options

I think that snapping to face while object is drawn as wire is not a bug as well, but I guess @mano-wii will know more.

You can exclude back geometry from snapping: https://docs.blender.org/manual/en/latest/scene_layout/object/editing/transform/control/snap.html#additional-snap-options I think that snapping to face while object is drawn as wire is not a bug as well, but I guess @mano-wii will know more.

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

Changed status from 'Needs Triage' to: 'Archived'
Germano Cavalcante self-assigned this 2020-02-19 21:43:49 +01:00

This is by design. See transform_snap.c$1372 .
This was the old snap behavior and it was kept this way because some artists may prefer so.
And there's not much point in enabling snap to faces but ignoring those objects entirely.

backface culling is optional and can be activated in the snap settings.

This is by design. See [transform_snap.c$1372 ](https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/transform/transform_snap.c$1372). This was the old snap behavior and it was kept this way because some artists may prefer so. And there's not much point in enabling snap to faces but ignoring those objects entirely. `backface culling` is optional and can be activated in the snap settings.
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
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#73971
No description provided.