Hi,
I have used a looooot of DisplayConduit in the past, but I just realized that with Rhino 8, if i try to display Breps and Meshes I am getting completely weird results, so I wonder if I am missing some additional settings needed in Rhino 8?
I created the simplest example:
TestConduit.zip (180.8 KB)
(in the example Rhinocommon is not updated…later I updated it to 8.17 - same result)
The user can select a brep and then the Conduit will try to call e.Display.DrawBrepShaded.
I expanded the example by meshing the brep as you can see, but I get the exact same result..something that looks like this:
With faces somehow inverted and transparent. These are the simples objects so it should work “out of the box”, but I tried to tidy up the meshes, Compute normals, etc…still the same result.
I also tried setting up a proper Display Material, like
new DisplayMaterial
{
Diffuse = System.Drawing.Color.Blue, // Base color
Specular = System.Drawing.Color.Red, // Highlights
Shine = 100, // Shininess (0-255)
Transparency = 0.0, // Fully opaque
IsTwoSided = true // Render both sides (optional)
};
I still got the same result…I tried tweeking the material but the display remained the same.
What am I missing?
Thanks
Milos