Re:Show HN: A WebGL visualization to show how global tempera...
by McKayDavis on Sunday September 11, 2016 @09:53PM
(#12476725)
Nice, but the rotate controls are a way too sensitive and spin the globe too fast. I recommend you look into arcball rotation [1]. It's perfect for a globe.
Re:Show HN: A WebGL visualization to show how global tempera...
by callumprentice on Sunday September 11, 2016 @10:44PM
(#12476866)
I like the feel of that affordance and will experiment with it. Have to bathe my 5 year old princess now and read stories but I'll get to it later :) Thanks!
Re:Show HN: A WebGL visualization to show how global tempera...
by TeMPOraL on Monday September 12, 2016 @04:01AM
(#12477931)
Great and very pretty!
Besides the rotation issue pointed out by 'McKayDavis, I'd also suggest adding some legends for data - maybe a constantly visible data range on the side, that would help mapping the different shades of blue/red to actual values, and also some popup when you hover or click on a particular tile of the globe/map.
Re:Show HN: A WebGL visualization to show how global tempera...
by thebeardedone on Monday September 12, 2016 @04:53AM
(#12478127)
Really cool and interesting visualization.
Since this is most likely a common chart for people looking at climate change and it may be explained by the parents feedback, I was wondering if anyone knew what shades are held in reference to? Are they being compared to the average temperature of the last century, average compared to 1849, or whether its sort of a running diff to the previous year?
Re:Show HN: A WebGL visualization to show how global tempera...
by gavinpc on Sunday September 11, 2016 @11:16PM
(#12476969)
I love the fact that you made this really slick interactive 3D data visualization, but the Facebook share button is "a little hard to grok"!
Again, very well made. Really pleasant to play with, though troubling to see. One thing I wonder is how are the temperature differentials normalized? In other words, how are "full red" and "full blue" defined? The max and min of the recorded ranges? Overall, or for that section/year? Etc.
Re:Show HN: A WebGL visualization to show how global tempera...
by callumprentice on Sunday September 11, 2016 @11:23PM
(#12476986)
Thank you. I make a pass over the data, find the min/max values for cooler and warmer and then use that to scale the color from full intensity (largest changes) to least intensity (smallest change). Visually at least, it seems mostly to agree with what the clever climate scientists have made in static images. The range is calculated for the whole period so that comparing year to year should be valid.
I didn't even consider blocked cookies - I set that flag in local storage since it seemed important to show some instructions the first time you see it but not thereafter. I'll experiment a bit and see if I can work around that.
Edit: stars are just a bitmap wrapper around a large sphere.
Re:Show HN: A WebGL visualization to show how global tempera...
by simple10 on Monday September 12, 2016 @12:56AM
(#12477280)
Yeah, Facebook changes the interface so frequently that they break their own documentation and every blog post with screenshots every few months.
For other readers, when you create a new Facebook app (often done to create Fb share and login buttons), the app defaults to developer mode. You have to dig through settings and switch it to production mode or everyone else will get an error.
Re:Show HN: A WebGL visualization to show how global tempera...
by nojvek on Sunday September 11, 2016 @11:40PM
(#12477041)
Renders great on an iPhone. The zooming is a bit weird. You should look into locking the viewport. Once you get to a zoom level it's really hard to get out of it.
Re:Show HN: A WebGL visualization to show how global tempera...
by callumprentice on Sunday September 11, 2016 @11:51PM
(#12477069)
Thanks for the feedback. I tried adding a meta tag in the HTML header and that actually makes a lot of things look nice (large, easy to hit buttons for example) but disables pinch zoom.
Also hard to make everything fit - the UI components are all scaled up which is nice but they no longer fit.
Re:Show HN: A WebGL visualization to show how global tempera...
by callumprentice on Sunday September 11, 2016 @10:58PM
(#12476911)
Interesting. I think Chrome blacklists some GPUs and drivers occasionally so maybe that's what happened. Glad it works ok on Firefox and thanks for the feedback.
[1] http://nehe.gamedev.net/tutorial/arcball_rotation/19003/
edit: Love the animated transition between the plate carrée projection and sphere!
https://en.wikipedia.org/wiki/1997%E2%80%9398_El_Ni%C3%B1o_e...
Maybe this made for a sudden increase, rather than a more gradual one.
Besides the rotation issue pointed out by 'McKayDavis, I'd also suggest adding some legends for data - maybe a constantly visible data range on the side, that would help mapping the different shades of blue/red to actual values, and also some popup when you hover or click on a particular tile of the globe/map.
Since this is most likely a common chart for people looking at climate change and it may be explained by the parents feedback, I was wondering if anyone knew what shades are held in reference to? Are they being compared to the average temperature of the last century, average compared to 1849, or whether its sort of a running diff to the previous year?
The temperatures are relative to a 1961-1990 average.
- Set your Fb app to production so people can share on Facebook; currently shows error about dev mode
- Maybe increase the transparency of the tiles; people often like to focus on their home country on a map; would make it easier
- Add help tooltips over the navigation so it's easier to tell what each button does
Thanks for creating this!
Thank you!
Again, very well made. Really pleasant to play with, though troubling to see. One thing I wonder is how are the temperature differentials normalized? In other words, how are "full red" and "full blue" defined? The max and min of the recorded ranges? Overall, or for that section/year? Etc.
Also, are those stars random?
Also, see https://news.ycombinator.com/item?id=12476945
I didn't even consider blocked cookies - I set that flag in local storage since it seemed important to show some instructions the first time you see it but not thereafter. I'll experiment a bit and see if I can work around that.
Edit: stars are just a bitmap wrapper around a large sphere.
Cheers!
For other readers, when you create a new Facebook app (often done to create Fb share and login buttons), the app defaults to developer mode. You have to dig through settings and switch it to production mode or everyone else will get an error.
Also hard to make everything fit - the UI components are all scaled up which is nice but they no longer fit.
Lots to investigate!
I've never failed to run WebGL before. Using chrome on mac.
Fairly recent version of Chrome I presume? Other WebGL apps still run ok?
I'm on chrome 53 and chrome://gpu/ says: "WebGL: Hardware accelerated" but canvas.getContext('webgl') returns null.
Anyway, I can run it nicely in firefox.
...and this is where I click the close button. No, you will not use me for racking up your whatever.