Image Rendering Method, System and Device for Environmental Art Design

By obtaining the light source angle and viewing angle in a three-dimensional scene in environmental art design, combining the material's light absorption characteristics and occlusion analysis, efficient pixel light brightness rendering is solved, and a more efficient rendering process is achieved.

CN119850820BActive Publication Date: 2025-05-27DALIAN YUANFENG INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510322154.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-05-27
Estimated Expiration
2045-03-19

AI Technical Summary

Technical Problem

In the prior art, the overall rendering calculation is large, rendering takes more time, which leads to low rendering efficiency.

Method used

By obtaining the modeling position corresponding to the original scene modeling of pixel points in the visual interface in the three-dimensional visual interface, as well as the preset light source point and viewing angle point positions, determine the light source angle and viewing angle angle, combine the position information, angle information and the light absorption degree of the modeling position material, perform the brightness analysis of each pixel point, and determine the occlusion influence coefficient of the occluded pixel point through the number of all occluded pixel points in the cluster cluster, reduce the brightness coefficient of the occluded pixel points, and realize the brightness rendering of the image.

Benefits of technology

While ensuring basic rendering accuracy and rendering effect, it reduces the amount of rendering calculations and improves rendering efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119850820B_ABST
    Figure CN119850820B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image rendering technology, and in particular to an image rendering method, system and device for environmental art design. The method comprises: obtaining a modeling position, as well as a light source point and a viewpoint position; performing an illumination intensity analysis of a pixel point; and then determining a brightness coefficient of each pixel point; if a pixel point in a three-dimensional model is occluded, determining a cluster, and determining an occlusion influence coefficient according to the number of pixels in the cluster and the corresponding modeling position; reducing the brightness coefficient of the occluded pixel point according to the occlusion influence coefficient to obtain a target coefficient, determining the brightness value of each pixel point in a visualization interface according to the target coefficient and the brightness coefficients of other pixels, and performing image brightness rendering according to the brightness value. The present invention can improve image rendering efficiency while ensuring image rendering quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image rendering, and particularly to an image rendering method, system and device for environmental art design. Background Art

[0002] In environmental art design, image rendering is a crucial link. Through rendering technology, creativity and concepts can be presented in an intuitive and realistic way, helping customers better understand the design scheme and make decisions. With the continuous development of computer technology, image rendering technology has also evolved from simple to complex, from inefficient to efficient. Early image rendering mainly relied on hand-drawing and simple computer graphics processing technology, and the rendering effect was relatively rough. With the continuous progress of computer graphics processing technology, modern image rendering technology has been able to achieve highly realistic rendering effects, including aspects such as lighting effects, material performance, and detail processing.

[0003] In related technologies, image rendering is achieved through various aspects such as lighting effects, material performance, and detail processing. In this way, due to the large overall rendering calculation amount, the rendering takes more time, resulting in low rendering efficiency; there is an urgent need for an efficient image rendering method. Summary of the Invention

[0004] In order to solve the technical problem that in related technologies, due to the large overall rendering calculation amount, the rendering takes more time, resulting in low rendering efficiency, the present invention provides an image rendering method, system and device for environmental art design. The specific technical solutions adopted are as follows:

[0005] The present invention proposes an image rendering method for environmental art design, and the method includes:

[0006] Obtain the modeling position corresponding to the pixel points in the three-dimensional original scene modeling in the visualization interface, as well as the preset light source point and view point positions; determine the light source angle and view angle according to the light source point position and the view point position, where the view angle is the angle formed by the straight line formed by the modeling position and the view point and the normal line of the modeling position in its horizontal plane, and the light source angle is the angle formed by the straight line formed by the modeling position and the light source point and the normal line of the modeling position in its horizontal plane;

[0007] Determine the illumination intensity of the corresponding pixel points according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position; determine the brightness coefficient of each pixel point according to the light source angle, the view angle, the distance between the modeling position and the view point position, the illumination intensity of the corresponding pixel points, and the light absorption degree of the material at the modeling position;

