WIP: Geometry Nodes: new socket shape for unknown socket type category #113608

Draft
Jacques Lucke wants to merge 2 commits from JacquesLucke/blender:asterisk-socket-shape into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

The goal here is to experiment with a different shape for sockets of which the type "category" is unknown. By category I mean whether it is a field or single value (and in the future maybe list, grid, image, ...). Many function nodes like math nodes can work on all these kinds of data, and ideally their socket shape indicates that.

Currently, we use a diamond with a dot for that purpose, but that doesn't scale so well, because it looks to similar to field sockets and hence potentially works less well if we have other socket shapes for other kinds of data.

We'll also eventually need a solution for unknown socket type (float, vector, etc.) that can be combined with any other socket type.

I choose an asterisk symbol here, because it's often used as "wildcard" that can be anything.

image

This might not completely replace the diamond-with-dot shape. For example, the new shape doesn't really make sense for the Set Position node.

image

The goal here is to experiment with a different shape for sockets of which the type "category" is unknown. By category I mean whether it is a field or single value (and in the future maybe list, grid, image, ...). Many function nodes like math nodes can work on all these kinds of data, and ideally their socket shape indicates that. Currently, we use a diamond with a dot for that purpose, but that doesn't scale so well, because it looks to similar to field sockets and hence potentially works less well if we have other socket shapes for other kinds of data. We'll also eventually need a solution for unknown socket type (float, vector, etc.) that can be combined with any other socket type. I choose an asterisk symbol here, because it's often used as "wildcard" that can be anything. ![image](/attachments/482cb286-1b90-41b8-b8d3-381bf653353e) This might not completely replace the diamond-with-dot shape. For example, the new shape doesn't really make sense for the Set Position node. ![image](/attachments/cb33d63b-5d38-4308-99a4-90fb139758bb)
Jacques Lucke added 1 commit 2023-10-12 15:45:58 +02:00

Can you increase it so it matches the circle size?

image

Can you increase it so it matches the circle size? ![image](/attachments/24feecbe-38b8-45b5-9114-ac5587fcce8b)
5.7 KiB
Jacques Lucke added 1 commit 2023-10-12 16:11:05 +02:00
Author
Member

I updated the size.

I updated the size.

Have you tried rotating so we have a vertical tick?

image

Not sure which one I prefer to be honest.

Have you tried rotating so we have a vertical tick? ![image](/attachments/a10e5f90-5df9-49b6-be2b-d5ec94df943b) Not sure which one I prefer to be honest.
This pull request has changes conflicting with the target branch.
  • source/blender/gpu/GPU_shader_shared.h

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u asterisk-socket-shape:JacquesLucke-asterisk-socket-shape
git checkout JacquesLucke-asterisk-socket-shape
Sign in to join this conversation.
No reviewers
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#113608
No description provided.