13 ms·
Nice! But it'd be nicer with earth's rotational axis staying in the same place. In app.js, switching from THREE.TrackballControls to THREE.OrbitControls will
by BenoitP 8y ago
Nice!
But it'd be nicer with earth's rotational axis staying in the same place.
In app.js, switching from THREE.TrackballControls to THREE.OrbitControls will make it behave like this:
https://threejs.org/examples/misc_controls_orbit.html https://threejs.org/examples/misc_controls_orbit.html
- callumprentice 8y agoYou're right and I often go back and forth on both controls when making experiments like this. I like the freedom to explore the scene with TrackballControls but I think you're right and the OrbitControls makes it easier to use. Thank you.
- lakechfoma 8y agoI had fun using this with an actual trackball. The physical to digital match is satisfying.
- TOGoS 8y agoI'm the opposite of OP. I hate it when people choose an arbitrary axis. Let me rotate the ball however I want.
- BenoitP 8y agoAh! I didn't get the opportunity to look up you other projects from http://callumprentice.github.io/ http://callumprentice.github.io/ before commenting. These are quite impressive. How much work did this one http://callumprentice.github.io/apps/country_selector/index.html http://callumprentice.github.io/apps/country_selector/index.... take? How would you rate the difficulty of doing something similar with: * clicking areas brings a popover for more info * from PostGIS latlong polygons for, say, France's regions (and maybe hierarchical subdivisions) * replacing polygons by ones with finer details as a region is being zoomed on * coloring the regions according to a choosable statistic
- callumprentice 8y agoThanks. * Clicking areas is straightforward. * Not familiar with the data set you mention but so long as it's mostly documented it should be okay. * I've never tackled the idea of a hierarchal map even with vectors so I don't know - with the right data, the bit I'm most concern about is the transition from one data set to the next. * Coloring regions is straightforward I don't have spare time to do it but am happy to help if you get stuck.
- BenoitP 8y agoThanks a lot for this reply! > the bit I'm most concern about is the transition from one data set to the next. Yep. I have dabbled a tiny amount with three.js; my understanding is that there would be at least some kind of lag, as a new geometry is inserted into the pipeline. I don't know about trying to transition a mesh into another one. > I don't have spare time to do it but am happy to help if you get stuck. Damn, I was not expecting that you would even ponder doing it. You seem like such a nice person. The context of my asking is a for professional project where some visualization could help in selling it. Customers love the shiny. If I go on doing it, I'll let you know!
- callumprentice 8y agoSure thing - always happy to help where I can.
- phyzome 8y agoIs there a way to turn down/off the momentum? I can't get it positioned properly, since it keeps spinning for a while after I let go.
- callumprentice 8y agoI didn't add that but it could be an option in the URL perhaps if it was bothersome.
- callumprentice 8y agoI made the change and pushed it out - much better I think. Thank you.