[0008] Determine whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded. If there is occlusion, take the adjacent occluded pixel points as a clustering cluster, and determine the occlusion influence coefficient of the occluded pixel points according to the number of all occluded pixel points in the clustering cluster, as well as the modeling positions corresponding to the occluded pixel points and the occluded pixel points in the three-dimensional model.

[0009] Reduce the brightness coefficient of the occluded pixel points according to the occlusion influence coefficient to obtain the target coefficient. Determine the brightness value of each pixel point in the visualization interface according to the target coefficient and the brightness coefficients of other pixel points, and perform image brightness rendering according to the brightness value.

[0010] Further, the determining the illumination intensity of the corresponding pixel point according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position includes:

[0011] Determine the product of the cosine value of the light source angle and the basic light intensity, and take the ratio of the product value to the light absorption degree as the illumination intensity of the pixel point.

[0012] Further, the determining the brightness coefficient of each pixel point according to the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the modeling position material, the corresponding calculation formula is:

[0013] ; where, represents the brightness coefficient of the th pixel point, represents the distance between the modeling position corresponding to the th pixel point and the viewing point position; represents the viewing angle; represents the light source angle; represents the th pixel point's illumination intensity; represents the th pixel point's light absorption degree of the material property; represents the normalization function, represents the exponential function with the natural constant as the base.

[0014] Further, the determining whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded includes:

[0015] In the three-dimensional model scene, connect the modeling position and the light source with a straight line, and determine whether the line segment between the modeling position and the light source passes through other modeling entities. If it passes through, occlusion occurs; if it does not pass through, no occlusion occurs.

[0016] Further, determining the occlusion influence coefficient of the occluded pixel points according to the number of all occluded pixel points in the clustering cluster and the modeling positions corresponding to the occluded pixel points and the occluding pixel points in the three-dimensional model includes:

[0017] Calculating the reciprocal of the distance between the occluded pixel point and the corresponding occluding pixel point at the modeling position to obtain an occlusion distance influence index;

[0018] Normalizing the product value of the number of all occluded pixel points in the clustering cluster and the occlusion distance influence index to be the occlusion influence coefficient of the corresponding occluded pixel point.

[0019] Further, reducing the brightness coefficient of the occluded pixel points according to the occlusion influence coefficient to obtain a target coefficient includes:

[0020] Calculating the product value of the occlusion influence coefficient and the brightness coefficient of the occluded pixel point to obtain a target coefficient.

[0021] Further, determining the brightness value of each pixel point in the visualization interface according to the target coefficient and the brightness coefficients of other pixel points includes:

[0022] Using the target coefficient and the brightness coefficients of other pixel points as the weights corresponding to the pixel points, and performing weighting in combination with a preset standard brightness value to obtain the brightness value of each pixel point.

[0023] Further, it further includes: when the viewpoint and the light source point change, determining the brightness value of each pixel point in real time according to the change.

[0024] On the other hand, an image rendering system for environmental art design is further provided, and the system includes:

[0025] An acquisition module, configured to acquire the modeling positions corresponding to the pixel points in the visualization interface in the three-dimensional original scene modeling, as well as the preset light source point and viewpoint positions; determining the light source angle and the viewpoint angle according to the light source point position and the viewpoint position, where the viewpoint angle is the angle formed by the straight line formed by the modeling position and the viewpoint and the normal line of the modeling position in its horizontal plane, and the light source angle is the angle formed by the straight line formed by the modeling position and the light source point and the normal line of the modeling position in its horizontal plane;

[0026] A brightness analysis module, configured to determine the illumination intensity of the corresponding pixel point according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position; determining the brightness coefficient of each pixel point according to the light source angle, the viewpoint angle, the distance between the modeling position and the viewpoint position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the material at the modeling position;

[0027] Occlusion analysis module, which is used to determine whether the modeling position corresponding to each pixel point in the 3D model is occluded. If there is occlusion, the adjacent occluded pixel points are taken as a clustering cluster, and according to the number of all occluded pixel points in the clustering cluster, as well as the modeling positions corresponding to the occluded pixel points and the occluding pixel points in the 3D model, the occlusion influence coefficient of the occluded pixel points is determined;

