Blur attribute node face corner handling #114275

Open
opened 2023-10-30 15:27:26 +01:00 by Simon Thommes · 3 comments
Member

Every iteration, each face corner should get the average value of:

  • The corners sharing the same vertex
  • The next and previous corner in the same face
  • Itself
Every iteration, each face corner should get the average value of: - The corners sharing the same vertex - The next and previous corner in the same face - Itself
Simon Thommes added the
Type
Design
label 2023-10-30 15:27:26 +01:00
Simon Thommes added this to the Nodes & Physics project 2023-10-30 15:27:28 +01:00
Iliya Katushenock added the
Interest
Geometry Nodes
label 2023-10-30 15:32:44 +01:00

What is better, add this new behavior, and versioning code to not change old files by new domain, or Jagged Field long time solution?

What is better, add this new behavior, and versioning code to not change old files by new domain, or Jagged Field long time solution?
Member

Implementing the blur attribute node as a node group that uses list fields internally is definitely a better long term solution. In the meantime though, I think implementing this mixing is reasonable, and would solve user frustration about this arbitrarily not working.

Blur might be a nice use case for list fields actually, it's fairly straightforward and the benefits of more flexible mixing are pretty clear.

Implementing the blur attribute node as a node group that uses list fields internally is definitely a better long term solution. In the meantime though, I think implementing this mixing is reasonable, and would solve user frustration about this arbitrarily not working. Blur might be a nice use case for list fields actually, it's fairly straightforward and the benefits of more flexible mixing are pretty clear.

New domain can be done as new separate code path. This require new blur function.
Function should contains main loop with parts:

  • Mixing values from other corners on self vertex. This can be done by creating new GroupedSpan of indices (via mesh topology processing functions (see BKE_mesh_mapping.hh, and function to build map of corner indices for each vertex).
  • Mixing values from next and previous corners. To do that, simply iterate in front and back for a loops and use face_corner_prev / face_corner_next functions from bke.
  • Default initialization by original span values will be done by default in case a mixer constructor is called with empty mask.
New domain can be done as new separate code path. This require new blur function. Function should contains main loop with parts: - Mixing values from other corners on self vertex. This can be done by creating new `GroupedSpan` of indices (via mesh topology processing functions (see `BKE_mesh_mapping.hh`, and function to build map of corner indices for each vertex). - Mixing values from next and previous corners. To do that, simply iterate in front and back for a loops and use `face_corner_prev` / `face_corner_next` functions from `bke`. - Default initialization by original span values will be done by default in case a mixer constructor is called with empty mask.
Iliya Katushenock added the
Meta
Good First Issue
label 2024-03-24 12:24:57 +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
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#114275
No description provided.