Opengl: Can we calculate how much percentage of object is shadowed by other object in the scene?

73 Views Asked by At

We are making a simulation of city with lot of buildings. We have requirement to calculate how much percentage of building surface is of directly illuminated by sunlight(direct-light). Is there any feasibility read pixels of shadow and calculate this? We have tried rendering of objects render to texture and reading no pixels in shadow. However this values differ on camera angle , seems not reflecting real values and cannot calculate overall percentage. Can any one suggest alternate / better approach to this overall problem. Can we use latest such technologies such as transform feedback? Thanks

0

There are 0 best solutions below