help > Problems with 3D overlay/render
Showing 1-11 of 11 posts
Display:
Results per page:
Nov 1, 2019  01:11 PM | rtransform - Medical University of Vienna
Problems with 3D overlay/render
Hello everyone,

I have just recently started working wit MRIcroGL, so please excuse any obvious mistakes on my side.

I tried doing an overlay of PET images and structural data, first manually and after not being successful by using the following script from
https://www.nitrc.org/plugins/mwiki/inde...

import gl
gl.resetdefaults()
gl.loadimage('spm152')
#open overlay: show positive regions
gl.overlayload('spmMotor')
gl.minmax(1, 2, 4)
gl.opacity(1,50)
gl.colorname (1,"6warm")
#open overlay: show negative regions
gl.overlayload('spmMotor')
gl.minmax(2, -2, -4)
gl.colorname (2,"5winter")
gl.cutout(0.0, 0.50, 0.5, 0.75, 1.0, 1.0)
gl.shadername("overlaySurface")

In the multi- and single-planar images I can see the overlay, but not in the rendered/3D image '(see file attached).
I am running MRIcroGL 1.2.20190902++ on Windows 10 Home, .
Do you have any suggestions on how to deal with this problem?

Thank you very much!
Kind Regards,
Peter
Attachment: Overlay3D.png
Nov 1, 2019  01:11 PM | Chris Rorden
RE: Problems with 3D overlay/render
The issue is that the "overlayOpacity" slider to the far left (zero), so the overlay is completely transparent. If you pull this to the default position you will see your overlay. I am not sure why all your sliders in your Render panel are set to the extreme left.  I just downloaded MRIcroGL from NITRC and ran it from Windows 10 and all worked fine. Adjusting these sliders allows you to interactively tune the rendering.
Dec 10, 2019  08:12 PM | Rie Asano
RE: Problems with 3D overlay/render
Hi,

I have the same problem regarding 3D render view with windows 10.
In my case, too, everything is set on the extremely left position when I load my overlay image.
As you suggested, I adjusted the opacity and overlay setting, which enabled me to see the overlay, but some problem remains.
For example, I played a bit around and found out that my setting option "brighten" and "surface color" does not work.
I also cannot use the option "standard", "glass", "occlusion" and "slow".
When I click "Slow", I get the error "GLSL error ERROR: 0:53: 'assign': l-value required".
In other cases, the image just doesn't appear.
Maybe, those problems relate to each other?
Please let me know if you need screen shot.

Thanks!

B,

Rie
Dec 15, 2019  09:12 PM | Chris Rorden
RE: Problems with 3D overlay/render
Hello, 
  This is hard for me to troubleshoot, since I can not replicate this. Can you try two things:
   1. Does this beta release show the same issue.
   2. Does changing your systems Decimal separator from "," to "." fix this, e.g. "3,14159" vs "3.14159"?
Dec 16, 2019  09:12 AM | Rie Asano
RE: Problems with 3D overlay/render
Hi Chris,

thanks for your help!

1. Does this beta release show the same issue. -> Yes

2. Does changing your systems Decimal separator from "," to "." fix this, e.g. "3,14159" vs "3.14159"? -> Yes!!!

So, after changing my system's Decimal separator from "," to ".", almost all problems I reported disappeared! Thanks!

One problem remains though: If I click "slow", I still get the error message "GLSL error ERROR: 0:53: 'assign': l-value required".
(As all other things work well now, this small issue isn't important for me, but I just wanted to let you know.)

Thanks again!

Best,

Rie
Dec 20, 2019  01:12 PM | Chris Rorden
RE: Problems with 3D overlay/render
Can you tell me if this pre-release
  https://github.com/rordenlab/MRIcroGL12/releases/tag/v1.2.20191219
fixes your issues?
Dec 20, 2019  04:12 PM | Rie Asano
RE: Problems with 3D overlay/render
Hi Chris,

thanks for your updates!
I tried the pre-release version and found out that:

1) "Slow" does not work yet. I don't get any more error message, but the picture doesn't appear. So, the workspace turns black.
2) "Slow2" does work.
3) That is, everything works except "Slow".

Have a nice Christmas days and thanks again for your help!

Best,

Rie
Dec 21, 2019  05:12 PM | rtransform - Medical University of Vienna
RE: Problems with 3D overlay/render
Dear Chris,

Thank you for your help and my sincere apologies for the very late answer. Somehow I completely missed out on the progress in this thread.

Considering the previously installed MRIcroGL version:

Even when adjusting the sliders, I could not see the overlay in "overlaySurface" mode, when I changed the brighten slider the brain even disappeared.
For "edges" I managed to make brain and overlay visible, yet when adjusting the brightness slider the brain disappeared again.

BUT changing the decimal and comma seperators did indeed take care of that problem and the sliders were also not initialized as zero.

So again, thank you very much for your help!
I will check out the pre-release within the next days.

Happy holidays!

Kind regards,
Peter
Dec 24, 2019  12:12 PM | rtransform - Medical University of Vienna
RE: Problems with 3D overlay/render
Dear Chris,
I just tried the pre-release on another computer (where I did not change the decimal separator settings).
Unfortunatelly, the aforementioned problems still remain.

Kind regards,
Peter
Dec 24, 2019  01:12 PM | Chris Rorden
RE: Problems with 3D overlay/render
Can you try this release - I had updated the decimal separator on the MacOS version but not for Windows.
Jan 4, 2020  04:01 PM | rtransform - Medical University of Vienna
RE: Problems with 3D overlay/render
Works like a charm. Thanks for your help and the great support!