# US 2013/0293544 A1 · Tiled Forward Shading with Improved Depth Filtering

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0293544 A1
- Document ID: US20130293544A1
- Status: Published application
- Kind: A1
- Application number: 13/462,921
- Filed: 2012-05-03
- Published: 2013-11-07
- Earliest claimed: 2012-05-03
- Assignees: Apple Inc.
- Inventors: Richard W. Schreyer; Alexander K. Kan
- Web page: https://patentgrep.com/patent/US20130293544A1

## CPC

- G06T 15/005: {General purpose rendering architectures}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image may be divided into tiles, each tile including a multitude of pixels. For each tile, a list of primitive groups that intersect the tile and an initial list of volumes that intersect the tile may be generated. For each primitive group in the list of primitive groups, a per-primitive group list of volumes may be generated. The per-primitive-group list of volumes may include volumes from the initial list of volumes whose depth range overlaps with a depth range of the primitive group. Pixels in the tile which intersect the primitive group may be shaded using the per-primitive-group list of volumes.

## Claims

### Claim 1

A computer-implemented method for rendering a three-dimensional scene as a two-dimensional image, wherein the three-dimensional scene comprises a plurality of objects and a plurality of volumes, wherein the two-dimensional image comprises a plurality of pixels, the method comprising:
dividing the image into a plurality of tiles, wherein each tile comprises a subset of the plurality of pixels;
for each respective tile:
determining a first depth range for a first set of objects that intersect the tile;
generating a first list of volumes, wherein the first list of volumes comprises a subset of the plurality of volumes that is filtered based on the first depth range;
shading pixels in the tile based on the first list of volumes;
storing each shaded pixel in a frame buffer.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining a second depth range for a second set of objects that intersect the tile;
generating a second list of volumes, wherein the second list of volumes comprises a subset of the plurality of volumes that is filtered based on the second depth range;
shading pixels in the tile based on the second list of volumes.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first depth range and the second depth range are discontinuous.

### Claim 4 (depends on 1)

The method of claim 1, wherein shading a pixel based on the first list of volumes comprises iterating over each volume in the first list of volumes to determine characteristics of the pixel based on effects of each volume on the pixel.

### Claim 5 (depends on 4)

The method of claim 4, wherein storing each shaded pixel in the frame buffer comprises storing information identifying the determined characteristics of the pixel in the frame buffer.

### Claim 6 (depends on 4)

The method of claim 4,
wherein storing each shaded pixel in the frame buffer further comprises blending the characteristics of the pixel determined based on effects of each volume in the first list of volumes on the pixel with previously determined characteristics of the pixel.

### Claim 7 (depends on 1)

The method of claim 1, wherein shading a pixel based on the first list of volumes is based on effects of each volume in the first list of volumes on one or more objects that intersect the pixel.

### Claim 8 (depends on 1)

The method of claim 1, further comprising, for each respective tile:
generating an initial list of volumes that intersect the tile;
wherein generating the first list of volumes comprises selecting volumes that intersect the first depth range from the initial list of volumes that intersect the tile.

### Claim 9 (depends on 1)

The method of claim 1, wherein the plurality of volumes comprise a plurality of lights.

### Claim 10

A computer system configured to render a three-dimensional scene as a two-dimensional image, wherein the three-dimensional scene comprises a plurality of objects and a plurality of volumes, wherein the two-dimensional image comprises a plurality of pixels, the computer system comprising:
a central processing unit (CPU);
a graphics processing unit (GPU);
a memory medium, wherein the memory medium comprises program instructions executable by the CPU and/or the GPU to:
divide the image into a plurality of tiles, wherein each tile comprises a subset of the plurality of pixels;
for each respective tile:
generate an initial list of volumes that intersect the tile;
for each of one or more sets of objects that intersect the tile:
determine a depth range for the set of objects;
generate a list of volumes for the set of objects based on the initial list of volumes that intersect the tile and the depth range for the set of objects;
shade pixels that intersect the set of objects based on the list of volumes for the set of objects;
store each shaded pixel in a frame buffer.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein generating the list of volumes for each respective set of objects comprises comparing bounds of each volume in the initial list of volumes that intersect the tile with a bounding volume of the respective set of objects, wherein the list of volumes for each respective set of objects comprises volumes whose bounds intersect the bounding volume of the respective set of objects.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein the program instructions are executable to perform a hardware call to the GPU to generate the list of volumes for each respective set of objects, wherein in response to the hardware call the GPU is configured to compare bounds of a plurality of volumes with the bounding volume of the respective set of objects simultaneously.

