# US 2021/0343089 A1 · Multi-dimensional acceleration structure

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

- Number: US 2021/0343089 A1
- Document ID: US20210343089A1
- Status: Published application
- Kind: A1
- Application number: 16/865,849
- Filed: 2020-05-04
- Published: 2021-11-04
- Earliest claimed: 2020-05-04
- Assignees: Electronic Arts Inc.
- Applicants: Electronic Arts Inc.
- Inventors: Karl Henrik Halén; David Andreas Brinck
- Web page: https://patentgrep.com/patent/US20210343089A1

## CPC

- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T 19/20: Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts
- G06T 2200/04: involving 3D image data
- G06T 2210/61: Scene description
- G06T 2219/2016: Rotation, translation, scaling
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A system and method for implementing an acceleration structure are disclosed. The method includes: determining a position of an entity; mapping the position to a 3D (three-dimensional) voxel grid coordinate in the acceleration structure, which comprises a central grid structure and six additional grid structures each comprising a set of voxels; determining a first offset value corresponding to the 3D voxel grid coordinate that corresponds to either the central grid structure or one of the six additional grid structures; and determining a second offset value corresponding to the 3D voxel grid coordinate that corresponds to a particular voxel within either the central grid structure or one of the six additional grid structures corresponding to the first offset value, wherein data corresponding to the entity is stored in memory a location based on the first offset value and the second offset value.

## Claims

### Claim 1

A method for implementing an acceleration structure, the method comprising:
determining, by one or more processors, a position of an entity in a three-dimensional (3D) scene, wherein the position of the entity is determined relative to a location of a camera configured to capture an image of the 3D scene;
mapping, by the one or more processors, the position of the entity to a 3D voxel grid coordinate in the acceleration structure, wherein the acceleration structure comprises a central grid structure and six additional grid structures organized around the central grid structure in 3D space, wherein each of the central grid structure and the six additional grid structures comprises a set of voxels;
determining, by the one or more processors, a first offset value corresponding to the 3D voxel grid coordinate, wherein the first offset value corresponds to either the central grid structure or one of the six additional grid structures; and
determining, by the one or more processors, a second offset value corresponding to the 3D voxel grid coordinate, wherein the second offset value corresponds to a particular voxel within either the central grid structure or one of the six additional grid structures corresponding to the first offset value, wherein data corresponding to the entity is stored in memory a location based on the first offset value and the second offset value.

### Claim 2 (depends on 1)

The method according to claim 1, wherein mapping the position of the entity to the 3D voxel grid coordinate in the acceleration structure comprises:
determining whether the position of the entity falls within bounds of the central grid structure based on a largest magnitude of coordinate components of the position of the entity relative to the location of the camera.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the position of the entity falls within the bounds of the central grid structure, the method further comprising:
applying a linear transform to the position of the entity to transform the position of the entity into the 3D voxel grid coordinate of the central grid structure.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the position of the entity falls outside the bounds of the central grid structure, the method further comprising:
identifying which of the six additional grid structures the position of the entity falls into based on a coordinate axis corresponding to the coordinate component with the largest magnitude and a sign of the coordinate component with the largest magnitude of the position of the entity relative to the location of the camera;
calculating two components of the 3D voxel grid coordinate within the identified additional grid structure using the other two components of the position of the entity besides the component corresponding to the coordinate component with the largest magnitude of the position of the entity; and
calculating a third component of the 3D voxel grid coordinate within the identified additional grid structure based on a distance between the bounds of the central grid structure to the position of the entity.

### Claim 5 (depends on 4)

The method according to claim 4, wherein calculating the third component of the 3D voxel grid coordinate within the identified additional grid structure is based on a non-linear function.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the central grid structure and each of the six additional grid structures comprises a same number of voxels in each dimension, and wherein a same amount of memory is allocated to the central grid structure and each of the six additional grid structures.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
storing the data corresponding to the entity in the memory based on the first offset value and the second offset value.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
retrieving the data corresponding to the entity from the memory based on the first offset value and the second offset value.

### Claim 9

A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, causes a computing device to implement an acceleration structure, by performing the steps of:
determining a position of an entity in a three-dimensional (3D) scene, wherein the position of the entity is determined relative to a location of a camera configured to capture an image of the 3D scene;
mapping the position of the entity to a 3D voxel grid coordinate in the acceleration structure, wherein the acceleration structure comprises a central grid structure and six additional grid structures organized around the central grid structure in 3D space, wherein each of the central grid structure and the six additional grid structures comprises a set of voxels;
determining a first offset value corresponding to the 3D voxel grid coordinate, wherein the first offset value corresponds to either the central grid structure or one of the six additional grid structures; and
determining a second offset value corresponding to the 3D voxel grid coordinate, wherein the second offset value corresponds to a particular voxel within either the central grid structure or one of the six additional grid structures corresponding to the first offset value, wherein data corresponding to the entity is stored in memory a location based on the first offset value and the second offset value.

