Home▸GIS & Geoinformatics▸Digital Elevation Model Hillshade: Horn Slope and Aspect under Sun Azimuth and Altitude

Digital Elevation Model Hillshade: Horn Slope and Aspect under Sun Azimuth and Altitude

Turn a grid of elevations into a shaded relief map. Horn's 3 by 3 finite-difference method gives slope and aspect for every cell, and the hillshade is the cosine between the surface normal and the sun. Move the sun azimuth and altitude, exaggerate the vertical scale, change the grid spacing and relief, and read slope, aspect and shadow statistics. A Blender-built plinth, compass and sun with numerical checks of the gradient formulas.

GIS & Geoinformatics3DModerate60 FPS📱 Mobile-adapted🟠 Blender🌍 Earth⇄ 2D version
Digital Elevation Model Hillshade: Horn Slope and Aspect under Sun Azimuth and Altitude ↗ Open standalone

Turn a grid of elevations into a shaded relief map. Horn's 3 by 3 finite-difference method gives slope and aspect for every cell, and the hillshade is the cosine between the surface normal and the sun. Move the sun azimuth and altitude, exaggerate the vertical scale, change the grid spacing and relief, and read slope, aspect and shadow statistics. A Blender-built plinth, compass and sun with numerical checks of the gradient formulas.

⚙ Under the hood

Turn a grid of elevations into a shaded relief map. Horn's 3 by 3 finite-difference method gives slope and aspect for every cell, and the hillshade is the cosine between the surface normal and the sun. Move the sun azimuth and altitude, exaggerate the vertical scale, change the grid spacing and relief, and read slope, aspect and shadow statistics. A Blender-built plinth, compass and sun with numerical checks of the gradient formulas.

Earth DataHillshadeDigital Elevation ModelSlope and AspectTerrain AnalysisGIS

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)