Some hair particles are rendered the wrong material in EEVEE #78845

Closed
opened 2020-07-12 04:36:31 +02:00 by Tiago Marinho · 20 comments

System Information
Operating system: Windows 10
Graphics card: GTX 1060 6GB

Blender Version
Broken: 2.90, ee5c2f6ead, master, 2020-07-11
Worked: 2.83.2

Caused by b18c2a3c41

Short description of error
there are 3 planes, each plane has two particle hair systems. the particle hairs that on the same plane has the same material.
in blender 2.83 LTS. the color display as intended. since 2.90, when both hair system are active, the color is mix with others of different planes and different materials. if either one of the hair systems that on the same plane is disable, the color return to normal. in 2.83 it looks right, but in 2.90 and above, the blue and green materials also mix with red somehow.

283LTS.jpg

290Above.jpg

Exact steps for others to reproduce the error
open attached blend file in 290 and above, switch to preview render to see the color mixed within different materials.
change the color_ramp.interpolation to different type from each other would fix the issue, for example, mat1's color_ramp.interpolation to linear, mat2's color_ramp.interpolation to ease, mat3's color_ramp.interpolation to cardinal

particle hair color.blend

Short description of error
Some of the hair particles (the right eyebrow specifically) in the provided file are shaded with other material, unless some of the other objects are hidden (the left eyebrow or both eyelashes)**

Exact steps for others to reproduce the error

  1. Open the attached .blend file.
  2. Make sure viewport shading is set to Material Preview Mode.
  3. Notice the hair of the object to your right is rendered with the wrong material in EEVEE.
  4. Disable "eyebrow scalp.R" from the viewport.
  5. Notice that the eyebrow that was previously being rendered with the wrong material is now correct.

Note that this is not the same issue as described in this issue , the provided file used to work on older blender versions and the scale of the objects is always positive.

hair_material_bug.blend

