No detectors/sensors on 3D brain visualization

Dear all,
Similarly to the issue described here, I received black screen instead of 3D visualization.
After some googling I found a post, where it was suggested to use os.environ["MNE_3D_OPTION_ANTIALIAS"] = "false". This command allowed me to generate a 3D brain visualization with channels, however, the visualization contains only channels(grey lines - edges), without sources and detectors (color dots, vertices), as you can see on the attached picture. Sometimes they show up, sometimes they disappear, I need them to be shown correctly.

Could you suggest some solution for it?
Thanks in advance,
Best regards,
Michał

  • MNE version: 1.3.0
  • operating system: Windows 11
  • python: 3.11.5

ping @rob-luke and @larsoner any idea why the source/detector spheres would not show (or flicker in and out) while the channel pipes are displayed correctly?

I think the sensor spheres are 3D meshes just like the brain itself so it’s weird that they’re not shown. I’m a bit stumped on that one. You could play around with the backface_culling in mne/viz/_3d.py to see if changing it to False helps, e.g. here:

Thank you for your respons! I tried to the solution, unfortunately, it does not change the sensor behaviour.
I noticed that sometimes they show up, when I have several visualizations generated, however, it’s not consistent, they may appear and disappear quite randomly.


Moreover, it can be seen, that there are some visual artifacts:
image