# US 2024/0257436 A1 · Image rendering method and apparatus, electronic device, and storage medium

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

- Number: US 2024/0257436 A1
- Document ID: US20240257436A1
- Status: Published application
- Kind: A1
- Application number: 18/022,712
- Filed: 2022-10-27
- Published: 2024-08-01
- Earliest claimed: 2022-04-29
- Assignees: Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Beijing Zitiao Network Technology Co., Ltd
- Inventors: Jiaqi FAN; Fengwei WANG
- Web page: https://patentgrep.com/patent/US20240257436A1

## CPC

- G06T 15/04: Texture mapping
- G06T 15/20: Perspective computation
- G06T 15/80: Shading
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image rendering method includes the following: A to-be-processed pixel in a 3D scene layer, a target pixel in the 3D scene layer, a pixel attribute of the to-be-processed pixel, and a pixel attribute of the target pixel are determined according to a map attribute of a to-be-processed map of a 3D on-screen scene, and a map attribute of a target map of the 3D on-screen scene; the target map is rendered onto a render layer according to the map attribute of the target map; a target rendering image corresponding to the 3D on-screen scene is determined based on the 3D scene layer and the render layer, and the target rendering image is projected and displayed.

## Claims

### Claim 1

An image rendering method, comprising:
determining a to-be-processed pixel in a three dimensional (3D) scene layer, a target pixel in the 3D scene layer, a pixel attribute of the to-be-processed pixel, and a pixel attribute of the target pixel according to a map attribute of a to-be-processed map of a (3D) on-screen scene, and a map attribute of a target map of the 3D on-screen scene, wherein the to-be-processed pixel corresponds to the to-be-processed map, and the target pixel corresponds to the target map;
rendering the target map onto a render layer according to the map attribute of the target map; and
determining, based on the 3D scene layer and the render layer, a target rendering image corresponding to the 3D on-screen scene, and projecting and displaying the target rendering image.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining the target map in a mesh model, and the map attribute of the target map according to a target display region in the 3D on-screen scene.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining the target map in the mesh model, and the map attribute of the target map according to the target display region in the 3D on-screen scene comprises:
determining at least one patch identifier corresponding to the target display region in the mesh model; and
determining the target map, and the map attribute of the target map according to each of the at least one patch identifier and map texture coordinates corresponding to each of the at least one patch identifier.

### Claim 4 (depends on 1)

The method of claim 1, wherein each of the pixel attribute of the to-be-processed pixel and the pixel attribute of the target pixel comprises a red-green-blue (RGB) value and a transparency value; and determining the to-be-processed pixel in the 3D scene layer, the target pixel in the 3D scene layer, the pixel attribute of the to-be-processed pixel and the pixel attribute of the target pixel according to the map attribute of the to-be-processed map of the 3D on-screen scene, and the map attribute of the target map of the 3D on-screen scene comprises:
acquiring, based on a vertex shader, map texture coordinates of the to-be-processed map written in an assembly, map texture coordinates of the target map written in the assembly, and a transformation matrix written in the assembly, and determining the to-be-processed pixel of the 3D on-screen scene in the 3D scene layer, and the target pixel of the 3D on-screen scene in the 3D scene layer, wherein the transformation matrix comprises a rotation matrix and a translation matrix; and
rendering a determined to-be-processed pixel and a determined target pixel based on an RGB value of the determined to-be-processed pixel and an RGB value of the determined target pixel, and rendering a transparency value of the target pixel into a target transparency value based on a target pixel shader.

### Claim 5 (depends on 1)

The method of claim 1, wherein rendering the target map onto the render layer according to the map attribute of the target map comprises:
determining a target display position of the target map on the render layer according to map texture coordinates of the target map and a transformation matrix; and
rendering the target map onto the render layer based on the target display position and a rendering transparency value of the target map.

### Claim 6 (depends on 1)

The method of claim 1, wherein determining, based on the 3D scene layer and the render layer, the target rendering image corresponding to the 3D on-screen scene comprises:
determining, based on display content on the 3D scene layer, a target transparency value of the target pixel, and a rendering transparency value corresponding to a target rendering map in the render layer, the target rendering image corresponding to the 3D on-screen scene,
wherein the rendering transparency value is different from the target transparency value.

### Claim 7 (depends on 1)

The method of claim 1, wherein the target map corresponds to a region highlighted in the 3D on-screen scene, and the render layer is used for increasing resolution of the target map in a display interface.

### Claim 8

(canceled)

### Claim 9

An electronic device, comprising:
at least one processor, and
a storage apparatus configured to store at least one program,
wherein the at least one program, when executed by the at least one processor, causes the at least one processor to perform an image rendering method,
wherein the image rendering method comprises:
determining a to-be-processed pixel in a 3D scene layer, a target pixel in the 3D scene layer, a pixel attribute of the to-be-processed pixel, and a pixel attribute of the target pixel according to a map attribute of a to-be-processed map of a 3D on-screen scene, and a map attribute of a target map of the 3D on-screen scene, wherein the to-be-processed pixel corresponds to the to-be-processed map, and the target pixel corresponds to the target map;
rendering the target map onto a render layer according to the map attribute of the target map; and
determining, based on the 3D scene layer and the render layer, a target rendering image corresponding to the 3D on-screen scene, and projecting and displaying the target rendering image.

