IP Library › Granted Patent US 11,776,197
Granted Patent B2
US 11,776,197 · App. 17/345,584 · Granted Oct 3, 2023

Method and apparatus for displaying personalized face of three-dimensional character, device, and storage medium

Inventor: Mianguang Liu (Shenzhen, CN)
Assignee: Tencent Technology (Shenzhen) Company Limited
G06T15/04G06T15/205G06T17/00G06T19/20G06T2219/2012
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,776,197
App. No.
17/345,584
Granted
Oct 3, 2023
Kind
B2
Abstract

A method for displaying a personalized face of a three-dimensional (3D) character is provided, performed by a computer device, the method including: obtaining a texture identifier of a personalized face model of a 3D character, the texture identifier being used for identifying a target pattern texture of a target part on the personalized face model, the target part being configured with a corresponding UV texture image, the UV texture image comprising at least two candidate pattern textures of the target part; drawing a basic UV texture image on the personalized face model, the basic UV texture image comprising a texture of a region other than the target part; determining, according to the texture identifier, the target pattern texture from the at least two candidate pattern textures of the target part according to; and drawing the target pattern texture on a region corresponding to the target part on the personalized face model.

Claims (96)

1. A method for displaying a personalized face of a three-dimensional (3D) character, performed by a computer device, the method comprising:

obtaining a texture identifier of a personalized face model of a 3D character, the texture identifier being used for identifying a target pattern texture of a target part on the personalized face model, the target part being configured with a corresponding UV texture image, the UV texture image comprising at least two candidate pattern textures of the target part;

obtaining first position identification information for a first part in a basic UV texture image, wherein:

the basic UV texture image comprises a texture of a region other than the target part;

the first position identification information identifies position information of the first part in the basic UV texture image;

the target part comprises at least an eye;

the first part comprises at least a pupil; and

the first part is a component of the target part and fits into the target part on the personalized face model;

obtaining a color identifier of the first part;

determining a pixel corresponding to the first part according to the first position identification information;

updating the basic UV texture image by changing color of the pixel corresponding to the first part according to the color identifier;

drawing the basic UV texture image on the personalized face model;

determining, according to the texture identifier, the target pattern texture from the at least two candidate pattern textures of the target part; and

drawing the target pattern texture on a region corresponding to the target part on the personalized face model.

2. The method according to claim 1 , wherein:

the personalized face model comprises n target parts, the UV texture image corresponding to an i th target part is set in an i th UV coordinate system, n is a positive integer greater than 1, and i is less than or equal to n; and

drawing the target pattern texture on the region corresponding to the target part on the personalized face model comprises:

determining the region corresponding to the target part on the personalized face model;

setting a visible region in the i th UV coordinate system on the target pattern texture in the UV texture image using at least one a coordinate offset manner or a coordinate scaling manner; and

drawing the target pattern texture in the visible region of the region corresponding to the target part.

3. The method according to claim 2 , wherein determining the region corresponding to the target part on the personalized face model comprises:

obtaining UV coordinates in the i th UV coordinate system that correspond to a vertex on the personalized face model, the UV coordinates comprising a U coordinate and a V coordinate; and

determining a region in which a vertex with a U coordinate greater than or equal to 0 is located as the region corresponding to the target part.

4. The method according to claim 2 , wherein determining the region corresponding to the target part on the personalized face model comprises:

obtaining UV coordinates in the i th UV coordinate system that correspond to a vertex on the personalized face model, the UV coordinates comprising a U coordinate and a V coordinate; and

determining a region in which a vertex with a V coordinate greater than or equal to 0 is located as the region corresponding to the target part.

5. The method according to claim 2 , wherein setting the visible region in the i th UV coordinate system on the target pattern texture in the UV texture image using the at least one of the coordinate offset manner or the coordinate scaling manner comprises at least one of:

setting a start position of the visible region in the i th UV coordinate system at a position of the target pattern texture in the coordinate offset manner; or

setting a region size of the visible region in the i th UV coordinate system to a size of the target pattern texture in the coordinate scaling manner.

6. The method according to claim 2 , wherein drawing the target pattern texture in the visible region of the region corresponding to the target part comprises:

obtaining a coordinate mapping relationship, the coordinate mapping relationship comprising a mapping relationship between texture coordinates of the target pattern texture and a vertex of the target part; and

drawing the target pattern texture in the visible region of the region corresponding to the target part on the personalized face model according to the coordinate mapping relationship.

7. The method according to claim 1 , wherein:

second position identification information of a second part exists in a designated color channel in the basic UV texture image; and

the method further comprises:

obtaining a pattern identifier of the second part;

determining a pixel corresponding to the second part according to the second position identification information in the designated color channel; and

changing color of the pixel corresponding to the second part according to color matching information corresponding to the pattern identifier.

8. A device for displaying a personalized face of a three-dimensional (3D) character, comprising a memory for storing computer instructions and a processor in communication with the memory, wherein, when the processor executes the computer instructions, the processor is configured to cause the device to:

obtain a texture identifier of a personalized face model of a 3D character, the texture identifier being used for identifying a target pattern texture of a target part on the personalized face model, the target part being configured with a corresponding UV texture image, the UV texture image comprising at least two candidate pattern textures of the target part;

obtain first position identification information for a first part in a basic UV texture image, wherein:

the basic UV texture image comprises a texture of a region other than the target part;

the first position identification information identifies position information of the first part in the basic UV texture image;

