Support for textures with negative values #32036

Closed
opened 2012-07-07 08:38:34 +02:00 by Matias Goldberg · 6 comments

%%%Support for textures with negative values

This very small patch adds support for textures containing negative values (i.e. OpenEXR)

The problem with Blender was that during Contrast & Brightness adjustment values below zero were being clamped. The main advantage of this 'feature' is to have more flexibility when dealing with the deform modifier.

A check box to enable this new behavior was added below Brighness, Contrast & Saturation sliders. Default value is disabled, which is the old behavior. Enabling it will gray out saturation, since it doesn't make sense, and mathematically speaking because RGB->HSV->RGB conversion doesn't expect negative values.

Using SVN 48705 (Blender 2.63)

A Blend file with an OpenEXR image containing negative values is included for testing; also contains two screenshots to see show the difference between the patched version and a non-patched one.%%%

%%%Support for textures with negative values This very small patch adds support for textures containing negative values (i.e. OpenEXR) The problem with Blender was that during Contrast & Brightness adjustment values below zero were being clamped. The main advantage of this 'feature' is to have more flexibility when dealing with the deform modifier. A check box to enable this new behavior was added below Brighness, Contrast & Saturation sliders. Default value is disabled, which is the old behavior. Enabling it will gray out saturation, since it doesn't make sense, and mathematically speaking because RGB->HSV->RGB conversion doesn't expect negative values. Using SVN 48705 (Blender 2.63) A Blend file with an OpenEXR image containing negative values is included for testing; also contains two screenshots to see show the difference between the patched version and a non-patched one.%%%

Changed status to: 'Open'

Changed status to: 'Open'

Added subscribers: @kjym3, @Sergey

Added subscribers: @kjym3, @Sergey

This is quite niche application and also only affects old texture system. If we accept such functionality changes we need to be sure Cycles also works nicely with it.

Will try to find time to look into it, or maybe @kjym3 is also interested in this?

This is quite niche application and also only affects old texture system. If we accept such functionality changes we need to be sure Cycles also works nicely with it. Will try to find time to look into it, or maybe @kjym3 is also interested in this?

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Dalai Felinto self-assigned this 2019-12-23 18:55:36 +01:00

Hi, thanks for your patch.

We are undergoing a Tracker Curfew where we are automatically closing old patches.

If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.

Hi, thanks for your patch. We are undergoing a [Tracker Curfew ](https://code.blender.org/?p=3861) where we are automatically closing old patches. If you think the patch is still relevant please update and re-submit it. For new features make sure there is a clear design from the user level perspective.
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
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#32036
No description provided.