News for hackers. Stuff that matters.
Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by BenoitP on Tuesday June 19, 2018 @09:52AM (#17346581)
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

Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by callumprentice on Tuesday June 19, 2018 @10:08AM (#17346730)
You'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.

Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by BenoitP on Tuesday June 19, 2018 @02:14PM (#17349031)
Ah! I didn't get the opportunity to look up you other projects from

http://callumprentice.github.io/

before commenting. These are quite impressive.

How much work did this one

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

Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by callumprentice on Tuesday June 19, 2018 @04:19PM (#17349985)
Thanks. * 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.

Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by BenoitP on Tuesday June 19, 2018 @06:19PM (#17350743)
Thanks 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!

Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by callumprentice on Tuesday June 19, 2018 @06:35PM (#17350834)
Sure thing - always happy to help where I can.
Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by lakechfoma on Tuesday June 19, 2018 @12:42PM (#17348199)
I had fun using this with an actual trackball. The physical to digital match is satisfying.
Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by TOGoS on Tuesday June 19, 2018 @01:04PM (#17348367)
I'm the opposite of OP. I hate it when people choose an arbitrary axis. Let me rotate the ball however I want.
Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by phyzome on Tuesday June 19, 2018 @02:36PM (#17349195)
Is 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.
Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by callumprentice on Tuesday June 19, 2018 @04:17PM (#17349962)
I didn't add that but it could be an option in the URL perhaps if it was bothersome.
Re:Voronoi Airports: all 54,000+ of them rendered in WebGL by callumprentice on Tuesday June 19, 2018 @10:17AM (#17346830)
I made the change and pushed it out - much better I think. Thank you.