[0028] Rendering module, which is used to reduce the brightness coefficient of the occluded pixel points according to the occlusion influence coefficient to obtain a target coefficient, determine the brightness value of each pixel point in the visualization interface according to the target coefficient and the brightness coefficients of other pixel points, and perform image brightness rendering according to the brightness value.

[0029] On the other hand, an image rendering device for environmental art design is also provided. The device includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, the steps of the method described in any one of the foregoing are implemented.

[0030] The present invention has the following beneficial effects:

[0031] The present invention obtains the modeling position corresponding to the pixel points in the visualization interface in the 3D original scene modeling, as well as the preset light source point and viewing point positions; it is used to determine the data basis and analyze the light source angle and viewing angle based on the light source point and viewing point positions; then, perform the brightness analysis of each pixel point, and this brightness analysis specifically combines the position information, angle information, and the light absorption degree of the material at the modeling position, so that the brightness analysis can more accurately represent the brightness value corresponding to each pixel point; after that, perform occlusion analysis, determine the occlusion influence coefficient of the occluded pixel points according to the number of all occluded pixel points in the clustering cluster, as well as the modeling positions corresponding to the occluding pixel points and the occluded pixel points in the 3D model, and then perform brightness analysis according to the occlusion influence coefficient, so as to reduce the brightness of the occluded area and achieve the brightness rendering of the image. The present invention can reduce the rendering calculation amount and improve the rendering efficiency while ensuring the basic rendering accuracy and rendering effect through a simple rendering logic. Description of the Drawings

[0032] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0033] Figure 1 It is a flowchart of an image rendering method for environmental art design provided by an embodiment of the present invention;

[0034] Figure 2 Schematic diagram of a 3D model provided by an embodiment of the present invention;

[0035] Figure 3 Schematic diagram of a rendered image provided by an embodiment of the present invention. Detailed implementation manners

[0036] In order to further elaborate on the technical means and effects adopted by the present invention to achieve the intended invention purpose, the following combines the accompanying drawings and preferred embodiments to detail the specific implementation manners, structures, features and effects of an image rendering method, system and device for environmental art design proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, the specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.

[0037] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs.

[0038] The following specifically describes the specific solution of an image rendering method for environmental art design provided by the present invention with reference to the accompanying drawings.

[0039] Please refer to Figure 1 , which shows a flowchart of an image rendering method for environmental art design provided by an embodiment of the present invention. The method includes:

[0040] S101: Obtain the modeling positions corresponding to the pixel points in the visualization interface in the 3D original scene modeling, as well as the preset light source point and viewing point positions; determine the light source angle and viewing angle according to the light source point position and the viewing point position.

[0041] The present invention needs to implement image rendering for environmental art design. In environmental art design, based on the original 3D modeling image and retaining all objects and the spatial relationships between objects, a realistic and visual scene that conforms to the real world in the three-dimensional space is created. The image rendering technology can accurately simulate the lighting effects in the real world, thereby generating a more realistic rendering effect. Refer to Figure 2 and Figure 3 , Figure 2 Schematic diagram of a 3D model provided by an embodiment of the present invention, Figure 3 Schematic diagram of a rendered image provided by an embodiment of the present invention.

[0042] On the visualization interface during the image rendering process, usually to mimic the imaging effect of the human eye in the current scene, when changing the viewing angle through mouse and keyboard operations, it is also based on this principle. Therefore, a viewing point in the three-dimensional structure of the current modeling manuscript can be determined according to the visible interface of the current image rendering, and a fixed light source point can be determined. The image rendering process is also, under the condition of switching different viewing angles, irradiating the current modeling scene at this light source point, and the current modeling is rendered in two-dimensional imaging to display the rendering effect on the screen.

[0043] In the modeling scene, the brightness value of the image rendering result at each position is determined by a combination of multiple factors. Specifically, for each position in the current modeling scene, its rendering result is closely related to the following key factors:

[0044] 1) The distance between the modeling position and the viewing point: This determines the perspective effect and depth perception of the modeling position. Generally, the modeling position closer to the viewing point may have a brighter brightness value or receive more detailed processing; while the modeling position farther away may appear blurred or have a lighter color due to perspective attenuation or depth of field effects.

