Bump map texture painting in 3d viewport applies gamma correction to 32-bit float noncolor image data. #82818

Open
opened 2020-11-18 16:35:26 +01:00 by Paul Schubert · 6 comments

System Information
Operating system: NA (Windows-10-10.0.18362-SP0 64 Bits, Darwin)
Graphics card: NA (GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35, AMD Radeon HD 6970M 4.1 ATI-1.68.25)

Blender Version
Broken: version: 2.90.1, 2.92.0 Alpha, branch: master, commit date: 2020-11-18 13:26, hash: f132d74c7d
Worked: (newest version of Blender that worked as expected)

Short description of error
When texture painting a float non color image, the 3D viewport uses a different mix algorithm than the one used on byte images in the 3D viewport, and floats and bytes in the Image Editor.

Mix additive ? Byte Float
Image Editor Yes Yes
3d Viewport Yes No

Exact steps for others to reproduce the error

Screen Shot 2020-11-17 at 10.10.26 AM.png

Problem with texture painting bump maps. The image above shows two drawn curves. The left curve was drawn in the image editor, the right curve was drawn in the 3D viewport. Brush color is set to (r,g,b)=(0.6,0.6,0.6). The image texture used for the bump map was generated by the brush tool which creates a noncolor image set to 0.5. The problem occurs when specifying a 32-bit float for that image.

You can open the 2 following .blend files, and try painting a stroke in both the 3D viewport and the Image editor.

T82818_texturepaint_mix_byte.png

T82818_texturepaint_mix_byte.blend

T82818_texturepaint_mix_float.png

T82818_texturepaint_mix_float.blend


system-info.txt

**System Information** Operating system: **NA** (Windows-10-10.0.18362-SP0 64 Bits, Darwin) Graphics card: **NA** (GeForce GTX 470/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35, AMD Radeon HD 6970M 4.1 ATI-1.68.25) **Blender Version** Broken: version: 2.90.1, 2.92.0 Alpha, branch: master, commit date: 2020-11-18 13:26, hash: `f132d74c7d` Worked: (newest version of Blender that worked as expected) **Short description of error** When texture painting a float non color image, the `3D viewport` uses a different `mix` algorithm than the one used on byte images in the 3D viewport, and floats and bytes in the `Image Editor`. | **Mix additive ?** | Byte | Float | | -- | -- | -- | | Image Editor | Yes | Yes | | 3d Viewport | Yes | No | **Exact steps for others to reproduce the error** ![Screen Shot 2020-11-17 at 10.10.26 AM.png](https://archive.blender.org/developer/F9317443/Screen_Shot_2020-11-17_at_10.10.26_AM.png) Problem with texture painting bump maps. The image above shows two drawn curves. The left curve was drawn in the image editor, the right curve was drawn in the 3D viewport. Brush color is set to (r,g,b)=(0.6,0.6,0.6). The image texture used for the bump map was generated by the brush tool which creates a noncolor image set to 0.5. The problem occurs when specifying a 32-bit float for that image. You can open the 2 following .blend files, and try painting a stroke in both the 3D viewport and the Image editor. ![T82818_texturepaint_mix_byte.png](https://archive.blender.org/developer/F9317625/T82818_texturepaint_mix_byte.png) [T82818_texturepaint_mix_byte.blend](https://archive.blender.org/developer/F9317633/T82818_texturepaint_mix_byte.blend) ![T82818_texturepaint_mix_float.png](https://archive.blender.org/developer/F9317627/T82818_texturepaint_mix_float.png) [T82818_texturepaint_mix_float.blend](https://archive.blender.org/developer/F9317635/T82818_texturepaint_mix_float.blend) --- [system-info.txt](https://archive.blender.org/developer/F9317432/system-info.txt)
Author

Added subscriber: @pcschubert

Added subscriber: @pcschubert
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

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

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

I can confirm, will check to see if this is a known issue.

I can confirm, will check to see if this is a known issue.
Member

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

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

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

Changed status from 'Needs Triage' to: 'Confirmed'
Philipp Oeser removed the
Interest
Sculpt, Paint & Texture
label 2023-02-10 09:12:14 +01:00
Julien Kaspar added
Type
Bug
and removed
Type
Report
labels 2023-07-04 10:00:45 +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
2 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#82818
No description provided.