Hello, thanks for the pointer. I had a look, but cannot clearly see (looking at 3d.coffee) what is the intermediate file format used between sage and the cloud server. I would guess from the code that maybe it is .obj as given by the .obj_repr method (of indexed face sets for example). Unfortunately, the .obj_repr method is not one which has been adapted yet in #12212 to provide material and colors for each face.
Yes, it would be great if the colored 3D surfaces would work also in the cell and in the ipython notebook. Last time I tried to install the ipython notebook, I failed, so I cannot experiment with it right now. Frederic Le vendredi 22 août 2014 06:09:03 UTC+2, jason a écrit : > > On 8/21/14, 15:27, Frédéric Chapoton wrote: > > Thanks ! Do you know which file format is used by sagemath cloud to > > communicate with threejs ? Is it .obj or .x3d or json ? Where can I find > > the code ? and some documentation ? > > The relevant files for smc are the 3d.* files here: > > https://github.com/sagemath/cloud > > (at least, those were the files a while ago, and I doubt much has > changed with the 3d rendering since then.) > > My students and I rewrote that 3d renderer for the sage cell server, and > then we again rewrote a system to use the IPython widget infrastructure > (so it works in the sage cell server and the IPython notebook). If > you're interested in either of those, let me know. > > Thanks, > > Jason > > > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.