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:
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?
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>
I don’t know about display materials and drawing via conduit. Probably more something for @stevebaer