Skip to content
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

Mathematica 3D graphics not displaying #131

Open
tririver opened this issue Feb 1, 2014 · 7 comments
Open

Mathematica 3D graphics not displaying #131

tririver opened this issue Feb 1, 2014 · 7 comments

Comments

@tririver
Copy link

tririver commented Feb 1, 2014

How to reproduce the problem:

primusrun mathematica

In the opened mathematica interface, run, for example,

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]

The output is white space. There is supposed to be a plot (the one in the first example of Plot3D documentation).

Note that if one drag on the figure (rotation), one can see the figure when it is rotating. But after rotation the figure disappear again (it gracefully fade away).

This problem is reproducible on primus 20131226 (archlinux), and also the git version 20140201. The tested Mathematica versions are 7.0 and 9.0.

@amonakov
Copy link
Owner

amonakov commented Feb 1, 2014

Thanks for the report. It's another incarnation of issue #3: when you rotate the figure, Mathematica draws in a GLX window, but when you release, it draws the figure in a GLX pixmap. That entails performing front-buffer rendering concluded with a glFlush. Such usage (front buffer rendering, and thus GLX pixmaps) is not supported in primus at all.

Fixing front-buffer rendering in primus is messy, especially without sacrificing performance in Wine (where glFlush can be used without front-buffer rendering, just for GL command ordering).

@vlad17
Copy link

vlad17 commented Feb 1, 2014

I am OP from the original stack exchange question. I would like to confirm this behavior here for Ubuntu 12.04 x86 (64-bit), Mathematica version 9.0.1.

@davincix
Copy link

You must adjust the Antialiasing Quality to solve that issue. Go to menue Edit -> Preferences -> Appearance -> Graphics.. then adjust it.. That worked for me. I have Ubuntu 14.04 and Mathematica V9.

@clouds56
Copy link

clouds56 commented Jul 8, 2014

That's good, davincix's solution works for me. Arch linux 3.15.3, primus 20131226 and mathematica 9.0.1. Perhaps you could repost it on stack exchange mentioned by vlad17, considering google "linux mathematica primus" links to it. Thank you.

@vlad17
Copy link

vlad17 commented Jul 20, 2014

Confirming that davincix's solution worked.

Thanks!

@Cybernetic1
Copy link

davincix's solution worked for me too! Also Ubuntu 14 + Mathematica 9

@summukhe
Copy link

summukhe commented Jan 6, 2015

Thanks the solution worked :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants