# US 2022/0044479 A1 · Textured mesh building

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

- Number: US 2022/0044479 A1
- Document ID: US20220044479A1
- Status: Published application
- Kind: A1
- Application number: 17/506,478
- Filed: 2021-10-20
- Published: 2022-02-10
- Earliest claimed: 2018-11-27
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Samuel Edward Hare; Andrew James McPhee; Daniel Moreno; Kyle Goodrich
- Web page: https://patentgrep.com/patent/US20220044479A1

## CPC

- G06T 15/04: Texture mapping
- G06F 3/011: {Arrangements for interaction with the human body, e.g. for user immersion in virtual reality (blind teaching G09B21/00)}
- G06F 3/04815: Interaction with a metaphor-based environment or interaction object displayed as three-dimensional [3D], e.g. changing the user viewpoint with respect to the environment or object
- G06T 3/20: Linear translation of whole images or parts thereof, e.g. panning
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T 7/11: Region-based segmentation
- G06T 7/194: involving foreground-background segmentation
- G06T 7/20: Analysis of motion (motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/43, H04N19/51)
- G06T 7/251: {involving models}
- G06T 7/564: from contours
- G06T 7/579: from motion
- G06T 11/00: Two-dimensional [2D] image generation
- G06T 11/60: Creating or editing images; Combining images with text
- G06T 13/20: Three-dimensional [3D] animation
- G06T 15/00: Three-dimensional [3D] image rendering
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T 17/20: Finite element generation, e.g. wire-frame surface description, {tesselation}
- G06T 19/006: {Mixed reality (object pose determination, tracking or camera calibration for mixed reality G06T7/00)}
- G06T 19/20: Editing of three-dimensional [3D] images, e.g. changing shapes or colours, aligning objects or positioning parts
- G06V 20/20: in augmented reality scenes
- G06V 20/647: {by matching two-dimensional images to three-dimensional objects}
- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 2218/00: Aspects of pattern recognition specially adapted for signal processing
- G06T 2200/08: involving all processing steps from image acquisition to 3D model generation
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2219/2004: Aligning objects, relative positioning of parts
- G06T 2219/2012: Colour editing, changing, or manipulating; Use of colour codes
- G06T 2219/2016: Rotation, translation, scaling
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems and methods are provided for receiving a two-dimensional (2D) image comprising a 2D object; identifying a contour of the 2D object; generating a three-dimensional (3D) mesh based on the contour of the 2D object; and applying a texture of the 2D object to the 3D mesh to output a 3D object representing the 2D object.

## Claims

### Claim 1

A method comprising:
receiving a two-dimensional (2D) image comprising a 2D object;
generating a three-dimensional (3D) mesh based on the 2D object;
generating a material map that maps a 2D texture of the 2D object to UV positions of the 3D mesh, wherein the material map includes a plurality of regions each associated with a different portion of the 3D mesh;
selecting a first texture for a first region of the plurality of regions based on a type of the 2D object; and
applying the material map to the 3D mesh to output a 3D object representing the 2D object.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
identifying a contour of the 2D object;
generating the 3D mesh based on the contour of the 2D object.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining an altitude of a client device on which the 3D object is presented; and
modifying one or more visual attributes of the 3D object based on the altitude of the client device, a texture of the 3D object being modified to represent a body of water when the altitude of the client device is a second altitude lower than a first altitude and a geographical location of the client device is associated with a location at which the body of water is present.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
detecting a reference surface in a 3D space captured within a camera feed; and
orienting the 3D object at a position in the 3D space based on the detected reference surface.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
rotating the 2D object in a 3D space;
extending each point of the 2D object by a specified amount from a first position to a second position in the 3D space to add depth to the 2D object;
replicating a color of a first pixel at a first point of the 2D object in 3D space towards the second position to form a first array of pixels, each pixel in the first array of pixels having an identical color as the color of the pixel at the first point; and
replicating a color of a second pixel at a second point of the 2D object in 3D space towards the second position to form a second array of pixels, each pixel in the second array of pixels having an identical color as the color of the pixel at the second point, the second array of pixels comprising a different amount of pixels than the first array of pixels.

### Claim 6 (depends on 1)

The method of claim 1, wherein portions of first and second arrays of pixels become visible in different amounts as the 3D object is rotated, further comprising:
processing segments of the 2D object into a polygon edge of the generated 3D mesh.

### Claim 7 (depends on 1)

The method of claim 1, wherein the plurality of regions of the material map includes a front region, a back region, an outside region, and an inside region; and wherein applying the material map to the 3D mesh comprises:
applying the first texture from the front region to a front portion of the 3D mesh;
applying a second texture from the inside region to an inside portion of the 3D mesh;
applying a third texture from the outside region to an outside portion of the 3D mesh; and
applying a fourth texture from the back region to a back portion of the 3D mesh.

### Claim 8 (depends on 7)

The method of claim 7, further comprising generating the fourth texture from the back region by mirroring the first texture in the front region vertically.

### Claim 9 (depends on 7)

The method of claim 7, wherein the first, second, third, and fourth textures are applied by overlaying the first, second, third and fourth textures over portions of the 3D mesh corresponding to the UV positions.

### Claim 10 (depends on 7)

The method of claim 7, further comprising:
generating, for display, the 3D object in an image captured by a client device;
receiving input manipulating the 3D object in 3D space; and
modifying amounts of the first, second, third, and fourth textures that are presented as part of the 3D object based on the received input.

### Claim 11 (depends on 1)

The method of claim 1, wherein the 3D object is modified to illustrate a sky when an first altitude of a client device is associated with flying.

### Claim 12 (depends on 1)

The method of claim 1, wherein the 3D object is generated with brighter color textures at a first point in time in a day, wherein the 3D object is generated with darker color textures at a second point in time in the day.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
determining that computational power of a client device exceeds a threshold, wherein the 3D mesh is generated in response to determining that the computational power of the client device exceeds the threshold.

### Claim 14 (depends on 1)

The method of claim 1, further comprising:
determining that computational power of a client device fails to exceed a threshold;
in response to determining that the computational power of the client device fails to exceed the threshold;
generating a plurality of duplicates of the 2D image;
stacking the plurality of duplicates behind each other in a 3D space that are offset from each other by a specified number of pixels in the 3D space to output the 3D object;
inserting a plurality of spaces between each adjacent pair of the plurality of duplicates, such that a space is inserted between first and second adjacent duplicates of the plurality of duplicates, each of the plurality of spaces comprising a number of grey pixels corresponding to the specified number of pixels.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
receiving input to rotate the 3D object in the 3D space; and
automatically modifying an amount of the plurality of duplicates and the amount of the plurality of spaces that are presented on the client device as the 3D object is rotated about its axis.

### Claim 16 (depends on 1)

The method of claim 1, further comprising;
selecting a predetermined pattern associated with the 2D object; and
generating the first texture and a second texture associated with a second region of the plurality of regions based on the predetermined pattern.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
determining that the 2D object comprises an image; and
in response to determining that the 2D object comprises an image, selecting, as the predetermined pattern, lines in opposing diagonal directions, wherein the first texture comprises a first set of the lines in a first diagonal direction, and wherein the second texture comprises a second set of the lines in a second diagonal direction.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
determining that the 2D object comprises text; and
in response to determining that the 2D object comprises an image, selecting, as the predetermined pattern, hashmarks with different densities, wherein the first texture comprises a first set of the hashmarks with a first density, and wherein the second texture comprises a second set of the hashmarks with a second density.

### Claim 19

A system comprising:
one or more processors configured to perform operations comprising:
receiving a two-dimensional (2D) image comprising a 2D object;
generating a three-dimensional (3D) mesh based on the 2D object;
generating a material map that maps a 2D texture of the 2D object to UV positions of the 3D mesh, wherein the material map includes a plurality of regions each associated with a different portion of the 3D mesh;
selecting a first texture for a first region of the plurality of regions based on a type of the 2D object; and
applying the material map to the 3D mesh to output a 3D object representing the 2D object.

### Claim 20

A non-transitory machine-readable medium storing non-transitory instructions which, when executed by one or more processors of a machine, cause the machine to perform operations comprising:
receiving a two-dimensional (2D) image comprising a 2D object;
generating a three-dimensional (3D) mesh based on the 2D object;
generating a material map that maps a 2D texture of the 2D object to UV positions of the 3D mesh, wherein the material map includes a plurality of regions each associated with a different portion of the 3D mesh;
selecting a first texture for a first region of the plurality of regions based on a type of the 2D object; and
applying the material map to the 3D mesh to output a 3D object representing the 2D object.
