Hi,

There's a bug in 9.3, I don't know how to use Sage trac so I'm posting here.

When I use the save option I get an html with: 

<script src="/nbextensions/threejs/build/three.min.js"></script>            
                                           

<script>                                                                    
                                           

  if ( !window.THREE ) document.write(' \                                   
                                           

<script 
src="https://cdn.jsdelivr.net/gh/sagemath/threejs-sage@122/build/three.min.js";><\/script>
 
\                    

            ');                                                             
                                           

</script>   

However from the tree.js example in the website I get: 

<script 
src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r110/build/three.min.js";></script>
 
                           

<script 
src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r110/examples/js/controls/OrbitControls.js";></script>
  
       

However, this is not quite right because it's an older version of mrdoob's 
version of three.js.

What works is: 

<script 
src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r117/build/three.min.js";></script>
 
                           

<script 
src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r117/examples/js/controls/OrbitControls.js";></script>
  
       


Now the link:

https://cdn.jsdelivr.net/gh/sagemath/threejs-sage@122/build/three.min.js

is broken, so I think that's where the error started. A quick fix would be 
for someone with access to the sage user's CDN to merge the files 
three.min.js and OrbitControls.js and upload them to 
https://cdn.jsdelivr.net/gh/sagemath/threejs-sage@122/build/three.min.js. A 
quick hack I know, but I'm not sure where it is in the source code to fix 
it and push a commit such that it's fixed in 9.4.

Best,

RJ Acuña
On Tuesday, August 11, 2020 at 11:05:47 PM UTC-5 Joshua Campbell wrote:

> Will do!
>
>
> On Tuesday, August 11, 2020 at 5:13:13 PM UTC-7, slelievre wrote:
>>
>> 2020-08-11 20:48:46 UTC, Joshua Campbell:
>> >
>> > It was implemented as part of #29194 
>> <https://trac.sagemath.org/ticket/29194> (Three.js-based Animations).
>>
>> Thanks! Could you contribute a list of exciting new things
>> in Sage graphics to the release tour for SageMath 9.2?
>>
>> - https://wiki.sagemath.org/ReleaseTours/sage-9.2
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b1ac97b2-9122-4ebc-9bd7-3877ef7ce34dn%40googlegroups.com.

Reply via email to