7

The help file for Image3D shows two examples,

enter image description here

But when I try to execute this code on my system ("10.3.1 for Linux x86 (64-bit) (December 8, 2015)") I get the following

enter image description here

Is this a problem with my graphics card? Is there a setting to change?

Even the "Neat Example" on the help page looks awful

enter image description here

Jason B.
  • 68,381
  • 3
  • 139
  • 286
  • Looks like an anti-aliasing issue, though I'm not sure how to turn it off or on in Image3D, which does not (obviously, anyway) accept the Antialiasing option. – bill s Feb 08 '16 at 15:14
  • I get the same image on Linux (in VirtualBox) 2. This is not what it should look like and it's not what it looks like on OS X. 3. My guess is that it falls back to some approximation due to lack of driver/hardware support.
  • – Szabolcs Feb 08 '16 at 15:14
  • @bill-s I've noticed before that when I move the slider under Preferences -> Appearance -> Graphics it has no effect at all – Jason B. Feb 08 '16 at 15:16
  • I don't think this is antialiasing-related. Even within a single voxel, we should see a smooth gradient. The shading should reflect the thickness of the opaque material we are looking through. Like this. On Linux each voxel looks as if it were empty inside and only its faces ("walls") were semi-transparent. Each voxel should look as if it were a solid semi-transparent volume. – Szabolcs Feb 08 '16 at 15:19
  • 2
    I think Mathematica fails to detect graphics capabilities on Linux for some reason, lack of 3D antialiasing being another symptom. For me the solution that worked consistently (both for invoking mathematica from the command line and for starting it from a launcher) was to replace the gltest binary. I wonder if it'll fix your Image3D issues too (I haven't tried it out, but I see you also don't have anti-aliasing in your screenshots). –  Feb 08 '16 at 17:15
  • Just tested it, and yes, I get the blurry look on Linux with the gltest fix. –  Feb 08 '16 at 17:42
  • @Rahul, thanks so much! I will try installing the library tomorrow when I get back to my PC – Jason B. Feb 08 '16 at 20:00
  • @Rahul, I tried changing the gltest binary, so that now when I call ./gltest from the binaries directory it returns "GLTest_OK" . That didn't fix the problem, so then I changed the line in the /usr/loca/bin/Mathematica script to GLTestResult="GLTest_OK" as shrx suggested, and that still didn't fix it for me. I tried to sudo apt-get install libglu1-mesa but I already have those libraries installed. This isn't too big a deal, since I am not really making anything for publication with Image3D, I just noticed it wasn't working correctly. – Jason B. Feb 09 '16 at 08:10
  • FWIW I like the clean, sharp look of Image3D on Linux better than the blurry one. – shrx Feb 11 '16 at 10:38
  • @JasonB with my GLTestResult="GLTest_OK" hack, I get the blurred image regardless of "InterpolateValues" setting. Mathematica 10.3.1 on Xubuntu 15.10. – shrx Feb 11 '16 at 10:41
  • @shrx, I am confused by this, I tried the GLTest trick, I even downloaded and reinstalled the intel graphics drivers but no luck. – Jason B. Feb 11 '16 at 11:40