Model rendering method and device, computer equipment and computer readable storage medium

By acquiring and mixing the material properties of the plane model, the problems of low production efficiency and high performance consumption in the prior art are solved, and efficient volumetric light rendering is achieved.

CN120198573APending Publication Date: 2025-06-24SHANGHAI NETEASE CUICAN NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510260046.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-05
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The prior art is inefficient and consumes computer performance when producing volumetric light effects, resulting in a stuttering of the process of arranging volumetric fog and light.

Method used

By obtaining the material properties of the plane model in different directions, determining the mixing ratio of the self-luminous attribute and the light transmission attribute, and performing the mixing process, the target material properties are obtained for rendering, and the volumetric light effect is achieved.

Benefits of technology

Improve the production efficiency of volumetric light effects and reduce the computer performance consumed by rendering volumetric light effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120198573A_ABST
    Figure CN120198573A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a model rendering method and device, computer equipment and a computer readable storage medium, and the method comprises the steps: obtaining a first material attribute of a planar model in a first direction and a second material attribute of the planar model in a second direction, the first material attribute comprising a self-luminous attribute and a light transmission attribute of the planar model; determining a first mixing proportion of the self-luminous attribute and the light transmission attribute on each position of the planar model, and increasing the proportion of the light transmission attribute in the first mixing proportion from the reference position of the planar model to the two sides of the planar model along the first direction; performing first mixing processing on the self-luminous attribute and the light transmission attribute according to a first mixing ratio to obtain a third material attribute of the planar model in the first direction; performing second mixing processing on the second material attribute and the third material attribute to obtain a target material attribute of the planar model; the planar model is rendered based on the target material attribute to obtain the volume light effect, the production efficiency of the volume light effect is improved, and the performance consumed by rendering is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of rendering technology, and particularly relates to a model rendering method, apparatus, computer device, and computer-readable storage medium. Background Art

[0002] Volumetric Light is a rendering technology used to simulate the effect of light scattering and visibility in the air. Volumetric Light makes the light form visual effects such as light beams or halos in three-dimensional space, thereby enhancing the realism and atmosphere of the scene. This requires arranging volumetric fog and lights in the scene and then rendering through a rendering engine, resulting in low production efficiency of the volumetric light effect and consuming a great deal of the performance of computer devices, thus causing lags in the process of arranging volumetric fog and lights. Summary of the Invention

[0003] Embodiments of this application provide a model rendering method, apparatus, computer device, and computer-readable storage medium, which can improve the production efficiency of the volumetric light effect and reduce the performance consumed by rendering the volumetric light effect.

[0004] A model rendering method provided by an embodiment of this application includes:

[0005] Obtain a first material property of a planar model in a first direction and a second material property in a second direction, where the first material property includes the self-luminous property and the light-transmitting property of the planar model;

[0006] Determine a first mixing ratio of the self-luminous property and the light-transmitting property at each position of the planar model, where the proportion of the light-transmitting property in the first mixing ratio increases from a reference position of the planar model along the first direction to both sides of the planar model;

[0007] Perform a first mixing process on the self-luminous property and the light-transmitting property according to the first mixing ratio to obtain a third material property of the planar model in the first direction;

[0008] Perform a second mixing process on the second material property and the third material property to obtain a target material property of the planar model;

[0009] Render the planar model based on the target material property to obtain a volumetric light effect.

[0010] Correspondingly, an embodiment of this application also provides a model rendering apparatus, including:

[0011] An obtaining unit, configured to obtain a first material property of a planar model in a first direction and a second material property in a second direction, where the first material property includes the self-luminous property and the light-transmitting property of the planar model;

[0012] A determination unit, configured to determine a first mixing ratio of the self-luminous attribute and the light-transmitting attribute at each position of the planar model, wherein the proportion of the light-transmitting attribute in the first mixing ratio increases from a reference position of the planar model along the first direction to both sides of the planar model;

[0013] A first mixing unit, configured to perform a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain a third material attribute of the planar model in the first direction;

[0014] A second mixing unit, configured to perform a second mixing process on the second material attribute and the third material attribute to obtain a target material attribute of the planar model;

[0015] A rendering unit, configured to render the planar model based on the target material attribute to obtain a volume light effect.

[0016] Correspondingly, an embodiment of the present application further provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory to execute any model rendering method provided by the embodiment of the present application.

[0017] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, which is used to store a computer program, and the computer program is loaded by a processor to execute any model rendering method provided by the embodiment of the present application.

[0018] In the embodiment of the present application, by obtaining a first material attribute of a planar model in a first direction and a second material attribute in a second direction, the first material attribute includes a self-luminous attribute and a light-transmitting attribute of the planar model; determining a first mixing ratio of the self-luminous attribute and the light-transmitting attribute at each position of the planar model, wherein the proportion of the light-transmitting attribute in the first mixing ratio increases from a reference position of the planar model along the first direction to both sides of the planar model; performing a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain a third material attribute of the planar model in the first direction; performing a second mixing process on the second material attribute and the third material attribute to obtain a target material attribute of the planar model; rendering the planar model based on the target material attribute to obtain a volume light effect.

[0019] In the embodiments of the present application, the proportion of the light-transmitting property of the first mixing ratio increases from the reference position along the first direction towards both sides of the planar model. Therefore, a light beam effect can be obtained based on the first mixing ratio, and the appearance of the light beam can be further controlled based on the material property of the planar model in the second direction, thereby rendering a volumetric light effect without arranging volumetric fog and lights in the scene, which not only improves the production efficiency of the volumetric light effect but also reduces the computer performance consumed by rendering the volumetric light effect. Brief Description of the Drawings

