Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globejs() zoom issue #72

Open
poroale opened this issue Nov 14, 2017 · 6 comments
Open

globejs() zoom issue #72

poroale opened this issue Nov 14, 2017 · 6 comments

Comments

@poroale
Copy link

poroale commented Nov 14, 2017

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
@poroale poroale changed the title Globejs zoom issue globejs() zoom issue Nov 14, 2017
@ngfrey
Copy link

ngfrey commented Jan 12, 2018

I have the same problem.

@JoGall
Copy link

JoGall commented Jan 29, 2018

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?

@bwlewis
Copy link
Owner

bwlewis commented Jan 31, 2018

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.

bwlewis added a commit that referenced this issue Jan 31, 2018
at least the image is retained; but now the rescaled perspective is somewhat broken :(
@bwlewis
Copy link
Owner

bwlewis commented Jan 31, 2018

there is a partial fix up on GitHub now, but it's not 100% yet. Help appreciated...

bwlewis added a commit that referenced this issue Jan 31, 2018
@RobertLD
Copy link

RobertLD commented Jul 3, 2018

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")

@lauripiispanen
Copy link
Contributor

there is a partial fix up on GitHub now, but it's not 100% yet. Help appreciated...

Hiya! Commit 7828942 in this pull request should fix the perspective skewing on resize. 👍

bwlewis added a commit that referenced this issue Jan 23, 2019
fix projection issue on globe resize (re: #72)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants