Ask Your Question
1

viewer 3D problem

asked 6 years ago

danielvolinski gravatar image

I'm using SageMath 8.1 on Windows 10 Native with Jupyter Notebook.

The only 3D viewer that works is tachyon.

Both threejs and jmol leave an empty space without plot but no error is issued, all this for the same 3D plot tachyon was able to plot.

Preview: (hide)

Comments

FWIW this is basically a duplicate of https://ask.sagemath.org/question/406...

Iguananaut gravatar imageIguananaut ( 6 years ago )

It is related: at that time I didn't know it is a general issue, I thought the problem was related to vector fields only.

danielvolinski gravatar imagedanielvolinski ( 6 years ago )

2 Answers

Sort by » oldest newest most voted
2

answered 6 years ago

eric_g gravatar image

updated 6 years ago

A recent fix regarding Jmol with Windows has just been merged in Sage 8.2.rc1: #25021. Maybe this will solve your issue in Sage 8.2 (to be released soon).

Regarding the threejs issue, are you using the argument online=True along with viewer='threejs'? If yes, can you try with online=False?

Preview: (hide)
link

Comments

I'm not using online=True

As per your suggestion I tried:

sage: sphere = surfaces.Sphere(center=(0, 1, -1), R=2); sphere
sage: sphere.plot(viewer='threejs', online=False)

It doesn't matter if I put online=False or online=True, I always get an empty space using threejs.

Daniel

danielvolinski gravatar imagedanielvolinski ( 6 years ago )

What about sphere.plot().show(viewer='threejs')?

slelievre gravatar imageslelievre ( 6 years ago )

@danielvolinski: given your answer, let me reverse my question: does it help to use online=True? (note: online=False is the default).

eric_g gravatar imageeric_g ( 6 years ago )

sage: sphere.plot().show(viewer='threejs') gives an empty space.

sage: sphere.plot(viewer='threejs', online=False) gives an empty space.

sage: sphere.plot(viewer='threejs', online=True) gives an empty space.

Daniel

danielvolinski gravatar imagedanielvolinski ( 6 years ago )

I created a ticket for this issue along with a fix: https://trac.sagemath.org/ticket/25129 It really should work with online=True unless of course you don't actually have an internet connection. Depending on the speed of your connection it might take a few seconds for the scripts to download--you can also try refreshing. Otherwise open your browser's developer console and see if there are any informative errors...

Iguananaut gravatar imageIguananaut ( 6 years ago )
3

answered 6 years ago

Iguananaut gravatar image

The threejs viewer should work with online=True. It does not work with online=False due to a known path issue that I just haven't fixed yet.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 6 years ago

Seen: 1,764 times

Last updated: Apr 08 '18