primus icon indicating copy to clipboard operation
primus copied to clipboard

Mathematica 3D graphics not displaying

Open tririver opened this issue 11 years ago • 7 comments

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.

tririver avatar Feb 01 '14 13:02 tririver

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).

amonakov avatar Feb 01 '14 20:02 amonakov

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.

vlad17 avatar Feb 01 '14 20:02 vlad17

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.

davincix avatar Jun 23 '14 05:06 davincix

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.

clouds56 avatar Jul 08 '14 02:07 clouds56

Confirming that davincix's solution worked.

Thanks!

vlad17 avatar Jul 20 '14 20:07 vlad17

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

Cybernetic1 avatar Dec 07 '14 08:12 Cybernetic1

Thanks the solution worked :)

summukhe avatar Jan 06 '15 05:01 summukhe