Object Info node not working in material view #51346

Closed
opened 2017-04-29 03:11:32 +02:00 by Anthony Riggio · 18 comments

System Information
Windows 10 Pro {Pre Creators Update - deferred}
GTX 1070

Blender Version
2.78c Hash: e92f235283

Short description of error
Connect Object Info>Random to Hue Saturation Value>Hue to Diffused BSDF>Color to Material Output>Surface

If you duplicate objects with that material, they all stay the same color with same hue. The value of Random is always ZERO.

I searched for two hours and didn't see anyone report this issue.

Updated

RandomProblem.blend

RandomProb-2.jpg

RandomProb-1.jpg

**System Information** Windows 10 Pro {Pre Creators Update - deferred} GTX 1070 **Blender Version** 2.78c Hash: e92f235283 **Short description of error** Connect Object Info>Random to Hue Saturation Value>Hue to Diffused BSDF>Color to Material Output>Surface If you duplicate objects with that material, they all stay the same color with same hue. The value of Random is always ZERO. I searched for two hours and didn't see anyone report this issue. **Updated** [RandomProblem.blend](https://archive.blender.org/developer/F582862/RandomProblem.blend) ![RandomProb-2.jpg](https://archive.blender.org/developer/F582864/RandomProb-2.jpg) ![RandomProb-1.jpg](https://archive.blender.org/developer/F582866/RandomProb-1.jpg)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @antonrr90

Added subscriber: @antonrr90
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

Seems to be working fine, please attach a .blend demonstrating the problem

Seems to be working fine, please attach a .blend demonstrating the problem
Vuk Gardašević changed title from Ojbect Info node > Random is not working, only outputs absolute ZERO to Object Info node > Random is not working, only outputs absolute ZERO 2017-04-29 08:51:18 +02:00

Added subscriber: @zeauro

Added subscriber: @zeauro

Is saturation of color of HSV node different of zero ?

By default color of this node is a white with H=0 , S=0, V=0.906.
If saturation stays equal to zero ; you can have a different hue for each object : result will be same white for all.

Is saturation of color of HSV node different of zero ? By default color of this node is a white with H=0 , S=0, V=0.906. If saturation stays equal to zero ; you can have a different hue for each object : result will be same white for all.
Author

I updated the Task to include .blend file and screen shots of the problem. If I disconnect the random node and use the hue slider between 0.0 and 1.0 I get all the hues of this color, but with Random connected, it results 0.0 hue. I'm am not great at python, but could someone tell me what I can enter in the Console to see what the value is of Random for each of these objects?

I updated the Task to include .blend file and screen shots of the problem. If I disconnect the random node and use the hue slider between 0.0 and 1.0 I get all the hues of this color, but with Random connected, it results 0.0 hue. I'm am not great at python, but could someone tell me what I can enter in the Console to see what the value is of Random for each of these objects?
Member

Seems allright in rendered view? material view they are all blue indeed.

Seems allright in rendered view? material view they are all blue indeed.
Author

This comment was removed by @antonrr90

*This comment was removed by @antonrr90*
Author

Is it suppose to do that in material view?

Is it suppose to do that in material view?
Ray molenkamp changed title from Object Info node > Random is not working, only outputs absolute ZERO to Object Info node not working in material view 2017-04-30 17:02:16 +02:00
Member

Added subscriber: @MikeErwin

Added subscriber: @MikeErwin
Member

I took a quick peek at the code, everything indicates this should be working, but it's not. @MikeErwin mind taking a quick peek here?

Location works, but anything coming out of the vec3 info in node_object_info from gpu_shader_material.glsl seems to be 0 ( object_index / material_index / random )

I took a quick peek at the code, everything indicates this should be working, but it's not. @MikeErwin mind taking a quick peek here? Location works, but anything coming out of the vec3 info in node_object_info from gpu_shader_material.glsl seems to be 0 ( object_index / material_index / random )
Author

I do appreciate you all looking into this, because material view is the only way I can even view some of the large scenes without crashing the process. I love procedural textures, but they really do break the bank when creating large scenes and trying to view them in Render View.

I do appreciate you all looking into this, because material view is the only way I can even view some of the large scenes without crashing the process. I love procedural textures, but they really do break the bank when creating large scenes and trying to view them in Render View.
Member

Yes I'll take a look tomorrow, try to figure it out.

Yes I'll take a look tomorrow, try to figure it out.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2017-05-13 06:27:53 +02:00

OpenGL viewport support for this node was only added recently in D2425, and will be available in the upcoming 2.79 and daily builds from https://builder.blender.org/download/. It is not supported in 2.78c.

OpenGL viewport support for this node was only added recently in [D2425](https://archive.blender.org/developer/D2425), and will be available in the upcoming 2.79 and daily builds from https://builder.blender.org/download/. It is not supported in 2.78c.
Author

That's good to hear, thanks for the update.

That's good to hear, thanks for the update.
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
5 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#51346
No description provided.