Displacement not using correct information for instanced object that uses Object Info Random #86779

Closed
opened 2021-03-21 03:19:43 +01:00 by Rodrigo Neira · 10 comments

System Information
Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-20 21:00, hash: 9ca67c47a1

NOTE: Also, the same happens in Blender 2.92.0

Short description of error
In a scene with multiple instance objects (instanced from a collection), the Object Info --> Random attribute is working for the Bump node, but not for the Displacement node. Better explained with images:

  • Here, you can see that the information that the information input of the Height of both Bump and Displacement is the same. A mask showing a number, and that random number selected through a ColorRamp will be the input for both at the same time, ensuring the bump node has the same information as the displacement node.
    3_direct_node_number.png

  • Still, the bump works fine, as expected:
    1_bump_only.png

  • But the displacement only displaces the information assigned to the original piece inside the collection:
    2_displacement_only.png

Exact steps for others to reproduce the error

  1. Open the attached scene Rodrigo Neira - Bug Report - Displacement not working in instances.blend
  2. Check the shader editor, and material of ficha.005 --> material ficha_numero
  3. If Bump only is selected for Surface displacement options, and the Bump node connected to the PBR Node --> Normal it works as expected.
  4. If Displacement only is selected for Surface displacement options, and the Displacement node is connected to the Displacement of the Material Output, the displacement only shows the original displacement of the object inside the collection.
    • Expected behaviour: Displacement should be using the same number mask/shape as when the bump is used.

NOTE: The same happens if you select Bump & Displacement in Surface displacement options of the material options.
I think this might be a bug - couldn't find if it's a limitation of the displacement already known.
Thanks in advance!!

**System Information** Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-20 21:00, hash: `9ca67c47a1` NOTE: Also, the same happens in Blender 2.92.0 **Short description of error** In a scene with multiple instance objects (instanced from a collection), the **Object Info --> Random** attribute is working for the Bump node, but not for the Displacement node. Better explained with images: - Here, you can see that the information that the information input of the Height of both Bump and Displacement is the same. A mask showing a number, and that random number selected through a ColorRamp will be the input for both at the same time, ensuring the bump node has the same information as the displacement node. ![3_direct_node_number.png](https://archive.blender.org/developer/F9901822/3_direct_node_number.png) - Still, the bump works fine, as expected: ![1_bump_only.png](https://archive.blender.org/developer/F9901824/1_bump_only.png) - But the displacement only displaces the information assigned to the original piece inside the collection: ![2_displacement_only.png](https://archive.blender.org/developer/F9901827/2_displacement_only.png) **Exact steps for others to reproduce the error** 1) Open the attached scene [Rodrigo Neira - Bug Report - Displacement not working in instances.blend](https://archive.blender.org/developer/F9901821/Rodrigo_Neira_-_Bug_Report_-_Displacement_not_working_in_instances.blend) 2) Check the shader editor, and **material of ficha.005 --> material ficha_numero** 3) If Bump only is selected for Surface displacement options, and the Bump node connected to the PBR Node --> Normal it works as expected. 4) If Displacement only is selected for Surface displacement options, and the Displacement node is connected to the Displacement of the Material Output, the displacement only shows the original displacement of the object inside the collection. - > Expected behaviour: Displacement should be using the same number mask/shape as when the bump is used. NOTE: The same happens if you select Bump & Displacement in Surface displacement options of the material options. I think this might be a bug - couldn't find if it's a limitation of the displacement already known. Thanks in advance!!
Author

Added subscriber: @paiorlolo

Added subscriber: @paiorlolo

#93990 was marked as duplicate of this issue

#93990 was marked as duplicate of this issue

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

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

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Added subscriber: @AnthonyPilon

Added subscriber: @AnthonyPilon

Added subscriber: @welldoneconan

Added subscriber: @welldoneconan

Added subscriber: @Rowan-Ibbeken

Added subscriber: @Rowan-Ibbeken

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

This is a known limitation. If we give every instance a different displacement, that means it's no longer instanced and uses more memory. We may add an option to uninstance objects for this purpose, but for now it's not considered a bug.

This is a known limitation. If we give every instance a different displacement, that means it's no longer instanced and uses more memory. We may add an option to uninstance objects for this purpose, but for now it's not considered a bug.
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#86779
No description provided.