DesignTask: Add Drawing Of Image/UV Editor to the Draw Manager #67530

Closed
opened 2019-07-23 17:17:41 +02:00 by Jeroen Bakker · 11 comments
Member

Investigate how we can add drawing of other views into the draw manager. The technical cases we have are:

  • UV Editor already uses the draw_cache of the draw manager for the stretching overlay.
  • Future Migration to other GLs.
  • Support for GPU selection.
  • Image/UV editor also has overlays.
  • Realtime Baking with unwrapping

This design will go over the how and impact of such a change.

  • The draw manager should be able to create a drawing and select loop based on the Context SpaceLink.
  • Current Draw loop is specific 3d. actually only v3d and ar3d are 3d specific parameters. The idea is to have a specific 2d drawing loop DRW_draw_render_loop_2d_ex in the draw manager that is more generic. The entry point will still be DRW_draw_view.

Matrices

The draw manager uses multiple matrices for specific part of the geometry transform. Most of the view2d drawing isn't using any matrices. There is one matrix that is generated from UI_view2d_view_to_region_m4 used by the gizmo code. One of the requests we have is to be able to rotate the image. This can be handled by the viewmat.

UI Changes
Using the new cursor in the Image/UV editor
image.png

Investigate how we can add drawing of other views into the draw manager. The technical cases we have are: * UV Editor already uses the draw_cache of the draw manager for the stretching overlay. * Future Migration to other GLs. * Support for GPU selection. * Image/UV editor also has overlays. * Realtime Baking with unwrapping This design will go over the how and impact of such a change. - The draw manager should be able to create a drawing and select loop based on the Context SpaceLink. - Current Draw loop is specific 3d. actually only `v3d` and `ar3d` are 3d specific parameters. The idea is to have a specific 2d drawing loop `DRW_draw_render_loop_2d_ex` in the draw manager that is more generic. The entry point will still be `DRW_draw_view`. **Matrices** The draw manager uses multiple matrices for specific part of the geometry transform. Most of the view2d drawing isn't using any matrices. There is one matrix that is generated from `UI_view2d_view_to_region_m4` used by the gizmo code. One of the requests we have is to be able to rotate the image. This can be handled by the `viewmat`. **UI Changes** Using the new cursor in the Image/UV editor ![image.png](https://archive.blender.org/developer/F8155588/image.png)
Jeroen Bakker self-assigned this 2019-07-23 17:17:41 +02:00
Author
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker

#75937 was marked as duplicate of this issue

#75937 was marked as duplicate of this issue

#42042 was marked as duplicate of this issue

#42042 was marked as duplicate of this issue

#72105 was marked as duplicate of this issue

#72105 was marked as duplicate of this issue
Member

Added subscriber: @PabloDobarro

Added subscriber: @PabloDobarro
Author
Member
Added subscribers: @cheteron, @lichtwerk, @kioku, @MarcinTwarowski
Author
Member

Added subscribers: @zanqdo, @BenjaminNeumann

Added subscribers: @zanqdo, @BenjaminNeumann
Member

Added subscriber: @Bischofftep

Added subscriber: @Bischofftep
Member

Added subscriber: @EAW

Added subscriber: @EAW
Jeroen Bakker changed title from [WIP] DesignTask: Add Drawing Of Image/UV Editor to the Draw Manager to DesignTask: Add Drawing Of Image/UV Editor to the Draw Manager 2020-08-25 20:56:32 +02:00

This issue was referenced by d6525e8d13

This issue was referenced by d6525e8d133b787655bdb2c2fcef218591a457c3
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
5 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#67530
No description provided.