[0045] 2) The difference between the two angles: When the light source angle is very small, according to the lighting model, the current modeling position will receive a strong specular effect. At this time, the smaller the difference between the viewing angle and the light source angle, it means that at the current viewing point, it is closer to the specular direction, and the specular effect can be observed more directly. Therefore, the observed brightness value of the modeling position will be higher and brighter.

[0046] Viewing angle (the angle formed by the line connecting the modeling position and the viewing point and the normal line of the modeling position in its plane): This angle affects the lighting direction and intensity of the modeling position, that is, the brightness or darkness of the modeling position relative to the viewing point. When the angle is small, the modeling position may be closer to the front lighting and the brightness value is brighter; when the angle is large, the modeling position may be in side lighting or backlighting and the brightness value is darker.

[0047] Light source angle (the angle formed by the line connecting the modeling position and the light source point and the normal line of the modeling position in its plane): This angle determines the degree to which the modeling position receives direct light from the light source. The smaller the angle, the stronger the direct light received by the modeling position and the brighter the brightness value; the larger the angle, the more oblique light or reflected light the modeling position receives, and the brightness value may become darker due to scattering or produce different color effects.

[0048] 3) The basic light intensity of the light source point in the current light source environment: The basic light intensity of the light source directly determines the total amount of light received at the modeling position in the scene, that is, the intensity of the incident light. The stronger the light intensity, the brighter the brightness value of the pixel point; the weaker the light intensity, the darker the brightness value of the modeling position. During the image rendering process, the basic light intensity of the light source is entered by the user, and the numerical range is between 0 and 10. The larger the value, the brighter the overall brightness value of the rendering result displayed in the modeling scene.

[0049] 4) The light absorption degree of the material property: The modeling positions of different materials have different abilities to absorb and reflect light. The higher the light absorption degree of the material property, the more light the modeling position absorbs and the less light is reflected, and the brightness value may become darker due to absorption or produce specific color changes; the lower the light absorption degree of the material property, the more light the modeling position reflects and the closer the brightness value is to the light source color or produces a highlight effect.

[0050] Among them, the distance between the modeling position and the viewing point, the difference in the included angle, and the basic light intensity of the light source point in the current light source environment can be directly obtained during the user's rendering process, while the light absorption degree of the material property needs to be obtained based on a shading model. The Lambertian reflection model assumes that the surface is an ideal diffuse reflector, that is, light is reflected uniformly in all directions. A key parameter of this model is the reflectivity of the material (or called the diffuse reflectivity), which determines the proportion of light absorbed and reflected by the surface.

[0051] Based on this, obtain the data basis for image rendering. It should be noted that traditional image rendering is pre-rendering based on modeling. This type of image rendering requires a large amount of computing resources and a long rendering time. Therefore, the rendering real-time performance is insufficient. In order to ensure the real-time rendering effect and improve the rendering speed, an image rendering method is urgently needed.

[0052] It can be understood that since the overall modeling is three-dimensional modeling, and the rendering display is actually based on a two-dimensional plane, according to this feature, the modeling position corresponding to each pixel point in the three-dimensional original scene modeling in the visualization interface starting from the viewing point can be determined.

[0053] S102: Determine the light intensity of the corresponding pixel point according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position; determine the brightness coefficient of each pixel point according to the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the light intensity of the corresponding pixel point, and the light absorption degree of the material at the modeling position.

[0054] In the embodiment of the present invention, since the light source angle and the basic light intensity represent the light irradiation situation, and the light absorption degree represents the light reflection situation of the material, therefore, the light intensity of the pixel point in the two-dimensional plane can be determined based on this.

[0055] Further, in some embodiments of the present invention, the illumination intensity of the corresponding pixel is determined according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position, including: determining the product of the cosine value of the light source angle and the basic light intensity, and taking the ratio of the product value to the light absorption degree as the illumination intensity of the pixel point.

