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

auto rotation in globejs() #86

Open
EmilHvitfeldt opened this issue Mar 21, 2019 · 5 comments
Open

auto rotation in globejs() #86

EmilHvitfeldt opened this issue Mar 21, 2019 · 5 comments

Comments

@EmilHvitfeldt
Copy link

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 line

but I don't see a way to access the variables from globejs().

@bwlewis
Copy link
Owner

bwlewis commented Mar 23, 2019

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.

@gryslik
Copy link

gryslik commented Jul 26, 2019

I am interested in this as well. Has there been any progress on this?

@bwlewis
Copy link
Owner

bwlewis commented Jan 20, 2020

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

@bwlewis
Copy link
Owner

bwlewis commented Jan 20, 2020

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?

@aw236
Copy link

aw236 commented Dec 11, 2021

would love this feature as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants