Even with all this I'm not sure if it will work, but it sure seems worth a shot. There's no inherent reason why WebGL shouldn't work with Shiny, so I'm sure that if nothing else some tweaking to rgl would make it possible. If you figure out how to get it going it would be amazing to have a reactiveWebGL function that wraps up the call to writeWebGL for you--we can help you with that if you need.
template.html:
%WebGL%
<script>setTimeout(function() { webGLStart(); }, 100);</script>
--
--
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi, this is something we had looked at installing on Glimmer in the past, but we decided against it for security and resource reasons. However, after a more recent look, it seems that these might not be a problem after all, so we've installed the required packages there. You should now be able to install rgl on Glimmer.
Warning in rgl.init(initValue) : RGL: unable to open X11 display Warning in fun(libname, pkgname) : error in rgl_init
I was able to get something working on a private Shiny Server instance (as RGL has some dependencies which aren't available on Glimmer). You can take a look here:
https://www.trestletechnology.net/2013/01/visualize-color-palettes-in-interactive-3d-grid-shiny-rgl/
The source is available on Github if you want to play around with it: https://github.com/trestletech/shiny-sandbox/tree/master/rgl
Stéphane Laurent pointed me to this thread. I haven't tried out your code, but if you have suggested additions to rgl that would make it easier, let me know.
By the way, Stéphane also found someone who tracked down a bug in the way rgl's writeWebGL was interacting with the ANGLE WebGL engine that's used in Chrome and recent verisons of Firefox. I uploaded a fixed version to CRAN this afternoon.