-
Notifications
You must be signed in to change notification settings - Fork 156
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
Worldcoin example #170
Comments
@kamami for that I would focus on the hex bin layer. |
@vasturiano I already experimented with it and sticked to this example: https://github.com/vasturiano/react-globe.gl/blob/master/example/world-population/index.html Would you rather update the popData and increase/decrease the "pop" property of each object. Or would you update the hexAltitude to change the height of the pillars? |
It depends. If you're visualizing actual data changes with your pillar height changes, then I would keep changing the data according to your time series, and feed it into the component frame by frame. If on the other hand you just want to animate the pillars more for "visual effect", then I would simply adjust the accessor functions. You can play with either |
Ok thanks, I think I am on a good way!
|
@kamami if you're using |
@vasturiano So a transition of the hexSideColor is not possible, correct? Just trying to make sure so that I am not wasting any time on trying to find the solution. |
@kamami correct, that's not available with the built-in animation. But you can always achieve the same result by tweening your own color changes and passing new values at every frame to the component, via |
@vasturiano How could I achieve the same animation effect which they have when the globe is clicked on? Also, is there a built-in way to increase the friction when rotating the globe with the mouse/fingers? I'm kinda new with ThreeJS so some examples which could put me on the right track are very appreciated. |
@AdiMarianMutu if you want the globe to back off a little when pressed you can just use the As for a different tactile response to the rotation, perhaps you can play with the dampingFactor of the built-in orbit controls. Assuming you have a ref to your Globe component, you can access it like this: myGlobeRef.current.controls().dampingFactor = 0.1; // adjust to taste |
How can I achieve an animating globe like on the worldcoin page? https://worldcoin.org
I am in particular interested in the extruding dots. I already managed to get the dotted continents, but I am not able to make them animate and change the altitude... Any ideas?
This is my code so far:
The text was updated successfully, but these errors were encountered: