-
Notifications
You must be signed in to change notification settings - Fork 64
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
auto rotation in globejs() #86
Comments
Someone once tried to add this but I never heard back about it. As you point out, it looks like it might be as easy as surfacing the OrbitControls.js autoRotate up to the R function...I'll try to do that and let you know. |
I am interested in this as well. Has there been any progress on this? |
Sorry about the long latency. Despite an imminent new version this is still not in there. The globe.js low-level code does not use THREE.StateOrbitControls suggested by @EmilHvitfeldt at all unfortunately. That could would need to be re-written to use that, or alternatively an auto rotation added to the bespoke scheme in use now. (The use.orbitcontrols=TRUE option is only avilable, experimentally, in scatterplot3js and graphjs). |
Yeah, looking at this it would be easier to leave the JS more or less as is and add a new option for constant rotation. It would be something like an animate() function callback that updates the rotation just like the el.onmousemove function does, but then periodically calls render() after some small timeout. Anybody feel like implementing this? |
would love this feature as well. |
Just stumbled across this package and it is fantastic!
The
globejs()
function is amazing, but I would like to know if it is able to activate auto rotation? I found the following linerthreejs/inst/htmlwidgets/lib/threejs-85/StateOrbitControls.js
Line 70 in 84e42da
but I don't see a way to access the variables from
globejs()
.The text was updated successfully, but these errors were encountered: