# US 2010/0060637 A1 · Method for Reducing Network Bandwidth by Delaying Shadow Ray Generation

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

- Number: US 2010/0060637 A1
- Document ID: US20100060637A1
- Status: Published application
- Kind: A1
- Application number: 11/562,629
- Filed: 2006-11-22
- Published: 2010-03-11
- Earliest claimed: 2006-11-22
- Assignees: International Business Machines Corporation
- Inventors: Robert Allen Shearer
- Web page: https://patentgrep.com/patent/US20100060637A1

## CPC

- G06T 15/06: Ray-tracing
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

The present invention provides methods and apparatus in a ray tracing image processing system to reduce the amount of information passed between processing elements. According to embodiments of the invention, in response to a ray-primitive intersection, a first processing element in the image processing system may generate a portion of secondary rays and a second processing element may generate a second portion of secondary rays. The first processing element may generate reflected and refracted rays and the second processing element may generate shadow rays. The first processing element may send a ray-primitive intersection point to the second processing element so that the second processing element may generate the shadow rays. By only sending the intersection point to the second processing element, in contrast to sending a plurality of shadow rays, the amount of information communicated between the two processing elements may be reduced.

## Claims

### Claim 1

A method of performing ray tracing, comprising:
configuring one or more processors to perform an operation, comprising:
issuing a ray into a three-dimensional scene;
with a first processing element: tracing the ray through a spatial index having nodes representing bounding volumes within the three-dimensional scene by taking branches to nodes defining bounding volumes intersected by the ray until a first leaf node is reached; and, after a leaf node is reached, sending information defining the ray and the first leaf node to a second processing element;
with the second processing element: performing ray-primitive intersection tests to determine if the ray intersects a primitive contained within a bounding volume defined by the first leaf node; generating a first set of secondary rays; sending, information defining the first set of secondary rays to the first processing element; and sending a ray-primitive intersection point to the first processing element; and
with the first processing element; generating a second set of secondary rays based on at least the ray-primitive intersection point.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first set of secondary rays comprises at least one of a reflected or a refracted ray.

### Claim 3 (depends on 1)

The method of claim 1, wherein the second set of secondary rays comprises shadow rays.

### Claim 4 (depends on 3)

The method of claim 3, further comprising: with the first processing element, generating shadow rays using the ray-primitive intersection point and locations of light sources within the three dimensional scene.

### Claim 5 (depends on 4)

The method of claim 4, wherein the locations of light sources are stored within a memory cache shared between the first processing element and the second processing element.

### Claim 6 (depends on 1)

The method of claim 1, further comprising: with the first processing element, traversing the first and second set of secondary rays through the spatial index by taking branches to nodes defining bounding volumes intersected by the ray until leaf nodes are reached.

### Claim 7

A computer readable storage medium containing a program which, when executed, performs an operation, comprising:
issuing a ray into a three-dimensional scene;
initiating on a first processing element: tracing the ray through a spatial index having nodes representing bounding volumes within the three-dimensional scene by taking branches to nodes defining bounding volumes intersected by the ray until a first leaf node is reached; after the leaf node is reached, sending information defining the ray and the first leaf node to a second processing element; receiving information defining a first set of secondary rays and information defining a ray-primitive intersection point from the second processing element; and generating a second set of secondary rays based on at least the information defining the ray-primitive intersection point.

### Claim 8 (depends on 7)

The computer readable storage medium of claim 7, wherein the first set of secondary rays comprises at least one of a reflected or a refracted ray.

### Claim 9 (depends on 7)

The computer readable storage medium of claim 7, wherein the second set of secondary rays comprises shadow rays.

### Claim 10 (depends on 9)

The computer readable storage medium of claim 9, wherein the operations further comprise: with the first processing element, generating shadow rays using the ray-primitive intersection point and locations of light sources within the three dimensional scene.

### Claim 11 (depends on 10)

The computer readable storage medium of claim 10, wherein the locations of light sources are stored within a memory cache shared between the first processing element and the second processing element.

### Claim 12 (depends on 7)

The computer readable storage medium of claim 7, wherein the operations further comprise: with the first processing element, traversing the first and second set of secondary rays through the spatial index by taking branches to nodes defining bounding volumes intersected by the ray until leaf nodes are reached.

### Claim 13

A system, comprising:
a first processing element;
a second processing element;
a memory device comprising a spatial index having nodes defining bounding volumes of a three-dimensional scene;
a communication network coupled to the first processing element and the second processing element;
wherein the first processing element is configured to traverse a ray through the spatial index by taking branches to nodes defining bounding volumes intersected by the ray until a leaf node is reached, and send the information defining the ray and the leaf node to the second processing element via the communication network;
wherein the second processing element is configured to determine if the ray intersects a primitive contained within a bounding volume defined by the leaf node; generate a first set of secondary rays; send information defining the first set of secondary rays to the first processing element; and send information defining a ray-primitive intersection point to the first processing element; and
wherein the first processing element is further configured to generate a second set of secondary rays based on at least the ray-primitive intersection point.

### Claim 14 (depends on 13)

The system of claim 13, wherein the first set of secondary rays comprises at least one of a reflected or a refracted ray.

### Claim 15 (depends on 13)

The system of claim 13, wherein the second set of secondary rays comprises shadow rays.

### Claim 16 (depends on 15)

The system of claim 15, wherein the first processing element is further configured to generate shadow rays using the ray-primitive intersection point and locations of light sources within the three dimensional scene.

### Claim 17 (depends on 16)

The system of claim 16, further comprising a memory cache accessible by the first processing element, wherein the locations of light sources are stored within the memory cache.

### Claim 18 (depends on 15)

The system of claim 15, wherein the first processing element is further configured to:
traverse the first and second set of secondary rays through the spatial index by taking branches to nodes intersected by the secondary rays until leaf nodes are reached; and
send the secondary rays to the second processing element via the communications network.

### Claim 19 (depends on 17)

The system of claim 17, wherein the spatial index is stored in the shared memory cache.

### Claim 20 (depends on 13)

The system of claim 13, wherein the first processing element and the second processing element are on the same chip.
