CN113643418A - Method for efficiently rendering 3D (three-dimensional) graphics - Google Patents
Method for efficiently rendering 3D (three-dimensional) graphics Download PDFInfo
- Publication number
- CN113643418A CN113643418A CN202111003944.0A CN202111003944A CN113643418A CN 113643418 A CN113643418 A CN 113643418A CN 202111003944 A CN202111003944 A CN 202111003944A CN 113643418 A CN113643418 A CN 113643418A
- Authority
- CN
- China
- Prior art keywords
- rendering
- graphics
- real object
- data
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000009877 rendering Methods 0.000 title claims abstract description 110
- 238000000034 method Methods 0.000 title claims abstract description 16
- 238000002310 reflectometry Methods 0.000 claims description 9
- 238000005516 engineering process Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/10—Geometric effects
- G06T15/20—Perspective computation
- G06T15/205—Image-based rendering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- Computer Graphics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Image Generation (AREA)
Abstract
The invention belongs to the technical field of graphic rendering, and particularly discloses a method for efficiently rendering 3D (three-dimensional) graphics, which comprises the following steps: receiving a rendering command for rendering an object and a corresponding real object graph of the rendering object; responding to a rendering command, and acquiring a rendering code of a rendering object based on the real object graph; acquiring corresponding rendering data in a rendering database according to the rendering codes; and sending the rendering data to a graphics processor, and rendering the rendering object through the graphics processor. By adopting the technical scheme of the invention, the corresponding rendering data can be directly obtained from the rendering database through the received corresponding object graphics, and the rendering object is rendered through the graphics processor, so that the rendering efficiency of the 3D graphics is greatly improved.
Description
Technical Field
The invention relates to the technical field of graphic rendering, in particular to a method for efficiently rendering 3D (three-dimensional) graphics.
Background
With the development of scientific technology, software technology and hardware technology of computers and mobile terminals have advanced greatly. Nowadays, the user can not be enough under the condition of staying at home, carries out high interactive experience through the online exhibition room of VR, not only provides help for user's work and study, has also richened user's daily life. The graph rendering is an important step for realizing the function of an exhibition hall on a VR line, and the existing graph rendering method is low in efficiency.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method for efficiently rendering 3D graphics.
In order to solve the technical problems, the technical scheme of the invention is as follows: a method of efficient rendering of 3D graphics, comprising:
receiving a rendering command for rendering an object and a corresponding real object graph of the rendering object;
responding to a rendering command, and acquiring a rendering code of a rendering object based on the real object graph;
acquiring corresponding rendering data in a rendering database according to the rendering codes;
and sending the rendering data to a graphics processor, and rendering the rendering object through the graphics processor.
Specifically, when the method for efficiently rendering the 3D graphics is used, the corresponding rendering data can be directly obtained from the rendering database through the received corresponding object graphics, and the rendering object is rendered through the graphics processor, so that the rendering efficiency of the 3D graphics is greatly improved.
Optionally, obtaining a rendering code of the rendering object based on the real object graph includes: and calculating the real object reflection degree of each pixel point in the real object photo, and determining the rendering code of the rendering object according to the comparison between the real object reflection degree and a plurality of preset reflection degrees.
Optionally, calculating the real object reflectivity of each pixel point in the real object photo includes: and calculating the difference of the brightness values of all the pixels of the object graph shot in the two brightnesses to serve as the light reflection degree of the pixel at the position.
Optionally, rendering the rendering object by the graphics processor includes: parameters of a model of the rendered object are modified based on the rendering data.
Optionally, the rendering data includes rendering material parameters of the rendering object.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method for efficient rendering of 3D graphics in accordance with the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "thickness", "up-down, front-back, left-right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise" indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, and do not indicate or imply that the elements referred to must have a particular orientation, be constructed in a particular orientation, and be operated, and therefore, should not be taken as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a defined feature of "first", "second" may explicitly or implicitly include one or more features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise. It should be noted that unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly and include, for example, fixed or removable connections or integral connections; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media profiles, either internally or in any combination thereof. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
As shown in FIG. 1, in one embodiment of the invention, a method for efficient rendering of 3D graphics is provided, comprising: receiving a rendering command for rendering an object and a corresponding real object graph of the rendering object; responding to a rendering command, and acquiring a rendering code of a rendering object based on the real object graph; acquiring corresponding rendering data in a rendering database according to the rendering codes; and sending the rendering data to a graphics processor, and rendering the rendering object through the graphics processor.
Specifically, when the method for efficiently rendering the 3D graphics is used, the corresponding rendering data can be directly obtained from the rendering database through the received corresponding object graphics, and the rendering object is rendered through the graphics processor, so that the rendering efficiency of the 3D graphics is greatly improved.
In this embodiment, obtaining a rendering code of a rendering object based on a real object graph includes: and calculating the real object reflection degree of each pixel point in the real object photo, and determining the rendering code of the rendering object according to the comparison between the real object reflection degree and a plurality of preset reflection degrees. Specifically, the number of the preset reflectances is set according to the number of the rendering codes, and each preset reflectances corresponds to one rendering code. And after the real object reflectivity is obtained, comparing the real object reflectivity with a preset reflectivity, and when the real object reflectivity falls into a certain preset reflectivity range, determining the rendering code of the rendering object as the rendering code corresponding to the preset reflectivity.
In this embodiment, calculating the real object reflectivity of each pixel point in the real object photo includes: and calculating the difference of the brightness values of all the pixels of the object graph shot in the two brightnesses to serve as the light reflection degree of the pixel at the position.
In this embodiment, rendering the rendering object by the graphics processor includes: parameters of a model of the rendered object are modified based on the rendering data.
In this embodiment, the rendering data includes rendering material parameters of the rendering object.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the embodiments described above. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, and the scope of protection is still within the scope of the invention.
Claims (5)
1. A method for efficient rendering of 3D graphics, comprising:
receiving a rendering command for a rendering object and a corresponding real object graph of the rendering object;
in response to the rendering command, acquiring rendering codes of the rendering objects based on the real object graphs;
acquiring corresponding rendering data in a rendering database according to the rendering codes;
and sending the rendering data to a graphic processor, and rendering the rendering object through the graphic processor.
2. The method of claim 1, wherein obtaining rendering codes of the rendering objects based on the physical graphics comprises:
and calculating the real object reflection degree of each pixel point in the real object photo, and determining the rendering code of the rendering object according to the comparison between the real object reflection degree and a plurality of preset reflection degrees.
3. The method of claim 2, wherein calculating the real object reflectivity of each pixel point in the real object photo comprises:
and calculating the difference of the brightness values of all the pixels of the object graph shot in the two brightnesses, and taking the difference as the light reflection degree of the pixel at the position.
4. The method of claim 1, wherein rendering the render object by the graphics processor comprises:
modifying parameters of a model of the rendered object based on the rendering data.
5. The method of efficient rendering of 3D graphics of claim 1, wherein; the rendering data includes rendering material parameters of the rendering object.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111003944.0A CN113643418A (en) | 2021-08-30 | 2021-08-30 | Method for efficiently rendering 3D (three-dimensional) graphics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111003944.0A CN113643418A (en) | 2021-08-30 | 2021-08-30 | Method for efficiently rendering 3D (three-dimensional) graphics |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113643418A true CN113643418A (en) | 2021-11-12 |
Family
ID=78424356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111003944.0A Pending CN113643418A (en) | 2021-08-30 | 2021-08-30 | Method for efficiently rendering 3D (three-dimensional) graphics |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113643418A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080317347A1 (en) * | 2007-06-20 | 2008-12-25 | Chee Boon Lim | Rendering engine test system |
CN110825467A (en) * | 2018-08-09 | 2020-02-21 | 北京微播视界科技有限公司 | Rendering method, rendering apparatus, hardware apparatus, and computer-readable storage medium |
CN111681167A (en) * | 2020-06-03 | 2020-09-18 | 腾讯科技(深圳)有限公司 | Image quality adjusting method and device, storage medium and electronic equipment |
CN111833407A (en) * | 2020-06-15 | 2020-10-27 | 珠海格力电器股份有限公司 | Product rendering method and device |
CN113041617A (en) * | 2021-03-18 | 2021-06-29 | 深圳市腾讯网域计算机网络有限公司 | Game picture rendering method, device, equipment and storage medium |
-
2021
- 2021-08-30 CN CN202111003944.0A patent/CN113643418A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080317347A1 (en) * | 2007-06-20 | 2008-12-25 | Chee Boon Lim | Rendering engine test system |
CN110825467A (en) * | 2018-08-09 | 2020-02-21 | 北京微播视界科技有限公司 | Rendering method, rendering apparatus, hardware apparatus, and computer-readable storage medium |
CN111681167A (en) * | 2020-06-03 | 2020-09-18 | 腾讯科技(深圳)有限公司 | Image quality adjusting method and device, storage medium and electronic equipment |
CN111833407A (en) * | 2020-06-15 | 2020-10-27 | 珠海格力电器股份有限公司 | Product rendering method and device |
CN113041617A (en) * | 2021-03-18 | 2021-06-29 | 深圳市腾讯网域计算机网络有限公司 | Game picture rendering method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
程龙等: "基于光场渲染的多视点视频编解码方法研究", 中国科学技术大学学报, vol. 40, no. 8, pages 812 - 817 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10692274B2 (en) | Image processing apparatus and method | |
US8976179B2 (en) | Determining 3D model information from stored images | |
US10930056B2 (en) | Electronic device for generating images having rendering qualities differing by view vector | |
US10848669B2 (en) | Electronic device and method for displaying 360-degree image in the electronic device | |
CN112116655B (en) | Target object position determining method and device | |
CN115797535B (en) | Texture mapping method and related device for three-dimensional model | |
CN110213588A (en) | Airspace Candidate Motion information acquisition method, device, codec and storage device | |
EP4283441A1 (en) | Control method, device, equipment and storage medium for interactive reproduction of target object | |
CN113077548A (en) | Collision detection method, device, equipment and storage medium for object | |
CN102298783A (en) | View generation using interpolated values | |
CN114449243B (en) | White balance method and terminal equipment | |
CN114998433A (en) | Pose calculation method and device, storage medium and electronic equipment | |
CN111899352A (en) | Part model processing method, system, equipment and storage medium based on CATIA | |
US20200402261A1 (en) | Dual serving scheme for lod sequences | |
CN113643418A (en) | Method for efficiently rendering 3D (three-dimensional) graphics | |
CN113064689A (en) | Scene recognition method and device, storage medium and electronic equipment | |
CN113077524A (en) | Automatic calibration method, device and equipment for binocular fisheye camera and storage medium | |
CN112100712A (en) | Road lofting conversion method based on CAD and storage medium | |
CN109493423B (en) | Method and device for calculating midpoint positions of two points on surface of three-dimensional earth model | |
CN114170366B (en) | Three-dimensional reconstruction method based on dotted line feature fusion and electronic equipment | |
JP7422222B2 (en) | Collision detection method, apparatus, electronic device, storage medium and computer program for object | |
US11616935B2 (en) | Information generation method, information generation system, and non-transitory computer-readable storage medium storing program | |
CN111885614B (en) | CORS base station networking method, device and storage medium | |
CN115187821A (en) | Method for verifying correctness before and after model conversion, related device and program product | |
CN117455974A (en) | Display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |