Grid & Pixel snapping in the UV editor #78391

Closed
opened 2020-06-28 20:52:06 +02:00 by Daniel Bystedt · 25 comments
Member

It would be very helpful to have grid and pixel snapping in the UV editor. Also, being able to quickly snap the 2d cursor to a vertex and then rotate from the 2d cursors pivot point would be great. We can currently snap the 2d locator to vertices by using shift+S and use "cursor to selected", but being able to snap to vertices directly could speed up the process when creating modular assets for environments.

Proposal updated 2022-09-10 after discussion with Campbell in the comments below


UI

image.png

Change the current grid options in the uv overlay menu into an enum of 3x items [ Dynamic | Fixed | Pixel ] where dynamic is the current default "Fixed" for "Fixed Subdivisions" checkbox and "Pixel" would be a new option to align the grid to pixels. "Fixed Subdivisions" could have an X/Y setting instead of a single value.

See more info about dynamic grid here
#78389


Grid overlay on top of images

Optionally show the grid on top of the image as an overlay option since it's not possible to see the grid with an image at the moment.

image.png


Rename snap to pixels

Rename "Snap to Pixels" to "Rounds to Pixels" (or another names that avoids the term "Snap") this is a post-process when transforming, it's not applied as part of the snapping.

image.png

Desired behaviour - starting point (part 1)
Green arrow shows intended mouse movement and snap target when using “snap to dynamic grid”.
image.png

Desired behaviour - final snap result (part 2)
Green dot shows snap point for where dynamic grid and closest vertex meet up when using “snap to dynamic grid”.

image.png

