Gradient background in hsv curve widget doesn't zoom properly + patch to fix #40185

Closed
opened 2014-05-13 23:24:54 +02:00 by Henrik Aarnio · 7 comments

Blender Version
Broken: all versions up to current trunk

Short description of error
Hsv color adjust curve widget (in "hue correct" node and the corresponding VSE strip modifier) has a hue color gradient background. When using the zoom buttons on the widget, the background gradient does not scale according to the zoom, rather it stays at fixed size, and fills the whole widged area only if it is viewed at lower left corner, otherwise the ending point of the gradient is visible and the gradient doesn't match the curve points.

Exact steps for others to reproduce the error
Open blender, switch to compositor and enable nodes. Add a hue correct node, zoom in and move the curve widged navigation around. Notice obvious mismatch between the gradient's location and zoom level, and that of the curve points, and how they don't match.

Apply attached patch and test again to see the problem fixed.hsv_gradient_fix.diff

**Blender Version** Broken: all versions up to current trunk **Short description of error** Hsv color adjust curve widget (in "hue correct" node and the corresponding VSE strip modifier) has a hue color gradient background. When using the zoom buttons on the widget, the background gradient does not scale according to the zoom, rather it stays at fixed size, and fills the whole widged area only if it is viewed at lower left corner, otherwise the ending point of the gradient is visible and the gradient doesn't match the curve points. **Exact steps for others to reproduce the error** Open blender, switch to compositor and enable nodes. Add a hue correct node, zoom in and move the curve widged navigation around. Notice obvious mismatch between the gradient's location and zoom level, and that of the curve points, and how they don't match. Apply attached patch and test again to see the problem fixed.[hsv_gradient_fix.diff](https://archive.blender.org/developer/F88879/hsv_gradient_fix.diff)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @hjaarnio

Added subscriber: @hjaarnio
Author

Should note that unnecessary calculation of the y-zoom of the gradient was removed, since the area should just be filled from bottom to top in the y direction, regardless of zoom level.

Should note that unnecessary calculation of the y-zoom of the gradient was removed, since the area should just be filled from bottom to top in the y direction, regardless of zoom level.
Henrik Aarnio changed title from Gradient background in hsv curve widget doesn't zoom properly to Gradient background in hsv curve widget doesn't zoom properly + patch to fix 2014-05-13 23:35:40 +02:00

Added subscriber: @kevindietrich

Added subscriber: @kevindietrich

A blendfile demonstrating the error (maybe some screenshots too) could have been great. Can confirm the issue, but cannot test your patch (I'm not at home...).

Here's a blendfile setup for the compositor: untitled.blend (I've hit the zoom button a couple of time)

untitled.blend.png

(Do not care about the weird drawing...)

A blendfile demonstrating the error (maybe some screenshots too) could have been great. Can confirm the issue, but cannot test your patch (I'm not at home...). Here's a blendfile setup for the compositor: [untitled.blend](https://archive.blender.org/developer/F88880/untitled.blend) (I've hit the zoom button a couple of time) ![untitled.blend.png](https://archive.blender.org/developer/F88881/untitled.blend.png) (Do not care about the weird drawing...)

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Campbell Barton self-assigned this 2014-05-14 01:38:38 +02:00

This fix wasnt quite right, committed fix 30361a7341

This fix wasnt quite right, committed fix 30361a7341
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
3 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#40185
No description provided.