Interpolate hair curves: Connecting a mask texture breaks the guide curve index of hair curves. (Simple fix by reconnecting one node) #118232

Open
opened 2024-02-14 02:57:41 +01:00 by SleepyEngi · 11 comments

System Information
Operating system: Windows 10
Graphics card: rtx 2060 Super

Blender Version
Broken: 4.0.2
Worked: ~

Short description of error
Interpolate hair curves node's guide curves will break if a mask texture is connected. Can be fixed by modifying one connection, pictured underneath.

Exact steps for others to reproduce the error

  1. add an interpolate hair curves node group to a hair object
  2. connect a baldness texture
  3. use the guide curve index to find the guide curves
  4. separate the guide curves
  5. when the texture mask is connected, guide curves disappear. disconnecting it brings them back.

how to visualize hair curves: simply delete geometry if the Index is not equal to the guide curve index

the solution is to reconnect the node group that deletes the points based on the baldness/mask texture as pictured so that it's before the points get handed over to the "Parting IDs" section, as otherwise the delete geometry nodes will cause indexes to change and thus change the indexes, causing the parting IDs to break.

**System Information** Operating system: Windows 10 Graphics card: rtx 2060 Super **Blender Version** Broken: 4.0.2 Worked: ~ **Short description of error** Interpolate hair curves node's guide curves will break if a mask texture is connected. Can be fixed by modifying one connection, pictured underneath. **Exact steps for others to reproduce the error** 1. add an interpolate hair curves node group to a hair object 2. connect a baldness texture 3. use the guide curve index to find the guide curves 4. separate the guide curves 5. when the texture mask is connected, guide curves disappear. disconnecting it brings them back. how to visualize hair curves: simply delete geometry if the Index is not equal to the guide curve index the solution is to reconnect the node group that deletes the points based on the baldness/mask texture as pictured so that it's before the points get handed over to the "Parting IDs" section, as otherwise the delete geometry nodes will cause indexes to change and thus change the indexes, causing the parting IDs to break.
SleepyEngi added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2024-02-14 02:57:42 +01:00
Member

Hi, thanks for the report. Maybe I'm missing something but I didn't completely understand the issue and provided steps. what is "baldness texture"?
Could you attach file?

Hi, thanks for the report. Maybe I'm missing something but I didn't completely understand the issue and provided steps. what is "baldness texture"? Could you attach file?
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-02-16 10:24:40 +01:00

Could you attach file?

Yes, example very needed here.

> Could you attach file? Yes, example very needed here.

I stumbled into the exact same issue (and fix) today.

To rephrase it a bit, using a Mask Texture with the Interpolate Hair Curves node breaks the guide_curve_index attribute (no new guides are created after the interpolation part)

Cause (as far as I can tell): Using a mask texture deletes part of the geometry, but the selection of the new guide curves is done with the geometry BEFORE the deletion. Causing an index mismatch when the selection of the new guides is done (resulting in no new guides being selected).

Here's my examples/work file.

The Viewport Node is placed on the geometry at the end of the node and checks which spline is being passed as the Guide Index

Blender 4.1

I stumbled into the exact same issue (and fix) today. To rephrase it a bit, using a Mask **Texture** with the Interpolate Hair Curves node breaks the guide_curve_index attribute (no new guides are created after the interpolation part) Cause (as far as I can tell): Using a mask texture deletes part of the geometry, but the selection of the new guide curves is done with the geometry BEFORE the deletion. Causing an index mismatch when the selection of the new guides is done (resulting in no new guides being selected). Here's my examples/work file. The Viewport Node is placed on the geometry at the end of the node and checks which spline is being passed as the Guide Index Blender 4.1

@Tipsy-ND Hi, i still not see the actual issue here, can you attach also example of incorrect result?

@Tipsy-ND Hi, i still not see the actual issue here, can you attach also example of incorrect result?

There is no guide map being passed IF you use a Mask Texture. Meaning you can't use your handplaced curves as guide with other nodes for example.

Here's an example using the Clump node with Existing Guide Map enable.

01: Handplaced curves
02: A Texture Mask
03: Using Interpolate Hair Curve WITHOUT a Texture Mask + Clump Hair Curves using Existing Guide Map [Expected behavior]
04: (Without the Fix) Using Interpolate Hair Curve WITH a Texture Mask + Clump Hair Curves using Existing Guide Map [No Guide Map to be found]
05: (With the Fix) Using Interpolate Hair Curve WITH a Texture Mask + Clump Hair Curves using Existing Guide Map [Expected behavior]

There is no guide map being passed IF you use a Mask Texture. Meaning you can't use your handplaced curves as guide with other nodes for example. Here's an example using the Clump node with **Existing Guide Map** enable. 01: Handplaced curves 02: A Texture Mask 03: Using Interpolate Hair Curve WITHOUT a Texture Mask + Clump Hair Curves using Existing Guide Map [Expected behavior] 04: (Without the Fix) Using Interpolate Hair Curve WITH a Texture Mask + Clump Hair Curves using Existing Guide Map [No Guide Map to be found] 05: (With the Fix) Using Interpolate Hair Curve WITH a Texture Mask + Clump Hair Curves using Existing Guide Map [Expected behavior]

Please, broken blend file!

Please, broken blend file!

Here's a cleaner version of the one from my first post.

Default Collection is using the default (as is) Interpolate Hair Curve
Fixed Collection is using the fixed (re-routed) Interpolate Hair Curve

Here's a cleaner version of the one from my first post. Default Collection is using the default (as is) Interpolate Hair Curve Fixed Collection is using the fixed (re-routed) Interpolate Hair Curve

Can confirm change and fix. @SimonThommes /

Can confirm change and fix. @SimonThommes /
Member

@mod_moder Not sure about your comment. Are you saying you will fix it and just keep me in the loop or do you want me to fix it.

This fix looks good to me on first glance, haven't looked into it deeper to see if there are other consequences for this though.

@mod_moder Not sure about your comment. Are you saying you will fix it and just keep me in the loop or do you want me to fix it. This fix looks good to me on first glance, haven't looked into it deeper to see if there are other consequences for this though.

@SleepyEngi I means fix from #118232 (comment)

@SleepyEngi I means fix from https://projects.blender.org/blender/blender/issues/118232#issuecomment-1171839

Damn, I thought that I was stupid bc I was struggling with the same problem, thanks for the opened issue!

Damn, I thought that I was stupid bc I was struggling with the same problem, thanks for the opened issue!
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
6 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#118232
No description provided.