[0020] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0021] Figure 1 is a flowchart of the model rendering method provided by the embodiments of the present application;

[0022] Figure 2 is a schematic diagram of the planar model provided by the embodiments of the present application;

[0023] Figure 3 is a rendering schematic diagram of the planar model provided by the embodiments of the present application;

[0024] Figure 4 is a schematic diagram of the color gradient node provided by the embodiments of the present application;

[0025] Figure 5 is a schematic diagram of the node connection relationship provided by the embodiments of the present application;

[0026] Figure 6 is a schematic diagram of the volumetric light effect provided by the embodiments of the present application;

[0027] Figure 7 is a schematic diagram of the volumetric light effect provided by the embodiments of the present application;

[0028] Figure 8 is a schematic diagram of the volumetric light effect provided by the embodiments of the present application;

[0029] Figure 9 is a schematic diagram of the model rendering device provided by the embodiments of the present application;

[0030] Figure 10 is a schematic diagram of the structure of the computer device provided by the embodiments of the present application. Detailed Embodiments

[0031] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.

[0032] The embodiments of the present application provide a model rendering method, device, computer device, and computer-readable storage medium. The model rendering device can be integrated in a computer device, and the computer device can be a server or a terminal device, etc.

[0033] Among them, the terminal can include a mobile phone, a wearable intelligent device, a tablet computer, a notebook computer, a personal computer (PC), and an in-vehicle computer, etc.

[0034] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.

[0035] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments.

[0036] This embodiment will be described from the perspective of the model rendering device. The model rendering device can be specifically integrated in a computer device, and the computer device can be a server or a terminal device, etc.

[0037] A model rendering method provided by the embodiments of the present application, as Figure 1 shown, the specific process of the model rendering method can be as follows:

[0038] 101. Obtain the first material attribute of the planar model in the first direction and the second material attribute in the second direction. The first material attribute includes the self-luminous attribute and the light-transmitting attribute of the planar model.

[0039] Among them, the planar model can be a model constructed by at least one patch. Exemplarily, the planar model can be as Figure 2 shown.

[0040] The first direction can be the longitudinal or transverse direction of the planar model, or it can be the direction from the center point of the model outward, etc. Specifically, it can be flexibly set according to the desired effect to be achieved. The second direction is a direction different from the first direction. Exemplarily, as Figure 2 shown in the planar model, the first direction can be the vertical direction of the plane, and the second direction can be the horizontal direction of the planar model.

[0041] The first material property can include, in the first direction, the material properties corresponding to each model vertex of the planar model. For example, it can include the self-luminous property and the light-transmitting property. Among them, the self-luminous property can refer to the characteristic that an object can emit light by itself. A self-luminous object will act as a light source in rendering and illuminate the surrounding environment. The light-transmitting property can include transparency and a physical model for describing how light passes through transparent or translucent materials. This physical model can be, for example, a transparent BSDF (Bidirectional Scattering Distribution Function), etc. In one embodiment, the light-transmitting property is a transparent BSDF.

[0042] The second material property can include, in the second direction, the material properties corresponding to each model vertex of the planar model. The second material property can include the light-transmitting property, etc.

[0043] 102. Determine the first mixing ratio of the self-luminous property and the light-transmitting property at each position of the planar model. Among them, the proportion of the light-transmitting property in the first mixing ratio increases from the reference position of the planar model along the first direction to both sides of the planar model.

[0044] The first mixing ratio indicates the mixing coefficients of the self-luminous property and the light-transmitting property respectively. For example, the mixing coefficient of the self-luminous property is 0.6, and the mixing coefficient of the light-transmitting property is 0.4, etc.

[0045] Each model vertex of the planar model corresponds to a first mixing ratio. Among the first mixing ratios corresponding to the model vertices from the reference position of the planar model along the first direction to both sides of the planar model, the proportion of the light-transmitting property, that is, the mixing coefficient of the light-transmitting property, shows an increasing trend. Based on the light-transmitting property that increases from the reference position along the first direction to both sides of the model, the transparency of the planar model can be controlled to change from the reference position to both sides. The reference position can be the central position of the planar model in the first direction.

[0046] The reference position can be the central position of the planar model, or other specified positions on the planar model, and can be flexibly set according to the desired volumetric light effect to be achieved, and is not limited herein.

[0047] Exemplarily, as Figure 2 shown in the planar model, under the control of the first mixing ratio, the planar model can be as Figure 3As shown, from Figure 3 it can be seen that in the longitudinal direction of the planar model, it becomes transparent from the center to both sides.

[0048] In one embodiment, the increase in the light-transmitting property can be a uniform increase or a non-uniform increase.

[0049] 103. Perform a first mixing process on the self-luminous property and the light-transmitting property according to the first mixing ratio to obtain the third material property of the planar model in the first direction.

[0050] Mix the self-luminous property and the light-transmitting property according to the mixing coefficient of the self-luminous property and the mixing coefficient of the light-transmitting property included in the first mixing ratio (i.e., the first mixing process) to obtain the third material property of the planar model in the first direction.

[0051] In one embodiment, performing the first mixing process on the self-luminous property and the light-transmitting property according to the first mixing ratio can be achieved through a mixing shader. Specifically, the self-luminous property can be used as the input of a shader channel of the mixing shader, the light-transmitting property can be used as the input of another shader channel of the mixing shader, and the mixing coefficient of the self-luminous property can be used as the input of the coefficient channel of the mixing shader. The mixing shader can determine the first mixing ratio based on the mixing coefficient of the self-luminous property, and then mix the self-luminous property and the light-transmitting property based on the first mixing ratio to obtain the third material property.