It would be very helpful to have grid and pixel snapping in the UV editor. Also, being able to quickly snap the 2d cursor to a vertex and then rotate from the 2d cursors pivot point would be great. We can currently snap the 2d locator to vertices by using shift+S and use "cursor to selected", but being able to snap to vertices directly could speed up the process when creating modular assets for environments. **Proposal updated 2022-09-10 after discussion with Campbell in the comments below** --- **UI** ![image.png](https://archive.blender.org/developer/F13475638/image.png) Change the current grid options in the uv overlay menu into an enum of 3x items **[ Dynamic | Fixed | Pixel ]** where dynamic is the current default "Fixed" for "Fixed Subdivisions" checkbox and "Pixel" would be a new option to align the grid to pixels. "Fixed Subdivisions" could have an X/Y setting instead of a single value. See more info about dynamic grid here [#78389 ](https://developer.blender.org/T78389) --- **Grid overlay on top of images** Optionally show the grid on top of the image as an overlay option since it's not possible to see the grid with an image at the moment. ![image.png](https://archive.blender.org/developer/F13475630/image.png) --- **Rename snap to pixels** Rename "Snap to Pixels" to "Rounds to Pixels" (or another names that avoids the term "Snap") this is a post-process when transforming, it's not applied as part of the snapping. ![image.png](https://archive.blender.org/developer/F13475642/image.png) --- **Desired behaviour - starting point (part 1)** Green arrow shows intended mouse movement and snap target when using “snap to dynamic grid”. ![image.png](https://archive.blender.org/developer/F8651955/image.png) **Desired behaviour - final snap result (part 2)** Green dot shows snap point for where dynamic grid and closest vertex meet up when using “snap to dynamic grid”. ![image.png](https://archive.blender.org/developer/F8651959/image.png)
Author
Member

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

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

Added subscribers: @DanielBystedt, @ideasman42

Added subscribers: @DanielBystedt, @ideasman42

Added subscriber: @moisessalvador

Added subscriber: @moisessalvador

Hi. I'd love it if you guys check out my small proposals about UV editor UI, both garnered some attention on rightclickselect

https://blender.community/c/rightclickselect/cQdbbc/
https://blender.community/c/rightclickselect/bQdbbc/

Hi. I'd love it if you guys check out my small proposals about UV editor UI, both garnered some attention on rightclickselect https://blender.community/c/rightclickselect/cQdbbc/ https://blender.community/c/rightclickselect/bQdbbc/

Added subscriber: @APEC

Added subscriber: @APEC

Added subscriber: @Jaydead

Added subscriber: @Jaydead

Added subscriber: @no4me

Added subscriber: @no4me

Added subscriber: @Latarek

Added subscriber: @Latarek

Added subscriber: @AquaticNightmare

Added subscriber: @AquaticNightmare

Added subscriber: @amarillosebas

Added subscriber: @amarillosebas

Added subscriber: @zNight

Added subscriber: @zNight

Added subscriber: @BitRot

Added subscriber: @BitRot

Added subscriber: @IihT2cWA9xiP30BsYphz3EiEISNoScoe

Added subscriber: @IihT2cWA9xiP30BsYphz3EiEISNoScoe

Added subscriber: @CornetTheory

Added subscriber: @CornetTheory

image.png I'm showing this in this thread, for anyone looking for the option that already exists elsewhere in the menus.

![image.png](https://archive.blender.org/developer/F10385592/image.png) I'm showing this in this thread, for anyone looking for the option that already exists elsewhere in the menus.
Author
Member

It's only pixel snapping that is currently missing from this task

This is related to the gsoc task
https://developer.blender.org/T88990

It's only pixel snapping that is currently missing from this task This is related to the gsoc task https://developer.blender.org/T88990

Re-reading this task it's not so clear how this should be handled exactly.

  • As @CornetTheory points out, there is already a pixel snapping option, how would this fit with the proposed new pixel snapping option.
  • The dynamic grid part of this proposal now seems unnecessary? (it's now possible to configure the grid).

This is made additionally confusing by pixel-snapping in the menu not actually being a snapping, it's more of a post-process that quantizes UV locations to pixels.


Suggestion:

  • Rename "Snap to Pixels" to "Rounds to Pixels" (or another names that avoids the term "Snap") this is a post-process when transforming, it's not applied as part of the snapping.
  • Add the option for the grid to match the pixels.
This could change the "Fixed Subdivisions" checkbox into an enum of 3x items `[ Dynamic | Fixed | Pixel ]` where dynamic is the current default "Fixed" for "Fixed Subdivisions" checkbox and "Pixel" would be a new option to align the grid to pixels.

When looking into this I noticed two possible additions that don't have to be part of this proposal.

  • Optionally show the grid on top of the image as an overlay option since it's not possible to see the grid with an image at the moment.
  • "Fixed Subdivisions" could have an X/Y setting instead of a single value.
Re-reading this task it's not so clear how this should be handled exactly. - As @CornetTheory points out, there is already a pixel snapping option, how would this fit with the proposed new pixel snapping option. - The dynamic grid part of this proposal now seems unnecessary? (it's now possible to configure the grid). This is made additionally confusing by pixel-snapping in the menu not actually being a snapping, it's more of a post-process that quantizes UV locations to pixels. ---- Suggestion: - Rename "Snap to Pixels" to "Rounds to Pixels" (or another names that avoids the term "Snap") *this is a post-process when transforming, it's not applied as part of the snapping.* - Add the option for the grid to match the pixels. ``` This could change the "Fixed Subdivisions" checkbox into an enum of 3x items `[ Dynamic | Fixed | Pixel ]` where dynamic is the current default "Fixed" for "Fixed Subdivisions" checkbox and "Pixel" would be a new option to align the grid to pixels. ``` ---- When looking into this I noticed two possible additions that don't have to be part of this proposal. - Optionally show the grid on top of the image as an overlay option since it's not possible to see the grid with an image at the moment. - "Fixed Subdivisions" could have an X/Y setting instead of a single value.
Author
Member

In #78391#1350539, @ideasman42 wrote:
Re-reading this task it's not so clear how this should be handled exactly.

  • As @CornetTheory points out, there is already a pixel snapping option, how would this fit with the proposed new pixel snapping option.

Interesting! I have totally missed the existing menu item Uv > snap to pixels, since it was placed in the menu and not in the snap settings.

  • The dynamic grid part of this proposal now seems unnecessary? (it's now possible to configure the grid).

Yes, I agree.

This is made additionally confusing by pixel-snapping in the menu not actually being a snapping, it's more of a post-process that quantizes UV locations to pixels.

Suggestion:

  • Rename "Snap to Pixels" to "Rounds to Pixels" (or another names that avoids the term "Snap") this is a post-process when transforming, it's not applied as part of the snapping.

  • Add the option for the grid to match the pixels.

    This could change the "Fixed Subdivisions" checkbox into an enum of 3x items [ Dynamic | Fixed | Pixel ] where dynamic is the current default "Fixed" for "Fixed Subdivisions" checkbox and "Pixel" would be a new option to align the grid to pixels.

Your suggestions sounds great to me.

When looking into this I noticed two possible additions that don't have to be part of this proposal.

  • Optionally show the grid on top of the image as an overlay option since it's not possible to see the grid with an image at the moment.
  • "Fixed Subdivisions" could have an X/Y setting instead of a single value.

These bonus additions sounds great to me.

> In #78391#1350539, @ideasman42 wrote: > Re-reading this task it's not so clear how this should be handled exactly. > > - As @CornetTheory points out, there is already a pixel snapping option, how would this fit with the proposed new pixel snapping option. Interesting! I have totally missed the existing menu item **Uv > snap to pixels**, since it was placed in the menu and not in the snap settings. > - The dynamic grid part of this proposal now seems unnecessary? (it's now possible to configure the grid). Yes, I agree. > > This is made additionally confusing by pixel-snapping in the menu not actually being a snapping, it's more of a post-process that quantizes UV locations to pixels. > > > Suggestion: > > - Rename "Snap to Pixels" to "Rounds to Pixels" (or another names that avoids the term "Snap") *this is a post-process when transforming, it's not applied as part of the snapping.* > - Add the option for the grid to match the pixels. > > This could change the "Fixed Subdivisions" checkbox into an enum of 3x items `[ Dynamic | Fixed | Pixel ]` where dynamic is the current default "Fixed" for "Fixed Subdivisions" checkbox and "Pixel" would be a new option to align the grid to pixels. Your suggestions sounds great to me. > When looking into this I noticed two possible additions that don't have to be part of this proposal. > > - Optionally show the grid on top of the image as an overlay option since it's not possible to see the grid with an image at the moment. > - "Fixed Subdivisions" could have an X/Y setting instead of a single value. These bonus additions sounds great to me.

@DanielBystedt would you mind updating the proposal at some point? It's changed enough from the original that anyone reading it needs to dig into the replies.


In #78391#1351368, @DanielBystedt wrote:

In #78391#1350539, @ideasman42 wrote:
Re-reading this task it's not so clear how this should be handled exactly.

  • As @CornetTheory points out, there is already a pixel snapping option, how would this fit with the proposed new pixel snapping option.

Interesting! I have totally missed the existing menu item Uv > snap to pixels, since it was placed in the menu and not in the snap settings.

It's unfortunate that it doesn't make sense to locate this in the snap popover (since it's not tied to snapping).

Perhaps there could be a single-icon drop-down next to snapping so this isn't so hidden, although the header is already quite full.

@DanielBystedt would you mind updating the proposal at some point? It's changed enough from the original that anyone reading it needs to dig into the replies. ---- > In #78391#1351368, @DanielBystedt wrote: > > > >> In #78391#1350539, @ideasman42 wrote: >> Re-reading this task it's not so clear how this should be handled exactly. >> >> - As @CornetTheory points out, there is already a pixel snapping option, how would this fit with the proposed new pixel snapping option. > > Interesting! I have totally missed the existing menu item **Uv > snap to pixels**, since it was placed in the menu and not in the snap settings. It's unfortunate that it doesn't make sense to locate this in the snap popover (since it's not tied to snapping). Perhaps there could be a single-icon drop-down next to snapping so this isn't so hidden, although the header is already quite full.
Author
Member

Hi @ideasman42!

I have updated the task based on your suggestions and moved this task to "Approved design tasks" in the workboard.

Sorry for the late reply. I must have missed your latest comment in May.

Hi @ideasman42! I have updated the task based on your suggestions and moved this task to "Approved design tasks" in the workboard. Sorry for the late reply. I must have missed your latest comment in May.

This issue was referenced by a24fc6bbc1

This issue was referenced by a24fc6bbc1ae3c0ee5a26c5b964af219215de692

Added subscriber: @Chris_Blackbourn

Added subscriber: @Chris_Blackbourn
Chris Blackbourn self-assigned this 2022-09-18 07:23:18 +02:00

WIP on this one. Please get in touch if you active changes for this task.

WIP on this one. Please get in touch if you active changes for this task.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

As there's been quite a bit of change in this area, (as discussed offline), we're going to 'Resolve' this task with regards to the visual appearance and some snapping progress. When there's further improvements to the snapping requested, we'll open a new task based on the current working behavior.

As there's been quite a bit of change in this area, (as discussed offline), we're going to 'Resolve' this task with regards to the visual appearance and some snapping progress. When there's further improvements to the snapping requested, we'll open a new task based on the current working behavior.
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
15 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#78391
No description provided.