MATCAP rendering fails in RhinoWIP

Was there any change to display pipeline, or whatever is involved, in RhinoWIP compared with Rhino6?

For some reason matcap rendering fails run through grasshopper from a ghpython script in the WIP, it works fine with Rhino6.

For reference:

@nathanletwory, can you confirm if this is a bug?

This seems to be working just fine here:

Hi @nathanletwory,
I guess the problem is the DisplayMaterial.SetEnvironmentTexture doesn’t work as expected.

private void RunScript(Mesh x, ref object A)
   _m = x;
// <Custom additional code> 
Mesh _m;
public override void DrawViewportMeshes(IGH_PreviewArgs args)
   var mat = new DisplayMaterial();
   mat.SetEnvironmentTexture(@"D:\matcap.png", true);
   args.Display.DrawMeshShaded(_m, mat);
// <Custom additional code>

other textures work as expected: (2.4 KB)

1 Like

I don’t know about display materials and drawing via conduit. Probably more something for @stevebaer