[0056] Among them, since the smaller the light source angle, the stronger the direct light received by the modeling position, the stronger its illumination intensity; the lower the light absorption degree of the material property, the more light reflected by the pixel point, resulting in a high-light effect. In the embodiments of the present invention, the product of the cosine value of the light source angle and the basic light intensity is directly calculated, and the ratio of the product value to the light absorption degree is taken as the illumination intensity of the pixel point. It should be noted that in this calculation process, the light absorption degree is not 0, which means that there is no material that absorbs all light.

[0057] After determining the illumination intensity in the present invention, brightness analysis needs to be performed on each pixel in the two-dimensional visualization interface, and further combination of the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the material at the modeling position is required.

[0058] Among them, the brightness coefficient represents the brightness analysis factor corresponding to the position of the pixel point. The larger the brightness coefficient, the larger the brightness value in the image rendering process, and thus the more specific detail features can be reflected.

[0059] Further, in some embodiments of the present invention, according to the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the material at the modeling position, the brightness coefficient of each pixel point is determined, and the corresponding calculation formula is:

[0060]

[0061] In the formula, represents the brightness coefficient of the th pixel point, represents the distance between the modeling position corresponding to the th pixel point and the viewing point position; represents the viewing angle; represents the light source angle; represents the illumination intensity of the th pixel point; represents the light absorption degree of the material property of the th pixel point; represents the normalization function, represents the exponential function with the natural constant as the base.

[0062] In the formula, Reflect the influence of the viewing angle and the light source angle on the brightness coefficient of pixel points. When both the viewing angle and the light source angle are small, the direct light received by the current pixel point is stronger, and it is closer to the frontal illumination, so its brightness coefficient is larger. Moreover, when the difference between the viewing angle and the light source angle is smaller, the brightness coefficient of the image rendering result of the current pixel point should be higher. Using the absolute value of the difference for negative correlation normalization is to avoid the difference value being too small and thus ignoring this important influencing factor. Based on the current light source, the greater the basic light intensity given by the user, the smaller the distance between the th pixel point and the viewing point, and the smaller the light absorption intensity of the material property corresponding to the position where the th pixel point is located, the greater the brightness coefficient of the th pixel point, and the appearance and lighting effect of the real material can be simulated under the current light source.

[0063] S103: Determine whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded. If there is occlusion, take the adjacent occluded pixel points as a clustering cluster, and determine the occlusion influence coefficient of the occluded pixel points according to the number of all occluded pixel points in the clustering cluster, and the modeling positions corresponding to the occluded pixel points and the occluded pixel points in the three-dimensional model.

[0064] Among them, due to the irregular shape of the rendered object, that is, occlusion analysis is also an important analysis item for rendering. For occlusion analysis, the three-dimensional scene can be combined. Determining whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded includes: connecting the modeling position and the light source linearly in the three-dimensional model scene, and determining whether the line segment between the modeling position and the light source passes through other modeling entities. If it passes through, occlusion occurs; if it does not pass through, no occlusion occurs.

[0065] Since light travels in a straight line in the real scene, if the line segment between the modeling position and the light source passes through other modeling entities, it will be occluded by other modeling entities. For the modeling position where occlusion occurs, it is necessary to further reduce the illumination intensity it receives.

[0066] It should be noted that the occluded area is also affected by light. The larger the occluded area, the weaker the corresponding light influence and the smaller the brightness value. Based on this, analysis is carried out through clustering clusters. Taking adjacent occluded pixel points as a clustering cluster means that if there is an occlusion phenomenon among other pixel points within the eight-neighborhood range of any occluded pixel point, then form a clustering cluster with this occluded pixel point and other occluded pixel points within the eight-neighborhood range. Thus, different clustering clusters are obtained by traversing all pixel points.

[0067] Further, in some embodiments of the present invention, the occlusion influence coefficient of the occluded pixel points is determined according to the number of all occluded pixel points in the clustering cluster and the modeling positions corresponding to the occluded pixel points and the occluding pixel points in the three-dimensional model, including: calculating the reciprocal of the distance between the occluded pixel point and the corresponding occluding pixel point at the modeling position to obtain an occlusion distance influence index; normalizing the product value of the number of all occluded pixel points in the clustering cluster and the occlusion distance influence index to be the occlusion influence coefficient corresponding to the occluded pixel point.

