Interesting... I especially like the animated gifs. I will play around with 
it later today. 

Seems like a decent bit of refactoring of the three.js viewer, though, to 
rip out the javascript that would be shared by these new nodejs scripts and 
the regular HTML pages.

On Monday, December 7, 2020 at 10:34:15 AM UTC-8 Matthias Koeppe wrote:

> This here seems useful: https://github.com/akira-cn/node-canvas-webgl
>
> On Monday, December 7, 2020 at 10:11:03 AM UTC-8 Matthias Koeppe wrote:
>
>> On Monday, December 7, 2020 at 1:57:22 AM UTC-8 Eric Gourgoulhon wrote:
>>
>>> Le lundi 7 décembre 2020 à 10:26:46 UTC+1, François Bissey a écrit :
>>>
>>>> > On 7/12/2020, at 10:25 PM, Antonio Rojas <nqn...@gmail.com> wrote: 
>>>> > Is there any reason for not making jsmol optional too? Isn't three.js 
>>>> the default renderer these days? 
>>>>
>>>> three.js still cannot be used to build the doc as far as understand.
>>>
>>>
>>> Indeed, this is currently the major drawback of Sage's three.js viewer: 
>>> it cannot generate png images in an automatized way (in interactive mode, 
>>> there is no problem: it suffices to click on "Save as PNG" in the three.js 
>>> menu).  As a consequence, all the 3D plots shown at 
>>> https://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/plot3d.html
>>>  
>>> are generated with jsmol. [...]
>>>
>>
>> Would it be possible to run three.js (and/or jsmol) in node.js for this 
>> (i.e., outside of the browser)? We already have nodejs and nodeenv packages 
>> in Sage (for JupyterLab).
>>
>>
>>
>>
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/beb70309-bc4e-462b-9471-86749bed02a1n%40googlegroups.com.

Reply via email to