mandymejia / ciftiTools

ciftiTools R package
46 stars 8 forks source link

view_cifti_surface material #55

Closed Bramdiamond closed 1 year ago

Bramdiamond commented 1 year ago

How can I change the lighting while using view_cifti_surface()?

Per the documentation, I've tried the following: view_cifti_surface(dice_summary_xii, zlim = c(0, 1), title = "Dice Summary", material = list(lit=FALSE, smooth=FALSE))

damondpham commented 1 year ago

Hi @Bramdiamond I think that should work actually! Are you using the newest version? You could send me dice_summary_xii via Google Drive as an .rds file for me to take a more exact look.

Bramdiamond commented 1 year ago

Thanks for taking a look, @damondpham !

I'm using ciftiTools version 0.12.2

Here is the RDS file.

damondpham commented 1 year ago

@Bramdiamond could you add damondpham@gmail.com to the permissions? Or make that file public :)

damondpham commented 1 year ago

Hi @Bramdiamond it seems to be working for me:

view_cifti_surface(dice_summary_xii, zlim = c(0, 1), title = "Dice Summary (regular lighting)") view_cifti_surface(dice_summary_xii, zlim = c(0, 1), title = "Dice Summary", material = list(lit=FALSE, smooth=FALSE))

Screen Shot 2023-08-18 at 1 49 25 PM

Is this what you see? If not, try double-checking the material argument in your script? And the package version: if you do ?view_cifti_surface in the same script you're working in you should see the material argument in the documentation. That's all I can think of...

Bramdiamond commented 1 year ago

Strange! It appears to be working for me now, too. Thanks!