5
$\begingroup$

Antialiasing has never worked with 3D graphics in Mathematica on my linux machine. The solutions listed in the related topic don't work in my case. System specs: Mathematica 10.0.2.0, Xubuntu 15.10, Nvidia GeForce GT 730.

I went looking in the /usr/local/bin/mathematica executable script to see if there are some variables that control antialiasing.

I found this particular bit of code:

# Check for GL and GLU version
GLTest="env LD_LIBRARY_PATH=${M_LIBRARY_PATH} SHLIB_PATH=${M_LIBRARY_PATH} LIBPATH=${M_LIBRARY_PATH} ${TopDirectory}/SystemFiles/FrontEnd/Binaries/${SystemID}/gltest"
echo "$GLTest"
GLTestResult=`${GLTest} 1 1 1 2 ${userDisplay}  2> /dev/null | grep "GLTest_OK"`

In my case, the GLTest command translates to

env LD_LIBRARY_PATH=/usr/local/Wolfram/Mathematica/10.0/SystemFiles/Libraries/Linux-x86-64 SHLIB_PATH=/usr/local/Wolfram/Mathematica/10.0/SystemFiles/Libraries/Linux-x86-64 LIBPATH=/usr/local/Wolfram/Mathematica/10.0/SystemFiles/Libraries/Linux-x86-64 /usr/local/Wolfram/Mathematica/10.0/SystemFiles/FrontEnd/Binaries/Linux-x86-64/gltest 1 1 1 2

and the output is GLTest_Fail.

Why does the test fail and should I be bothered by it?

$\endgroup$
1
  • $\begingroup$ Trying gltest --help yields gltest minGLMajor minGLMinor minGLUMajor minGLUMinor {-display DISPLAY_NAME}. Not very informative. $\endgroup$ Commented Nov 19, 2015 at 12:13

2 Answers 2

2
$\begingroup$

This bug has been fixed as of Mathematica 10.4.0 (gltest is no longer being used).

$\endgroup$
1
$\begingroup$

Compile this program:

#include <stdio.h>

int main()
{
    printf("GLTest_OK\n");
    return 0;
}

And replace gltest with the compiled program.

It works for me.

$\endgroup$
1
  • $\begingroup$ In a pinch, echo -e '#!/bin/bash\necho "GLTest_OK"' > gltest; chmod a+x gltest will also do. $\endgroup$
    – user484
    Commented Feb 8, 2016 at 17:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.