# US 9,355,464 B2 · Dynamic generation of texture atlases

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

- Number: US 9,355,464 B2
- Document ID: US9355464B2
- Status: Granted
- Kind: B2
- Application number: 14/292,742
- Filed: 2014-05-30
- Published: 2015-12-03
- Granted: 2016-05-31
- Earliest claimed: 2014-05-30
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Timothy R. Oriol; Domenico P. Porcino; Jacques P. Gasselin de Richebourg; Norman N. Wang
- Web page: https://patentgrep.com/patent/US9355464B2

## CPC

- G06T 7/40: Analysis of texture (depth or shape recovery from texture G06T7/529)
- G06T 1/60: Memory management
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Systems, methods and program storage devices are disclosed, which comprise instructions to cause one or more processing units to analyze input images to a texture atlas and determine how each texture should be modified before being stored in the texture atlas to prevent undesirable drawing artifacts. For example, “tileable” images may be identified on a per-edge basis (e.g., by determining whether each edge pixel is above a certain opacity threshold). The tileable images may then be modified, e.g., by extruding a 1-pixel border identical to the outer row of pixels, before being stored in the texture atlas. “Character”-type sprites may also be identified on a per-edge basis (e.g., by determining whether each edge pixel is below the opacity threshold). The character-type sprites may then by modified by adding a single pixel transparent border around the outer rows of pixels before being stored in the texture atlas.

## Claims

### Claim 1

A non-transitory program storage device, readable by a programmable control device and comprising instructions stored thereon to cause one or more processing units to:
obtain a first plurality of input images;
generate a texture atlas comprising the first plurality of input images;
determine a type of interpolation mode for each edge of each image in the first plurality of input images, wherein the instructions to determine the type of interpolation mode for each edge of an image further comprise instructions to:
identify tileable edges based, at least in part, on determining that greater than or equal to a first number of edge pixels in the edge have opacity values above a first threshold and the edge is not convex; and
identify non-tileable edges based, at least in part, on:
determining that less than the first number of edge pixels in the edge have opacity values above the first threshold; or
determining that greater than or equal to the first number of edge pixels in the edge have opacity values above the first threshold and the edge is convex; and
for each edge of each image in the first plurality of images:
if the edge has been identified as tileable, extrude a one or more pixel border identical to the edge pixels around the edge; and
if the edge has been identified as non-tileable, extrude a one or more pixel transparent border around the edge.

### Claim 2 (depends on 1)

The non-transitory program storage device of claim 1, further comprising instructions to determine the first number of edge pixels based, at least in part, on a resolution of a display where at least one of the input images is displayed.

### Claim 3 (depends on 2)

The non-transitory program storage device of claim 2, wherein the first number of edge pixels is three.

### Claim 4 (depends on 1)

The non-transitory program storage device of claim 1, further comprising instructions to determine the first threshold based, at least in part, on a gamma value of a display where at least one of the input images is displayed.

### Claim 5 (depends on 4)

The non-transitory program storage device of claim 4, wherein the first threshold is between 0.05 and 0.10, on a scale of 0 to 1.

### Claim 6 (depends on 1)

The non-transitory program storage device of claim 1, further comprising instructions to store original dimensions of at least one of the plurality of input images and trim blank space around the at least one of the plurality of input images before executing the instructions to generate the texture atlas.

### Claim 7 (depends on 1)

The non-transitory program storage device of claim 1, wherein at least one of the first plurality of input images comprises a character sprite.

### Claim 8 (depends on 1)

The non-transitory program storage device of claim 1, wherein all of the edges from a first image from the first plurality of input images are identified as tileable edges, and wherein all of the edges from a second image from the first plurality of input images are identified as non-tileable edges.

### Claim 9

A system, comprising:
a memory having, stored therein, computer program code; and
one or more processing units operatively coupled to the memory and display element and configured to execute instructions in the computer program code that cause the one or more processing units to:
obtain a first plurality of input images;
generate a texture atlas comprising the first plurality of input images;
determine a type of interpolation mode for each edge of each image in the first plurality of input images, wherein the instructions to determine the type of interpolation mode for each edge of an image further comprise instructions to:
identify tileable edges based, at least in part, on determining that greater than or equal to a first number of edge pixels in the edge have opacity values above a first threshold and the edge is not convex; and
identify non-tileable edges based, at least in part, on:
determining that less than the first number of edge pixels in the edge have opacity values above the first threshold; or
determining that greater than or equal to the first number of edge pixels in the edge have opacity values above the first threshold and the edge is convex; and
for each edge of each image in the first plurality of images:
if the edge has been identified as tileable, extrude a one or more pixel border identical to the edge pixels around the edge; and
if the edge has been identified as non-tileable, extrude a one or more pixel transparent border around the edge.

### Claim 10 (depends on 9)

The system of claim 9, wherein the instructions in the computer program code further cause the one or more processing units to determine the first number of edge pixels based, at least in part, on a resolution of the display element.

### Claim 11 (depends on 10)

The system of claim 10, wherein the first number of edge pixels is three.

### Claim 12 (depends on 9)

The system of claim 9, wherein the instructions in the computer program code further cause the one or more processing units to determine the first threshold based, at least in part, on a gamma value of a display where at least one of the input images is displayed.

### Claim 13 (depends on 12)

The system of claim 12, wherein the first threshold is between 0.05 and 0.10, on a scale of 0 to 1.

### Claim 14 (depends on 9)

The system of claim 9, wherein the instructions in the computer program code further cause the one or more processing units to store original dimensions of at least one of the plurality of input images and trim blank space around the at least one of the plurality of input images before executing the instructions to generate the texture atlas.

### Claim 15 (depends on 9)

The system of claim 9, wherein at least one of the first plurality of input images comprises a character sprite.

### Claim 16 (depends on 9)

The system of claim 9, wherein all of the edges from a first image from the first plurality of input images are identified as tileable edges, and wherein all of the edges from a second image from the first plurality of input images are identified as non-tileable edges.

### Claim 17

A method comprising:
obtaining a first plurality of input images;
generating a texture atlas comprising the first plurality of input images;
determining a type of interpolation mode for each edge of each image in the first plurality of input images, wherein the act of determining further comprises:
identifying tileable edges based, at least in part, on determining that greater than or equal to a first number of edge pixels in the edge have opacity values above a first threshold and the edge is not convex; and
identifying non-tileable edges based, at least in part, on:
determining that less than the first number of edge pixels in the edge have opacity values above the first threshold; or
determining that greater than or equal to the first number of edge pixels in the edge have opacity values above the first threshold and the edge is convex; and
for each edge of each image in the first plurality of images:
if the edge has been identified as tileable, extruding a one or more pixel border identical to the edge pixels around the edge; and
if the edge has been identified as non-tileable, extruding a one or more pixel transparent border around the edge.

### Claim 18 (depends on 17)

The method of claim 17, further comprising the act of determining the first number of edge pixels based, at least in part, on a resolution of a display where at least one of the input images is displayed.

### Claim 19 (depends on 17)

The method of claim 17, further comprising the act of determining the first threshold based, at least in part, on a gamma value of a display where at least one of the input images is displayed.

### Claim 20 (depends on 17)

The method of claim 17, wherein at least one of the first plurality of input images comprises a character sprite.