[0068] In a three-dimensional modeling scenario, the relative positions of objects may cause some objects to be occluded by other objects, and thus unable to receive direct illumination from a light source. Since the modeling positions on these occluded objects cannot directly simulate the lighting effect, it is necessary to further analyze the occlusion influence coefficient of the occluded pixel points to complete image rendering.

[0069] For the occluded pixel points in each clustering cluster, their overall brightness values should be darker after being occluded. In the clustering cluster, there may also be reflected light intensity on the occluded pixel points, so the brightness value that should be superimposed on the reflected part is added on the basis of occlusion.

[0070] It can be understood that the complexity of image rendering is mainly reflected in the superimposed brightness values, that is, the analysis and superimposition of the brightness values of different materials reflecting light, and the display of the corresponding brightness on different inclined planes. To avoid such complex operations, in the embodiments of the present invention, the analysis is directly performed through the distance between the occluding pixel point and the corresponding occluding pixel point at the modeling position. That is, the closer the distance, the greater the influence and the lower the brightness value. The specific principle is that when the occluder and the occluded object are closer, the occluded object receives less reflected light and has a lower brightness, while when the occluder and the occluded object are farther apart, the occluded object receives more reflected light and has a higher brightness. Thus, complex analysis is avoided, and while ensuring the basic rendering effect, complex operations are reduced and the rendering efficiency is improved.

[0071] S104: Reduce the brightness coefficient of the occluded pixel points according to the occlusion influence coefficient to obtain a target coefficient. Determine the brightness value of each pixel point in the visualization interface according to the target coefficient and the brightness coefficients of other pixel points, and perform image brightness rendering according to the brightness value.

[0072] Among them, the brightness of the occluded pixel points will be reduced to a certain extent due to the occlusion influence. The specific reduction effect is analyzed through the occlusion influence coefficient, that is, the brightness coefficient is processed through the occlusion influence coefficient to achieve the reduction effect.

[0073] Further, in some embodiments of the present invention, reducing the luminance coefficient of the occluded pixel points according to the occlusion influence coefficient to obtain a target coefficient includes: calculating the product value of the occlusion influence coefficient and the luminance coefficient of the occluded pixel points to obtain the target coefficient.

[0074] Wherein, the target coefficient represents the luminance coefficient of the occluded pixel points after occlusion influence analysis. By directly obtaining the product value of the occlusion influence coefficient and the luminance coefficient of the occluded pixel points, the target coefficient is obtained, so as to accurately analyze the occluded pixel points.

[0075] Further, in some embodiments of the present invention, determining the luminance value of each pixel point in the visualization interface according to the target coefficient and the luminance coefficients of other pixel points includes: using the target coefficient and the luminance coefficients of other pixel points as the weights of the corresponding pixel points, and combining with a preset standard luminance value for weighting to obtain the luminance value of each pixel point.

[0076] Wherein, the preset standard luminance value is a preset standard luminance value, which changes corresponding to different light source points, such as 100 cd / m², and is not limited thereto.

[0077] Specifically, the weighting is to use the product of the target coefficient of any occluded pixel point and the preset standard luminance value as the luminance value of the corresponding occluded pixel point. When the pixel point is not an occluded pixel point, directly calculate the product of the luminance coefficient and the preset standard luminance value as the luminance value of the corresponding pixel point. Thus, the luminance value of the pixel point is determined, and based on the luminance value and the color at the corresponding position in the modeling, image rendering is performed.

[0078] Thus, directly render the pixel points in the displayed two-dimensional visualization interface for two-dimensional display. At the same time, when the viewing point and the light source point change, the luminance value of each pixel point is determined in real time according to the change. That is, re-perform fast rendering, thereby realizing the pseudo-three-dimensional effect of changing the viewing angle.

