NodeCustomGroup nodes don't work with material view.
Closed, ArchivedPublic

Description

System Information
All Os'es

Blender Version
Broken: latest master
Worked: never by the looks of it

When you create a cycles node based on bpy.types.NodeCustomGroup the material view gives black output.

Repro steps

  1. Install this demo addon the problem however is not limited to this addon, all addons based on bpy.types.NodeCustomGroup will have the same issue https://github.com/LazyDodo/BrickTricks is another good example
  1. make a simple scene with the addon. (ie assign some random colors/textures, and set the mix factor to some random value)
  1. switch to rendered view, play with the parameters to make sure it works.
  1. switch to material view, observe black result.
  1. given the NodeCustomGroup uses a nodegroup as backend, add the backing nodegroup to the material, duplicate the settings and use that instead of the custom node.
  1. switch to material view, now it works!

Details

Differential Revisions
D2698: Add gpufunc to NodeCustomGroup
Type
Bug
Sergey Sharybin (sergey) closed this task as Archived.May 29 2017, 12:17 PM
Sergey Sharybin (sergey) claimed this task.

Custom nodes are not supported by GLSL. This is something we investigate for 2.8 viewport project and currently is not considered a bug.

Thanks for the report anyway.

Those pynodes are really usefull possibility. Is it so complicated to internally use the node group (instead of the pynode) for GLSL? I mean the group exist anyway, you just have to use it for OpenGL render ?
I can understand it may sound a bit hacky, but a proper solution can still be used for 2.8.