[0052] Exemplarily, assume that the self-luminous property is self-luminance and the color of the self-luminance is white. For the planar model as shown in Figure 2 the rendering result obtained by rendering the planar model based on the third material property obtained from the self-luminous property and the light-transmitting property can be as shown in Figure 3 As shown, from Figure 3 it can be seen that the self-luminance intensity of the planar model gradually weakens from the center position in the longitudinal direction along both sides of the model, and the light-transmitting property gradually increases from the center position in the longitudinal direction along both sides of the model.

[0053] Since the proportion of the light-transmitting property of the planar model can be controlled to increase from the reference position to both sides in the first direction through the third material property, and the self-luminance intensity of the planar model can be controlled to weaken from the reference position to both sides in the first direction, the third material property can control the volume light shape in the first direction.

[0054] 104. Perform a second mixing process on the second material property and the third material property to obtain the target material property of the planar model.

[0055] The third material property can control the volume light shape in the first direction, and the second material property is the material property of the planar model in the second direction. Based on the second material property, the appearance of the volume light in the second direction, such as shape, color, etc., can be controlled. By performing a second mixing process on the second material property of the planar model in the second direction and the material property in the first direction, a target material property that can control the appearance of the volume light in the first and second directions can be obtained.

[0056] The second mixing ratio of the second material property and the third material property can be preset. The second mixing ratio indicates the respective mixing coefficients of the second material property and the third material property. For example, the mixing coefficient of the second material property is 0.6, and the mixing coefficient of the third material property is 0.4, etc. Mix the second material property and the second material property according to the second mixing ratio to obtain the target material property.

[0057] In one embodiment, performing the second mixing process on the second material property and the third material property can be achieved through a mixing shader. Specifically, the second material property can be used as the input of a shader channel of the mixing shader, the third material property can be used as the input of another shader channel of the mixing shader, and the mixing coefficient of the third material property can be used as the input of the coefficient channel of the mixing shader. The mixing shader can determine the second mixing ratio based on the mixing coefficient of the third material property, and then mix the second material property and the third material property based on the second mixing ratio to obtain the target material property of the planar model.

[0058] 105. Render the planar model based on the target material property to obtain a volume light effect.

[0059] Since the target material property can control the appearance of the volume light in the first and second directions, rendering the planar model based on the target material property can obtain a volume light effect.

[0060] The volume light effect can include the visual effects generated by the interaction of light with tiny particles (such as water droplets, dust, smoke) when the light propagates in the air. For example, the volume light effect can include the visual effects generated by the interaction of the particles ejected from the spaceship's jet nozzle and the light, which can be used to simulate the smoke of the spaceship's jet nozzle in space, or to simulate the light beams formed by sunlight in the forest, or the light beams emitted by a light source, etc.

[0061] The first mixing ratio in step 102 can be preset or determined by the position of the model vertices on the planar model on the planar model. That is, in one embodiment, the first mixing ratio includes the first mixing coefficient corresponding to the light-transmitting property or the self-luminous property. Each model vertex of the planar model corresponds to a first mixing coefficient. The step of "determining the first mixing ratio of the self-luminous property and the light-transmitting property at each position of the planar model" may include:

[0062] Determine the position parameter of the model vertex in the first direction of the planar model;

[0063] Based on the gap between the position parameter in the first direction and the reference position parameter corresponding to the reference position, determine the first mixing coefficient corresponding to the model vertex;

[0064] Determine the first mixing ratio according to the first mixing coefficient.

[0065] Among them, the position parameter can indicate the relative position of the model vertex on the planar model. The position parameter can belong to a specified numerical range. The end-point values of the specified numerical range can respectively indicate that the model vertex is located on two edges of the planar model in the first direction. Therefore, in the first direction, from one side to the other side of the planar model, the position parameter of the model vertex can be gradually increasing or gradually decreasing.

[0066] To determine the position parameter of the model vertex in the first direction of the planar model, specifically, it can be to normalize the coordinate component of the model vertex in the first direction to obtain the position parameter corresponding to the model vertex.

[0067] In one embodiment, to determine the position parameter of the model vertex in the first direction of the planar model, it can be determined through a gradient texture node. The gradient texture node can be set to a linear gradient. The gradient texture node outputs the texture color corresponding to the vertex of the planar model. Since the gradient texture node is set to a linear node, the texture color output by the gradient texture node can indicate the relative position of the model vertex on the planar model, and the texture color output by the gradient texture node can be used as the position parameter.

[0068] In one embodiment, based on the gap between the position parameter in the first direction and the reference position parameter corresponding to the reference position, map the position parameter to the first preset numerical range. Specifically, it can be to calculate the difference between the position parameter corresponding to each model vertex of the planar model in the first direction and the reference position parameter.

[0069] Determine the first mixing coefficient according to the difference. For example, the difference can be directly used as the first mixing coefficient, or the difference can be normalized, or the difference can be mapped to the first preset numerical range to obtain the first mixing coefficient corresponding to the model vertex.

[0070] If the first mixing coefficient is the mixing coefficient of the self-luminous property, the larger the difference, the larger the determined first mixing coefficient; if the first mixing coefficient is the mixing coefficient of the light-transmitting property, the larger the difference, the larger the determined first mixing coefficient.

[0071] In one embodiment, the reference position uses the first endpoint value of the first specified numerical range as the first mixing coefficient. The step of "determining the first mixing coefficient corresponding to the model vertex based on the gap between the position parameter in the first direction and the reference position parameter corresponding to the reference position" may include:

[0072] Determine a first position parameter and a second position parameter. The first position parameter indicates the target position to the left of the reference position, and the second position parameter indicates the target position to the right of the reference position;

