You are not logged in.

#1 2021-02-17 16:32:32

olivierguillon
Member
Registered: 2019-03-11
Posts: 6

[Solved] black canvas output when using threejs viewer in sagemath

Hello,
I'm experiencing a display bug when trying to plot 3d objects with sagemath (version 9.2-10).
For example, in the jupyter notebook, when typing the following commands:

var('x y z')

and then

implicit_plot3d((x^2+y^2+z^2+3)^2-16*(x^2+y^2), (x, -5, 5), (y, -5, 5), (z, -5, 5), viewer="threejs")

all I get is a black rectangle, with no error shown. The same error occurs from the console.
When trying to see what's going on in the browser, I get the following error message:

Uncaught TypeError: THREE.Geometry is not a constructor
    <anonymous> about:srcdoc:83

The jmol and tachyon viewers are not affected, just the threejs one.
It seems threejs-sage is not working on my system but I don't know for sure.

I'm using ArchLinux on a Dell XPS 9560 laptop.

Last edited by olivierguillon (2021-02-20 01:20:58)

Offline

#2 2021-02-19 12:17:25

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [Solved] black canvas output when using threejs viewer in sagemath


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-02-19 14:00:00

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,097

Re: [Solved] black canvas output when using threejs viewer in sagemath

Please report to bugs.archlinux.org

Offline

#4 2021-02-20 01:31:44

olivierguillon
Member
Registered: 2019-03-11
Posts: 6

Re: [Solved] black canvas output when using threejs viewer in sagemath

Problem solved with the latest version of threejs-sage (1:r124-1) in the community repo.

Thanks a lot for the quick response !

Offline

Board footer

Powered by FluxBB