Pack to the same bounding box #78396

Closed
opened 2020-06-28 22:05:53 +02:00 by Daniel Bystedt · 13 comments
Member

Additional property option to the pack islands operator.

Related tasks
#78395 (Unwrap to same bounding box in UV space)

Starting point

Selected UV islands will be packed

Blue outline = original selection bounding box

image

Undesired result

After packing, the selected uv islands overlap with other uv islands.

image

Desired result

Selected uv islands are packed into the original selection bounding box.
image

Additional property option to the pack islands operator. **Related tasks** #78395 (Unwrap to same bounding box in UV space) **Starting point** Selected UV islands will be packed Blue outline = original selection bounding box ![image](https://archive.blender.org/developer/F8652072/image.png) **Undesired result** After packing, the selected uv islands overlap with other uv islands. ![image](https://archive.blender.org/developer/F8652074/image.png) **Desired result** Selected uv islands are packed into the original selection bounding box. ![image](https://archive.blender.org/developer/F8652076/image.png)
Author
Member

Added subscriber: @DanielBystedt

Added subscriber: @DanielBystedt

Added subscriber: @APEC

Added subscriber: @APEC

Added subscriber: @txo

Added subscriber: @txo

I really like the idea, altough I think it could be more useful to have an option to use a custom packing region (like Ctrl+B in render mode, as currently both B and Ctrl B do the same thing).
My reasoning is that your example works well because everything is pretty neatly organized already, but a lot of times I believe it may not be the case. Maybe you are in the first stages of packing things, and you may change your idea along the way as to how to layout your asset's uvs, so you may have things somewhat scattered around at times, or with islands overlapping. Or maybe you are working with UDIMS, and you want to repack some uvs from different tiles. In those cases, the original selection may not be ideal, or even useful at all.

If we could define the bounding box to pack the islands independently of where they are originally, I think it would be much better.
Maybe both concepts can coexists, as there could be an option to use a custom packing region, and one of the fallback options could be that if the user hasn't defined any region, use the selection's original bounding box as Daniel says.

ORIGINAL BBOX VS USER DEFINED.jpg

I really like the idea, altough I think it could be more useful to have an option to use a custom packing region (like Ctrl+B in render mode, as currently both B and Ctrl B do the same thing). My reasoning is that your example works well because everything is pretty neatly organized already, but a lot of times I believe it may not be the case. Maybe you are in the first stages of packing things, and you may change your idea along the way as to how to layout your asset's uvs, so you may have things somewhat scattered around at times, or with islands overlapping. Or maybe you are working with UDIMS, and you want to repack some uvs from different tiles. In those cases, the original selection may not be ideal, or even useful at all. If we could define the bounding box to pack the islands independently of where they are originally, I think it would be much better. Maybe both concepts can coexists, as there could be an option to use a custom packing region, and one of the fallback options could be that if the user hasn't defined any region, use the selection's original bounding box as Daniel says. ![ORIGINAL BBOX VS USER DEFINED.jpg](https://archive.blender.org/developer/F8689188/ORIGINAL_BBOX_VS_USER_DEFINED.jpg)
Author
Member

In #78396#977749, @txo wrote:
I really like the idea, altough I think it could be more useful to have an option to use a custom packing region (like Ctrl+B in render mode, as currently both B and Ctrl B do the same thing).
My reasoning is that your example works well because everything is pretty neatly organized already, but a lot of times I believe it may not be the case. Maybe you are in the first stages of packing things, and you may change your idea along the way as to how to layout your asset's uvs, so you may have things somewhat scattered around at times, or with islands overlapping. Or maybe you are working with UDIMS, and you want to repack some uvs from different tiles. In those cases, the original selection may not be ideal, or even useful at all.

If we could define the bounding box to pack the islands independently of where they are originally, I think it would be much better.
Maybe both concepts can coexists, as there could be an option to use a custom packing region, and one of the fallback options could be that if the user hasn't defined any region, use the selection's original bounding box as Daniel says.

ORIGINAL BBOX VS USER DEFINED.jpg

The feature you are describing is already added as a task. #78398 (Pack to box region in uv editor)

I like your suggestion about adding a hotkey for the box. The hotkey CTRL + B is currently occupied by select box + pinned, but perhaps it can be changed to CTRL + SHIFT + B in order to give room for this feature as a hotkey

> In #78396#977749, @txo wrote: > I really like the idea, altough I think it could be more useful to have an option to use a custom packing region (like Ctrl+B in render mode, as currently both B and Ctrl B do the same thing). > My reasoning is that your example works well because everything is pretty neatly organized already, but a lot of times I believe it may not be the case. Maybe you are in the first stages of packing things, and you may change your idea along the way as to how to layout your asset's uvs, so you may have things somewhat scattered around at times, or with islands overlapping. Or maybe you are working with UDIMS, and you want to repack some uvs from different tiles. In those cases, the original selection may not be ideal, or even useful at all. > > If we could define the bounding box to pack the islands independently of where they are originally, I think it would be much better. > Maybe both concepts can coexists, as there could be an option to use a custom packing region, and one of the fallback options could be that if the user hasn't defined any region, use the selection's original bounding box as Daniel says. > > ![ORIGINAL BBOX VS USER DEFINED.jpg](https://archive.blender.org/developer/F8689188/ORIGINAL_BBOX_VS_USER_DEFINED.jpg) The feature you are describing is already added as a task. #78398 (Pack to box region in uv editor) I like your suggestion about adding a hotkey for the box. The hotkey `CTRL + B` is currently occupied by `select box + pinned`, but perhaps it can be changed to `CTRL + SHIFT + B` in order to give room for this feature as a hotkey

Oh,you're right, I didn't see those. My bad.
Yeah, a hotkey would be very useful productivity-wise, specially combining it with a kind of live packing (like the live unwrapping). It is a feature I liked a lot in uvlayout,that just by creating a box, the packing were processed immediately whitin the region. You could optimize the layout and the uvspace quite a bit really quickly.

Oh,you're right, I didn't see those. My bad. Yeah, a hotkey would be very useful productivity-wise, specially combining it with a kind of live packing (like the live unwrapping). It is a feature I liked a lot in *uvlayout*,that just by creating a box, the packing were processed immediately whitin the region. You could optimize the layout and the uvspace quite a bit really quickly.

Added subscriber: @Jakuba

Added subscriber: @Jakuba

Also, an option to preserve the scale of islands while packing would be really useful.

Also, an option to preserve the scale of islands while packing would be really useful.

Added subscriber: @no4me

Added subscriber: @no4me

Removed subscriber: @no4me

Removed subscriber: @no4me
Member

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

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

Added subscriber: @Nika-Kutsniashvili

Added subscriber: @Nika-Kutsniashvili
Daniel Bystedt added this to the Modeling project 2023-03-14 08:56:39 +01:00

WIP

WIP
Chris Blackbourn self-assigned this 2023-03-21 11:42:09 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-04-01 10:15:07 +02:00
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
8 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#78396
No description provided.