[0073] If the position parameter is less than the first position parameter or greater than the second position parameter, map the position parameter to the second endpoint value of the first specified numerical range to obtain the first mixing coefficient;

[0074] If the position parameter is greater than the first position parameter and less than the second position parameter, map the position parameter to a value other than the endpoint values in the first specified numerical range to obtain the first mixing coefficient.

[0075] Specifically, if the position parameter of the model vertex is less than the first position parameter or greater than each second position parameter, use the second endpoint value of the first specified numerical range as the first mixing coefficient corresponding to the model vertex; if the position parameter is greater than the first position parameter and less than the second position parameter, map the position parameter to the endpoint value between the first endpoint value and the second value to obtain the first mixing coefficient.

[0076] In one embodiment, the position parameter can be mapped to the first specified numerical range through the following formula, where M is the first mixing coefficient, a is the reference position parameter, b is the first position parameter, and c is the second position parameter.

[0077] M = smoothstep(a, b, x) - {1 - smoothstep(a, c, x)} smoothstep(a, b, x)

[0078] In one embodiment, the reference position includes the central position of the planar model in the first direction; if the first mixing coefficient is the mixing coefficient of the self-luminous property, the first endpoint value is greater than the second endpoint value; if the first mixing coefficient is the mixing coefficient of the light-transmitting property, the first endpoint value is less than the second endpoint value.

[0079] If the first mixing coefficient is the mixing coefficient of the self-luminous property, the first endpoint value is greater than the second endpoint value, and among the first mixing coefficients corresponding to the model vertices of the planar model, it decreases from the central position to both sides along the first direction. When the rendered planar model is in the first direction, the self-luminous intensity at the central position is the strongest and gradually weakens towards both sides.

[0080] If the first mixing coefficient is the mixing coefficient of the self-luminous property, the first endpoint value is greater than the second endpoint value, and among the first mixing coefficients corresponding to the model vertices of the planar model, it decreases from the central position to both sides along the first direction. When the rendered planar model is in the first direction, the light transmittance at the central position is the worst and gradually increases towards both sides.

[0081] The reference position and the target position can be set in advance in the computer program, or corresponding adjustment controls can be provided to the user through the graphical user interface, facilitating the user to adjust according to the rendering effect to be achieved and improving the convenience of making the volumetric light effect.

[0082] Exemplarily, the adjustment control can be as Figure 4 shown. The adjustment control includes a slider bar and sliders. The slider bar can be regarded as a planar model. By controlling the position of the slider on the slider bar, the reference position and the target position can be set. The slider can also include a first slider and a second slider. Among them, the first slider is used to determine the reference position, and the second slider is used to determine the target position.

[0083] Optionally, the slider can also correspond to the first mixing coefficient, used to indicate the first mixing coefficients corresponding to the reference position and the target position, as well as the first mixing coefficients for determining other positions.

[0084] Optionally, the color change of the slider bar can also be controlled according to the position of the slider on the slider bar to indicate the first mixing coefficients corresponding to different positions for the user to adjust. For example, Figure 3 in, the first slider is a white slider at the center of the slider bar, and the others are second sliders, which are black sliders. In the area between the white slider and the black sliders, it gradually changes from black to white. It is equivalent that white can correspond to 1 in the numerical range [0, 1], black can correspond to 0 in the numerical range [0, 1], and the gradient color between white and black can correspond to the numerical values between 0 and 1, excluding 0 and 1.

[0085] Optionally, the user can also add or delete the sliders on the slider bar according to needs to achieve more volumetric light effects.

[0086] After determining the first mixing coefficient, the first mixing ratio can be determined according to the first mixing coefficient. Specifically, the first mixing ratio can be determined according to the sum of the mixing coefficients of the self-luminous property and the light transmittance property being 1.

[0087] In one embodiment, step 104, "performing a second mixing process on the second material property and the third material property to obtain the target material property of the planar model", may specifically be mixing the second material property and the third material property according to a second mixing ratio. The second mixing ratio may be preset or determined according to the texture coordinates of the planar model. That is, in one embodiment, before the step "performing a second mixing process on the second material property and the third material property to obtain the target material property of the planar model", the method further includes:

[0088] Performing a vector decomposition process on the texture coordinates of the planar model to obtain the coordinate component corresponding to the model vertex of the planar model in the second direction;

[0089] Mapping the coordinate component to a second specified numerical range to obtain a second mixing coefficient corresponding to the second material property or the third material property;

[0090] Determining the second mixing ratio based on the second mixing coefficient;

[0091] The step "performing a second mixing process on the second material property and the third material property to obtain the target material property of the planar model" may include:

[0092] Performing a second mixing process on the second material property and the third material property based on the second mixing ratio to obtain the target material property of the planar model.

[0093] In one embodiment, the texture coordinates of the planar model may be transformed into a three-dimensional vector (x, y, z), and the coordinate component in the second direction may be the x component or the y component. The texture coordinates may be texture coordinates generated based on the bounding box of the planar model.

[0094] Mapping the coordinate component to a second specified numerical range to obtain a second mixing coefficient corresponding to the second material property or the third material property. Furthermore, based on the sum of the second material property and the mixing coefficient of the second material property being 1, the second mixing ratio may be determined according to the second mixing coefficient.

[0095] In one embodiment, performing a vector decomposition process on the texture coordinates of the planar model to obtain the coordinate component corresponding to the model vertex of the planar model in the second direction, mapping the coordinate component to a second specified numerical range to obtain a second mixing coefficient, may specifically be mapping the virtual texture coordinates of the planar model to a three-dimensional vector, then outputting the coordinate component in the second direction (such as the y component) through a separate XYZ node, inputting the coordinate component into a gradient texture node, the gradient texture coordinates may be set to a linear gradient, and inputting the output of the gradient texture coordinates into a color gradient node to obtain a second mixing coefficient. It is also possible to invert the output of the color gradient node according to the required volumetric light effect, and the inverted result is the second mixing coefficient.

