Design: Shading: Extend Clamp and Map Range nodes to work with Vectors #73512

Open
opened 2020-01-30 14:06:46 +01:00 by Charlie Jolly · 7 comments
Member

I'd like to make these nodes work with vector inputs and outputs.

It's unclear to me as the the best way of doing this.

image.png

Some options:

  • Separate Nodes : Create separate versions of these nodes with Vector sockets.

  • Dynamic : Use a dynamic socket. This is better from a UX perspective but how do we show this? For these two nodes, they are pretty pointless without a value input so the edit control could be hidden. The node then operates accordingly depending on the input link.

image.png

  • Mode Switch : Add vector input and output sockets and add a mode switch to hide the unwanted input socket.

  • Double Sockets : Add vector input and output sockets and depending what is connected. For vector only input, Vector > Float & Vector. For float only input, Float > Float & Vector. If both inputs are connected do Float > Float and Vector > Vector.

For the combined cases, the node would output and show both Value and Vector.

I'd like to make these nodes work with vector inputs and outputs. It's unclear to me as the the best way of doing this. ![image.png](https://archive.blender.org/developer/F8313609/image.png) Some options: - **Separate Nodes** : Create separate versions of these nodes with Vector sockets. - **Dynamic** : Use a dynamic socket. This is better from a UX perspective but how do we show this? For these two nodes, they are pretty pointless without a value input so the edit control could be hidden. The node then operates accordingly depending on the input link. ![image.png](https://archive.blender.org/developer/F8313646/image.png) - **Mode Switch** : Add vector input and output sockets and add a mode switch to hide the unwanted input socket. - **Double Sockets** : Add vector input and output sockets and depending what is connected. For vector only input, `Vector` > `Float & Vector`. For float only input, `Float` > `Float & Vector`. If both inputs are connected do `Float` > `Float` and `Vector` > `Vector`. For the combined cases, the node would output and show both Value and Vector.
Author
Member

Added subscriber: @CharlieJolly

Added subscriber: @CharlieJolly
Author
Member

Added initial patch: D6726 Map Range Node only
This adds an additional Vector output and changes Float input to a Vector. For backwards compatibility, it doesn't currently convert RGBA sockets to BW.

image.png

Added initial patch: [D6726](https://archive.blender.org/developer/D6726) Map Range Node only This adds an additional Vector output and changes Float input to a Vector. For backwards compatibility, it doesn't currently convert RGBA sockets to BW. ![image.png](https://archive.blender.org/developer/F8314456/image.png)

Added subscriber: @Drormoshe

Added subscriber: @Drormoshe
Contributor

Added subscriber: @IyadAhmed

Added subscriber: @IyadAhmed
Contributor

This comment was removed by @IyadAhmed

*This comment was removed by @IyadAhmed*

Added subscriber: @BartekMoniewski

Added subscriber: @BartekMoniewski

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

Changed status from 'Needs Triage' to: 'Confirmed'
Brecht Van Lommel added this to the Render & Cycles project 2023-02-07 19:08:35 +01:00
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:01:30 +01: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 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#73512
No description provided.