# US 2025/0157151 A1 · Rendering optimization method, electronic device, and computer-readable storage medium

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

- Number: US 2025/0157151 A1
- Document ID: US20250157151A1
- Status: Published application
- Kind: A1
- Application number: 18/838,811
- Filed: 2023-04-27
- Published: 2025-05-15
- Earliest claimed: 2022-08-04
- Assignees: Honor Device Co., Ltd.
- Applicants: Honor Device Co., Ltd.
- Inventors: Zhichao LIU
- Web page: https://patentgrep.com/patent/US20250157151A1

## CPC

- G06T 17/20: Finite element generation, e.g. wire-frame surface description, {tesselation}
- G06T 17/205: {Re-meshing}
- G06T 15/06: Ray-tracing
- G06T 15/20: Perspective computation
- G06T 15/80: Shading
- G06T 2210/12: Bounding box
- G06T 2210/21: Collision detection, intersection
- G06T 2210/36: Level of detail
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

This application provides a rendering optimization method, an electronic device, and a computer-readable storage medium. The method is applied to the electronic device, including: determining first polygonal mesh data corresponding to an object model in a scene; creating a bounding box corresponding to the object model based on the first polygonal mesh data; determining a pixel range covered when the bounding box is projected onto a screen of the electronic device, obtaining a relationship between a quantity of pixels covered by the bounding box and a quantity of pixels of the screen, and determining a distance between an observation angle in the scene and the object model; determining a level of detail (LOD) level corresponding to the object model based on the distance and the relationship, and updating the first polygonal mesh data to second polygonal mesh data based on the LOD level.

## Claims

### Claim 1

A rendering optimization method, applied to an electronic device, the method comprising:
determining first polygonal mesh data corresponding to an object model in a scene, wherein the first polygonal mesh data is for describing the object model;
creating a bounding box corresponding to the object model based on the first polygonal mesh data;
determining a pixel range covered when the bounding box is projected onto a screen of the electronic device, obtaining a relationship between a quantity of pixels covered by the bounding box and a quantity of pixels of the screen, and determining a distance between an observation angle in the scene and the object model;
determining a level of detail (LOD) level corresponding to the object model based on the distance and the relationship, and updating the first polygonal mesh data to second polygonal mesh data based on the LOD level; and
rendering the object model based on the second polygonal mesh data.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining the LOD level corresponding to the object model based on the distance and the relationship comprises:
performing a weighted summation calculation on the distance and the relationship respectively, to obtain a summation result; and
determining the LOD level based on the summation result.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining the distance between the observation angle in the scene and the object model comprises:
obtaining first world coordinates of the observation angle in world space and second world coordinates of the object model in the world space; and
determining the distance between the observation angle and the object model based on the first world coordinates and the second world coordinates.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the updating the first polygonal mesh data to the second polygonal mesh data based on the LOD level comprises:
removing, based on the LOD level, a part of polygonal mesh data from the first polygonal mesh data by using a polygonal mesh tile reduction algorithm to obtain the second polygonal mesh data.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the rendering the object model based on the second polygonal mesh data comprises:
determining that a rendering mode corresponding to the object model is ray tracing rendering;
obtaining the second polygonal mesh data; and
calculating an intersection of a ray and the object model in the scene by using a ray tracing shader based on the second polygonal mesh data, and shading the object model based on the intersection.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the method further comprises:
determining that the rendering mode corresponding to the object model is normal rendering;
obtaining the first polygonal mesh data corresponding to the object model in the scene; and
shading the object model by using a rasterized shader.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the creating the bounding box corresponding to the object model based on the first polygonal mesh data comprises:
determining, based on the first polygonal mesh data, maximum values and minimum values of the object model in an X direction, a Y direction, and a Z direction in coordinates of the object model; and
determining the bounding box based on the maximum values and the minimum values.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the relationship between the quantity of pixels covered by the bounding box and the quantity of pixels of the screen is a ratio of the quantity of pixels covered by the bounding box to the quantity of pixels of the screen.

### Claim 9 (depends on 8)

The method according to claim 8, wherein a weight of the distance is set to range from 0.1 to 0.5, and a weight of the ratio ranges from 0.5 to 0.9.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the weight of the distance is set to 0.3, and the weight of the ratio is 0.7.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the first polygonal mesh data comprises a first quantity of polygons corresponding to the object model.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the second polygonal mesh data comprises a second quantity of polygons corresponding to the object model, wherein the second quantity is less than the first quantity.

### Claim 13 (depends on 1)

The method according to claim 1, wherein polygons of the first polygonal mesh data are triangles.

### Claim at position 14

-16. (canceled)

### Claim 17

An electronic device, comprising:
one or more memories storing one or more programs; and
a processor configured to execute the one or more programs to cause the electronic device to perform operations comprising:
determining first polygonal mesh data corresponding to an object model in a scene, wherein the first polygonal mesh data is for describing the object model;
creating a bounding box corresponding to the object model based on the first polygonal mesh data;
determining a pixel range covered when the bounding box is projected onto a screen of the electronic device, obtaining a relationship between a quantity of pixels covered by the bounding box and a quantity of pixels of the screen, and determining a distance between an observation angle in the scene and the object model;
determining a level of detail (LOD) level corresponding to the object model based on the distance and the relationship, and updating the first polygonal mesh data to second polygonal mesh data based on the LOD level; and
rendering the object model based on the second polygonal mesh data.

### Claim 18

A non-transitory computer-readable storage medium storing a computer program that, when executed by a processor, causes an electronic device to perform operations comprising:
determining first polygonal mesh data corresponding to an object model in a scene, wherein the first polygonal mesh data is for describing the object model;
creating a bounding box corresponding to the object model based on the first polygonal mesh data;
determining a pixel range covered when the bounding box is projected onto a screen of the electronic device, obtaining a relationship between a quantity of pixels covered by the bounding box and a quantity of pixels of the screen, and determining a distance between an observation angle in the scene and the object model;
determining a level of detail (LOD) level corresponding to the object model based on the distance and the relationship, and updating the first polygonal mesh data to second polygonal mesh data based on the LOD level; and
rendering the object model based on the second polygonal mesh data.
