help > Adjusting transparency of surface image
Showing 1-2 of 2 posts
Display:
Results per page:
Apr 18, 2019  08:04 AM | Frank Garcea
Adjusting transparency of surface image
Hello -- Is there a way to adjust the transparency of a surface brain? I have .node and .edge files that include cortical and subcortical regions in MNI space but I'm having a difficult time showing the edge effects on mni152_2009 brain without a way to make that brain transparent. Adjusting the depth and azimuth/elevation knobs helps but it would be nice to keep the brain "as is" and then adjust the transparency of the surface to show whole-brain edge effects. 

Thanks for your help,
FG
Apr 18, 2019  08:04 AM | Chris Rorden
RE: Adjusting transparency of surface image
I assume you are using v1.0.20190220, if not you may want to upgrade:
  https://github.com/neurolabusc/surf-ice/releases
If you are using the graphical interface, you will want to adjust the "XRay" sliders to change the transparency of the background image and the bleed-through of the nodes. If you are scripting, you can do the same thing with the "shaderxray" function. The attached image is generated with this script:


begin
resetdefaults();
meshload('mni152_2009.mz3');
edgeload('LPBA40.edge');
clipazimuthelevation(0.3, 0, 130);
nodesize(6, true);
edgesize(3,true);
nodehemisphere(-1);
azimuthelevation(250, 35);
edgecolor('actc',true);
nodecolor('blue',true);
nodethresh(1.0,1.0);
edgethresh(0.5,1.0);
shaderxray(0.5, 0.5);
end.
Attachment: translucent.jpg