[0096] In one embodiment, noise texture can also be added to the volumetric light to make the effect of the volumetric light more realistic. That is, before the step of "performing a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain the third material attribute of the planar model in the first direction", the model rendering method provided by the embodiments of the present application may further include:

[0097] Obtain the noise texture;

[0098] Adjust the emission color of the self-luminous attribute of the planar model based on the noise texture to obtain the adjusted self-luminous attribute;

[0099] The step of "performing a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain the third material attribute of the planar model in the first direction" includes:

[0100] Perform an attribute mixing process on the adjusted self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain the third material attribute of the planar model in the first direction.

[0101] Among them, the noise texture can be a noise texture generated by a program or a pre-set texture.

[0102] The color in the noise texture can be used as the color of the light in the self-luminous attribute to control the colors of the light emitted from different positions in the planar model, so that details can be added to the volumetric light.

[0103] Optionally, the noise texture can also be smoothed to make the noise edges in the volumetric light smooth and not obtrusive. That is, in one embodiment, the step of "adjusting the emission color of the self-luminous attribute of the planar model based on the noise texture to obtain the adjusted self-luminous attribute" may include:

[0104] Smooth the noise texture to obtain the processed noise texture;

[0105] Adjust the emission color of the self-luminous attribute of the planar model based on the processed noise texture to obtain the adjusted self-luminous attribute.

[0106] Smoothing the noise texture can be achieved through the smooth() function or the smoothstep() function to make the edge transition of the noise smooth.

[0107] Adjust the emission color of the self-luminous attribute of the planar model based on the processed noise texture to obtain the adjusted self-luminous attribute.

[0108] Exemplarily, such as Figure 5As shown, the noise texture can be smoothed through a color ramp node, and the input of the color ramp node is used as the color input of the emission node.

[0109] Exemplarily, the volumetric light effect before adding the noise texture can be as Figure 6 shown. By adding the noise texture and adjusting the scale of the noise texture, the volumetric light effects as shown in Figure 7 and Figure 8 can be obtained.

[0110] As can be seen from the above, in the embodiment of the present application, the first material attribute of the plane model in the first direction and the second material attribute in the second direction are obtained. The first material attribute includes the self-emission attribute and the light transmission attribute of the plane model. The first mixing ratio of the self-emission attribute and the light transmission attribute at each position of the plane model is determined, wherein the proportion of the light transmission attribute in the first mixing ratio increases from the reference position of the plane model along the first direction to both sides of the plane model. The self-emission attribute and the light transmission attribute are subjected to a first mixing process according to the first mixing ratio to obtain the third material attribute of the plane model in the first direction. The second material attribute and the third material attribute are subjected to a second mixing process to obtain the target material attribute of the plane model. Based on the target material attribute, the plane model is rendered to obtain a volumetric light effect.

[0111] In the embodiment of the present application, since the proportion of the light transmission attribute in the first mixing ratio increases from the reference position along the first direction to both sides of the plane model, a beam effect can be obtained based on the first mixing ratio, and the shape of the beam can be further controlled based on the material attribute of the plane model in the second direction. Furthermore, a volumetric light effect can be rendered without arranging volumetric fog and lights in the scene, which not only improves the production efficiency of the volumetric light effect but also reduces the computer performance consumed for rendering the volumetric light effect.

[0112] To better implement the model rendering method provided by the embodiment of the present application, on the basis of the above embodiment, the following takes the first direction of the plane model as longitudinal and the second direction as the transverse direction of the plane for example.

[0113] Two attributes, namely the self-emission attribute and the transparent BSDF attribute, can be set for the longitudinal direction of the plane model, and the self-emission attribute and the transparent BSDF attribute are respectively input into two shader channels of the first mixing shader. The transparent BSDF attribute is set for the transverse direction of the plane model.

[0114] The noise texture is input into the color ramp node to smooth the noise texture through the color ramp node, and the output of the color channel of the color ramp node is input into the color of the emission node to control the self-emission color of the plane model.

[0115] Set the output of the color channel of the first gradient texture node (the texture gradient node is set to linear gradient), and input it to the first color gradient node. The first color gradient node is as shown in Figure 4 . The positions of the sliders of the first color gradient node can also be as shown in Figure 4 . Then set the output of the color channel of the first color gradient node, and output it to the color channel of the first inversion node. Set the output of the color channel of the first inversion node, and input it to the coefficient channel of the first mix shader, so as to control the mixing of the self-illumination attribute and the transparent BSDF attribute of the plane model based on the input of the coefficient channel through the first mix shader, and output the third material attribute.

[0116] Input the third material attribute and the transparent BSDF attribute of the plane model in the horizontal direction into the two shader channels of the second mix shader respectively.

[0117] Connect the generation channel of the texture coordinate node and the vector channel of the mapping node. The texture coordinate node is used to generate texture coordinates according to the border of the plane model, and the mapping node is used to map the texture coordinates into a three-dimensional vector.

[0118] Set the output of the vector channel of the mapping node, input it to the separate XYZ node, and set the output of the Y channel of the separate XYZ node, input it to the second gradient texture node. Set the output of the color channel of the second color gradient node, output it to the color channel of the second inversion node. Set the output of the color channel of the second inversion node, input it to the coefficient channel of the second mix shader, so as to control the mixing of the third material attribute and the transparent BSDF attribute in the horizontal direction based on the input of the coefficient channel through the second mix shader, and output the mixing result to the material output node to render the volumetric light effect.