[0079] The present invention obtains the modeling positions corresponding to the pixel points in the visual interface in the three-dimensional original scene modeling, as well as the preset light source point and viewing point positions; is used to determine the data basis, and analyzes the light source angle and viewing angle based on the light source point and viewing point positions; then, performs the brightness analysis of each pixel point, and this brightness analysis specifically combines the position information, angle information, and the light absorption degree of the material at the modeling position, so that the brightness analysis can more accurately represent the brightness value corresponding to each pixel point; after that, performs the occlusion analysis, determines the occlusion influence coefficient of the occluded pixel points through the number of all occluded pixel points in the clustering cluster, and the modeling positions corresponding to the occluded pixel points and the occluded pixel points in the three-dimensional model, and then, performs the brightness analysis according to the occlusion influence coefficient, thereby reducing the brightness of the occluded area and realizing the brightness rendering of the image. The present invention can reduce the rendering calculation amount and improve the rendering efficiency while ensuring the basic rendering accuracy and rendering effect through a simple rendering logic.

[0080] On the other hand, the present invention also provides an image rendering system for environmental art design, and the system includes:

[0081] An acquisition module, configured to acquire the modeling positions corresponding to the pixel points in the visual interface in the three-dimensional original scene modeling, as well as the preset light source point and viewing point positions; determine the light source angle and viewing angle according to the light source point position and the viewing point position, wherein the viewing angle is the included angle formed by the straight line formed by the modeling position and the viewing point and the normal line of the modeling position in its horizontal plane, and the light source angle is the included angle formed by the straight line formed by the modeling position and the light source point and the normal line of the modeling position in its horizontal plane;

[0082] A brightness analysis module, configured to determine the illumination intensity of the corresponding pixel points according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position; determine the brightness coefficient of each pixel point according to the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the modeling position material;

[0083] An occlusion analysis module, configured to determine whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded. If there is occlusion, take the adjacent occluded pixel points as a clustering cluster, and determine the occlusion influence coefficient of the occluded pixel points according to the number of all occluded pixel points in the clustering cluster, and the modeling positions corresponding to the occluded pixel points and the occluded pixel points in the three-dimensional model;

[0084] A rendering module, configured to reduce the brightness coefficient of the occluded pixel points according to the occlusion influence coefficient to obtain a target coefficient, determine the brightness value of each pixel point in the visual interface according to the target coefficient and the brightness coefficients of other pixel points, and perform image brightness rendering according to the brightness value.

[0085] Among them, the specific implementation steps of an image rendering system for environmental art design are the same as those of the aforementioned image rendering method for environmental art design.

[0086] On the other hand, the present invention also provides an image rendering system for environmental art design. The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the aforementioned image rendering method for environmental art design are implemented.

[0087] It should be noted that the above sequence of embodiments of the present invention is only for description and does not represent the superiority or inferiority of the embodiments. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0088] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments.

Claims

1. An image rendering method for environmental art design, characterized in that: The method comprises: Obtaining the modeling position corresponding to the pixel point in the visualization interface in the three-dimensional original scene modeling, as well as the preset light source point and viewpoint positions; determining the light source angle and viewpoint angle according to the light source point position and viewpoint position, wherein the viewpoint angle is the angle formed by the straight line formed by the modeling position and the viewpoint and the normal of the modeling position on the horizontal plane where the modeling position is located, and the light source angle is the angle formed by the straight line formed by the modeling position and the light source point and the normal of the modeling position on the horizontal plane where the modeling position is located; Determine the illumination intensity of the corresponding pixel point according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position; determine the brightness coefficient of each pixel point according to the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the material at the modeling position; Determine whether the modeling position corresponding to each pixel point in the three-dimensional model is blocked. If blocked, the adjacent blocked pixels are grouped as a cluster. According to the number of all blocked pixels in the cluster and the modeling positions corresponding to the blocked pixels and the blocked pixels in the three-dimensional model, determine the blocking influence coefficient of the blocked pixels. The brightness coefficient of the occluded pixel is reduced according to the occlusion influence coefficient to obtain the target coefficient, the brightness value of each pixel in the visualization interface is determined according to the target coefficient and the brightness coefficients of other pixels, and the image brightness is rendered according to the brightness value.

2. The image rendering method for environmental art design according to claim 1, characterized in that: Determining the illumination intensity of the corresponding pixel point according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position includes: Determine the product of the cosine value of the light source angle and the basic light intensity, and use the ratio of the product value to the light absorption degree as the light intensity of the pixel.

