Actual sunrise sunset timings, yes. And then : might be useful for non-commercial planning of solar panels. I am assuming your shadow tracking takes into account the buildings' heights , sun angle over the months, etc factors also.
Really nice, any plans on showing this on a 3D map? You might be interested in my project, Procedural GL JS: a mobile-first 3D mapping engine with emphasis on user experience. Live demo here: https://felixpalmer.github.io/procedural-gl-js/ (I've also posted separately in this thread).
Wow! This is beautiful and fast. You should be proud of yourself.
There is another project (https://shadowmap.org) that casts shadows in 3D. You might want to reach out to them. For me, I use ray-tracing per pixel because I want more control/information on a per-pixel basis. For example, when will the sun hit the particular location.
I love this.
For years I had been thinking about creating a map where you can spot first and last sun in an area. Now that I’m actually tackling bigger and complexer projects I forgot all about that idea.
Great job!
I've been trying to figure out a smart home automated system to determine if shades should be open or closed to optimize for energy efficiency, accounting for sun intensity, time of day, and orientation of the window. I suppose I could throw something like this on rather than relying on generic sunrise and sunset times. Did you have a lot of wrangling with coordinate systems and the location of the sun changing throughout the year?
Suncalc [1] is the library I use to calculate the position of the sun. Mapzen [2] host public elevation tile data. This blog post [3] is a good overview of the calculations involved.
Comments (1,232) 661 threads
Show all comments
Showing thread 16 of 661
https://shademap.app/
Things I learned along the way:
- How slippy maps work and Leaflet.js
- Most elevation maps use data collected back in 2000! [1]
- You can perform calculation on the GPU without knowing GLSL [2]
[1] https://en.wikipedia.org/wiki/Shuttle_Radar_Topography_Missi...
[2] https://gpu.rocks/
https://shademap.app/#25.89382,12.57935,8z,1610728080000t
I was thinking maybe using it to give actual sunrise/sunset times for any position on earth. For example, Denver sunset time is 5PM but the mountains will cast shadow on Denver at 4:40PM [2]
[1] https://www.timeanddate.com/sun/usa/denver
[2] https://shademap.app/#39.70243,-104.99153,10z,1610667780000t
There is another project (https://shadowmap.org) that casts shadows in 3D. You might want to reach out to them. For me, I use ray-tracing per pixel because I want more control/information on a per-pixel basis. For example, when will the sun hit the particular location.
I've been trying to figure out a smart home automated system to determine if shades should be open or closed to optimize for energy efficiency, accounting for sun intensity, time of day, and orientation of the window. I suppose I could throw something like this on rather than relying on generic sunrise and sunset times.
Did you have a lot of wrangling with coordinate systems and the location of the sun changing throughout the year?
[1] https://github.com/mourner/suncalc
[2] https://www.mapzen.com/blog/terrain-tile-service/
[3] http://www.liedman.net/2014/06/25/sunshine/