IP Library Granted Patent US 12682544
Granted Patent B2
US 12682544 · App. 18/551,360 · Granted Jul 14, 2026

Scene rendering method, electronic device, and non-transitory readable storage medium

Inventor: Pengfei Wang (Beijing, CN)
Assignee: Beijing Zitiao Network Technology Co., Ltd.
G06T15/04G06T7/50G06T7/90G06V10/56G06V10/764G06T2207/10024
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 12682544
App. No.
18/551,360
Granted
Jul 14, 2026
Kind
B2
Abstract

The present disclosure provides a scene rendering method, an electronic device and a storage medium, wherein the scene rendering method includes: acquiring an opaque object and a transparent object in a scene to be rendered; creating a first color texture with a first rendering resolution, and rendering the opaque object based on the first color texture to obtain a first rendering result; creating a second color texture with a second rendering resolution and copying the first rendering result onto the second color texture; rendering the transparent object based on the second color texture copied with the first rendering result, to obtain a second rendering result; performing first extraction on a color of the transparent object in the second rendering result, to obtain a third rendering result; and synthesizing the third rendering result and the first rendering result to obtain a rendered scene image.

Claims (61)

1 . A scene rendering method, comprising:

acquiring an opaque object and a transparent object in a scene to be rendered;

creating a first color texture with a first rendering resolution, and rendering the opaque object based on the first color texture to obtain a first rendering result;

creating a second color texture with a second rendering resolution and copying the first rendering result onto the second color texture, wherein the second rendering resolution is lower than the first rendering resolution, and the second rendering resolution is determined by at least one of a transparency of the transparent object or a number of laminations of the transparent object;

rendering the transparent object based on the second color texture copied with the first rendering result, to obtain a second rendering result;

performing first extraction on a color of the transparent object in the second rendering result, to obtain a third rendering result; and

synthesizing the third rendering result and the first rendering result to obtain a rendered scene image,

wherein the higher the transparency of the transparent object is, the lower the second rendering resolution is.

2 . The scene rendering method according to claim 1 , wherein:

the copying the first rendering result onto the second color texture comprises copying color information and depth information in the first rendering result onto the second color texture; and

the rendering the transparent object based on the second color texture copied with the first rendering result comprises rendering the transparent object based on the second color texture copied with the first rendering result and the depth information of the transparent object.

3 . The scene rendering method according to claim 2 , wherein the rendering the transparent object based on the second color texture copied with the first rendering result and the depth information of the transparent object, comprises:

rendering the transparent object according to a preset depth rendering rule, wherein the depth rendering rule comprises a depth association rule between the opaque object and the transparent object.

4 . The scene rendering method according to claim 2 , wherein the rendering the transparent object based on the second color texture copied with the first rendering result and the depth information of the transparent object, comprises:

determining first target depth information of the transparent object and second target depth information in the first rendering result, which respectively correspond to target pixel points, the target pixel points being pixel points to be rendered in the second color texture;

comparing the first target depth information with the second target depth information; and

in a case where a depth of the first target depth information is greater than a depth of the second target depth information, not rendering the target pixel points.

5 . The scene rendering method according to claim 1 , wherein the copying the first rendering result onto the second color texture comprises:

creating a target map by taking the second rendering resolution as a reference, wherein color information of the target map corresponds to color information in the first rendering result; and

rendering the target map based on the second color texture; and

copying the color information in the first rendering result onto the second color texture.

6 . The scene rendering method according to claim 1 , wherein the performing first extraction on a color of the transparent object in the second rendering result, to obtain a third rendering result, comprises:

performing second extraction on the color of the transparent object in the second rendering result, to obtain color information of the transparent object; and

performing first operation processing on the color information to obtain a processing result of the color information conforming to a target storage format, and obtaining the third rendering result, wherein the target storage format is a picture storage format; and

wherein the synthesizing the third rendering result and the first rendering result comprises:

performing second operation processing on the color information in the third rendering result, to obtain target color information, wherein the second operation is an inverse operation of the first operation; and

synthesizing the target color information and the color information in the first rendering result.

7 . The scene rendering method according to claim 1 , wherein the synthesizing the third rendering result and the first rendering result to obtain the rendered scene image, comprises:

processing an edge of the transparent object in the third rendering result by means of multiple sampling, to obtain a fourth rendering result; and

synthesizing the fourth rendering result and the first rendering result to obtain the rendered scene image.

8 . The scene rendering method according to claim 1 , wherein the acquiring the opaque object and the transparent object in the scene to be rendered comprises:

acquiring a scene description file of the scene to be rendered;

parsing the scene description file, to acquire objects to be rendered in the scene to be rendered and rendering information corresponding to the objects to be rendered; and

classifying the objects to be rendered according to the rendering information into an opaque object and a transparent object.

9 . The scene rendering method according to claim 1 , wherein the rendering the opaque object based on the first color texture to obtain the first rendering result, comprising:

rendering a pixel point only once.

10 . The scene rendering method according to claim 1 , wherein the rendering the opaque object based on the first color texture to obtain the first rendering result, comprising:

ranking the opaque object according to depth information of the opaque object; and

sequentially rendering the opaque object according to the ranking of the opaque object.

11 . An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is running, the machine-readable instructions, when executed by the processor, performing a scene rendering method comprising:

acquiring an opaque object and a transparent object in a scene to be rendered;

creating a first color texture with a first rendering resolution, and rendering the opaque object based on the first color texture to obtain a first rendering result;

creating a second color texture with a second rendering resolution and copying the first rendering result onto the second color texture, wherein the second rendering resolution is lower than the first rendering resolution, and the second rendering resolution is determined by at least one of a transparency of the transparent object or a number of laminations of the transparent object;

rendering the transparent object based on the second color texture copied with the first rendering result, to obtain a second rendering result;

performing first extraction on a color of the transparent object in the second rendering result, to obtain a third rendering result; and

synthesizing the third rendering result and the first rendering result to obtain a rendered scene image,

wherein the higher the transparency of the transparent object is, the lower the second rendering resolution is.

12 . The electronic device according to claim 11 , wherein:

the copying the first rendering result onto the second color texture comprises copying color information and depth information in the first rendering result onto the second color texture; and

the rendering the transparent object based on the second color texture copied with the first rendering result comprises rendering the transparent object based on the second color texture copied with the first rendering result and the depth information of the transparent object.

13 . A non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs a scene rendering method comprising:

acquiring an opaque object and a transparent object in a scene to be rendered;

creating a first color texture with a first rendering resolution, and rendering the opaque object based on the first color texture to obtain a first rendering result;

creating a second color texture with a second rendering resolution and copying the first rendering result onto the second color texture, wherein the second rendering resolution is lower than the first rendering resolution, and the second rendering resolution is determined by at least one of a transparency of the transparent object or a number of laminations of the transparent object;

rendering the transparent object based on the second color texture copied with the first rendering result, to obtain a second rendering result;

performing first extraction on a color of the transparent object in the second rendering result, to obtain a third rendering result; and

synthesizing the third rendering result and the first rendering result to obtain a rendered scene image,

wherein the higher the transparency of the transparent object is, the lower the second rendering resolution is.

14 . The non-transitory computer-readable storage medium according to claim 13 , wherein:

the copying the first rendering result onto the second color texture comprises copying color information and depth information in the first rendering result onto the second color texture; and

the rendering the transparent object based on the second color texture copied with the first rendering result comprises rendering the transparent object based on the second color texture copied with the first rendering result and the depth information of the transparent object.