Dynamic socket declaration for type change #120486

Open
opened 2024-04-10 19:25:22 +02:00 by Iliya Katushenock · 0 comments

This is sub project of more large one which is aimed to delete any manual socket visibility change from the core and do not hide sockets if they are not used.
Instead, the modern socket declaration API should cover deletion of sockets from bmain, creation of them, maintaining of properties and links. See: #104126
This sub project is aimed to use dynamic socket declarations in context if there one certain socket that should be exist always (should not be deleted) but its type can be changed.

So, sockets of Mix node will be changes to Factor, A and B instead of Factor_vector, A_1, A_Float, and so.
This will not cover such changes like B socket of Math node that should not be there for Sin mode.

This requires changes in all node systems such as Shader Nodes and Geometry Nodes.
Compositing Nodes and Texture Nodes will not be affected.

Related changes:

  1. For each node system list of affected nodes should be proposed.
  2. Compatibility changes. Old blender versions should be able to correctly open files from new versions.
    This requires changes in versioning of older blender branches to handle some certain nodes to change names of new sockets to old names. Next, declaration system can handle this in correct way.
  3. In case declaration system is not used for some node, this should be fixed.
  4. Naming of sockets will be changed as well. This will be need in case there is type of socket is part of the name.
    This is additional change for a lot of old nodes systems due to the fact that previously there was all sockets with different types at the same time. Today there is no reason to have such non-trivial naming.

Current state:

  1. Geometry Nodes:
    • Design accepted.
    • Related changes in compatibility is done: #113497.
    • Changes accepted: #113553.
  2. Shader Nodes:
    • Design accepted.
    • Related changes in compatibility is done.
    • Changes accepted.
This is sub project of more large one which is aimed to delete any manual socket visibility change from the core and do not hide sockets if they are not used. Instead, the modern socket declaration API should cover deletion of sockets from bmain, creation of them, maintaining of properties and links. See: #104126 This sub project is aimed to use dynamic socket declarations in context if there one certain socket that should be exist always (should not be deleted) but its type can be changed. So, sockets of `Mix` node will be changes to `Factor`, `A` and `B` instead of `Factor_vector`, `A_1`, `A_Float`, and so. This will not cover such changes like `B` socket of `Math` node that should not be there for `Sin` mode. This requires changes in all node systems such as `Shader Nodes` and `Geometry Nodes`. `Compositing Nodes` and `Texture Nodes` will not be affected. Related changes: 1. For each node system list of affected nodes should be proposed. 2. Compatibility changes. Old blender versions should be able to correctly open files from new versions. This requires changes in versioning of older blender branches to handle some certain nodes to change names of new sockets to old names. Next, declaration system can handle this in correct way. 3. In case declaration system is not used for some node, this should be fixed. 4. Naming of sockets will be changed as well. This will be need in case there is type of socket is part of the name. This is additional change for a lot of old nodes systems due to the fact that previously there was all sockets with different types at the same time. Today there is no reason to have such non-trivial naming. Current state: 1. Geometry Nodes: - [x] Design accepted. - [x] Related changes in compatibility is done: #113497. - [x] Changes accepted: #113553. 2. Shader Nodes: - [ ] Design accepted. - [ ] Related changes in compatibility is done. - [ ] Changes accepted.
Iliya Katushenock added this to the Nodes & Physics project 2024-04-10 19:25:26 +02:00
Iliya Katushenock removed the
Interest
Compositing
label 2024-04-11 15:00:59 +02:00
Iliya Katushenock self-assigned this 2024-04-11 15:18: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 Assignees
1 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#120486
No description provided.