c# - Issues with making a 3D model faces semi-transparent using HelixToolkit -


i trying display 3d model depicted below using helixtoolkit. (the following snapshot's taken solidworks.)

enter image description here

i set brush color of diffusematerial used material , backmaterial of geometrymodel3d tranparent color.

model3dgroup facevisualentity = modelfaces.first(modelface => modelface.content.getname() == facename).content model3dgroup;  // breaking 3d-model down constituting mesh.. // foreach (var child in facevisualentity.children) {     if (child geometrymodel3d)     {         geometrymodel3d body = child geometrymodel3d;         body.material = new diffusematerial(new solidcolorbrush("#40ff0000"));         body.backmaterial = new diffusematerial(new solidcolorbrush("#40ff0000"));     } } 

however, can see in helixviewport3d below.

enter image description here

while sides of box seem transparent, wonder why pipes inside box cannot seen. changed color of pipe walls opaque value, cannot see them yet.

enter image description here

the fact using transparency feature of helixtoolkit not achieved changing alpha channel of model faces material only. actually, there example in helixtoolkit code showing sortingvisual3d required support transparency model. so, first added instance of sortingvisual3d helixviewport3d , added visual3d objects, such modelvisual3d, linesvisual3d, etc., it. result, can see below.

enter image description here enter image description here


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -