CN114419219A - Rendering device and method based on three-dimensional virtual scene - Google Patents

Rendering device and method based on three-dimensional virtual scene Download PDF

Info

Publication number
CN114419219A
CN114419219A CN202111524782.5A CN202111524782A CN114419219A CN 114419219 A CN114419219 A CN 114419219A CN 202111524782 A CN202111524782 A CN 202111524782A CN 114419219 A CN114419219 A CN 114419219A
Authority
CN
China
Prior art keywords
unit
rendering
scene
primitive
coloring
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
Application number
CN202111524782.5A
Other languages
Chinese (zh)
Inventor
葛新
顾显宇
梁攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ruishi Cultural And Creative Technology Co ltd
Original Assignee
Shenzhen Ruishi Cultural And Creative Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Ruishi Cultural And Creative Technology Co ltd filed Critical Shenzhen Ruishi Cultural And Creative Technology Co ltd
Priority to CN202111524782.5A priority Critical patent/CN114419219A/en
Publication of CN114419219A publication Critical patent/CN114419219A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Architecture (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a rendering device and a rendering method based on a three-dimensional virtual scene, which comprise a scene loader, a scene renderer, a scene shader and a rendering processor, wherein the input end of the scene loader is connected with the output end of modeling equipment, the output end of the scene loader is connected with the input end of the scene renderer, the output end of the scene renderer is connected with the input end of the scene shader, the output end of the scene shader is connected with the input end of the rendering processor, and the output end of the rendering processor is connected with the input end of display equipment; according to the method, the geometric coloring and the curved surface coloring are added on the basis of the vertex coloring and the fragment coloring, so that the coloring refinement degree is improved, the rendering resolution is high, the automatic updating can be performed according to the real-time change of the model data, the rendering timeliness is strong, the lag is avoided, the rendering delay is low, meanwhile, a mixed rendering mode is adopted, the rendering effect is diversified, different rendering requirements are met, and the user experience is good.

Description

Rendering device and method based on three-dimensional virtual scene
Technical Field
The invention relates to the technical field of three-dimensional rendering, in particular to a rendering device and a rendering method based on a three-dimensional virtual scene.
Background
The renderer is a core part of a three-dimensional engine, is an advanced global illumination rendering plug-in, and completes the task of drawing a three-dimensional object on a screen, and the renderer is mainly divided into a hardware renderer and a software renderer. However, most conventional rendering devices only perform vertex coloring and fragment coloring, the refining degree is insufficient, the rendering resolution is low, automatic updating cannot be performed according to real-time change of model data, the rendering timeliness is poor, hysteresis exists, the rendering delay is high, the rendering mode is single, the rendering effect is limited, different rendering requirements are difficult to meet, and the user experience is poor.
Disclosure of Invention
The present invention is directed to a rendering apparatus and method based on a three-dimensional virtual scene, so as to solve the problems set forth in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: the rendering device based on the three-dimensional virtual scene comprises a scene loader, a scene renderer, a scene shader and a rendering processor, wherein the input end of the scene loader is connected with the output end of modeling equipment, the output end of the scene loader is connected with the input end of the scene renderer, the output end of the scene renderer is connected with the input end of the scene shader, the output end of the scene shader is connected with the input end of the rendering processor, and the output end of the rendering processor is connected with the input end of display equipment.
Preferably, the scene loader comprises a three-dimensional model parameter loading unit, a three-dimensional model material loading unit, a three-dimensional model texture loading unit, a three-dimensional model normal loading unit and a three-dimensional model automatic updating unit, and the input ends of the three-dimensional model parameter loading unit, the three-dimensional model material loading unit, the three-dimensional model texture loading unit and the three-dimensional model normal loading unit are all connected with the output end of the modeling device.
Preferably, the output ends of the three-dimensional model parameter loading unit, the three-dimensional model material loading unit, the three-dimensional model texture loading unit and the three-dimensional model normal loading unit are all connected with the input end of the three-dimensional model automatic updating unit, and the output end of the three-dimensional model automatic updating unit is connected with the input end of the scene renderer.
Preferably, the scene renderer comprises a scene rendering framework building unit, a coarse-grained data eliminating unit, a scene rendering primitive setting unit and a scene rendering primitive rendering unit, wherein the input end of the scene rendering framework building unit is connected with the output end of the three-dimensional model automatic updating unit, and the output end of the scene rendering framework building unit is connected with the input end of the coarse-grained data eliminating unit.
Preferably, the output end of the coarse-grained data rejection unit is connected with the input end of a scene rendering primitive setting unit, the output end of the scene rendering primitive setting unit is connected with the input end of a scene rendering primitive drawing unit, and the output end of the scene rendering primitive drawing unit is connected with the input end of a scene shader.
Preferably, the scene shader is composed of a scene rendering vertex shading unit, a vertex shading primitive assembling unit, a scene rendering fragment shading unit, a fragment shading primitive assembling unit, a scene rendering geometric shading unit, a geometric shading primitive assembling unit, a scene rendering curved surface shading unit and a curved surface shading primitive assembling unit, wherein the input end of the scene rendering vertex shading unit is connected with the output end of the scene rendering primitive drawing unit, the output end of the scene rendering vertex shading unit is connected with the input end of the vertex shading primitive assembling unit, and the output end of the vertex shading primitive assembling unit is connected with the input end of the scene rendering fragment shading unit.
Preferably, the output end of the scene rendering fragment coloring unit is connected with the input end of the fragment coloring primitive assembling unit, the output end of the fragment coloring primitive assembling unit is connected with the input end of the scene rendering geometric coloring unit, the output end of the scene rendering geometric coloring unit is connected with the input end of the geometric coloring primitive assembling unit, the output end of the geometric coloring primitive assembling unit is connected with the input end of the scene rendering curved surface coloring unit, the output end of the scene rendering curved surface coloring unit is connected with the input end of the curved surface coloring primitive assembling unit, and the output end of the curved surface coloring primitive assembling unit is connected with the input end of the rendering processor.
Preferably, the rendering processor is composed of a rasterization rendering unit, a ray tracing rendering unit, a shadow capturing rendering unit, a normal visual rendering unit and a three-dimensional virtual scene output unit, wherein the input end of the rasterization rendering unit is connected with the output end of the curved surface coloring primitive assembling unit, the output end of the rasterization rendering unit is connected with the input end of the ray tracing rendering unit, the output end of the ray tracing rendering unit is connected with the input end of the shadow capturing rendering unit, the output end of the shadow capturing rendering unit is connected with the input end of the normal visual rendering unit, the output end of the normal visual rendering unit is connected with the input end of the three-dimensional virtual scene output unit, and the output end of the three-dimensional virtual scene output unit is connected with the input end of the display device.
The rendering method based on the three-dimensional virtual scene comprises the following steps: step one, loading a model; step two, drawing a frame; step three, coloring the graphics primitives; step four, mixing and rendering;
in the first step, the three-dimensional model parameter loading unit, the three-dimensional model material loading unit, the three-dimensional model texture loading unit and the three-dimensional model normal loading unit are used for loading the size parameters, the color material, the texture coordinates and the illumination normal of all models in the three-dimensional virtual scene from the modeling equipment, and then the three-dimensional model automatic updating unit is used for updating the data of the models of the three-dimensional virtual scene;
in the second step, the rendering frames of all models in the three-dimensional virtual scene are built through the scene rendering frame building unit, invisible data such as a view cone and a shielding surface are removed through the coarse-granularity data removing unit, the rendering states of all models in the three-dimensional virtual scene are set through the scene rendering primitive setting unit, geometric information required by rendering output, namely rendering primitives, is determined, and primitive geometric distribution of all models in the three-dimensional virtual scene is drawn according to the rendering primitives through the scene rendering primitive drawing unit;
in the third step, the vertex data is read by the scene rendering vertex coloring unit to fill the corresponding color to the vertex primitive, the colored vertex primitive is assembled by the vertex coloring primitive assembling unit, the fragment data is read by the scene rendering fragment coloring unit to fill the corresponding color to the fragment primitive, the geometric surface data is read by the scene rendering geometric coloring unit to fill the corresponding color to the geometric surface primitive, the colored geometric surface primitive is assembled by the geometric coloring primitive assembling unit, the curved surface data is read by the scene rendering curved surface coloring unit to fill the corresponding color to the curved surface primitive, and the colored curved surface primitive is assembled by the curved surface coloring primitive assembling unit;
and in the fourth step, performing rasterization processing by using a rasterization rendering unit, performing ray tracing processing by using a ray tracing rendering unit, performing shadow capturing processing by using a shadow capturing rendering unit, selecting whether normal line visualization processing is performed or not by using a normal line visualization rendering unit, and outputting a rendered three-dimensional virtual scene to display equipment by using a three-dimensional virtual scene output unit.
Compared with the prior art, the invention has the beneficial effects that: according to the rendering device and method based on the three-dimensional virtual scene, the geometric coloring and the curved surface coloring are added on the basis of the vertex coloring and the fragment coloring, so that the coloring refinement degree is improved, and the rendering resolution is high; the model data can be automatically updated according to real-time change of the model data, the rendering timeliness is strong, no lag exists, and the rendering delay is low; and a mixed rendering mode is adopted, the rendering effect is various, different rendering requirements are met, and the user experience is good.
Drawings
FIG. 1 is an overall architecture diagram of the present invention;
FIG. 2 is a flow chart of the operation of the present invention;
FIG. 3 is a flow chart of a method of the present invention;
in the figure: 1. a scene loader; 11. a three-dimensional model parameter loading unit; 12. a three-dimensional model material loading unit; 13. a three-dimensional model texture loading unit; 14. a three-dimensional model normal loading unit; 15. a three-dimensional model automatic updating unit; 2. a scene renderer; 21. a scene rendering framework construction unit; 22. a coarse-grained data rejection unit; 23. a scene rendering primitive setting unit; 24. a scene rendering primitive drawing unit; 3. a scene shader; 31. a scene rendering vertex shading unit; 32. a vertex shading primitive assembling unit; 33. a scene rendering fragment shading unit; 34. a fragment shading primitive assembling unit; 35. a scene rendering geometry shading unit; 36. a geometric coloring primitive assembling unit; 37. a scene rendering curved surface coloring unit; 38. a curved surface coloring primitive assembling unit; 4. a rendering processor; 41. a rasterization rendering unit; 42. a ray tracing rendering unit; 43. a shadow capture rendering unit; 44. a normal line visualization rendering unit; 45. and a three-dimensional virtual scene output unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-2, an embodiment of the present invention is shown: the rendering device based on the three-dimensional virtual scene comprises a scene loader 1, a scene renderer 2, a scene shader 3 and a rendering processor 4, wherein the input end of the scene loader 1 is connected with the output end of modeling equipment, the output end of the scene loader 1 is connected with the input end of the scene renderer 2, the output end of the scene renderer 2 is connected with the input end of the scene shader 3, the output end of the scene shader 3 is connected with the input end of the rendering processor 4, the output end of the rendering processor 4 is connected with the input end of display equipment, the scene loader 1 is composed of a three-dimensional model parameter loading unit 11, a three-dimensional model material loading unit 12, a three-dimensional model texture loading unit 13, a three-dimensional model normal loading unit 14 and a three-dimensional model automatic updating unit 15, and the input ends of the three-dimensional model parameter loading unit 11, the three-dimensional model material loading unit 12, the three-dimensional model texture loading unit 13 and the three-dimensional model normal loading unit 14 are all connected with the modeling equipment The output ends of the three-dimensional model parameter loading unit 11, the three-dimensional model material loading unit 12, the three-dimensional model texture loading unit 13 and the three-dimensional model normal loading unit 14 are all connected with the input end of the three-dimensional model automatic updating unit 15, the output end of the three-dimensional model automatic updating unit 15 is connected with the input end of the scene renderer 2, the scene renderer 2 is composed of a scene rendering frame constructing unit 21, a coarse grain data rejecting unit 22, a scene rendering primitive setting unit 23 and a scene rendering primitive drawing unit 24, the input end of the scene rendering frame constructing unit 21 is connected with the output end of the three-dimensional model automatic updating unit 15, the output end of the scene rendering frame constructing unit 21 is connected with the input end of the coarse grain data rejecting unit 22, the output end of the coarse grain data rejecting unit 22 is connected with the input end of the scene rendering primitive setting unit 23, the output end of the scene rendering primitive setting unit 23 is connected to the input end of the scene rendering primitive drawing unit 24, the output end of the scene rendering primitive drawing unit 24 is connected to the input end of the scene shader 3, the scene shader 3 is composed of a scene rendering vertex shading unit 31, a vertex shading primitive assembling unit 32, a scene rendering fragment shading unit 33, a fragment shading primitive assembling unit 34, a scene rendering geometric shading unit 35, a geometric shading primitive assembling unit 36, a scene rendering curved surface shading unit 37 and a curved surface shading primitive assembling unit 38, the input end of the scene rendering vertex shading unit 31 is connected to the output end of the scene rendering primitive drawing unit 24, the output end of the scene rendering vertex shading unit 31 is connected to the input end of the vertex shading primitive assembling unit 32, and the output end of the vertex shading primitive assembling unit 32 is connected to the input end of the scene rendering fragment shading unit 33, the output end of the scene rendering fragment coloring unit 33 is connected with the input end of the fragment coloring primitive assembling unit 34, the output end of the fragment coloring primitive assembling unit 34 is connected with the input end of the scene rendering geometric coloring unit 35, the output end of the scene rendering geometric coloring unit 35 is connected with the input end of the geometric coloring primitive assembling unit 36, the output end of the geometric coloring primitive assembling unit 36 is connected with the input end of the scene rendering curved surface coloring unit 37, the output end of the scene rendering curved surface coloring unit 37 is connected with the input end of the curved surface coloring primitive assembling unit 38, the output end of the curved surface coloring primitive assembling unit 38 is connected with the input end of the rendering processor 4, the rendering processor 4 is composed of a rasterization rendering unit 41, a ray tracing rendering unit 42, a shadow capturing rendering unit 43, a normal visualization rendering unit 44 and a three-dimensional virtual scene output unit 45, the input end of the rasterization rendering unit 41 is connected with the output end of the curved surface coloring primitive assembling unit 38, the output end of the rasterization rendering unit 41 is connected with the input end of the ray tracing rendering unit 42, the output end of the ray tracing rendering unit 42 is connected with the input end of the shadow capturing rendering unit 43, the output end of the shadow capturing rendering unit 43 is connected with the input end of the normal line visualization rendering unit 44, the output end of the normal line visualization rendering unit 44 is connected with the input end of the three-dimensional virtual scene output unit 45, and the output end of the three-dimensional virtual scene output unit 45 is connected with the input end of the display device.
Referring to fig. 3, an embodiment of the present invention: the rendering method based on the three-dimensional virtual scene comprises the following steps: step one, loading a model; step two, drawing a frame; step three, coloring the graphics primitives; step four, mixing and rendering;
in the first step, the three-dimensional model parameter loading unit 11, the three-dimensional model material loading unit 12, the three-dimensional model texture loading unit 13 and the three-dimensional model normal loading unit 14 are used for loading the size parameters, the color materials, the texture coordinates and the illumination normal of all models in the three-dimensional virtual scene from the modeling equipment, and then the three-dimensional model automatic updating unit 15 is used for updating the data of the models of the three-dimensional virtual scene;
in the second step, the rendering frames of all models in the three-dimensional virtual scene are constructed through the scene rendering frame construction unit 21, invisible data such as a view cone and a blocking surface are removed through the coarse-grained data removing unit 22, the rendering states of all models in the three-dimensional virtual scene are set through the scene rendering primitive setting unit 23, geometric information required by rendering output, namely rendering primitives, is determined, and the primitive geometric distribution of all models in the three-dimensional virtual scene is drawn according to the rendering primitives through the scene rendering primitive drawing unit 24;
in the third step, the vertex data is read by the scene rendering vertex coloring unit 31 to fill the corresponding color into the vertex primitive, the colored vertex primitive is assembled by the vertex coloring primitive assembling unit 32, the fragment data is read by the scene rendering fragment coloring unit 33 to fill the corresponding color into the fragment primitive, the geometric surface data is read by the scene rendering geometric coloring unit 35 to fill the corresponding color into the geometric surface primitive, the colored geometric surface primitive is assembled by the geometric coloring primitive assembling unit 36, the curved surface data is read by the scene rendering curved surface coloring unit 37 to fill the corresponding color into the curved surface primitive, and the colored curved surface primitive is assembled by the curved surface primitive assembling unit 38;
in the fourth step, the rasterization processing is performed by the rasterization rendering unit 41, the ray tracing processing is performed by the ray tracing rendering unit 42, the shadow capture processing is performed by the shadow capture rendering unit 43, whether the normal visualization processing is performed or not is selected by the normal visualization rendering unit 44, and then the rendered three-dimensional virtual scene is output to the display device by the three-dimensional virtual scene output unit 45.
The working principle is as follows: when the three-dimensional virtual scene model updating system is used, the three-dimensional model parameter loading unit 11, the three-dimensional model material loading unit 12, the three-dimensional model texture loading unit 13 and the three-dimensional model normal loading unit 14 are used for loading the size parameters, the color materials, the texture coordinates and the illumination normal of all models in the three-dimensional virtual scene from a modeling device, and then the three-dimensional model automatic updating unit 15 is used for updating the data of the models of the three-dimensional virtual scene, so that the models can be automatically updated according to the real-time change of model data, the rendering timeliness is strong, no delay exists, and the rendering delay is low; then, a scene rendering frame construction unit 21 is used for constructing rendering frames of all models in the three-dimensional virtual scene, invisible data such as a view cone and a shading surface are removed through a coarse-grained data removing unit 22, rendering states of all models in the three-dimensional virtual scene are set through a scene rendering primitive setting unit 23, geometric information required by rendering output, namely rendering primitives, is determined, the scene rendering primitive drawing unit 24 is used for drawing primitive geometric distribution of all models in the three-dimensional virtual scene according to the rendering primitives, and geometric coloring and curved surface coloring are added on the basis of vertex coloring and fragment coloring, so that the coloring refinement degree is improved, and the rendering resolution is high; then, the vertex data is read by the scene rendering vertex coloring unit 31 to fill the corresponding color into the vertex primitive, the colored vertex primitive is assembled by the vertex coloring primitive assembling unit 32, the fragment data is read by the scene rendering fragment coloring unit 33 to fill the corresponding color into the fragment primitive, the geometric surface data is read by the scene rendering geometric coloring unit 35 to fill the corresponding color into the geometric surface primitive, the colored geometric surface primitive is assembled by the geometric coloring primitive assembling unit 36, the curved surface data is read by the scene rendering curved surface coloring unit 37 to fill the corresponding color into the curved surface primitive, the colored curved surface primitive is assembled by the curved surface coloring primitive assembling unit 38, and finally, the rasterization processing is performed by the rasterization rendering unit 41, and the ray tracing processing is performed by the ray tracing rendering unit 42, and then, the shadow capturing and rendering unit 43 is used for performing the shadow capturing process, the normal visualization rendering unit 44 is used for selecting whether to perform the normal visualization process or not, the rendered three-dimensional virtual scene is output to the display equipment through the three-dimensional virtual scene output unit 45, a hybrid rendering mode is adopted, the rendering effect is various, different rendering requirements are met, and the user experience is good.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (9)

1. Rendering device based on three-dimensional virtual scene, including scene loader (1), scene plotter (2), scene shader (3) and render treater (4), its characterized in that: the input end of the scene loader (1) is connected with the output end of the modeling device, the output end of the scene loader (1) is connected with the input end of the scene renderer (2), the output end of the scene renderer (2) is connected with the input end of the scene coloring device (3), the output end of the scene coloring device (3) is connected with the input end of the rendering processor (4), and the output end of the rendering processor (4) is connected with the input end of the display device.
2. The three-dimensional virtual scene-based rendering apparatus according to claim 1, wherein: the scene loader (1) is composed of a three-dimensional model parameter loading unit (11), a three-dimensional model material loading unit (12), a three-dimensional model texture loading unit (13), a three-dimensional model normal loading unit (14) and a three-dimensional model automatic updating unit (15), wherein the input ends of the three-dimensional model parameter loading unit (11), the three-dimensional model material loading unit (12), the three-dimensional model texture loading unit (13) and the three-dimensional model normal loading unit (14) are all connected with the output end of modeling equipment.
3. The three-dimensional virtual scene-based rendering apparatus according to claim 2, wherein: the output ends of the three-dimensional model parameter loading unit (11), the three-dimensional model material loading unit (12), the three-dimensional model texture loading unit (13) and the three-dimensional model normal loading unit (14) are all connected with the input end of the three-dimensional model automatic updating unit (15), and the output end of the three-dimensional model automatic updating unit (15) is connected with the input end of the scene drawing device (2).
4. The three-dimensional virtual scene-based rendering apparatus according to claim 3, wherein: the scene renderer (2) is composed of a scene rendering framework building unit (21), a coarse-grained data eliminating unit (22), a scene rendering primitive setting unit (23) and a scene rendering primitive rendering unit (24), the input end of the scene rendering framework building unit (21) is connected with the output end of the three-dimensional model automatic updating unit (15), and the output end of the scene rendering framework building unit (21) is connected with the input end of the coarse-grained data eliminating unit (22).
5. The three-dimensional virtual scene-based rendering apparatus according to claim 4, wherein: the output end of the coarse-granularity data rejection unit (22) is connected with the input end of a scene rendering primitive setting unit (23), the output end of the scene rendering primitive setting unit (23) is connected with the input end of a scene rendering primitive drawing unit (24), and the output end of the scene rendering primitive drawing unit (24) is connected with the input end of a scene shader (3).
6. The three-dimensional virtual scene-based rendering apparatus according to claim 5, wherein: the scene shader (3) is composed of a scene rendering vertex shading unit (31), a vertex shading primitive assembling unit (32), a scene rendering fragment shading unit (33), a fragment shading primitive assembling unit (34), a scene rendering geometric shading unit (35), a geometric shading primitive assembling unit (36), a scene rendering curved surface shading unit (37) and a curved surface shading primitive assembling unit (38), wherein the input end of the scene rendering vertex shading unit (31) is connected with the output end of the scene rendering primitive drawing unit (24), the output end of the scene rendering vertex shading unit (31) is connected with the input end of the vertex shading primitive assembling unit (32), and the output end of the vertex shading primitive assembling unit (32) is connected with the input end of the scene rendering fragment shading unit (33).
7. The three-dimensional virtual scene-based rendering apparatus according to claim 6, wherein: the output end of the scene rendering fragment coloring unit (33) is connected with the input end of a fragment coloring primitive assembling unit (34), the output end of the fragment coloring primitive assembling unit (34) is connected with the input end of a scene rendering geometric coloring unit (35), the output end of the scene rendering geometric coloring unit (35) is connected with the input end of a geometric coloring primitive assembling unit (36), the output end of the geometric coloring primitive assembling unit (36) is connected with the input end of a scene rendering curved surface coloring unit (37), the output end of the scene rendering curved surface coloring unit (37) is connected with the input end of a curved surface coloring primitive assembling unit (38), and the output end of the curved surface coloring primitive assembling unit (38) is connected with the input end of a rendering processor (4).
8. The three-dimensional virtual scene-based rendering apparatus according to claim 7, wherein: the rendering processor (4) is composed of a rasterization rendering unit (41), a ray tracing rendering unit (42), a shadow capturing rendering unit (43), a normal visualization rendering unit (44) and a three-dimensional virtual scene output unit (45), the input of rasterization rendering unit (41) is connected with the output of curved surface shading primitive assembly unit (38), the output of rasterization rendering unit (41) is connected with the input of ray tracing rendering unit (42), the output of ray tracing rendering unit (42) is connected with the input of shadow capture rendering unit (43), the output of shadow capture rendering unit (43) is connected with the input of normal visual rendering unit (44), the output of normal visual rendering unit (44) is connected with the input of three-dimensional virtual scene output unit (45), the output of three-dimensional virtual scene output unit (45) is connected with display device's input.
9. The rendering method based on the three-dimensional virtual scene comprises the following steps: step one, loading a model; step two, drawing a frame; step three, coloring the graphics primitives; step four, mixing and rendering; the method is characterized in that:
in the first step, the three-dimensional model parameter loading unit (11), the three-dimensional model material loading unit (12), the three-dimensional model texture loading unit (13) and the three-dimensional model normal loading unit (14) are used for loading the size parameters, the color materials, the texture coordinates and the illumination normal of all models in the three-dimensional virtual scene from the modeling equipment, and then the three-dimensional model automatic updating unit (15) is used for updating the data of the models of the three-dimensional virtual scene;
in the second step, rendering frames of all models in the three-dimensional virtual scene are built through a scene rendering frame building unit (21), invisible data such as a view cone and a shielding surface are removed through a coarse-granularity data removing unit (22), rendering states of all models in the three-dimensional virtual scene are set through a scene rendering primitive setting unit (23), geometric information required by rendering output, namely rendering primitives, is determined, and primitive geometric distribution of all models in the three-dimensional virtual scene is drawn according to the rendering primitives through a scene rendering primitive drawing unit (24);
in the third step, the vertex data is read by a scene rendering vertex coloring unit (31) to fill the corresponding color to the vertex primitive, the colored vertex primitive is assembled by a vertex coloring primitive assembling unit (32), the fragment data is read by a scene rendering fragment coloring unit (33) to fill the corresponding color to the fragment primitive, the geometric surface data is read by a scene rendering geometric coloring unit (35) to fill the corresponding color to the geometric surface primitive, the colored geometric surface primitive is assembled by a geometric coloring primitive assembling unit (36), the curved surface data is read by a scene rendering curved surface coloring unit (37) to fill the corresponding color to the curved surface primitive, and the colored curved surface primitive is assembled by a curved surface primitive coloring assembling unit (38);
in the fourth step, rasterization processing is performed through a rasterization rendering unit (41), ray tracing processing is performed through a ray tracing rendering unit (42), shadow capture processing is performed through a shadow capture rendering unit (43), whether normal visualization processing is performed or not is selected through a normal visualization rendering unit (44), and then a rendered three-dimensional virtual scene is output to display equipment through a three-dimensional virtual scene output unit (45).
CN202111524782.5A 2021-12-14 2021-12-14 Rendering device and method based on three-dimensional virtual scene Pending CN114419219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111524782.5A CN114419219A (en) 2021-12-14 2021-12-14 Rendering device and method based on three-dimensional virtual scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111524782.5A CN114419219A (en) 2021-12-14 2021-12-14 Rendering device and method based on three-dimensional virtual scene

Publications (1)

Publication Number Publication Date
CN114419219A true CN114419219A (en) 2022-04-29

Family

ID=81265621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111524782.5A Pending CN114419219A (en) 2021-12-14 2021-12-14 Rendering device and method based on three-dimensional virtual scene

Country Status (1)

Country Link
CN (1) CN114419219A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116385614A (en) * 2023-03-29 2023-07-04 深圳海拓时代科技有限公司 3D vision module rendering control system based on visualization

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116385614A (en) * 2023-03-29 2023-07-04 深圳海拓时代科技有限公司 3D vision module rendering control system based on visualization
CN116385614B (en) * 2023-03-29 2024-03-01 深圳海拓时代科技有限公司 3D vision module rendering control system based on visualization

Similar Documents

Publication Publication Date Title
CN112270756B (en) Data rendering method applied to BIM model file
CN111508052B (en) Rendering method and device of three-dimensional grid body
CN110415343B (en) Engineering BIM visual three-dimensional engine system
CN110443893B (en) Large-scale building scene rendering acceleration method, system, device and storage medium
DE112007002991B4 (en) Computer graphics shadow volume using hierarchical occlusion culling
TWI618030B (en) Method and system of graphics processing enhancement by tracking object and/or primitive identifiers, graphics processing unit and non-transitory computer readable medium
CN103946895B (en) The method for embedding in presentation and equipment based on tiling block
TWI275039B (en) Method and apparatus for generating a shadow effect using shadow volumes
JP4643271B2 (en) Visible surface determination system and method for computer graphics using interval analysis
US5600763A (en) Error-bounded antialiased rendering of complex scenes
US7542049B2 (en) Hardware accelerated anti-aliased primitives using alpha gradients
CN104205173B (en) For estimating the method and corresponding equipment of the opacity level in scene
CN113674389B (en) Scene rendering method and device, electronic equipment and storage medium
WO2017072476A1 (en) Graphics processing systems
CN110706326B (en) Data display method and device
EP4213102A1 (en) Rendering method and apparatus, and device
CN111429561A (en) Virtual simulation rendering engine
RU2680355C1 (en) Method and system of removing invisible surfaces of a three-dimensional scene
CN103426199A (en) Low-noise real-time global illumination drawing method for three-dimensional geometric scene
CN114419219A (en) Rendering device and method based on three-dimensional virtual scene
US10424106B1 (en) Scalable computer image synthesis
CN113192173B (en) Image processing method and device of three-dimensional scene and electronic equipment
CN110502305B (en) Method and device for realizing dynamic interface and related equipment
Romeiro et al. Hardware-assisted rendering of csg models
WO2024037116A9 (en) Three-dimensional model rendering method and apparatus, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20220429

WD01 Invention patent application deemed withdrawn after publication