Knife Project Resolution is View Dependent #43896

Open
opened 2015-03-05 08:22:32 +01:00 by Carlo Andreacchio · 21 comments

System Information
Windows 7, x64, gtx 580

Blender Version
Broken: 85c38e7

Short description of error
Knife project resolution seems to be based on the camera zoom level. Artists are expecting that it wouldnt operate like this, ending up with meshes which look inaccurate.

Exact steps for others to reproduce the error

  1. Open attached file
  2. knife project
  3. zoom in a lot
  4. notice how horrible it is
  5. undo
  6. knife project
  7. notice the difference

knifebug.blend

**System Information** Windows 7, x64, gtx 580 **Blender Version** Broken: 85c38e7 **Short description of error** Knife project resolution seems to be based on the camera zoom level. Artists are expecting that it wouldnt operate like this, ending up with meshes which look inaccurate. **Exact steps for others to reproduce the error** 1. Open attached file 2. knife project 3. zoom in a lot 4. notice how horrible it is 5. undo 6. knife project 7. notice the difference [knifebug.blend](https://archive.blender.org/developer/F147379/knifebug.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @candreacchio

Added subscriber: @candreacchio

#44297 was marked as duplicate of this issue

#44297 was marked as duplicate of this issue
Campbell Barton was assigned by Antonis Ryakiotakis 2015-03-05 18:05:17 +01:00

Added subscriber: @Psy-Fi

Added subscriber: @Psy-Fi

Campbell, what do you think?

Campbell, what do you think?
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Argh, it really depends a lot on the zoomlevel. Even getting weird results like this: knife_project.png Doesn't work better with older Blender versions... :/

Argh, it really depends **a lot** on the zoomlevel. Even getting weird results like this: ![knife_project.png](https://archive.blender.org/developer/F147444/knife_project.png) Doesn't work better with older Blender versions... :/

@JulianEisel, are you projecting from ortho or perspective?

This is the difference i am getting, top is zoomed out, bottom is zoomed in -- https://i.imgur.com/5jI0kUz.png

@JulianEisel, are you projecting from ortho or perspective? This is the difference i am getting, top is zoomed out, bottom is zoomed in -- https://i.imgur.com/5jI0kUz.png
Member

The one from the screenshot was done in perspective mode, but I think that's not important here (just wanted to demo which weird things are happening).

Edit: I thought I didn't zoom after doing the knife projection but now I'm not sure if I didn't do it by accident :P

The one from the screenshot was done in perspective mode, but I think that's not important here (just wanted to demo which weird things are happening). Edit: I thought I didn't zoom after doing the knife projection but now I'm not sure if I didn't do it by accident :P

To me, the edges are align fine both in perspective & in orthographic.... knife projections should always be done in orthographic though (due to the camera lens on perspective)... The main thing that the artists are commenting about the resolution being dependent on the view... our current workflow is a bit of a work around, by framing in on one vertex before knife cutting.

To me, the edges are align fine both in perspective & in orthographic.... knife projections should always be done in orthographic though (due to the camera lens on perspective)... The main thing that the artists are commenting about the resolution being dependent on the view... our current workflow is a bit of a work around, by framing in on one vertex before knife cutting.

The knife tool is view resolution dependent, uses pixel size to determine how to snap for example,
and knife project is simply using the knife tool's code (so everythings projected into pixel-space before cutting).

Reports recently show that people like to use this as some precision modeling tool like boolean.

While we can extend the knife tool further... its code isn't really ideal for this and it might be better to use bmesh_intersect.c for such operations.

Will investigate making this case work better but think this isn't really a bug. (at least its intentional that it works exactly like the knife tool which happens to be in pixelspace)

The knife tool is view resolution dependent, uses pixel size to determine how to snap for example, and knife project is simply using the knife tool's code (so everythings projected into pixel-space before cutting). Reports recently show that people like to use this as some precision modeling tool like boolean. While we can extend the knife tool further... its code isn't really ideal for this and it might be better to use `bmesh_intersect.c` for such operations. Will investigate making this case work better but think this isn't really a bug. *(at least its intentional that it works exactly like the knife tool which happens to be in pixelspace)*
Member

Marking as Todo then! (Will leave open though)

Marking as Todo then! (Will leave open though)
Member

Added subscriber: @bliblubli

Added subscriber: @bliblubli

the bug I reported was more about the wrong selection (the precision issue was just a side-note). I added a new version of the file in #44297.

the bug I reported was more about the wrong selection (the precision issue was just a side-note). I added a new version of the file in #44297.

This issue was referenced by 6fa5d22109

This issue was referenced by 6fa5d22109e276dd5f732f50445a4247a8f3c22b

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

Had to revert this, caused #48023

Had to revert this, caused #48023
Campbell Barton removed their assignment 2016-08-11 06:35:12 +02:00

Removed subscriber: @ideasman42

Removed subscriber: @ideasman42

Added subscriber: @arountre

Added subscriber: @arountre

Would it be possible to set snap distance? Even when holding shift to disable snapping, resulting cuts are rough when made zoomed out apparently due to snapping at some finer level? I have not been able to determine a way to cleanly slice large (2 to 5 million face) meshes in Blender (Boolean tends to fail on these large meshes).

Would it be possible to set snap distance? Even when holding shift to disable snapping, resulting cuts are rough when made zoomed out apparently due to snapping at some finer level? I have not been able to determine a way to cleanly slice large (2 to 5 million face) meshes in Blender (Boolean tends to fail on these large meshes).
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
7 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#43896
No description provided.