You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, there is at least one rendering bug (depth peeling again maybe?) where the surface overlay gets cut off at some distance based on rotation (note the rightward "v" cut of the overlay):
We might need to figure out how to properly resolve the coincident topology here -- relying on VTK to do it automagically might not work anymore. Or maybe it's something else...?
You will probably need to pip install nibabel https://github.com/mne-tools/mne-python/zipball/master first.
This is the code I was using (last I recall!), but for some reason now it hangs when I try it.
I disabled depth peeling explictly without success:
ren_win=self.plotter.ren_winren_win.SetAlphaBitPlanes(0)
renderer=self.plotter.rendererprint(renderer.GetLastRenderingUsedDepthPeeling()) # prints 0renderer.SetUseDepthPeeling(0)
vtk-build starts out empty, but the cmake line populates it. I wonder if your problems were due somehow to building in a subdirectory of the source directory, rather than a totally separate one
@larsoner I installed it and I have an issue with picking:
Traceback (most recent call last):
File "/home/guillaume/source/mne-python/mne/viz/_brain/_timeviewer.py", line 939, in on_pick
cell = mesh.faces[cell_id][1:]
IndexError: invalid index to scalar variable.
But except from that, the app is completely interactive. All the sliders and tool bar buttons work and are linked correctly.
Platform: Linux-4.19.114-1-MANJARO-x86_64-with-arch-Manjaro-Linux
Python: 3.6.10 |Anaconda, Inc.| (default, Mar 25 2020, 23:51:54) [GCC 7.3.0]
Executable: /home/guillaume/source/anaconda3/envs/pyvista-dev/bin/python
CPU: : 4 cores
Memory: Unavailable (requires "psutil" package)
mne: 0.21.dev0
numpy: 1.18.3 {blas=openblas, lapack=openblas}
scipy: 1.4.1
matplotlib: 3.2.1 {backend=Qt5Agg}
sklearn: Not found
numba: Not found
nibabel: Not found
cupy: Not found
pandas: Not found
dipy: Not found
mayavi: Not found
pyvista: 0.24.1
vtk: 9.0.0
Activity
larsoner commentedon Apr 11, 2020
FWIW, PyVista worked "out of the box" this way, while Mayavi fails to compile (which I'll look into) :)
larsoner commentedon Apr 11, 2020
Can someone else on macOS see if you can replicate https://gitlab.kitware.com/vtk/vtk/-/issues/17846 ?
GuillaumeFavelier commentedon Apr 13, 2020
Thanks for starting this @larsoner. I'll follow the procedure you explained to be better prepared for VTK 9.
Also relevant for pyvista/pyvista#562
banesullivan commentedon Apr 13, 2020
Can you share that data or how to launch that scene? I'll try to look into this and see what's happening to the overlain mesh.
larsoner commentedon Apr 13, 2020
WARNING: Will download 1.5 GB of data to
~/mne_data(unless you give it a different path to use)You will probably need to
pip install nibabel https://github.com/mne-tools/mne-python/zipball/masterfirst.This is the code I was using (last I recall!), but for some reason now it hangs when I try it.
larsoner commentedon Apr 13, 2020
(FYI I forgot a
ninja -j 4in the command list above, I've updated it now)GuillaumeFavelier commentedon Apr 15, 2020
Sorry I am late, I had to build everything from scratch and follow your instructions.
This is the result of:
python -c "import pyvista; print(pyvista.Report())"EDIT I created
vtk-buildintovtksource folder. My mistake.GuillaumeFavelier commentedon Apr 15, 2020
I can also reproduce the bug with the camera angle 👍
I also notice an issue with point picking but maybe this one is related to
_TimeViewerlarsoner commentedon Apr 15, 2020
after these three steps you should be in
vtk-build, notvtk/vtk-build. Perhaps you had an extracd vtkafter thegit cloneline?GuillaumeFavelier commentedon Apr 15, 2020
Yes but the sources are invtkand notvtk-buildright? It's just an empty folder.Exactly.
GuillaumeFavelier commentedon Apr 15, 2020
I disabled depth peeling explictly without success:
GuillaumeFavelier commentedon Apr 15, 2020
Using offset like we did with Vispy does work for me, I'll open a PR:
larsoner commentedon Apr 15, 2020
vtk-build starts out empty, but the cmake line populates it. I wonder if your problems were due somehow to building in a subdirectory of the source directory, rather than a totally separate one
larsoner commentedon Apr 15, 2020
What's interesting about the topology problem is that I don't see it on mayavi. But whatever makes it work I guess!
3 remaining items
GuillaumeFavelier commentedon Apr 23, 2020
I'm on it
GuillaumeFavelier commentedon Apr 23, 2020
@larsoner I installed it and I have an issue with picking:
But except from that, the app is completely interactive. All the sliders and tool bar buttons work and are linked correctly.
larsoner commentedon Apr 23, 2020
Hmm, must be some issue with my system. What's your
mne sys_info? I'll try your version of Qt.GuillaumeFavelier commentedon Apr 23, 2020
GuillaumeFavelier commentedon Apr 23, 2020
And I use
PyQt5 5.14.1larsoner commentedon Apr 23, 2020
Ahh right without
mayaviit will not tell you, let me updatesys_info...larsoner commentedon Apr 23, 2020
Hooray! With
pip install --upgrade --user pyqt5which gives 5.14.2 everything works fineGuillaumeFavelier commentedon Apr 23, 2020
Feel free to try #7665 then. It worked for me.
larsoner commentedon Sep 15, 2020
@GuillaumeFavelier looks like the topology problems are still there:
https://mne.tools/dev/auto_examples/inverse/plot_source_space_snr.html#sphx-glr-auto-examples-inverse-plot-source-space-snr-py
larsoner commentedon Nov 9, 2020
@GuillaumeFavelier might be good to fix this before looking into
coregGuillaumeFavelier commentedon Nov 25, 2020
For future reference, the visual issues mentioned in #7599 (comment):