05-01-2012 дата публикации
Номер: US20120001911A1
As to generate shadows in an image, the method comprises the steps of: Computing a depth-map that comprises an array of pixels, wherein pixels in the depth-map are associated to a single value corresponding to depth value that indicates a depth from a light source to a portion of nearest occluding object visible through the pixel, projecting a point visible through a pixel of said image into a light space, the result of said projection being a pixel of said depth-map, calculating a distance between the said visible point and the light source, fetching the depth value associated to said pixel of depth-map, computing, for said pixel of said image, an adaptive bias as a function of a predetermined base bias and a relationship between the normal of a surface on which the said visible point is located and incident light direction at said visible point, comparing for said pixel in the image, the distance between said visible point and the light source with the sum of the corresponding depth map value and said adaptive bias, labelling said point visible through said pixel as lit or shadowed according to said comparison.
Подробнее