Image rendering method, system and equipment for environmental art design
By obtaining the light source angle and viewing angle in a three-dimensional scene in environmental art design, and combining the material light absorption degree and occlusion analysis, efficient image rendering is carried out, which solves the problem of low rendering efficiency in the existing technology and achieves a more efficient rendering process.
Patent Information
- Application Number
- CN202510322154.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-03-19
AI Technical Summary
In the prior art, the overall rendering calculation is large, rendering takes more time, which leads to low rendering efficiency.
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 brightness analysis of each pixel point, and determine the occlusion influence coefficient of the occluded pixel points through the number of all occluded pixel points in the cluster cluster, and reduce the brightness value to achieve brightness rendering of the image.
While ensuring basic rendering accuracy and rendering effect, it reduces the amount of rendering calculations and improves rendering efficiency.
Smart Images

Figure CN119850820A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image rendering, and in particular to an image rendering method, system and device for environmental art design. Background Art
[0002] Image rendering is a crucial link in environmental art design. Through rendering technology, creativity and ideas can be presented in an intuitive and realistic way, thus helping customers better understand the design plan 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 advancement of computer graphics processing technology, modern image rendering technology has been able to achieve highly realistic rendering effects, including light and shadow effects, material performance, detail processing and other aspects.
[0003] In the related technology, image rendering is achieved through various aspects such as light and shadow effects, material expression, and detail processing. In this way, due to the large amount of overall rendering calculations, rendering takes more time, which leads to lower rendering efficiency; an efficient image rendering method is urgently needed. Summary of the invention
[0004] In order to solve the technical problem in the related art that the rendering time is longer due to the large amount of overall rendering calculation, which leads to low rendering efficiency, the present invention provides an image rendering method, system and device for environmental art design, and the technical solutions adopted are as follows: The present invention proposes an image rendering method for environmental art design, the method comprising: 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.
[0005] Furthermore, 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.
[0006] Furthermore, 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 the normalization function, Represents an exponential function with a natural constant as its base.
[0007] Furthermore, 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.
[0008] Furthermore, the determining of 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.
[0009] Further, the brightness coefficient of the blocked pixel is reduced according to the blocking influence coefficient to obtain a target coefficient, including: The product value of the occlusion influence coefficient and the brightness coefficient of the occluded pixel is calculated to obtain the target coefficient.
[0010] Furthermore, 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.
[0011] Furthermore, it also includes: when the viewing point and the light source point change, the brightness value of each pixel point is determined in real time according to the change.
[0012] On the other hand, an image rendering system for environmental art design is also provided, the system comprising: 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.
[0013] On the other hand, an image rendering device for environmental art design is also provided, the device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the steps of any of the methods described above when executing the computer program.
[0014] The present invention has the following beneficial effects: The present invention obtains the modeling position corresponding to the original scene modeling of the pixel point in the three-dimensional visualization interface, as well as the preset light source point and viewpoint position; is used to determine the data basis, and analyzes the light source angle and viewpoint angle based on the light source point and viewpoint position; then, performs brightness analysis of each pixel point, and the 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 characterize the brightness value corresponding to each pixel point; then, analyzes the occlusion, and determines the occlusion influence coefficient of the occluded pixel point by clustering the number of all occluded pixel points in the cluster, and the modeling position corresponding to the occluded pixel point and the occluded pixel point in the three-dimensional model, and then, performs 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 simple rendering logic. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A flow chart of an image rendering method for environmental art design provided by one embodiment of the present invention; Figure 2 A schematic diagram of a three-dimensional model provided by an embodiment of the present invention; Figure 3 A schematic diagram of a rendered image provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the image rendering method, system and device for environmental art design proposed by the present invention, its specific implementation method, structure, features and effects in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0018] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0019] The following is a detailed description of a specific solution of an image rendering method for environmental art design provided by the present invention in conjunction with the accompanying drawings.
[0020] See also Figure 1 , which shows a flow chart of an image rendering method for environmental art design provided by an embodiment of the present invention, the method comprising: S101: Obtain 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 view point positions; determine the light source angle and view angle according to the light source point position and view point position.
[0021] The present invention needs to realize image rendering of environmental art design. In environmental art design, based on the original 3D modeling image and retaining all objects and the spatial relationship between objects, a realistic and visual scene that fits reality is created in three-dimensional space. Image rendering technology can accurately simulate the lighting effect in the real world, thereby generating a more realistic rendering effect. Figure 2 and Figure 3 , Figure 2 A schematic diagram of a three-dimensional model provided by an embodiment of the present invention, Figure 3 A schematic diagram of a rendered image provided by an embodiment of the present invention.
[0022] In the visual interface of the image rendering process, it is usually to imitate the imaging effect of the human eye in the current scene. When the perspective is changed through the operation of the mouse and keyboard, it is also based on this principle. Therefore, a perspective point in the three-dimensional structure of the current modeling manuscript can be determined according to the visual interface of the current image rendering, and a fixed light source point can be determined. The image rendering process is to switch different perspectives, illuminate the current modeling scene at the light source point, and render the current modeling in two-dimensional imaging to display the rendering effect on the screen.
[0023] 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: 1) The distance between the modeling position and the viewpoint: This determines the perspective effect and depth perception of the modeling position. Generally, the closer the modeling position is to the viewpoint, the brighter the brightness value may be or receive more details; while the modeling position farther away may appear blurred or faded due to perspective attenuation or depth of field effect.
[0024] 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 stronger highlight effect. At this time, the smaller the difference between the viewing angle and the light source angle, the closer the current viewing angle is to the highlight direction, and the more directly the highlight effect can be observed. Therefore, the observed brightness value of the modeling position will be higher and brighter.
[0025] Viewing angle (the angle between the straight line between the modeling position and the viewing point and the normal of the modeling position on the plane where it is located): This angle affects the lighting direction and intensity of the modeling position, that is, the brightness of the modeling position relative to the viewing point. When the angle is small, the modeling position may be closer to the front light, with a brighter brightness value; when the angle is large, the modeling position may be in a side light or back light state, with a darker brightness value.
[0026] Light source angle (the angle between the straight line between the modeling position and the light source point and the normal line of the modeling position on the plane where it is located): 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 received by the modeling position, and the brightness value may become darker or produce different color effects due to scattering.
[0027] 3) The basic light intensity of the light source under the current light source environment: The basic light intensity of the light source directly determines the total amount of light that the modeling position in the scene can receive, 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 value range is between 0 and 10. The larger the value, the greater and brighter the overall brightness value of the rendering result displayed in the modeling scene.
[0028] 4) Light absorption degree of material attributes: Modeling locations of different materials have different light absorption and reflection capabilities. The higher the light absorption degree of material attributes, the more light is absorbed at the modeling location, and the less light is reflected. The brightness value may become darker or produce specific color changes due to absorption; the lower the light absorption degree of material attributes, the more light is reflected at the modeling location, and the brightness value is closer to the light source color or produces a highlight effect.
[0029] Among them, the distance between the modeling position and the viewing point, the difference between the angles, and the basic light intensity of the light source point under the current light source environment can be directly obtained during the user rendering process, while the light absorption degree of the material attribute needs to be obtained based on a shading model. The Lambertian reflection model assumes that the surface is an ideal diffuse reflector, that is, the light is reflected evenly in all directions. A key parameter of this model is the reflectivity (or diffuse reflectivity) of the material, which determines the proportion of light absorbed and reflected by the surface.
[0030] Based on this, the data foundation for image rendering is obtained. It should be noted that traditional image rendering is pre-rendering based on modeling. This type of image rendering requires large computing resources and a long rendering time. Therefore, the rendering is not real-time enough. In order to ensure real-time rendering effects and improve rendering speed, an image rendering method is urgently needed.
[0031] It is understandable that since the overall modeling is three-dimensional modeling, and the rendering display is actually based on a two-dimensional plane, the modeling position corresponding to each pixel point in the visualization interface starting from the viewpoint in the three-dimensional original scene modeling can be determined based on this feature.
[0032] S102: 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.
[0033] In the embodiment of the present invention, since the light source angle and basic light intensity represent the light irradiation situation, and the light absorption degree represents the light reflection situation of the material, the light intensity of the pixel point in the two-dimensional plane can be determined based on this.
[0034] Furthermore, in some embodiments of the present invention, the illumination intensity of the corresponding pixel point is determined based on 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.
[0035] Among them, since the smaller the light source angle is, the stronger the direct light received by the modeling position is, and therefore, the stronger the light intensity is; the lower the light absorption degree of the material attribute is, the more light is reflected by the pixel point, resulting in a highlight effect; in the embodiment 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 used as the light intensity of the pixel point; it should be noted that in the calculation process, the light absorption degree is not 0, which means that there is no material that absorbs all light.
[0036] After determining the light intensity, the present invention needs to perform brightness analysis on each pixel in the two-dimensional visualization interface, which requires further combining the light source angle, 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.
[0037] Among them, the brightness coefficient represents the brightness analysis factor of the position corresponding to the pixel point. The larger the brightness coefficient is, the greater the brightness value will be during the image rendering process, thus better reflecting the specific detail features.
[0038] Furthermore, in some embodiments of the present invention, 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, 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 the normalization function, Represents an exponential function with a natural constant as its base.
[0039] In the formula, Reflects the influence of the viewing angle and the light source angle on the pixel brightness coefficient. When the viewing angle and the light source angle are both small, the stronger the direct light received by the current pixel and the closer it is to the frontal light, the larger its brightness coefficient will be. 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 should be higher. The absolute value of the difference is used for negative correlation normalization to avoid ignoring this important influencing factor because the difference value is too small. Under the current light source, the greater the basic light intensity given by the user, the The smaller the distance between the pixel and the viewing point, the smaller the The smaller the light absorption intensity of the material attribute corresponding to the position of the pixel point, the The larger the brightness coefficient of each pixel, the more realistic the appearance and lighting effects of the material can be simulated under the current light source.
[0040] S103: Determine whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded. If occluded, group the adjacent occluded pixels into a cluster, and determine the occlusion influence coefficient of the occluded pixels 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.
[0041] Among them, due to the irregular shape of the rendered object, occlusion analysis is also an important analysis item for rendering. For occlusion analysis, it can be combined with the three-dimensional scene. Determine whether the modeling position corresponding to each pixel point in the three-dimensional model is occluded, including: connecting the modeling position and the light source in a straight line 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 so, occlusion occurs; if not, no occlusion occurs.
[0042] Since light propagates in a straight line in a real scene, if the line segment between the modeling position and the light source passes through other modeling entities, it will be blocked by other modeling entities. For the modeling position that is blocked, it is necessary to further reduce the light intensity it receives.
[0043] It should be noted that the occluded area is also affected by the illumination, and the larger the occluded area is, the weaker the corresponding illumination influence is and the smaller the brightness value is. Based on this, clustering is used for analysis. Adjacent occluded pixels are taken as a cluster, that is, if other pixels within the eight-neighborhood range of any occluded pixel are occluded, then the occluded pixel and other occluded pixels within the eight-neighborhood range are formed into a cluster, thus traversing all pixels to obtain different clusters.
[0044] Furthermore, in some embodiments of the present invention, the occlusion influence coefficient of the occluded pixel is determined based on 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, including: calculating the inverse of the distance between the occluded pixel and the corresponding occluded pixel at the modeling position to obtain an occlusion distance influence index; and normalizing the product value of the number of all occluded pixels in the cluster and the occlusion distance influence index to the maximum and minimum values as the occlusion influence coefficient of the corresponding occluded pixel.
[0045] In a 3D modeling scene, the relative positions of objects may cause some objects to be blocked by other objects, thus preventing them from being directly illuminated by the light source. Since the modeling positions on these blocked objects cannot directly simulate the lighting effect, it is necessary to further analyze the occlusion influence coefficient of the blocked pixels to complete the image rendering.
[0046] For each occluded pixel in each cluster, the overall brightness value should be darker after being occluded. In the cluster, the occluded pixel may also have reflected light intensity, so the brightness value that should be superimposed on the occluded part is added.
[0047] It is understandable that the complexity of image rendering is mainly reflected in the superimposed brightness value, that is, the analysis and superposition of the brightness values of light reflected from different materials, and the display of corresponding brightness on different inclined planes. In order to avoid such complex calculations, in an embodiment of the present invention, the distance between the occluded pixel point and the corresponding occluded pixel point at the modeling position is directly analyzed, that is, the closer the distance, the greater the impact 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 the lower the brightness. When the occluder and the occluded object are farther apart, the occluded object receives more reflected light and the higher the brightness. Thus, complex analysis is avoided, thereby reducing complex calculations and improving rendering efficiency while ensuring basic rendering effects.
[0048] S104: reducing the brightness coefficient of the blocked pixel according to the occlusion influence coefficient to obtain a target coefficient, determining the brightness value of each pixel in the visualization interface according to the target coefficient and the brightness coefficients of other pixels, and performing image brightness rendering according to the brightness value.
[0049] The brightness of the blocked pixel will be reduced due to the occlusion effect. The specific reduction effect is analyzed by the occlusion influence coefficient, that is, the brightness coefficient is processed by the occlusion influence coefficient to achieve the reduction effect.
[0050] Furthermore, in some embodiments of the present invention, the brightness coefficient of the occluded pixel is reduced according to the occlusion influence coefficient to obtain the target coefficient, including: calculating the product value of the occlusion influence coefficient and the brightness coefficient of the occluded pixel to obtain the target coefficient.
[0051] The target coefficient represents the brightness coefficient of the occluded pixel after occlusion impact analysis. The target coefficient is obtained by directly multiplying the occlusion impact coefficient and the brightness coefficient of the occluded pixel, thereby accurately analyzing the occluded pixel.
[0052] Furthermore, in some embodiments of the present invention, the brightness value of each pixel in the visualization interface is determined based on the target coefficient and the brightness coefficient of other pixel points, including: using the target coefficient and the brightness coefficient of other pixel points as the weight of the corresponding pixel points, combining with the preset standard brightness value for weighting, to obtain the brightness value of each pixel point.
[0053] Among them, the preset standard brightness value is a preset standard brightness value, which produces corresponding changes according to different light source points, for example, 100cd / m², and there is no restriction on this.
[0054] Among them, the specific weighting is to take the product of the target coefficient of any obscured pixel and the preset standard brightness value as the brightness value of the corresponding obscured pixel. When the pixel is not an obscured pixel, the product of the brightness coefficient and the preset standard brightness value is directly calculated as the brightness value of the corresponding pixel. Thus, the brightness value of the pixel is determined, and the image is rendered based on the brightness value and the color of the corresponding position in the modeling.
[0055] Therefore, the pixels in the displayed two-dimensional visualization interface are directly rendered to facilitate two-dimensional display. At the same time, when the viewpoint and light source point change, the brightness value of each pixel is determined in real time according to the change. That is, re-rendering is performed quickly, thereby achieving a pseudo-three-dimensional effect of changing the viewpoint.
[0056] The present invention obtains the modeling position corresponding to the original scene modeling of the pixel point in the three-dimensional visualization interface, as well as the preset light source point and viewpoint position; is used to determine the data basis, and analyzes the light source angle and viewpoint angle based on the light source point and viewpoint position; then, performs brightness analysis of each pixel point, and the 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 characterize the brightness value corresponding to each pixel point; then, analyzes the occlusion, and determines the occlusion influence coefficient of the occluded pixel point by clustering the number of all occluded pixel points in the cluster, and the modeling position corresponding to the occluded pixel point and the occluded pixel point in the three-dimensional model, and then, performs 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 simple rendering logic.
[0057] On the other hand, the present invention also provides an image rendering system for environmental art design, the system comprising: 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.
[0058] Among them, the specific implementation steps of an image rendering system for environmental art design are the same as the steps of the aforementioned image rendering method for environmental art design.
[0059] 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.
[0060] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying 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.
[0061] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and 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 the normalization function, 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: The step of 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
Method and system for rendering image through generative digital model
CN119295633A
Efficient determination of lighting effects in volume rendering
US20110069069A1
Illumination rendering method and apparatus, computer device, and storage medium
US20230076326A1