Rendering method, device, and system
Abstract
A rendering method is provided, including the following: A rendering platform obtains an influential variable of a coloring result of a to-be-processed grid (S 201 ), where the to-be-processed grid includes some regions of a surface of a three-dimensional model; the rendering platform selects a coloring result of a matching sample grid from a grid rendering resource based on the influential variable of the coloring result of the to-be-processed grid (S 202 ), where the grid rendering resource stores influential variables of coloring results of a plurality of sample grids and corresponding coloring results of the plurality of sample grids; and the rendering platform returns the coloring result of the matching sample grid as the coloring result of the to-be-processed grid (S 203 ). According to the foregoing method, a waste of computing resources can be effectively reduced.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A rendering method, comprising: obtaining, by a rendering platform, an influential variable of a coloring result of a to-be-processed grid, wherein the to-be-processed grid comprises one or more regions of a surface of a three-dimensional model, and wherein the influential variable comprises a scene identifier and a grid identifier; selecting, by the rendering platform, a coloring result of a matching sample grid from a grid rendering resource based on the influential variable of the coloring result of the to-be-processed grid, wherein a scene identifier and a grid identifier of the coloring result of the matching sample grid match the scene identifier and the grid identifier of the influential variable, and wherein the grid rendering resource stores influential variables of coloring results of a plurality of sample grids and corresponding coloring results of the plurality of sample grids; and returning, by the rendering platform, the coloring result of the matching sample grid as the
- Claim 2Depends on #1
The method according to claim 1, wherein the influential variable of the coloring result of the to-be-processed grid further comprises at least one of the following: a light source quantity, a light source type, a light source position, a grid normal angle, a grid material, or a grid position.
- Claim 3Depends on #2
The method according to claim 2, wherein light sources and three-dimensional objects of two scenes with a same scene identifier are the same or have a similarity greater than a second threshold.
- Claim 4Depends on #1
The method according to claim 1, wherein the influential variable of the coloring result of the to-be-processed grid further comprises at least one of the following: a light source type, a light source position, a grid normal angle, a grid material, or a grid position; and the selecting, by the rendering platform, the coloring result of the matching sample grid from the grid rendering resource based on the influential variable of the coloring result of the to-be-processed grid comprises: selecting, by the rendering platform from the grid rendering resource, the matching sample grid whose light source type, light source position, grid normal angle, grid material, and grid position have a similarity, greater than a first threshold, to the light source type, the light source position, the grid normal angle, the grid material, and the grid position of the coloring result of the to-be-processed grid.
- Claim 5Depends on #1
The method according to claim 1, wherein when there is one matching sample grid, the rendering platform uses a coloring result of the matching sample grid as the coloring result of the to-be-processed grid; or when there are a plurality of matching sample grids, the rendering platform uses an average value of the matching sample grids as the coloring result of the to-be-processed grid.
- Claim 6Depends on #1
The method according to claim 1, further comprising: obtaining an influential variable of a coloring result of a first sample grid, wherein the first sample grid comprises one or more regions of a surface of a three-dimensional model; determining, by the rendering platform, the coloring result of the first sample grid based on the influential variable of the coloring result of the first sample grid; and storing, by the rendering platform in a grid rendering resource, the influential variable of the coloring result of the first sample grid and the coloring result of the first sample grid in association.
- Claim 7Depends on #6
The method according to claim 6, further comprising: discarding a coloring result of a second sample grid when a scene identifier and a grid identifier of the coloring result of the first sample grid match a scene identifier and a grid identifier of the coloring result of the second sample grid.
- Claim 8Depends on #7
The method according to claim 7, further comprising: updating the coloring result of the first sample grid using the coloring result of the first sample grid and a coloring result of the second sample grid, when the scene identifier and the grid identifier of the coloring result of the first sample grid match a scene identifier and a grid identifier of the coloring result of the second sample grid.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2021/112645, filed on Aug. 14, 2021, which claims priority to Chinese Patent Application No. 202010821657.X, filed on Aug. 15, 2020, the disclosure of which is hereby incorporated by reference in its entirety. TECHNICAL FIELD This application relates to the 3D field, and in particular, to a rendering method, a device, and a system. BACKGROUND Rendering is a process of generating an image from a three-dimensional model by using software. The three-dimensional model is a description of a three-dimensional object by using a strictly defined language or data structure, and includes geometrical, viewpoint, texture, and illumination information. The image is a digital image or a bitmap image. The term rendering is similar to “ rendering of a scene by an artist ” . In addition, rendering is also used to describe a “ process of computing an effect in a video editing file to generate a final video output ” . However, in a conventional technology, rendering requires a quite large amount of computation, and needs to consume a quite large quantity of computing resources. SUMMARY This application provides a rendering method, a device, and a system, to effectively reduce a waste of computing resources. According to a first aspect, a rendering method is provided, including: a rendering platform obtains an influential variable of a coloring result of a to-be-processed grid, where the to-be-processed grid includes some regions of a surface of a three-dimensional model; the rendering platform selects a coloring result of a matching sample grid from a grid rendering resource based on the influential variable of the coloring result of the to-be-processed grid, where the grid rendering resource stores influential variables of coloring results of a plurality of sample grids and corresponding coloring results of the plurality of sample grids; and the rendering platform returns
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (6)
- Chen M, Shao Z, Li D, Liu J. Invariant matching method for different viewpoint angle images. Applied optics. Jan. 1, 2013;52(1):96-104.
- Pulli K, Shapiro LG. Surface reconstruction and display from range and color data. Graphical Models. May 1, 2000;62(3):165-201.
- Zaharescu A, Boyer E, Varanasi K, Horaud R. Surface feature detection and description with applications to mesh matching. In2009 IEEE conference on computer vision and pattern recognition Jun. 20, 2009 (pp. 373-380). IEEE.
- Sequeira V, Ng K, Wolfart E, Gon
- ç
- alves JG, Hogg D. Automated reconstruction of 3D models from real environments. ISPRS Journal of Photogrammetry and Remote Sensing. Feb. 1, 1999;54(1):1-22.