Canvas Selector UX: Add option to create a color attribute in material mode. #97346

Closed
opened 2022-04-15 08:37:26 +02:00 by Jeroen Bakker · 10 comments
Member

In material mode the canvas selector allows creating a new texture and attach it directly to a socket of the Principled BSDF. We should change this operation to also support color attributes.

Current UX:
image.png

image.png

Proposal:

  • The operator should have a enum type to switch between Images/Color Attributes. The options can be drawn next to each other.
  • Note not there are BSDF inputs (like normals and others) that doesn't make sense to have color attributes attached. In this case the color attribute should not be selectable.
In material mode the canvas selector allows creating a new texture and attach it directly to a socket of the Principled BSDF. We should change this operation to also support color attributes. Current UX: ![image.png](https://archive.blender.org/developer/F13002367/image.png) ![image.png](https://archive.blender.org/developer/F13002370/image.png) Proposal: * The operator should have a enum type to switch between Images/Color Attributes. The options can be drawn next to each other. * Note not there are BSDF inputs (like normals and others) that doesn't make sense to have color attributes attached. In this case the color attribute should not be selectable.
Author
Member

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

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

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker

Added subscriber: @Ethan-Hall

Added subscriber: @Ethan-Hall
Ethan-Hall self-assigned this 2022-04-20 03:13:31 +02:00

@Jeroen-Bakker

Note not there are BSDF inputs (like normals and others) that doesn't make sense to have color attributes attached. In this case the color attribute should not be selectable.

I don't think we should prevent the user from selecting color attribute in these circumstances.
It's not like it hurts to allow the option, and explaining to the user why an option is inactive or missing can be avoided.
Someone thinking outside the box may even find it useful.

This is how it looks so far:
image.png

image.png

The fill color can be added as an option for color attributes, but I think it is better to upgrade paint_image_proj.c to C++ before adding this feature.

@Jeroen-Bakker >Note not there are BSDF inputs (like normals and others) that doesn't make sense to have color attributes attached. In this case the color attribute should not be selectable. I don't think we should prevent the user from selecting color attribute in these circumstances. It's not like it hurts to allow the option, and explaining to the user why an option is inactive or missing can be avoided. Someone thinking outside the box may even find it useful. This is how it looks so far: ![image.png](https://archive.blender.org/developer/F13015302/image.png) ![image.png](https://archive.blender.org/developer/F13015299/image.png) The fill color can be added as an option for color attributes, but I think it is better to upgrade `paint_image_proj.c` to C++ before adding this feature.
Author
Member

Yes I would do attribute filling as a separate patch.
Would suggest to use expand=True on the Slot type property. Saves a click
If you have a patch ready please upload so we can test and review.

Yes I would do attribute filling as a separate patch. Would suggest to use `expand=True` on the Slot type property. Saves a click If you have a patch ready please upload so we can test and review.
@Jeroen-Bakker Uploaded: [D14724](https://archive.blender.org/developer/D14724)

It may be useful in the future to add grayscale (single component) color attributes and non-color attributes (no gamma correction) to sculpt paint. If that happens, then add paint slot could choose the most relevant setting (like how it chooses the color space when adding image textures.)

Also, "texture paint" is not an accurate term anymore since sculpt painting now includes attributes, but since we are moving to a unified paint system, I won't worry about it.

It may be useful in the future to add grayscale (single component) color attributes and non-color attributes (no gamma correction) to sculpt paint. If that happens, then add paint slot could choose the most relevant setting (like how it chooses the color space when adding image textures.) Also, "texture paint" is not an accurate term anymore since sculpt painting now includes attributes, but since we are moving to a unified paint system, I won't worry about it. ```
Member

Added subscriber: @JulienKaspar

Added subscriber: @JulienKaspar
Member

Can this task be marked as resolved with the commit b96cdbcf7a ?
the second point in the description was not yet implemented. Is that still planned?

Note not there are BSDF inputs (like normals and others) that doesn't make sense to have color attributes attached. In this case the color attribute should not be selectable

Can this task be marked as resolved with the commit b96cdbcf7a ? the second point in the description was not yet implemented. Is that still planned? > Note not there are BSDF inputs (like normals and others) that doesn't make sense to have color attributes attached. In this case the color attribute should not be selectable
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
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#97346
No description provided.