3. The image rendering method for environmental art design according to claim 1, characterized in that: The brightness coefficient of each pixel is determined according to the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the material at the modeling position. The corresponding calculation formula is: ; In the formula, Indicates The brightness coefficient of each pixel, Indicates The distance between the modeling position corresponding to the pixel point and the viewpoint position; Indicates the viewing angle; Indicates the light source angle; Indicates The light intensity of each pixel; Indicates The degree of light absorption of the material properties of each pixel; Represents an exponential function with a natural constant as its base.

4. The image rendering method for environmental art design according to claim 1, characterized in that: Determining whether a modeling position corresponding to each pixel point in the three-dimensional model is blocked includes: A straight line connects the modeling position and the light source in the three-dimensional model scene, and determines whether the line segment between the modeling position and the light source passes through other modeling entities. If so, occlusion occurs; if not, no occlusion occurs.

5. The image rendering method for environmental art design according to claim 1, characterized in that: Determining the occlusion influence coefficient of the occluded pixel according to the number of all occluded pixels in the cluster and the modeling positions corresponding to the occluded pixel and the occluded pixel in the three-dimensional model includes: Calculate the inverse of the distance between the occluded pixel and the corresponding occluding pixel at the modeling position to obtain the occlusion distance impact index; The product of the number of all occluded pixels in the cluster and the occlusion distance impact index is normalized to its maximum and minimum values ​​as the occlusion impact coefficient of the corresponding occluded pixel.

6. The image rendering method for environmental art design according to claim 1, characterized in that: The step of reducing the brightness coefficient of the blocked pixel point according to the blocking influence coefficient to obtain the target coefficient includes: The product value of the occlusion influence coefficient and the brightness coefficient of the occluded pixel is calculated to obtain the target coefficient.

7. The image rendering method for environmental art design according to claim 1, characterized in that: Determining the brightness value of each pixel in the visualization interface according to the target coefficient and the brightness coefficients of other pixels includes: The target coefficient and the brightness coefficients of other pixels are used as weights of corresponding pixels, and are weighted in combination with a preset standard brightness value to obtain a brightness value of each pixel.

8. The image rendering method for environmental art design according to claim 1, characterized in that: Also includes: When the viewing angle point and the light source point change, the brightness value of each pixel point is determined in real time according to the change.

9. An image rendering system for environmental art design, characterized in that: The system comprises: An acquisition module is used to acquire the modeling position corresponding to the pixel point in the visualization interface in the three-dimensional original scene modeling, as well as the preset light source point and viewpoint positions; determine the light source angle and viewpoint angle according to the light source point position and viewpoint position, wherein the viewpoint angle is the angle formed by the straight line formed by the modeling position and the viewpoint and the normal of the modeling position on the horizontal plane where the modeling position is located, and the light source angle is the angle formed by the straight line formed by the modeling position and the light source point and the normal of the modeling position on the horizontal plane where the modeling position is located; The brightness analysis module is used to determine the illumination intensity of the corresponding pixel point according to the light source angle, the basic light intensity of the light source point, and the light absorption degree of the material at the modeling position; and to determine the brightness coefficient of each pixel point according to the light source angle, the viewing angle, the distance between the modeling position and the viewing point position, the illumination intensity of the corresponding pixel point, and the light absorption degree of the material at the modeling position; The occlusion analysis module is used to determine whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded. If it is occluded, the adjacent occluded pixels are grouped as a cluster, and the occlusion influence coefficient of the occluded pixels is determined according to the number of all occluded pixels in the cluster and the modeling positions corresponding to the occluded pixels and the occluded pixels in the three-dimensional model. The rendering module is used to reduce the brightness coefficient of the occluded pixel points according to the occlusion influence coefficient to obtain the target coefficient, determine the brightness value of each pixel point in the visualization interface according to the target coefficient and the brightness coefficients of other pixel points, and perform image brightness rendering according to the brightness value.

10. An image rendering device for environmental art design, the device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Pixel point identification and illumination rendering method and device, electronic equipment and storage medium

    CN111311723A

  • Illumination rendering method and device, equipment and storage medium

    CN117671125A