### Claim 10 (depends on 9)

The computer-readable storage medium according to claim 9, wherein mapping the position of the entity to the 3D voxel grid coordinate in the acceleration structure comprises:
determining whether the position of the entity falls within bounds of the central grid structure based on a largest magnitude of coordinate components of the position of the entity relative to the location of the camera.

### Claim 11 (depends on 10)

The computer-readable storage medium according to claim 10, wherein the position of the entity falls within the bounds of the central grid structure, the steps further comprising:
applying a linear transform to the position of the entity to transform the position of the entity into the 3D voxel grid coordinate of the central grid structure.

### Claim 12 (depends on 10)

The computer-readable storage medium according to claim 10, wherein the position of the entity falls outside the bounds of the central grid structure, the steps further comprising:
identifying which of the six additional grid structures the position of the entity falls into based on a coordinate axis corresponding to the coordinate component with the largest magnitude and a sign of the coordinate component with the largest magnitude of the position of the entity relative to the location of the camera;
calculating two components of the 3D voxel grid coordinate within the identified additional grid structure using the other two components of the position of the entity besides the component corresponding to the coordinate component with the largest magnitude of the position of the entity; and
calculating a third component of the 3D voxel grid coordinate within the identified additional grid structure based on a distance between the bounds of the central grid structure to the position of the entity.

### Claim 13 (depends on 12)

The computer-readable storage medium according to claim 12, wherein calculating the third component of the 3D voxel grid coordinate within the identified additional grid structure is based on a non-linear function.

### Claim 14 (depends on 9)

The computer-readable storage medium according to claim 9, wherein the central grid structure and each of the six additional grid structures comprises a same number of voxels in each dimension, and wherein a same amount of memory is allocated to the central grid structure and each of the six additional grid structures.

### Claim 15 (depends on 9)

The computer-readable storage medium according to claim 9, the steps further comprising:
storing the data corresponding to the entity in the memory based on the first offset value and the second offset value.

### Claim 16 (depends on 9)

The computer-readable storage medium according to claim 9, the steps further comprising:
retrieving the data corresponding to the entity from the memory based on the first offset value and the second offset value.

### Claim 17

A device for implementing an acceleration structure, the device comprising:
a memory storing instructions; and
one or more processors configured to the execute the instructions to cause the device to:
determine a position of an entity in a three-dimensional (3D) scene, wherein the position of the entity is determined relative to a location of a camera configured to capture an image of the 3D scene;
map the position of the entity to a 3D voxel grid coordinate in the acceleration structure, wherein the acceleration structure comprises a central grid structure and six additional grid structures organized around the central grid structure in 3D space, wherein each of the central grid structure and the six additional grid structures comprises a set of voxels;
determine a first offset value corresponding to the 3D voxel grid coordinate, wherein the first offset value corresponds to either the central grid structure or one of the six additional grid structures; and
determine a second offset value corresponding to the 3D voxel grid coordinate, wherein the second offset value corresponds to a particular voxel within either the central grid structure or one of the six additional grid structures corresponding to the first offset value, wherein data corresponding to the entity is stored in memory a location based on the first offset value and the second offset value.

### Claim 18 (depends on 17)

The device according to claim 17, wherein mapping the position of the entity to the 3D voxel grid coordinate in the acceleration structure comprises:
determining whether the position of the entity falls within bounds of the central grid structure based on a largest magnitude of coordinate components of the position of the entity relative to the location of the camera.

### Claim 19 (depends on 18)

The device according to claim 18, wherein the position of the entity falls within the bounds of the central grid structure, and executing the instructions further causes the device to:
apply a linear transform to the position of the entity to transform the position of the entity into the 3D voxel grid coordinate of the central grid structure.

### Claim 20 (depends on 18)

The device according to claim 18, wherein the position of the entity falls outside the bounds of the central grid structure, and executing the instructions further causes the device to:
identify which of the six additional grid structures the position of the entity falls into based on a coordinate axis corresponding to the coordinate component with the largest magnitude and a sign of the coordinate component with the largest magnitude of the position of the entity relative to the location of the camera;
calculate two components of the 3D voxel grid coordinate within the identified additional grid structure using the other two components of the position of the entity besides the component corresponding to the coordinate component with the largest magnitude of the position of the entity; and
calculate, using a non-linear function, a third component of the 3D voxel grid coordinate within the identified additional grid structure based on a distance between the bounds of the central grid structure to the position of the entity.
