Opened 11 years ago

Closed 8 years ago

#11275 closed defect (fixed)

bug in canvas3d html5 rendering of 3d plots

Reported by: William Stein Owned by: jason, was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: graphics Keywords:
Cc: Volker Braun, Punarbasu Purkayastha, Andrey Novoseltsev Merged in:
Authors: Reviewers: Jeroen Demeyer
Report Upstream: Fixed upstream, but not in a stable release. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

In the notebook, try this:

First, in an input cell put this and evaluate:

G = sphere()   #+ sphere((0,0,1),color='red')
G.show(viewer='canvas3d')
G.show(viewer='tachyon')

The above should work fine. Then remove the # comment in the first line to get

G = sphere() + sphere((0,0,1),color='red')
G.show(viewer='canvas3d')
G.show(viewer='tachyon')

Notice that the canvas3d output is wrong. What seems to happen is that if you modify a given input cell, then the canvas3d output *never* gets changed. This is very confusing.

Change History (13)

comment:1 Changed 9 years ago by Karl-Dieter Crisman

Possibly related:

var("y")
plot(vector([1,3,4]),viewer='canvas3d')

just brings up a Jmol thing, and plotting a line with this viewer brings up a black box.

comment:2 Changed 9 years ago by Jeroen Demeyer

Milestone: sage-5.11sage-5.12

comment:3 Changed 9 years ago by For batch modifications

Milestone: sage-6.1sage-6.2

comment:4 Changed 8 years ago by For batch modifications

Milestone: sage-6.2sage-6.3

comment:5 Changed 8 years ago by For batch modifications

Milestone: sage-6.3sage-6.4

comment:6 Changed 8 years ago by Karl-Dieter Crisman

I figured out what this is - it's a cache busting issue with javascript or something like that in the browser. We figured out how to deal with this with jsmol, probably something similar should work here - as simple as the usual "?+random digits" trick, perhaps. May need to happen in the notebook code, though.

comment:7 in reply to:  1 Changed 8 years ago by Karl-Dieter Crisman

Possibly related:

var("y")
plot(vector([1,3,4]),viewer='canvas3d')

just brings up a Jmol thing, and plotting a line with this viewer brings up a black box.

Unrelated, this is actually the same as #17025.

comment:8 Changed 8 years ago by Karl-Dieter Crisman

I've finally reported this "upstream" at https://github.com/sagemath/sagenb/issues/255

comment:9 Changed 8 years ago by Karl-Dieter Crisman

This has a fix upstream that needs review at https://github.com/sagemath/sagenb/pull/284 . I really can't believe this was never fixed.

comment:10 Changed 8 years ago by Karl-Dieter Crisman

Cc: Volker Braun Punarbasu Purkayastha Andrey Novoseltsev added

This is 100% ready to go, just needs a review upstream!

comment:11 Changed 8 years ago by Karl-Dieter Crisman

Milestone: sage-6.4sage-pending
Report Upstream: N/AFixed upstream, but not in a stable release.
Status: newneeds_review

This is now merged, next sagenb update will have it.

Version 0, edited 8 years ago by Karl-Dieter Crisman (next)

comment:12 Changed 8 years ago by Jeroen Demeyer

Milestone: sage-pendingsage-duplicate/invalid/wontfix
Reviewers: Jeroen Demeyer
Status: needs_reviewpositive_review

Fixed by #10057.

comment:13 Changed 8 years ago by Volker Braun

Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.