-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
FIX: Brain lights #8972
FIX: Brain lights #8972
Conversation
Perhaps a separate bug, it looks like the lighting is asymmetric:
Are the lights set up to illuminate equivalently the left and right? Are they attached to the camera, or to the world? |
I think we use the mne-python/mne/viz/_brain/_brain.py Lines 528 to 529 in 2c485d5
mne-python/mne/viz/backends/_pyvista.py Lines 265 to 270 in 2c485d5
|
And according to VTK doc:
Reference: https://vtk.org/doc/nightly/html/classvtkLight.html#a1e0175706ef066ca837726425bdcc6d7 |
Okay here it was on your commit: And here it is on mine that I just pushed -- the lighting is uniform left/right which I think is important (otherwise you end up with the asymmetry I mention above): Okay for you @GuillaumeFavelier ? |
Yes, all good 👌 |
Thanks @GuillaumeFavelier ! |
* upstream/main: MAINT: Skip matplotlib pre for now (mne-tools#8973) FIX: Brain lights (mne-tools#8972) MNT: Migrate VTK Widgets (mne-tools#8862) Fix (mne-tools#8971) Fix indexing dipoles read from a bdip file (mne-tools#8963)
* upstream/main: MAINT: Skip matplotlib pre for now (mne-tools#8973) FIX: Brain lights (mne-tools#8972) MNT: Migrate VTK Widgets (mne-tools#8862) Fix (mne-tools#8971)
* upstream/main: MAINT: Skip matplotlib pre for now (mne-tools#8973) FIX: Brain lights (mne-tools#8972) MNT: Migrate VTK Widgets (mne-tools#8862) Fix (mne-tools#8971) Fix indexing dipoles read from a bdip file (mne-tools#8963)
This PR fixes the 3 light system:
The patch is just shared to all renderers. Such a function is already implemented on pyvista master so the function
update_lighting()
will be replaced byenable_3_lights()
in the future.