### Claim 10

A non-transitory storage medium comprising computer-executable instructions, wherein when the computer-executable instructions are executed by a computer processor, an image rendering method,
wherein the image rendering method comprises:
determining a to-be-processed pixel in a 3D scene layer, a target pixel in the 3D scene layer, a pixel attribute of the to-be-processed pixel, and a pixel attribute of the target pixel according to a map attribute of a to-be-processed map of a 3D on-screen scene, and a map attribute of a target map of the 3D on-screen scene, wherein the to-be-processed pixel corresponds to the to-be-processed map, and the target pixel corresponds to the target map;
rendering the target map onto a render layer according to the map attribute of the target map; and
determining, based on the 3D scene layer and the render layer, a target rendering image corresponding to the 3D on-screen scene, and projecting and displaying the target rendering image.

### Claim 11 (depends on 10)

The non-transitory storage medium of claim 10, further comprising:
determining the target map in a mesh model, and the map attribute of the target map according to a target display region in the 3D on-screen scene.

### Claim 12 (depends on 10)

The non-transitory storage medium of claim 10, wherein each of the pixel attribute of the to-be-processed pixel and the pixel attribute of the target pixel comprises a red-green-blue (RGB) value and a transparency value; and determining the to-be-processed pixel in the 3D scene layer, the target pixel in the 3D scene layer, the pixel attribute of the to-be-processed pixel and the pixel attribute of the target pixel according to the map attribute of the to-be-processed map of the 3D on-screen scene, and the map attribute of the target map of the 3D on-screen scene comprises:
acquiring, based on a vertex shader, map texture coordinates of the to-be-processed map written in an assembly, map texture coordinates of the target map written in the assembly, and a transformation matrix written in the assembly, and determining the to-be-processed pixel of the 3D on-screen scene in the 3D scene layer, and the target pixel of the 3D on-screen scene in the 3D scene layer, wherein the transformation matrix comprises a rotation matrix and a translation matrix; and
rendering a determined to-be-processed pixel and a determined target pixel based on an RGB value of the determined to-be-processed pixel and an RGB value of the determined target pixel, and rendering a transparency value of the target pixel into a target transparency value based on a target pixel shader.

### Claim 13 (depends on 10)

The non-transitory storage medium of claim 10, wherein rendering the target map onto the render layer according to the map attribute of the target map comprises:
determining a target display position of the target map on the render layer according to map texture coordinates of the target map and a transformation matrix; and
rendering the target map onto the render layer based on the target display position and a rendering transparency value of the target map.

### Claim 14 (depends on 9)

The electronic device of claim 9, further comprising:
determining the target map in a mesh model, and the map attribute of the target map according to a target display region in the 3D on-screen scene.

### Claim 15 (depends on 9)

The electronic device of claim 9, wherein each of the pixel attribute of the to-be-processed pixel and the pixel attribute of the target pixel comprises a red-green-blue (RGB) value and a transparency value; and determining the to-be-processed pixel in the 3D scene layer, the target pixel in the 3D scene layer, the pixel attribute of the to-be-processed pixel and the pixel attribute of the target pixel according to the map attribute of the to-be-processed map of the 3D on-screen scene, and the map attribute of the target map of the 3D on-screen scene comprises:
acquiring, based on a vertex shader, map texture coordinates of the to-be-processed map written in an assembly, map texture coordinates of the target map written in the assembly, and a transformation matrix written in the assembly, and determining the to-be-processed pixel of the 3D on-screen scene in the 3D scene layer, and the target pixel of the 3D on-screen scene in the 3D scene layer, wherein the transformation matrix comprises a rotation matrix and a translation matrix; and
rendering a determined to-be-processed pixel and a determined target pixel based on an RGB value of the determined to-be-processed pixel and an RGB value of the determined target pixel, and rendering a transparency value of the target pixel into a target transparency value based on a target pixel shader.

### Claim 16 (depends on 9)

The electronic device of claim 9, wherein rendering the target map onto the render layer according to the map attribute of the target map comprises:
determining a target display position of the target map on the render layer according to map texture coordinates of the target map and a transformation matrix; and
rendering the target map onto the render layer based on the target display position and a rendering transparency value of the target map.

### Claim 17 (depends on 2)

The method of claim 2, wherein the target map corresponds to a region highlighted in the 3D on-screen scene, and the render layer is used for increasing resolution of the target map in a display interface.

### Claim 18 (depends on 3)

The method of claim 3, wherein the target map corresponds to a region highlighted in the 3D on-screen scene, and the render layer is used for increasing resolution of the target map in a display interface.

### Claim 19 (depends on 4)

The method of claim 4, wherein the target map corresponds to a region highlighted in the 3D on-screen scene, and the render layer is used for increasing resolution of the target map in a display interface.

### Claim 20 (depends on 5)

The method of claim 5, wherein the target map corresponds to a region highlighted in the 3D on-screen scene, and the render layer is used for increasing resolution of the target map in a display interface.

### Claim 21 (depends on 6)

The method of claim 6, wherein the target map corresponds to a region highlighted in the 3D on-screen scene, and the render layer is used for increasing resolution of the target map in a display interface.
