# US 2015/0091904 A1 · Ray tracing processing apparatus and method

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

- Number: US 2015/0091904 A1
- Document ID: US20150091904A1
- Status: Published application
- Kind: A1
- Application number: 14/261,538
- Filed: 2014-04-25
- Published: 2015-04-02
- Earliest claimed: 2013-10-02
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Won-jong LEE; Young-sam SHIN; Jae-don LEE
- Web page: https://patentgrep.com/patent/US20150091904A1

## CPC

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

## Abstract

Provided are ray tracing processing method and apparatus. The ray tracing processing method includes detecting, at a ray tracing processing apparatus, a leaf node with which an input ray intersects; and in response to the leaf node being detected, comparing a state of a traversal (TRV) unit and a state of an intersection test (IST) unit and determining whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit.

## Claims

### Claim 1

A ray tracing processing method comprising:
detecting, at a ray tracing processing apparatus, a leaf node with which an input ray intersects; and
in response to the leaf node being detected, comparing a state of a traversal (TRV) unit and a state of an intersection test (IST) unit and determining whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining of whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit comprises feeding the ray back to the TRV unit, in response to the TRV unit being in an idle state, and transmitting the ray to the IST unit, in response to the IST unit being in an idle state.

### Claim 3 (depends on 1)

The method of claim 1, wherein the determining of whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit comprises determining whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit based on comparing a remnant data amount of an input buffer of the TRV unit and a remnant data amount of an input buffer of the IST unit.

### Claim 4 (depends on 3)

The method of claim 3, wherein the determining of whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit comprises:
feeding the ray back to the TRV unit, in response to the remnant data amount of the input buffer of the TRV unit being smaller than that of the IST unit; and
transmitting the ray to the IST unit, in response to the remnant data amount of the input buffer of the IST unit being smaller than that of the TRV unit.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
detecting a primitive bounding box included in the detected leaf node with which the ray intersects, in response to the ray being fed back to the TRV unit; and
determining whether the ray intersects with a primitive included in the detected primitive bounding box; and
calculating a hit point, in response to the ray intersecting with the primitive.

### Claim 6 (depends on 5)

The method of claim 5, wherein the primitive bounding box comprises a single primitive.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
determining whether the ray intersects with a primitive included in the detected leaf node, in response to the ray being transmitted to the IST unit; and
calculating a hit point, in response to the ray intersecting with the primitive.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
after determining whether the ray intersects with the primitive, comparing a state of the TRV unit and a state of the IST unit and determining whether to feed the ray back to the IST unit or to transmit the ray to the TRV unit; and
in response to the ray being transmitted to the TRV unit:
detecting a second primitive bounding box included in the detected leaf node with which the ray intersects;
determining whether the ray intersects with a second primitive included in the detected second primitive bounding box; and
calculating a second hit point, in response to the ray intersecting with the second primitive.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
determining whether the ray intersects with the second primitive included in the detected leaf node, in response to the ray being fed back to the IST unit; and
calculating a second hit point, in response to the ray intersecting with the second primitive.

### Claim 10 (depends on 5)

The method of claim 5, wherein the node and the primitive bounding box are rectangles.

### Claim 11 (depends on 1)

A non-transitory computer readable storage medium having a program to cause a computer to perform the method of claim 1.

### Claim 12

A ray tracing processing apparatus comprising:
a first operator configured to detect a leaf node with which a ray intersects; and
in response to the leaf node being detected a first determiner configured to compare a state of a TRV unit and a state of an IST unit to determine whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein, the first determiner is further configured to feed the ray back to the TRV unit in response to the TRV unit being determined to be in an idle state, and to transmit the ray to the IST unit in response to the IST unit being determined to be in an idle state.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the first determiner is further configured to compare a remnant data amount of an input buffer of the TRV unit with a remnant data amount of an input buffer of the IST unit to determine whether to feed the ray back to the TRV unit or to transmit the ray to the IST unit.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the first determiner is further configured to feed the ray back to the TRV unit in response to the remnant data amount of the input buffer of the TRV unit being smaller than that of the IST unit, and to transmit the ray to the IST unit in response to the remnant data amount of the input buffer of the IST unit being smaller than that of the TRV unit.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein the first operator is further configured to detect a primitive bounding box included in the detected leaf node with which the ray intersects, in response to the ray being fed back to the TRV unit, and a second operator configured to determine whether the ray intersects with the primitive included in the detected primitive bonding box, and to calculate a hit point in response to the ray intersecting with the primitive.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the primitive bounding box comprises a single primitive.

### Claim 18 (depends on 16)

The apparatus of claim 16, further comprising a second operator configured to determine whether the ray intersects with the primitive included in the detected leaf node, in response to the ray being transmitted to the IST unit, and to calculates a hit point, in response to the ray intersecting with the primitive.

### Claim 19 (depends on 18)

The apparatus of claim 18, further comprising a second determiner configured to compare a state of the TRV unit and a state of the IST unit to determine whether to feed the ray back to the IST unit or transmit the ray to the TRV unit, after determining whether the primitive intersects with the ray; and
in response to the ray being transmitted to the TRV unit:
the first operator is further configured to detect a second primitive bounding box included in the detected leaf node with which the ray intersects, and
the second operator is further configured to determine whether the ray intersects with a second primitive included in the detected second primitive bounding box and to calculate a second hit point, in response to the ray intersecting with the second primitive.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein, in response to the ray being fed back to the IST unit, the second operator is further configured to determine whether the ray intersects with the second primitive included in the detected leaf node, and to calculate the second hit point in response to the ray intersecting with the second primitive.
