Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8550

See picture through surface material

$
0
0

@hugh_groves wrote:

I’m creating some surfaces in a grasshopper preview that are somewhat transparent.

Rhino.Display.DisplayMaterial dm = new Rhino.Display.DisplayMaterial(color, transparency);
args.Display.DrawBrepShaded(brep, dm);

For looking through the surface and seeing CAD objects this is fine. However, one of my users wants to see a background picture that he has inserted, and no matter the transparency value of view mode this is always blocked by my preview brep.

However, if in Rhino I create a surface then apply a glass material to it and set Rhino to render mode I can see the picture through the surface. How do I create my own ‘glass’ materials for previewing purposes?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8550

Trending Articles