Applying deforming modifiers to geo-generated objects glitches "material random index" #92777

Closed
opened 2021-11-03 09:30:17 +01:00 by NKO · 8 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.27

Blender Version
Broken: version: 2.93.4, branch: master, commit date: 2021-08-31 09:23, hash: b7205031ce
Worked: (newest version of Blender that worked as expected)

Short description of error
When I add deforming modifiers (SimpleDeform, Lattice etc) to an object which has been generated with geo-nodes, it breaks the "random"-value in Material-node "Object info".

Exact steps for others to reproduce the error

  1. Create a cube and a plane
  2. Use geo-nodes to generate points on the plane, and use the cube as the object to be distributed to those points
  3. Select the plane and create a material to it
  4. Add "Object info" node to the material, and use its "random"-value with gradient ramp to create variance in the cube colors
  5. You should now see all the generated cubes have little bit different colors, this is OK
  6. Now add some kind of deforming modifier to the plane object, for example Lattice or SimpleDeform and BOOM, now you will lose all that random color information and all the cubes become single colored

I have attached a sample blend-file with two geo-generated objects: both have same material, but the other one has deformers and other doesn't.

bugi.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.27 **Blender Version** Broken: version: 2.93.4, branch: master, commit date: 2021-08-31 09:23, hash: `b7205031ce` Worked: (newest version of Blender that worked as expected) **Short description of error** When I add deforming modifiers (SimpleDeform, Lattice etc) to an object which has been generated with geo-nodes, it breaks the "random"-value in Material-node "Object info". **Exact steps for others to reproduce the error** 1. Create a cube and a plane 2. Use geo-nodes to generate points on the plane, and use the cube as the object to be distributed to those points 3. Select the plane and create a material to it 4. Add "Object info" node to the material, and use its "random"-value with gradient ramp to create variance in the cube colors 5. You should now see all the generated cubes have little bit different colors, this is OK 6. Now add some kind of deforming modifier to the plane object, for example Lattice or SimpleDeform and BOOM, now you will lose all that random color information and all the cubes become single colored I have attached a sample blend-file with two geo-generated objects: both have same material, but the other one has deformers and other doesn't. [bugi.blend](https://archive.blender.org/developer/F11692658/bugi.blend)
Author

Added subscriber: @NKO

Added subscriber: @NKO
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

I can reproduce on 2.93.6 but master does not show correct material in either case.

Will search for the issue that appears on master

I can reproduce on 2.93.6 but master does not show correct material in either case. Will search for the issue that appears on master
Member

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

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

Will search for the issue that appears on master

So I have bisected and from 219058c213 it neither work on object without a modifier.

prior to 219058c213d5 after
prog.PNG prog.PNG
> Will search for the issue that appears on master So I have bisected and from 219058c213 it neither work on object without a modifier. | prior to `219058c213d5` | after | | -- | -- | | ![prog.PNG](https://archive.blender.org/developer/F11709054/prog.PNG) | ![prog.PNG](https://archive.blender.org/developer/F11709027/prog.PNG) |
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Thanks for the report. We already have a task for this issue.

Thanks for the report. We already have a task for this issue.
Member

Closed as duplicate of #85962

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