"Attach Hair Curves to Surface" asset incorrectly sets surface UV coordinates #111354

Closed
opened 2023-08-21 18:13:52 +02:00 by Eugene-Kuznetsov · 5 comments
Contributor

Attached screenshot displays a portion of the "Attach Hair Curves to Surface" asset, as included in 3.6.

You can see two different nodes "Store Named Attribute" writing attributes named "surface_uv_coordinate". Notice that the same input received by the second node is also returned out of the node group through the port named "Surface Normal". It is, in fact, the surface normal. The second node should be writing to "surface_normal" and its type should be "Vector", not "2D Vector".

Since the second node overwrites the (valid) attachment UV coordinate written by the first one, hair curves end up with incorrect and possibly illegal, e.g. negative, surface_uv_coordinate attributes, leading to all sorts of weird behavior later on (for example, parts of hair object disappear when you try to convert them into particle hair, because strands with illegal UV coordinates are thrown away during conversion.)

Attached screenshot displays a portion of the "Attach Hair Curves to Surface" asset, as included in 3.6. You can see two different nodes "Store Named Attribute" writing attributes named "surface_uv_coordinate". Notice that the same input received by the second node is also returned out of the node group through the port named "Surface Normal". It is, in fact, the surface normal. The second node should be writing to "surface_normal" and its type should be "Vector", not "2D Vector". Since the second node overwrites the (valid) attachment UV coordinate written by the first one, hair curves end up with incorrect and possibly illegal, e.g. negative, surface_uv_coordinate attributes, leading to all sorts of weird behavior later on (for example, parts of hair object disappear when you try to convert them into particle hair, because strands with illegal UV coordinates are thrown away during conversion.)
Eugene-Kuznetsov added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-08-21 18:13:53 +02:00
Member

Probably same as: #110706

Also might be related: #107856

Probably same as: #110706 Also might be related: #107856
Member

This indeed looks wrong.

@SimonThommes : mind sharing your wisdom here?

This indeed looks wrong. @SimonThommes : mind sharing your wisdom here?
Member

Yea, this is just a plain mistake that slipped through, it seems. Will fix for 4.0 and 3.6

Yea, this is just a plain mistake that slipped through, it seems. Will fix for 4.0 and 3.6
Member

Probably same as: #110706

Also might be related: #107856

Both these issues are not related afaict.

> Probably same as: #110706 > > Also might be related: #107856 Both these issues are not related afaict.
Member

@Eugene-Kuznetsov in your file you can fix it by replacing the surface_uv_coordinate in the second (right) Store Named Attribute node with surface_normal and changing the data type from 2D Vector to Vector.

I fixed this for 4.0 and 3.6 LTS, so it will be included in those upcoming releases.

Note: Due to the fact how the append and reuse functionality works, that means files using a broken version of this asset will not automatically receive the fixed version. Not for the existing instances of the node, nor for new instances dragged in from the asset browser.

@Eugene-Kuznetsov in your file you can fix it by replacing the `surface_uv_coordinate` in the second (right) `Store Named Attribute` node with `surface_normal` and changing the data type from `2D Vector` to `Vector`. I fixed this for 4.0 and 3.6 LTS, so it will be included in those upcoming releases. Note: Due to the fact how the `append and reuse` functionality works, that means files using a broken version of this asset will not automatically receive the fixed version. Not for the existing instances of the node, nor for new instances dragged in from the asset browser.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2023-09-04 15:11:18 +02:00
Simon Thommes added
Status
Resolved
and removed
Status
Archived
labels 2023-09-04 15:14:23 +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 project
No Assignees
4 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#111354
No description provided.