[0119] In summary, in the embodiment of the present application, the proportion of the transparent BSDF attribute of the first mixing ratio increases from the reference position along the vertical direction to both sides of the plane model. Therefore, based on the first mixing ratio, a beam effect can be obtained, and based on the transparent BSDF in the horizontal direction of the plane model, the shape of the beam can be further controlled, and then the volumetric light effect can be rendered without arranging volumetric fog and lights in the scene, which not only improves the production efficiency of the volumetric light effect, but also reduces the computer performance consumed by rendering the volumetric light effect.

[0120] In addition, the user can flexibly adjust the sliders in the color gradient node to obtain the required volumetric light effect, improving the diversity of the volumetric light effect and the convenience of making the volumetric light effect.

[0121] To facilitate better implementation of the model rendering method provided by the embodiments of the present application, in one embodiment, a model rendering apparatus is further provided. The meanings of the nouns are the same as those in the above model rendering method, and the specific implementation details can be referred to the descriptions in the method embodiments.

[0122] The model rendering apparatus may be specifically integrated in a computer device, such as Figure 9 As shown, the model rendering apparatus may include: an acquisition unit 301, a determination unit 302, a first mixing unit 303, a second mixing unit 304, and a rendering unit 305, specifically as follows:

[0123] (1) The acquisition unit 301 is configured to acquire a first material property of the planar model in a first direction and a second material property in a second direction, where the first material property includes the self-luminous property and the light-transmitting property of the planar model.

[0124] (2) The determination unit 302 is configured to determine a first mixing ratio of the self-luminous property and the light-transmitting property at each position of the planar model, where the proportion of the light-transmitting property in the first mixing ratio increases from a reference position of the planar model to both sides of the planar model along the first direction.

[0125] (3) The first mixing unit 303 is configured to perform a first mixing process on the self-luminous property and the light-transmitting property according to the first mixing ratio to obtain a third material property of the planar model in the first direction.

[0126] (4) The second mixing unit 304 is configured to perform a second mixing process on the second material property and the third material property to obtain a target material property of the planar model.

[0127] (5) The rendering unit 305 is configured to render the planar model based on the target material property to obtain a volumetric light effect.

[0128] In one embodiment, the first mixing ratio includes a first mixing coefficient corresponding to the self-luminous property or the light-transmitting property, and each model vertex of the planar model corresponds to a first mixing coefficient. The determination unit 302 may further be configured to:

[0129] Determine a position parameter of the model vertex in the first direction of the planar model;

[0130] Based on the gap between the position parameter in the first direction and the reference position parameter corresponding to the reference position, determine the first mixing coefficient corresponding to the model vertex;

[0131] Determine the first mixing ratio according to the first mixing coefficient.

[0132] In one embodiment, for the model vertex at the reference position, using the first endpoint value of the first specified numerical range as the first blending coefficient, the determining unit 302 may further be configured to:

[0133] Determine a first position parameter and a second position parameter, where the first position parameter indicates a target position to the left of the reference position, and the second position parameter indicates a target position to the right of the reference position;

[0134] If the position parameter is less than the first position parameter or greater than the second position parameter, map the position parameter to the second endpoint value of the first specified numerical range to obtain the first blending coefficient;

[0135] If the position parameter is greater than the first position parameter and less than the second position parameter, map the position parameter to a value other than the endpoint values in the first specified numerical range to obtain the first blending coefficient.

[0136] In one embodiment, the reference position includes the central position of the planar model in the first direction;

[0137] If the first blending coefficient is the blending coefficient of the self-luminous attribute, the first endpoint value is greater than the second endpoint value;

[0138] If the first blending coefficient is the blending coefficient of the light-transmitting attribute, the first endpoint value is less than the second endpoint value.

[0139] In one embodiment, the rendering device provided by the embodiments of the present application may further include:

[0140] A decomposition unit, configured to perform vector decomposition processing on the texture coordinates of the planar model to obtain the coordinate components corresponding to the model vertices of the planar model in the second direction;

[0141] A mapping unit, configured to map the coordinate components into a second specified numerical range to obtain a second blending coefficient corresponding to the second material attribute or the third material attribute;

[0142] A coefficient determining unit, configured to determine the second blending ratio based on the second blending coefficient;

[0143] The second blending unit 304 may further be configured to:

[0144] Perform a second blending process on the second material attribute and the third material attribute based on the second blending ratio to obtain the target material attribute of the planar model.

[0145] In one embodiment, the rendering device provided by the embodiments of the present application may further include:

[0146] A texture acquisition unit for acquiring a noise texture;

[0147] An adjustment unit for adjusting the emission color of the self - emission attribute of the planar model based on the noise texture to obtain an adjusted self - emission attribute;

[0148] The first mixing unit 303 can also be used for:

[0149] Performing attribute mixing processing on the adjusted self - emission attribute and the light transmission attribute according to the first mixing ratio to obtain a third material attribute of the planar model in the first direction.

[0150] In an embodiment, the adjustment unit can also be used for:

[0151] Smoothing the noise texture to obtain a processed noise texture;

[0152] Adjusting the emission color of the self - emission attribute of the planar model based on the processed noise texture to obtain the adjusted self - emission attribute.

[0153] As can be seen from the above, the model rendering device in the embodiment of the present application obtains the first material attribute of the planar model in the first direction and the second material attribute in the second direction through the acquisition unit 301. The first material attribute includes the self - emission attribute and the light transmission attribute of the planar model. The determination unit 302 determines the first mixing ratio of the self - emission attribute and the light transmission attribute at each position of the planar model, where the proportion of the light transmission attribute in the first mixing ratio increases from the reference position of the planar model along the first direction to both sides of the planar model. The first mixing unit 303 performs the first mixing process on the self - emission attribute and the light transmission attribute according to the first mixing ratio to obtain the third material attribute of the planar model in the first direction. The second mixing unit 304 performs the second mixing process on the second material attribute and the third material attribute to obtain the target material attribute of the planar model. The rendering unit 305 renders the planar model based on the target material attribute to obtain a volume light effect.