the target part comprises at least an eye;

the first part comprises at least a pupil; and

the first part is a component of the target part and fits into the target part on the personalized face model;

obtain a color identifier of the first part;

determine a pixel corresponding to the first part according to the first position identification information;

update the basic UV texture image by changing color of the pixel corresponding to the first part according to the color identifier;

draw the basic UV texture image on the personalized face model;

determine, according to the texture identifier, the target pattern texture from the at least two candidate pattern textures of the target part; and

draw the target pattern texture on a region corresponding to the target part on the personalized face model.

9. The device according to claim 8 , wherein:

the personalized face model comprises n target parts, the UV texture image corresponding to an i th target part is set in an i th UV coordinate system, and i is less than or equal to n; and

when the processor is configured to cause the device to draw the target pattern texture on the region corresponding to the target part on the personalized face model, the processor is configured to cause the device to:

determine the region corresponding to the target part on the personalized face model;

set a visible region in the i th UV coordinate system on the target pattern texture in the UV texture image using at least one a coordinate offset manner or a coordinate scaling manner; and

draw the target pattern texture in the visible region of the region corresponding to the target part.

10. The device according to claim 9 , wherein, when the processor is configured to cause the device to determine the region corresponding to the target part on the personalized face model, the processor is configured to cause the device to:

obtain UV coordinates in the i th UV coordinate system that correspond to a vertex on the personalized face model, the UV coordinates comprising a U coordinate and a V coordinate; and

determine a region in which a vertex with a U coordinate greater than or equal to 0 is located as the region corresponding to the target part.

11. The device according to claim 9 , wherein, when the processor is configured to cause the device to determine the region corresponding to the target part on the personalized face model, the processor is configured to cause the device to:

obtain UV coordinates in the i th UV coordinate system that correspond to a vertex on the personalized face model, the UV coordinates comprising a U coordinate and a V coordinate; and

determine a region in which a vertex with a V coordinate greater than or equal to 0 is located as the region corresponding to the target part.

12. The device according to claim 9 , wherein, when the processor is configured to cause the device to set the visible region in the i th UV coordinate system on the target pattern texture in the UV texture image using the at least one of the coordinate offset manner or the coordinate scaling manner, the processor is configured to cause the device to perform at least one of:

set a start position of the visible region in the i th UV coordinate system at a position of the target pattern texture in the coordinate offset manner; or

set a region size of the visible region in the i th UV coordinate system to a size of the target pattern texture in the coordinate scaling manner.

13. The device according to claim 9 , wherein, when the processor is configured to cause the device to draw the target pattern texture in the visible region of the region corresponding to the target part, the processor is configured to cause the device to:

obtain a coordinate mapping relationship, the coordinate mapping relationship comprising a mapping relationship between texture coordinates of the target pattern texture and a vertex of the target part; and

draw the target pattern texture in the visible region of the region corresponding to the target part on the personalized face model according to the coordinate mapping relationship.

14. The device according to claim 8 , wherein:

second position identification information of a second part exists in a designated color channel in the basic UV texture image; and

when the processor executes the computer instructions, the processor is configured to further cause the device to:

obtain a pattern identifier of the second part;

determine a pixel corresponding to the second part according to the second position identification information in the designated color channel; and

change color of the pixel corresponding to the second part according to color matching information corresponding to the pattern identifier.

15. A non-transitory storage medium for storing computer readable instructions, the computer readable instructions, when executed by a processor in a device comprising a camera, causing the processor to:

obtain a texture identifier of a personalized face model of a 3D character, the texture identifier being used for identifying a target pattern texture of a target part on the personalized face model, the target part being configured with a corresponding UV texture image, the UV texture image comprising at least two candidate pattern textures of the target part;

obtain first position identification information for a first part in a basic UV texture image, wherein:

the basic UV texture image comprises a texture of a region other than the target part;

the first position identification information identifies position information of the first part in the basic UV texture image;

the target part comprises at least an eye;

the first part comprises at least a pupil; and

the first part is a component of the target part and fits into the target part on the personalized face model;

obtain a color identifier of the first part;

determine a pixel corresponding to the first part according to the first position identification information;

update the basic UV texture image by changing color of the pixel corresponding to the first part according to the color identifier;

draw the basic UV texture image on the personalized face model;

determine, according to the texture identifier, the target pattern texture from the at least two candidate pattern textures of the target part; and

draw the target pattern texture on a region corresponding to the target part on the personalized face model.

16. The non-transitory storage medium according to claim 15 , wherein:

the personalized face model comprises n target parts, the UV texture image corresponding to an i th target part is set in an i th UV coordinate system, and i is less than or equal to n; and

when the computer readable instructions cause the processor to draw the target pattern texture on the region corresponding to the target part on the personalized face model, the computer readable instructions cause the processor to:

determine the region corresponding to the target part on the personalized face model;

set a visible region in the i th UV coordinate system on the target pattern texture in the UV texture image using at least one a coordinate offset manner or a coordinate scaling manner; and

draw the target pattern texture in the visible region of the region corresponding to the target part.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 11, 2021
From: LIU, MIANGUANG
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 056516/0320 →
Priority Claims (1)
CN 201910414362.8 · May 17, 2019 · national
Continuity (2)
Continuation PCTCN2020088772 · May 6, 2020
Related Publication 20210312696A1 · Oct 7, 2021
Cited By (1)
US 12,652,185