If I understand correct, you launch Rhino and you draw some kind of surface on the “Default” layer (whose layer color is black). Then you Shade one of the viewports and now the surface appears gray, not black. Is this correct?
You might be surprised, but this is by design.
In order to make Shaded mode a better working mode for users, we clamp color ranges. For example, you cannot set a layer’s color to white and have objects show up as all white.
What happens when you shade colors at upper and lower ends of the spectrum is that faces blend together, making Shaded display mode not so useful when modeling.
If you want to see exact colors, then assign a color to layer’s material and then set a viewport to Rendered.
Also, objects can get their color from the layer they reside on. Or, the object can override the layer’s color and have it’s own own color. In the SDK, this is referred to as an object’s color source.
If you are using openNURBS and want to get an object’s color, use
If you are using openNURBS and want to get an object’s render color, use
ONX_Model::GetRenderMaterial. Once you have the material, you can get the diffuse color.
Does this help?