Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Multiple rgl objects in one html page #494

Closed
cpsievert opened this Issue · 5 comments

2 participants

@cpsievert

The new hook_webgl() feature is great and allows us to embed rgl objects in an html page. Currently, the functionality breaks down when trying to embed more than one rgl object. This is a known issue, but @yihui requested the issue be reported on github. I've provided a minimal example here along with the Rmd source.

@yihui
Owner

Thanks! I'll look at this. I feel there might be problems with rgl::writeWebGL().

@yihui yihui closed this in 29b3d66
@cpsievert

Awesome, thanks!! I plan on using it for future vignettes :)

@cpsievert

Hi @yihui. I'm not quite sure this is a knitr issue, but the interactivity is not seamless. That is, when you click and drag an rgl object...then click and drag again, the object restores to it's original state. You can see this for yourself on the dropbox link. This wasn't a problem with a single rgl object.

@yihui
Owner

Okay, I noticed that in the 3D scatterplot, but not in the spheres. This looks weird. I also tried three plots in the same page, and I found the last plot was always normal. I do not know what is going there.

Perhaps you can cook up a minimal example based on rgl::writeWebGL(), and send it to Duncan (@dmurdoch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.