**System Information** Operating system: Windows 10 Graphics card: GTX 1060 6GB **Blender Version** Broken: 2.90, ee5c2f6ead37, master, 2020-07-11 Worked: 2.83.2 Caused by b18c2a3c41 **Short description of error** there are 3 planes, each plane has two particle hair systems. the particle hairs that on the same plane has the same material. in blender 2.83 LTS. the color display as intended. since 2.90, when both hair system are active, the color is mix with others of different planes and different materials. if either one of the hair systems that on the same plane is disable, the color return to normal. in 2.83 it looks right, but in 2.90 and above, the blue and green materials also mix with red somehow. ![283LTS.jpg](https://archive.blender.org/developer/F9928445/283LTS.jpg) ![290Above.jpg](https://archive.blender.org/developer/F9928446/290Above.jpg) **Exact steps for others to reproduce the error** open attached blend file in 290 and above, switch to preview render to see the color mixed within different materials. change the color_ramp.interpolation to different type from each other would fix the issue, for example, mat1's color_ramp.interpolation to linear, mat2's color_ramp.interpolation to ease, mat3's color_ramp.interpolation to cardinal [particle hair color.blend](https://archive.blender.org/developer/F9928444/particle_hair_color.blend) **Short description of error** Some of the hair particles (the right eyebrow specifically) in the provided file are shaded with other material, unless some of the other objects are hidden (the left eyebrow or both eyelashes)** **Exact steps for others to reproduce the error** 1. Open the attached .blend file. 2. Make sure viewport shading is set to Material Preview Mode. 3. Notice the hair of the object to your right is rendered with the wrong material in EEVEE. 4. Disable "eyebrow scalp.R" from the viewport. 5. Notice that the eyebrow that was previously being rendered with the wrong material is now correct. Note that this is not the same issue as described in [this issue ](https://developer.blender.org/T68548), the provided file used to work on older blender versions and the scale of the objects is always positive. [hair_material_bug.blend](https://archive.blender.org/developer/F8693745/hair_material_bug.blend)
Author

Added subscriber: @tiagomeraki

Added subscriber: @tiagomeraki

#87379 was marked as duplicate of this issue

#87379 was marked as duplicate of this issue

#85973 was marked as duplicate of this issue

#85973 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

You forgot to attach or pack the eyebrow density.1001.png texture.
So when we open the file we don't see any particles.

But after I deleted the texture I could see the problem.
Here the simplified file:
hair_material_bug.blend

I will edit the description.

You forgot to attach or pack the `eyebrow density.1001.png` texture. So when we open the file we don't see any particles. But after I deleted the texture I could see the problem. Here the simplified file: [hair_material_bug.blend](https://archive.blender.org/developer/F8693745/hair_material_bug.blend) I will edit the description.
Germano Cavalcante changed title from Some hair particles are rendered as black unless some objects are hidden from viewport in EEVEE to Some hair particles are rendered the wrong material in EEVEE 2020-07-14 16:33:55 +02:00
Author

My bad, I was pretty sure I had packed this texture into the .blend. Thanks for taking the time and fixing the file. Next time I'll make sure to test it at another path before submitting the bug report, and take more time getting it to a minimal state and easy to test with as you did.

My bad, I was pretty sure I had packed this texture into the .blend. Thanks for taking the time and fixing the file. Next time I'll make sure to test it at another path before submitting the bug report, and take more time getting it to a minimal state and easy to test with as you did.

Added subscriber: @nimajneb7

Added subscriber: @nimajneb7

I've been having this issue as well.

If two hair systems use materials with the same node layout, they will render the with same material, even if the two materials have different values or textures.

I've been having this issue as well. If two hair systems use materials with the same node layout, they will render the with same material, even if the two materials have different values or textures.

Added subscriber: @agorka

Added subscriber: @agorka

I'm having this problem too, tested in 2.90.1, 2.91 and 2.92.0 Alpha
Uploading another example. Hiding red eyebrows makes upper eyelash render correctly in black. Bug happens only in eevee renders, cycles handles this correctly.
Also, duplicating eyebrows and changing hair material of one of them to black changes lower eyelash color to red.
Something really weird happens there.
Head0002_hairmaterialbug.blend

I'm having this problem too, tested in 2.90.1, 2.91 and 2.92.0 Alpha Uploading another example. Hiding red eyebrows makes upper eyelash render correctly in black. Bug happens only in eevee renders, cycles handles this correctly. Also, duplicating eyebrows and changing hair material of one of them to black changes lower eyelash color to red. Something really weird happens there. [Head0002_hairmaterialbug.blend](https://archive.blender.org/developer/F9247118/Head0002_hairmaterialbug.blend)

Added subscriber: @Keeya

Added subscriber: @Keeya

I have encountered this bug with multiple objects that use multiple hair particle systems and materials. If your object has multiple material slots which the particle systems use, it goes haywire.

I have this test case:

  • object "right" has two particle systems and two material slots
  • top and bottom should be pink but top is rendered with the material of object "left".
  • if you hide object "left" in the viewport the right top particle system turns pink as it should.

I can't really seem to find a pattern to what is happening but I feel the material slot given in the particle system render options is not referencing the thing the UI shows as if it goes out of sync with the UI.

Also if you move the material slot (change top <-> bottom), the referenced one in the particle system->render tab also swaps which I feel should not.

Edit: it specifically happens if you have an object with multiple particle systems that use the same material. I have used that for different type of fur layers.

Possible workaround: You can kinda workaround it, if you create a separate material, duplicating it, for each particle system.

blender 2.91.0

blender-hair-particles-material.blend

I have encountered this bug with multiple objects that use multiple hair particle systems and materials. If your object has multiple material slots which the particle systems use, it goes haywire. I have this test case: - object "right" has two particle systems and two material slots - top and bottom should be pink but top is rendered with the material of object "left". - if you hide object "left" in the viewport the right top particle system turns pink as it should. I can't really seem to find a pattern to what is happening but I feel the material slot given in the particle system render options is not referencing the thing the UI shows as if it goes out of sync with the UI. Also if you move the material slot (change top <-> bottom), the referenced one in the particle system->render tab also swaps which I feel should not. Edit: it specifically happens if you have an object with multiple particle systems that use the same material. I have used that for different type of fur layers. **Possible workaround**: You can kinda workaround it, if you create a separate material, duplicating it, for each particle system. blender 2.91.0 [blender-hair-particles-material.blend](https://archive.blender.org/developer/F9531829/blender-hair-particles-material.blend)

Added subscriber: @SachaGoedegebure

Added subscriber: @SachaGoedegebure

Added subscriber: @sid350

Added subscriber: @sid350
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Will set to high prio since it is a regression, we have the culprit commit and has been reported again in #87379

Will set to high prio since it is a regression, we have the culprit commit and has been reported again in #87379
Member

Added subscriber: @sleepyhead

Added subscriber: @sleepyhead
Jeroen Bakker self-assigned this 2021-04-21 08:27:30 +02:00

This issue was referenced by 2f6219c48d

This issue was referenced by 2f6219c48df4e39addca3b462d5a753c71a1374e
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
9 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#78845
No description provided.