Systems and methods for soft shadowing in 3-d rendering casting multiple rays from ray origins
AssigneeImagination Technologies Limited
InventorsJustin P. DeCell, Luke T. Peterson
Life of this patent
Estimating the term…
Abstract
Graphics processing systems and methods provide soft shadowing effects into rendered images. This is achieved in a simple manner which can be implemented in real-time without incurring high processing costs so it is suitable for implementation in low-cost devices. Rays are cast from positions on visible surfaces corresponding to pixel positions towards the center of a light, and occlusions of the rays are determined. The results of these determinations are used to apply soft shadows to the rendered pixel values.
Claims19
A machine-implemented method of processing a plurality of rays cast from surfaces in a scene, wherein positions of primitives in the scene are represented by nodes of a hierarchical acceleration structure and each ray of the plurality of rays is associated with one or more pixels of a frame of pixels, the method comprising:
- for one or more rays that are not occluded from a light in the scene:
- identifying a nearest-hit primitive by determining which of the nodes of the hierarchical acceleration structure to be hit by the ray has the smallest distance-ratio, wherein a distance-ratio for a node is the ratio of a dimension of the node and the distance along the ray at which the ray hits the node;
- and
- determining an extent of occlusion from the light for one or more pixels corresponding to an origin of the ray in accordance with data relating to the determined node having the smallest distance-ratio;
- and
- determining rendered pixel values of the frame in accordance with the determined extents of occlusion from the light for the pixels.
A graphics processing unit for processing a plurality of rays cast from surfaces in a scene, wherein positions of primitives in the scene are represented by nodes of a hierarchical acceleration structure and each ray of the plurality of rays is associated with one or more pixels of a frame of pixels, wherein the graphics processing unit is configured to:
- for one or more rays that are not occluded from a light in the scene:
- identify a nearest-hit primitive by determining which of the nodes of the hierarchical acceleration structure to be hit by the ray has the smallest distance-ratio, wherein a distance-ratio for a node is the ratio of a dimension of the node and the distance along the ray at which the ray hits the node;
- and
- determine an extent of occlusion from the light for one or more pixels corresponding to an origin of the ray in accordance with data relating to the determined node having the smallest distance-ratio.
Dependencies are inferred from the claim text.