### Claim 13 (depends on 10)

The computer system of claim 10, wherein the GPU comprises hardware configured to divide the image into the plurality of tiles and generate the initial list of volumes that intersect the tile for each respective tile.

### Claim 14

A non-transitory computer-accessible memory medium comprising program instructions for generating a two-dimensional image of a three-dimensional scene, wherein the program instructions are executable by a CPU and/or a GPU to:
divide the image into a plurality of tiles, wherein each tile comprises a subset of the image, wherein each tile comprises a plurality of pixels;
for each respective tile:
determine a first depth range for a first set of objects that intersect the tile;
generate a first list of volumes that intersect the tile within the first depth range;
shade pixels which intersect the first set of objects based on the first list of volumes.

### Claim 15 (depends on 14)

The memory medium of claim 14, wherein in order to shade the pixels which intersect the first set of objects based on the first list of volumes, the program instructions are further executable to:
calculate effects of volumes in the first list of volumes on objects in the first set of objects to generate characteristics of pixels intersecting objects in the first set of objects.

### Claim 16 (depends on 15)

The memory medium of claim 15, wherein the program instructions are further executable to:
write pixel data to a frame buffer based on the generated characteristics of pixels intersecting objects in the first set of objects.

### Claim 17 (depends on 16)

The memory medium of claim 16, wherein writing pixel data to the frame buffer comprises blending the generated characteristics of pixels with previously determined characteristics of the pixels.

### Claim 18 (depends on 16)

The memory medium of claim 16, wherein writing pixel data to the frame buffer comprises overwriting previously determined characteristics of the pixels with the generated characteristics of pixels.

### Claim 19 (depends on 14)

The memory medium of claim 14, wherein the program instructions are further executable to, for each of a plurality of additional sets of objects that intersect the tile:
determine a respective depth range of the respective set of objects that intersect the tile;
generate a respective list of volumes that intersect the tile within the determined depth range of the respective set of objects;
shade pixels which intersect the respective set of objects based on the respective list of volumes.

### Claim 20 (depends on 14)

The memory medium of claim 14, wherein the first list of volumes comprise a plurality of lights and/or a plurality of decals.

### Claim 21

A computer-implemented method for rendering a three-dimensional scene as a two-dimensional image, wherein the three-dimensional scene comprises a plurality of objects lit by a plurality of lights wherein the two-dimensional image comprises a plurality of pixels, the method comprising:
dividing the image into a plurality of tiles, wherein each tile comprises a subset of the plurality of pixels;
for each respective tile:
generating a list of primitive groups that intersect the tile;
generating an initial list of lights that intersect the tile;
for each primitive group in the list of primitive groups that intersect the tile:
generating a per-primitive-group list of lights, wherein the per-primitive-group list of lights comprises lights whose depth range overlaps with a depth range of the primitive group;
shading pixels in the tile which intersect the primitive group using the per-primitive-group list of lights.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, wherein generating the per-primitive group list of lights comprises comparing bounding volumes of lights in the initial list of lights that intersect the tile with a primitive group bounding volume whose dimensions are based on minimum and maximum height, width, and depth dimensions of the primitive group, wherein the per-primitive group list of lights comprises lights whose bounding volumes intersect the primitive group bounding volume.

### Claim 23 (depends on 21)

The computer-implemented method of claim 21, wherein the list of primitive groups that intersect the tile comprises a subset of all the primitive groups that intersect the tile, wherein the subset excludes primitive groups which are obscured.

### Claim 24 (depends on 21)

The computer-implemented method of claim 21, wherein shading the pixels in the tile which intersect the primitive group comprises:
generating pixel data based on characteristics of and interactions between primitives in the primitive group and lights in the per-primitive group list of lights; and
storing the pixel data in a frame buffer.

### Claim 25

A computer-implemented method for rendering a three-dimensional scene as a two-dimensional image, wherein the three-dimensional scene comprises a plurality of objects and a plurality of volumes, wherein the two dimensional image comprises a plurality of pixels for which pixel data is stored in a frame buffer, the method comprising, for each of a plurality of sets of objects:
determining a bounding box for the set of objects based on minimum and maximum dimensions in height, width, and depth of the set of objects;
comparing volume bounds of at least a subset of the plurality of volumes with the bounding box for the set of objects;
generating a list of volumes that intersect the bounding box for the set of objects based on said comparing;
for each pixel intersecting the set of objects:
calculating effects of each volume in the list of volumes on the pixel;
blending the calculated effects with pixel data for the pixel to generate new pixel data for the pixel;
storing the new pixel data in the frame buffer.
