rthreejs
rthreejs copied to clipboard
globejs() zoom issue
When I try to run the demo runApp(system.file("examples/globe", package="threejs"))
or any other globejs()
visualization it works fine unless I try to zoom it. Zooming in or out makes the visualization totally black. What could the issue be?
Running the other non-globe related visualizations work fine.
> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] threejs_0.3.1 igraph_1.1.2
loaded via a namespace (and not attached):
[1] Rcpp_0.12.13 digest_0.6.12 withr_2.1.0 mime_0.5 R6_2.2.2 jsonlite_1.5 xtable_1.8-2 git2r_0.19.0
[9] magrittr_1.5 httr_1.3.1 curl_3.0 devtools_1.13.4 tools_3.4.1 htmlwidgets_0.9 shiny_1.0.5 crosstalk_1.0.0
[17] yaml_2.1.14 httpuv_1.3.5 compiler_3.4.1 pkgconfig_2.0.1 base64enc_0.1-3 memoise_1.1.0 htmltools_0.3.6
I have the same problem.
Same for me on both Windows (R 3.4.2, x86_64-w64-mingw32/x64 (64-bit), Windows >= 8 x64 (build 9200)) and Linux (R 3.4.2, x86_64-pc-linux-gnu (64-bit), Ubuntu 16.04.3 LTS).
Any ideas on a fix?
Sorry for the latency...investigating this now. I can reproduce it in at least chrome and Firefox...
The issue is this change in threejs that I didn't realize: https://github.com/mrdoob/three.js/pull/10375/files, working on a fix.
there is a partial fix up on GitHub now, but it's not 100% yet. Help appreciated...
I have this error still as of today with 3.1. However installing 3.2 seems to fix the zooming issue as you said
library(devtools)
install_github("bwlewis/rthreejs")
there is a partial fix up on GitHub now, but it's not 100% yet. Help appreciated...
Hiya! Commit 78289425a171f254bd1156a93e226d2f4db4dd5e in this pull request should fix the perspective skewing on resize. 👍