[0154] In the embodiment of the present application, since the proportion of the light transmission attribute in the first mixing ratio increases from the reference position along the first direction to both sides of the planar model, a beam effect can be obtained based on the first mixing ratio, and the shape of the beam can be further controlled based on the material attribute of the planar model in the second direction. Furthermore, a volume light effect can be rendered without arranging volume fog and lights in the scene, which not only improves the production efficiency of the volume light effect but also reduces the computer performance consumed for rendering the volume light effect.

[0155] Correspondingly, the embodiment of the present application also provides a computer device, and this computer device can be a terminal. As Figure 10 shownFigure 10 The following is a schematic structural diagram of a computer device provided by an embodiment of the present application. The computer device 500 includes a processor 501 having one or more processing cores, a memory 502 having one or more computer-readable storage media, and a computer program stored on the memory 502 and executable on the processor. Among them, the processor 501 is electrically connected to the memory 502. Those skilled in the art can understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0156] The processor 501 is the control center of the computer device 500, connecting various parts of the entire computer device 500 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, it executes various functions of the computer device 500 and processes data, thereby monitoring the computer device 500 as a whole.

[0157] In the embodiment of the present application, the processor 501 in the computer device 500 will load the instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 will run the application programs stored in the memory 502 to implement various functions:

[0158] Obtain the first material attribute of the planar model in the first direction and the second material attribute in the second direction, where the first material attribute includes the self-luminous attribute and the light-transmitting attribute of the planar model;

[0159] Determine the first mixing ratio of the self-luminous attribute and the light-transmitting attribute at each position of the planar model, where the proportion of the light-transmitting attribute in the first mixing ratio increases from the reference position of the planar model along the first direction to both sides of the planar model;

[0160] Perform a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain the third material attribute of the planar model in the first direction;

[0161] Perform a second mixing process on the second material attribute and the third material attribute to obtain the target material attribute of the planar model;

[0162] Render the planar model based on the target material attribute to obtain a volumetric light effect.

[0163] As can be seen from the above, in the embodiments of the present application, the proportion of the light-transmitting property of the first mixing ratio increases from the reference position along the first direction to both sides of the plane model. Therefore, the beam effect can be obtained based on the first mixing ratio, and the shape of the beam can be further controlled based on the material property of the plane model in the second direction. Furthermore, the volume light effect can be rendered without arranging volume fog and lights in the scene, which not only improves the production efficiency of the volume light effect but also reduces the computer performance consumed by rendering the volume light effect.

[0164] For the specific implementation of each of the above operations, reference may be made to the previous embodiments and will not be elaborated herein.

[0165] Optionally, as Figure 10 shown, the computer device 500 further includes: a touch display screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. Among them, the processor 501 is electrically connected to the touch display screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507 respectively. Those skilled in the art can understand that Figure 10 the computer device structure shown in

[0166] The touch display screen 503 can be used to display a graphical user interface and receive operation instructions generated by a user's interaction with the graphical user interface. The touch display screen 503 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel can be used to collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute the corresponding program. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the user and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 501, and can receive and execute the commands sent by the processor 501. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 501 to determine the type of touch event. Subsequently, the processor 501 provides a corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 503 to implement input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two independent components to implement input and output functions. That is, the touch display screen 503 can also be used as a part of the input unit 506 to implement the input function.

[0167] The radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other computer devices through wireless communication, and transmit and receive signals with the network device or other computer devices.

[0168] The audio circuit 505 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 505 can transmit the electrical signal converted from the received audio data to the speaker, and the speaker converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 505 and then converted into audio data. After the audio data is output to the processor 501 for processing, it is transmitted through the radio frequency circuit 504 to, for example, another computer device, or the audio data is output to the memory 502 for further processing. The audio circuit 505 may also include an earphone jack to provide communication between a peripheral earphone and the computer device.

[0169] The input unit 506 can be used to receive input digital, character information or user characteristic information (such as fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0170] The power supply 507 is used to supply power to each component of the computer device 500. Optionally, the power supply 507 can be logically connected to the processor 501 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 507 can also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0171] Although Figure 10 not shown in the figure, the computer device 500 may further include a camera, a sensor, a Wi-Fi module, a Bluetooth module, etc., which will not be elaborated here.

[0172] In the above embodiments, the descriptions of the various embodiments have their own emphases. For parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0173] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0174] For this reason, the embodiments of the present application provide a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute the steps in any one of the model rendering methods provided by the embodiments of the present application. For example, the computer program can execute the following steps:

[0175] Obtain a first material property of the planar model in a first direction and a second material property in a second direction, where the first material property includes the self-luminous property and the light-transmitting property of the planar model;

[0176] Determine a first mixing ratio of the self-luminous property and the light-transmitting property at each position of the planar model, where the proportion of the light-transmitting property in the first mixing ratio increases from a reference position of the planar model along the first direction to both sides of the planar model;

[0177] Perform a first mixing process on the self-luminous property and the light-transmitting property according to the first mixing ratio to obtain a third material property of the planar model in the first direction;

[0178] Perform a second mixing process on the second material property and the third material property to obtain the target material property of the planar model;

[0179] Render the planar model based on the target material property to obtain a volume light effect.

