Boolean modifier breaks colour/uv attribute in shader #60552

Closed
opened 2019-01-16 03:32:21 +01:00 by Tober · 23 comments

System Information
Operating system: Windows 10
Graphics card: RTX 2080

Blender Version
Broken: 2.80 beta (2019-01-12, 2826c2be54)

Short description of error
Applying a boolean modifier to an object causes the colour attribute to become black when the object is in object mode. When the object is in edit mode, the colour is shown appropriately.

Exact steps for others to reproduce the error
Load the default start-up file.
Set the display mode to workbench.
Copy the default cube and move it so it partially overlaps the first cube.
Add a boolean modifier to the first cube with the second cube as boolean object.
Add a vertex colour to the first cube.
Set the colour to be red on the whole cube.
Add a material to the first cube that takes the colour attribute and passes it to an emission shader.
Note that in edit mode the cube displays red as expected. However, in object mode the cube displays black instead of red.
Note that disabling the boolean modifier will cause the cube to be displayed red as well.

boolean disables colour attribute.blend

**System Information** Operating system: Windows 10 Graphics card: RTX 2080 **Blender Version** Broken: 2.80 beta (2019-01-12, 2826c2be545e) **Short description of error** Applying a boolean modifier to an object causes the colour attribute to become black when the object is in object mode. When the object is in edit mode, the colour is shown appropriately. **Exact steps for others to reproduce the error** Load the default start-up file. Set the display mode to workbench. Copy the default cube and move it so it partially overlaps the first cube. Add a boolean modifier to the first cube with the second cube as boolean object. Add a vertex colour to the first cube. Set the colour to be red on the whole cube. Add a material to the first cube that takes the colour attribute and passes it to an emission shader. Note that in edit mode the cube displays red as expected. However, in object mode the cube displays black instead of red. Note that disabling the boolean modifier will cause the cube to be displayed red as well. [boolean disables colour attribute.blend](https://archive.blender.org/developer/F6301113/boolean_disables_colour_attribute.blend)
Author

Added subscriber: @Tober-1

Added subscriber: @Tober-1

#61967 was marked as duplicate of this issue

#61967 was marked as duplicate of this issue

#61426 was marked as duplicate of this issue

#61426 was marked as duplicate of this issue

#61370 was marked as duplicate of this issue

#61370 was marked as duplicate of this issue

#61299 was marked as duplicate of this issue

#61299 was marked as duplicate of this issue
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Did this work in Blender 2.79?

Did this work in Blender 2.79?

Added subscriber: @WilliamReynish

Added subscriber: @WilliamReynish

I can't reproduce it here. It seems to work correctly, taking the correct vertex colors from the boolean object, which works correctly in materials too.

Screenshot 2019-01-16 at 12.09.21.png

I can't reproduce it here. It seems to work correctly, taking the correct vertex colors from the boolean object, which works correctly in materials too. ![Screenshot 2019-01-16 at 12.09.21.png](https://archive.blender.org/developer/F6305028/Screenshot_2019-01-16_at_12.09.21.png)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Philipp Oeser self-assigned this 2019-01-16 12:18:05 +01:00
Member

yeah, you need to have VCols on both objects [both objects have the same material], otherwise these wont transfer over. Like so:
boolean disables colour attribute corrected.blend

Dont see a bug here, closing...

yeah, you need to have VCols on both objects [both objects have the same material], otherwise these wont transfer over. Like so: [boolean disables colour attribute corrected.blend](https://archive.blender.org/developer/F6305091/boolean_disables_colour_attribute_corrected.blend) Dont see a bug here, closing...
Member

@WilliamReynish, does the file he uploaded work for you? I only see black when setting it to rendered view. When I disable the boolean modifier, it works as expected.

[EDIT] @lichtwerk, ah that makes sense. Thanks for the explanation.

@WilliamReynish, does the file he uploaded work for you? I only see black when setting it to rendered view. When I disable the boolean modifier, it works as expected. [EDIT] @lichtwerk, ah that makes sense. Thanks for the explanation.
Author

Thank you for the quick explanation, Philipp.

Thank you for the quick explanation, Philipp.
Member

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Member

will reopen, just talked to @ideasman42 on IRC and it seems it should not loose custom data layers (when they exist on one object but not the other...)

will reopen, just talked to @ideasman42 on IRC and it seems it should not loose custom data layers (when they exist on one object but not the other...)
Member

Added subscriber: @StephenLeger

Added subscriber: @StephenLeger
Member

It also breaks uv channels > 0,
Add 2 uvs chanels, 2nd one is black with modifier enabled.

It also breaks uv channels > 0, Add 2 uvs chanels, 2nd one is black with modifier enabled.
Philipp Oeser changed title from Boolean modifier breaks colour attribute in shader to Boolean modifier breaks colour/uv attribute in shader 2019-02-11 10:59:30 +01:00
Member

Added subscriber: @RobertWesseling

Added subscriber: @RobertWesseling
Member

Added subscriber: @nt_brasil

Added subscriber: @nt_brasil

Added subscribers: @billyand, @ZedDB, @Sergey

Added subscribers: @billyand, @ZedDB, @Sergey

Closed as duplicate of #59304

Closed as duplicate of #59304
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
7 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#60552
No description provided.