# 3d graphics not displayed

I am new to Sage. I use SageMath 8.6 on Windows 10. 2D plotting works, but not 3d. For example this produced no graphics but just the: πΆππππππππΉππΎπππππ

sage: x, y = var('x,y')
sage: g = plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
sage: show(g)
πΆππππππππΉππΎπππππ


I use Chrome.

With the suggested option:

sage: show(g,figsize=8, viewer="threejs", frame=False,axes=True)


it works now!

It works also with:

sage: show(g,figsize=8, viewer="threejs", axes=True)


And with:

sage: show(g,figsize=8, viewer="threejs")


It looks like viewer option should be there for 3D to work on windows 10 with Chrome.

SageMath is great! With Python it is much more friendlier than Mathematica.

edit retag close merge delete

1

Could you precise which WEB browser do you use ? because for me the code does not work in Edge but works in Chrome. Strangely, there was a time or in Edge it worked when I specified the viewer . like that:

show(g, figsize=8, viewer="threejs", frame=False,axes=True)


But not anymore !.

I Just ask a question on MS forum: question

( 2019-04-14 01:21:33 -0500 )edit

it is working now for me with the Edge browser, but I made 2 changes, and I do not know if either 1 is enough or if both are needed! modification 1: allow in the firewall "3D display" change 2: download as Windows Insider the latest version of Edge: Version 74.1.96.24 it is ok using JMOLL default or ThreeJs. look the 2 images on MS forum (click on question in above comment.

( 2019-04-14 06:28:11 -0500 )edit

What version of Java did you install ? On Linux, our version of jmol works with openjdk 8, but win't work with openjdk 9, 10 or 11... An excruciating pain in th a, only partially relieved by threejs, which has its share of problems (shading and transparency, among others).

( 2019-04-14 14:44:35 -0500 )edit

@Emmanuel Charpentier, I see that I have Oracle Java version 8

( 2019-04-14 18:20:31 -0500 )edit

same version as mine : Java 8 upgrade 191 (build 1.8.0_191-b12)

( 2019-04-15 00:53:18 -0500 )edit

Sort by Β» oldest newest most voted

The default "jmol" viewer has basically never worked on Windows: see https://github.com/sagemath/sage-wind...

In a future release we hope to make threejs the default but there are still some unresolved issues with threejs: https://trac.sagemath.org/ticket/26410

more

Sorry Iguananaut , but JMOL works now in W10 with the Windows Insider latest version of Edge: Version 74.1.96.24 . see the image (click on the link question in my comment above) .But it is true that jmol did not work with older version of Edge. with the simple command show(g), besides, I can see JSMOL colored writing displaying just before displaying the 3D plot, using simple show(g)

( 2019-04-15 08:32:10 -0500 )edit

Oops ! I mean it works in notebook !, I did not try in console, sorry

( 2019-04-15 08:48:05 -0500 )edit