[0180] As can be seen from the above, in the embodiments of the present application, the proportion of the light-transmitting property of the first mixing ratio increases from the reference position along the first direction to both sides of the planar model. Therefore, a beam effect can be obtained based on the first mixing ratio, and the shape of the beam can be further controlled based on the material property of the planar model in the second direction. Furthermore, a volume light effect can be rendered without arranging volume fog and lights in the scene, which not only improves the production efficiency of the volume light effect but also reduces the computer performance consumed for rendering the volume light effect.

[0181] For the specific implementation of each of the above operations, reference can be made to the previous embodiments and will not be elaborated here.

[0182] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc.

[0183] The above has introduced in detail a model rendering method, device, computer device, and computer storage medium provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, there will be changes in the specific implementation manner and application scope according to the idea of the present application. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A model rendering method, characterized in that: include: Acquire a first material attribute of the plane model in a first direction and a second material attribute in a second direction, wherein the first material attribute includes a self-luminous attribute and a light-transmitting attribute of the plane model; Determining a first mixing ratio of the self-luminous attribute and the light-transmitting attribute at each position of the plane model, wherein the proportion of the light-transmitting attribute in the first mixing ratio increases from a reference position of the plane model along the first direction toward both sides of the plane model; Performing a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain a third material attribute of the plane model in the first direction; Performing a second mixing process on the second material attribute and the third material attribute to obtain a target material attribute of the plane model; The plane model is rendered based on the target material properties to obtain a volumetric light effect.

2. The method according to claim 1, characterized in that: The first mixing ratio includes a first mixing coefficient corresponding to the self-luminous attribute or the light-transmitting attribute, each model vertex of the plane model corresponds to a first mixing coefficient, and determining the first mixing ratio of the self-luminous attribute and the light-transmitting attribute at each position of the plane model includes: Determine position parameters of the model vertices in a first direction of the plane model; determining the first mixing coefficient corresponding to the model vertex based on a difference between the position parameter and a reference position parameter corresponding to the reference position in the first direction; The first mixing ratio is determined according to the first mixing coefficient.

3. The method according to claim 2, characterized in that The model vertex at the reference position uses a first endpoint value of a first specified numerical range as a first mixing coefficient, and determining the first mixing coefficient corresponding to the model vertex based on the difference between the position parameter and the reference position parameter corresponding to the reference position in the first direction includes: Determine a first position parameter and a second position parameter, the first position parameter indicating a target position to the left of the reference position, and the second position parameter indicating a target position to the right of the reference position; If the position parameter is less than the first position parameter or greater than the second position parameter, mapping the position parameter to a second endpoint value of the first specified numerical range to obtain the first mixing coefficient; If the position parameter is greater than the first position parameter and less than the second position parameter, the position parameter is mapped to a value other than an endpoint value in the first specified value range to obtain the first mixing coefficient.

4. The method according to claim 3, characterized in that The reference position includes the center position of the plane model in the first direction; If the first mixing coefficient is the mixing coefficient of the self-luminous attribute, the first endpoint value is greater than the second endpoint value; If the first mixing coefficient is a mixing coefficient of the light transmittance property, the first endpoint value is smaller than the second endpoint value.

5. The method according to claim 1, characterized in that Before performing a second mixing process on the second material attribute and the third material attribute to obtain the target material attribute of the plane model, the method further includes: Performing vector decomposition processing on the texture coordinates of the plane model to obtain coordinate components corresponding to the model vertices of the plane model in the second direction; Mapping the coordinate component to a second specified value range to obtain a second mixing coefficient corresponding to the second material attribute or the third material attribute; determining a second mixing ratio based on the second mixing coefficient; The performing a second mixing process on the second material attribute and the third material attribute to obtain a target material attribute of the plane model includes: A second mixing process is performed on the second material attribute and the third material attribute based on the second mixing ratio to obtain a target material attribute of the plane model.

6. The method according to any one of claims 1 to 5, characterized in that: Before performing a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain a third material attribute of the plane model in the first direction, the method further includes: Get the noise texture; Adjusting the luminous color of the self-luminous attribute of the plane model based on the noise texture to obtain an adjusted self-luminous attribute; The performing a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio to obtain a third material attribute of the plane model in the first direction includes: The adjusted self-luminous attribute and the light-transmitting attribute are mixed according to the first mixing ratio to obtain a third material attribute of the plane model in the first direction.

7. The method according to claim 6, characterized in that The adjusting the luminous color of the self-luminous attribute of the plane model based on the noise texture to obtain the adjusted self-luminous attribute includes: Smoothing the noise texture to obtain a processed noise texture; The luminous color of the self-luminous attribute of the plane model is adjusted based on the processed noise texture to obtain the adjusted self-luminous attribute.

8. A model rendering device, characterized in that: include: An acquiring unit, configured to acquire a first material attribute of the plane model in a first direction and a second material attribute in a second direction, wherein the first material attribute includes a self-luminous attribute and a light-transmitting attribute of the plane model; a determining unit, configured to determine a first mixing ratio of the self-luminous attribute and the light-transmitting attribute at each position of the plane model, wherein the proportion of the light-transmitting attribute in the first mixing ratio increases from a reference position of the plane model along the first direction toward both sides of the plane model; A first mixing unit, configured to perform a first mixing process on the self-luminous attribute and the light-transmitting attribute according to the first mixing ratio, so as to obtain a third material attribute of the plane model in the first direction; A second mixing unit, used for performing a second mixing process on the second material attribute and the third material attribute to obtain a target material attribute of the plane model; A rendering unit is used to render the plane model based on the target material properties to obtain a volumetric light effect.

9. A computer device, characterized in that: It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the model rendering method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the model rendering method according to any one of claims 1 to 7.