CPU: Ryzen 5 2600
GPU: RX 570
OS: Windows 10 Homes
blender-2.79-1b974563b17 (2nd November 2018)
blender-2.80-b4dfe00fd60 (5th of November 2018)
Worked: In theory Blender 2.79b worked, but that's because Random dosn't output anything but zero on CPU or GPU.
Short description of error:
When a light object (Point, Spot, Sun, Hemi, Area) has a material that uses the Random output of the Object Info node, the output will always be zero if rendered using the GPU (Only tested on OpenCL).
Here's a few images:
- Node tree for lights
- CPU Render
- GPU Render
- CPU + GPU Rendering
Here's a file for Blender 2.8 to test it out yourself:
Exact steps for others to reproduce the error:
- Start Blender
- Change the render engine to Cycles if it isn't already
- Create a light source and give it a node based "material"
- In the node editor for the light, add an object info node and attach the random out to something that controls the light (I used the Random output for the hue input in Hue Saturation Value node with a base of red to select the colour of the light)
- Duplicate the light source and place them around your scene so you have multiple randoms to compare
- Render the scene in the viewport with the CPU
- Render the scene in the viewport with the GPU and you'll find that the random output is always zero