How to set transparency of an AIS_Shape as a Wire

Hi,

I would like to know if someone know how modify the transparency of a shape defined as a Wire. I have already tried the method SetTransparency() of AIS_Shape and SetTransparency() of ShadingAspect but it still not working.

PS : I use my own WireAspect

Thanks in advance,

Nathan,

Gianluca Antoniacci's picture

Hello Nathan,
I'm afraid the transparency applies only to AIS_Shape modelling a TopoDS_Face as ShadingAspect is used only when rendering faces. I don't know if you can get something similar to what you need by defining your own Custom Interactive object and trying with some primitive....

Gianluca

Sathiya nathan's picture

For wires there is no way to set transparency. Possibly you can try writing a shader program and attach with that object.

gkv311 n's picture

There was a similar question for AIS_Line. Lines are not supposed to be transparent, but you may try some tricks.