help > Surface Rendering
Showing 1-4 of 4 posts
Display:
Results per page:
Apr 26, 2023  07:04 PM | johezz
Surface Rendering
Hi there!

Thank you for managing this forum. 

I am wondering what template I should load to get a surface map like the one attached in the screenshot. This is the image displayed in my finder before I load the mni152_2009.curv file into Surfice. The goal is to get a surface rendering just like the screenshot. 

I would appreciate any help. Thank you!
Apr 27, 2023  12:04 PM | Chris Rorden
RE: Surface Rendering
If you choose Scripting/Templates/fmri_mesh menu item you get something that is close. You would want to use the 'Toon' cel shader and set the mesh color to green. With these changes the script becomes:

import gl
gl.resetdefaults()
gl.meshload('BrainMesh_ICBM152.rh.mz3')
gl.overlayload('motor_4t95mesh.rh.mz3')
gl.overlaycolorname(1, 'red')
gl.shaderxray(1.0, 0.3)
gl.azimuthelevation(110, 15)
gl.meshcurv()
gl.meshcolor(128,192,128)
gl.shadername('Toon')
Attachment: toon2.png
May 1, 2023  06:05 PM | johezz
RE: Surface Rendering
Great, thanks Chris!

Is there any way to extent this mesh to the full brain? Currently, I only see the right side and a midsection view from the left (attached). Is it possible to see both the right side, midsection and also the left side (e.g. left temporal pole) as well?
May 1, 2023  06:05 PM | Chris Rorden
RE: Surface Rendering
Use scripting/templates/help to see the available commands. You can load both hemispheres like this:

import gl
gl.resetdefaults()
gl.meshloadbilateral('BrainMesh_ICBM152.rh.mz3')
gl.overlayload('motor_4t95mesh.rh.mz3')
gl.overlaycolorname(1, 'red')
gl.shaderxray(1.0, 0.3)
gl.azimuthelevation(110, 15)
gl.meshcurv()