shadow simulation from buildings

630 Views Asked by At

is it possible to calculate shadow areas of buildings or simulate shadows of buildings in a city, using the heights of these buildings and the sun angle and azimuth? the basic light tracing concept using trigonometry is known. But the Problem is how to find away to come up with simulated shadow of group of buildings in one place.

2

There are 2 best solutions below

1
On

I'll assume that the buildings are made up of polygons.

  1. Project each polygon onto the ground to find its shadow.
  2. Merge these shadow polygons (e.g. using Weiler-Atherton).
  3. Find the area of the merged polygon.
2
On

if you have the data on the buildings, model the whole scene as tall boxes in OpenGL, render it with a suitable light source, see the shadow.