Skip to content

Conversation

@larsoner
Copy link
Member

Allows plotting the MEG sensors in addition to the helmet, and also should fix the rendering bugs you were seeing during the sprint @wmvanvliet by introducing a 1mm offset between the MEGIN sensor geometries which otherwise are perfectly coincident (which is bad news when using translucent geometry, at least when using depth peeling which is otherwise generally a good idea):

mne coreg -s sample --subjects-dir=~/mne_data/MNE-sample-data/subjects -f ~/mne_data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif

image

As an aside @wmvanvliet I noticed something when debugging the rendering issue -- if you want your rendering to be (closer to) as smooth as MNE-C you can disable depth peeling and it's much faster. But it has the side effect of messing up translucent geometry.

@larsoner
Copy link
Member Author

@jasmainak could you look? I think you requested this in #11276

@larsoner larsoner requested review from jasmainak and removed request for agramfort and dengemann October 10, 2023 16:51
@larsoner larsoner added this to the 1.6 milestone Oct 10, 2023
@drammock
Copy link
Member

I'm seeing the sensors disappear / replaced by a greyish square when I zoom in. Is that expected?

coreg.webm

Copy link
Member

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one typo

@larsoner
Copy link
Member Author

Hmm... could be the depth peeling failing or the view frustum doing something odd. But more likely it's "just" a rendering bug of some sort for your GPU and/or version of VTK, on macOS I don't see it:

Screenshot 2023-10-11 at 4 15 28 PM

I'll commit the typo fix and mark for merge when green!

Co-authored-by: Daniel McCloy <dan@mccloy.info>
@larsoner larsoner merged commit c7c8a29 into mne-tools:main Oct 11, 2023
@larsoner larsoner deleted the geom branch October 11, 2023 20:18
snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants