-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
annot.outline as a background #28
Comments
Hi Andrew, thanks for the report and the great reproducible example. I can confirm that this seems to be a bug and I am looking into it. On the question regarding semi-transparent overlays: I also thought of that and it would be great to have that. I can't remember right now what exactly was the issue with that, but last time I started working on it it turned out to be a major pain, but I think it can be done. I think that rgl does not accept an alpha channel in colors at all, all you can do is set the transparency of the material. But I could implement the layer merging in a way that would still allow layers with alpha values, only in the end there would need to be a fixed (non-alpha) background color onto which all layers must be merged, resulting in a final non-alpha color passed to rgl. btw: I am working on something that should speed up the mesh neighborhood computation required to compute the outlines, it's too slow atm. |
Amazing, thanks!
From my position of near total ignorance about the inner workings of rgl... that would certainly seem to fit OK for the vis functions that have a
Great, it is a bit slow! For this purpose (common space = fsaverage) I have pre-computed it once and saved to the project directory. Thanks for providing this package to all - it's really useful! |
See also bug #14, I think this is related. |
I am trying to combine annot.outline (as a background) with a glm result as an overlay (specifically a cluster-masked sig).
annot.outline
looks great on its own, but when used as a background invis.symmetric.data.on.subject
the outlines appear monochrome black. I don't hate this, but it would be good to have the colour.Apologies if I've misread/misunderstood the docs or missed a known bug that explains this.
Bonus Question: is there a way to make the overlays in
vis[.symmetric].data.on.subject
semi-transparent? E.g. an alpha argument akin to desaturate? I guess this is not that easy with rgl, but I didn't see it in the faqs.Thanks in advance,
Andrew
The expected background:
The result I get with
vis.symmetric.data.on.subject
Environment:
Windows 10
R 4.0.3
fslbrain 0.5.0 (from github)
Script
The text was updated successfully, but these errors were encountered: