Processing method and device, storage medium and terminal for virtual scene production

By loading and adjusting the spatial segmentation material in the lens configuration data of the virtual camera, the problem of low efficiency in virtual scene production is solved, and flexible spatial segmentation composition of the virtual scene is achieved, and the accuracy and efficiency of composition is improved.

CN114299202BActive Publication Date: 2025-01-10BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111660187.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-01-10
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In the production of existing virtual scenes, the spatial segmentation material cannot meet the diverse needs, resulting in low production efficiency and inability to adjust in real time, affecting the accuracy of composition.

Method used

Load the space segmented material in the lens configuration data of the virtual camera, obtain the adjustment parameters of the target material, adjust the material parameters, and update the updated material to the lens configuration data to achieve flexible spatial segmentation composition of the virtual scene.

Benefits of technology

It realizes the need for diversified spatial segmentation of virtual scenes, improves the accuracy and efficiency of composition production, and meets the needs of flexible spatial segmentation of three-dimensional virtual scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114299202B_ABST
    Figure CN114299202B_ABST
Patent Text Reader

Abstract

The present invention discloses a processing method and device, storage medium, and terminal for virtual scene production, which relates to the field of data processing technology, and its main purpose is to solve the problem of low efficiency of existing virtual scene production. It includes: when producing a virtual scene, loading a space segmentation material in the lens configuration data of a virtual camera; obtaining adjustment parameters of a target space segmentation material, and adjusting the material parameters in a parameter node corresponding to the target space segmentation material based on the adjustment parameters; updating the adjusted target space segmentation material in the lens configuration data, so as to produce the virtual scene based on the space segmentation material in the updated lens configuration data. It is mainly used for processing virtual scene production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a processing method and device, a storage medium and a terminal for producing a virtual scene. Background Art

[0002] In the process of processing a virtual scene, post-processing is a commonly used method for modifying and producing the virtual scene. When post-processing the virtual scene, when editing and composing the scene for the virtual scene, space division can be used for composition production, for example, adding a space division line to the virtual scene.

[0003] At present, the existing space segmentation, as a kind of mapping material, is usually achieved by loading the generated and fixed-pattern space segmentation material. However, it cannot meet the diverse production needs when producing and composing virtual scenes, and the space segmentation material cannot be adjusted at any time, resulting in poor accuracy in producing and composing virtual scenes, thereby affecting the efficiency of virtual scene production. Summary of the invention

[0004] In view of this, the present invention provides a processing method and device, a storage medium, and a terminal for virtual scene production, the main purpose of which is to solve the problem of low efficiency in existing virtual scene production.

[0005] According to one aspect of the present invention, a processing method for producing a virtual scene is provided, comprising:

[0006] When making a virtual scene, load the space segmentation material in the lens configuration data of the virtual camera;

[0007] Acquire adjustment parameters of the target space segmentation material, and adjust material parameters in a parameter node corresponding to the target space segmentation material based on the adjustment parameters;

[0008] The adjusted target space division material is updated in the lens configuration data, so as to produce the virtual scene based on the updated space division material in the lens configuration data.

[0009] Furthermore, before loading the space segmentation material into the lens configuration data of the virtual camera, the method further includes:

[0010] Obtaining space segmentation maps of different element types, wherein the space segmentation map is a single channel map;

[0011] Configuring material parameters matching the space segmentation map according to different element styles, and generating a space segmentation material;

[0012] Different material parameters in the space segmentation material are bound to parameter nodes, and the space segmentation material with the parameter nodes is configured in the lens configuration data of the virtual camera.

[0013] Furthermore, configuring material parameters matching the space segmentation map according to different element styles and generating space segmentation materials includes:

[0014] Constructing a material ball based on the space segmentation map and the shader, and configuring material parameters of the material ball based on different element styles to obtain a space segmentation material;

[0015] A material instance of the space segmentation material is created, wherein the material instance includes parameter nodes for adjusting material parameters to indicate binding parameter nodes to different material parameters.

[0016] Further, the obtaining of adjustment parameters of the target space segmentation material, and adjusting the material parameters in the parameter node corresponding to the target space segmentation material based on the adjustment parameters includes:

[0017] Determining a target space segmentation material during the production of the virtual scene, and obtaining adjustment parameters of the target space segmentation material;

[0018] The element style corresponding to the adjustment parameter is parsed, and the parameter node corresponding to the element style is retrieved, and the material parameter corresponding to the parameter node is adjusted based on the adjustment parameter, wherein the element style includes an element shape style and an element color style.

[0019] Furthermore, determining the target space segmentation material during the production of the virtual scene and obtaining adjustment parameters of the target space segmentation material includes:

[0020] Analyzing scene editing operations generated during the production of the virtual scene, the scene editing operations including virtual scene content adjustment operations and special effect animation change operations;

[0021] Determine, according to a preset editing operation space segmentation correspondence relationship, a target space segmentation material corresponding to the editing operation of parsing the scene, so as to display it in the virtual scene;

[0022] Rendering an editing component corresponding to the target space segmentation material, wherein the editing component includes material identifiers corresponding to different material parameters;

[0023] The adjustment parameters of the target space segmentation material are received through the material identifier in the editing component.

[0024] Furthermore, the step of loading the space segmentation material in the lens configuration data of the virtual camera includes:

[0025] Retrieving and displaying spatial segmentation material identifiers of different element types from the lens configuration data of the virtual camera, and rendering the virtual scene in the scene editing area according to the lens visual parameters in the lens configuration data to indicate determining the target spatial segmentation material from the spatial segmentation material identifier;

[0026] Before obtaining the adjustment parameters of the target space segmentation material, the method further includes:

[0027] According to the size and definition of the virtual scene, the target space segmentation material is overlaid on the virtual scene for display.

[0028] Furthermore, after updating the adjusted target space segmentation material in the lens configuration data, the method further includes:

[0029] If the target space segmentation material is a diagonal element material, then the color block parameters in the lens configuration data are retrieved, and a color block rendering area to be rendered in the virtual scene is obtained;

[0030] The color block rendering area is rendered based on the color block parameters and displayed in the virtual scene.

[0031] Furthermore, after loading the space segmentation material in the lens configuration data of the virtual camera, the method further includes:

[0032] Rendering space division operation information matching the space division material, the space division operation information includes operation contents of the space division material corresponding to different element types and different element styles, so as to indicate processing of the space division material.

[0033] Furthermore, the method further comprises:

[0034] If the lens visual parameters for rendering the virtual scene are two-dimensional visual parameters, determining the two-dimensional spatial position coordinates of the space segmentation material rendered in the virtual scene according to the screen space coordinates corresponding to the virtual scene, so as to display the space segmentation material in the virtual scene based on the two-dimensional spatial position coordinates; or,

[0035] If the lens visual parameters for rendering the virtual scene are three-dimensional visual parameters, the three-dimensional space position coordinates of the space segmentation material rendered in the virtual scene are determined according to the world space coordinates corresponding to the virtual scene, so as to display the space segmentation material in the virtual scene based on the three-dimensional space position coordinates.

[0036] Furthermore, the method further comprises:

[0037] In the case where the space segmentation material is displayed in the virtual scene based on the two-dimensional space position coordinates, the two-dimensional space position coordinates of the space segmentation material are converted into three-dimensional space position coordinates in the world space coordinates of the virtual scene according to the two-dimensional to three-dimensional space mapping relationship of the lens visual parameters, and the space segmentation material is rendered in the virtual scene corresponding to the three-dimensional visual parameters according to the three-dimensional space position coordinates, so as to convert the space segmentation material from the two-dimensional screen space to the three-dimensional world space; or,

[0038] When the space-division material is displayed in the virtual scene based on the three-dimensional space position coordinates, the three-dimensional space position coordinates of the space-division material are mapped to two-dimensional space position coordinates in the screen space coordinates of the virtual scene according to the three-dimensional to two-dimensional space mapping relationship of the lens visual parameters, and the space-division material is rendered in the virtual scene corresponding to the two-dimensional visual parameters according to the two-dimensional space position coordinates, so as to convert the space-division material from the three-dimensional world space to the two-dimensional screen space.

[0039] According to another aspect of the present invention, there is provided a processing device for producing a virtual scene, comprising:

[0040] A loading module is used to load the space segmentation material in the lens configuration data of the virtual camera when making a virtual scene;

[0041] An adjustment module, used to obtain adjustment parameters of the target space segmentation material, and adjust the material parameters in the parameter node corresponding to the target space segmentation material based on the adjustment parameters;

[0042] An updating module is used to update the adjusted target space segmentation material in the lens configuration data.

[0043] Furthermore, the device also includes:

[0044] An acquisition module, used for acquiring space segmentation maps of different element types, wherein the space segmentation map is a single channel map;

[0045] A configuration module, used to configure material parameters matching the space segmentation map according to different element styles, and generate a space segmentation material;

[0046] The binding module is used to bind different material parameters in the space segmentation material to parameter nodes, and configure the space segmentation material with the parameter nodes in the lens configuration data of the virtual camera.

[0047] Furthermore, the configuration module includes:

[0048] A configuration unit, configured to construct a material ball based on the space segmentation map and the shader, and configure material parameters of the material ball based on different element styles to obtain a space segmentation material;

[0049] A creation unit is used to create a material instance of the space segmentation material, wherein the material instance includes a parameter node for adjusting material parameters to indicate binding parameter nodes to different material parameters.

[0050] Furthermore, the adjustment module includes:

[0051] A determination unit, used to determine a target space segmentation material during the production of the virtual scene, and obtain adjustment parameters of the target space segmentation material;

[0052] The adjustment unit is used to parse the element style corresponding to the adjustment parameter, and call the parameter node corresponding to the element style, and adjust the material parameter corresponding to the parameter node based on the adjustment parameter, wherein the element style includes an element shape style and an element color style.

[0053] Furthermore, the determination unit is specifically used to parse the scene editing operations generated during the production of the virtual scene, the scene editing operations including virtual scene content adjustment operations and special effect animation change operations; determine the target space division material corresponding to the scene editing operations according to the preset editing operation space division correspondence relationship, so as to display it in the virtual scene; render the editing component corresponding to the target space division material, the editing component containing material identifiers corresponding to different material parameters; and receive the adjustment parameters of the target space division material through the material identifier in the editing component.

[0054] Furthermore, the device further comprises: a display module,

[0055] The loading module is specifically used to retrieve and display the space segmentation material identifiers of different element types from the lens configuration data of the virtual camera, and render the virtual scene in the scene editing area according to the lens visual parameters in the lens configuration data to indicate the determination of the target space segmentation material from the space segmentation material identifier;

[0056] The display module is used to cover the target space segmentation material on the virtual scene for display according to the size and clarity of the virtual scene.

[0057] Furthermore, the device also includes:

[0058] A calling module, configured to call the color block parameters in the lens configuration data and obtain the color block rendering area to be rendered in the virtual scene if the target space segmentation material is a diagonal element material;

[0059] A rendering module is used to render the color block rendering area based on the color block parameters and display it in the virtual scene.

[0060] Furthermore, the device also includes:

[0061] A rendering module is used to render space division operation information matching the space division material, wherein the space division operation information includes operation contents of the space division material corresponding to different element types and different element styles to indicate processing of the space division material.

[0062] Furthermore, the device also includes:

[0063] A first determining module is used to determine the two-dimensional space position coordinates of the space segmentation material rendered in the virtual scene according to the screen space coordinates corresponding to the virtual scene if the lens visual parameters for rendering the virtual scene are two-dimensional visual parameters, so as to display the space segmentation material in the virtual scene based on the two-dimensional space position coordinates; or

[0064] The second determination module is used to determine the three-dimensional space position coordinates of the space segmentation material rendered in the virtual scene according to the world space coordinates corresponding to the virtual scene if the lens visual parameters of rendering the virtual scene are three-dimensional visual parameters, so as to display the space segmentation material in the virtual scene based on the three-dimensional space position coordinates.

[0065] Further,

[0066] The rendering module is further used for, when displaying the space segmentation material in the virtual scene based on the two-dimensional space position coordinates, converting the two-dimensional space position coordinates of the space segmentation material into three-dimensional space position coordinates in the world space coordinates of the virtual scene according to the two-dimensional to three-dimensional space mapping relationship of the lens visual parameters, and rendering the space segmentation material in the virtual scene corresponding to the three-dimensional visual parameters according to the three-dimensional space position coordinates, so as to convert the space segmentation material from the two-dimensional screen space to the three-dimensional world space; or,

[0067] The rendering module is also used to map the three-dimensional spatial position coordinates of the spatial division material into two-dimensional spatial position coordinates in the screen space coordinates of the virtual scene according to the three-dimensional to two-dimensional spatial mapping relationship of the lens visual parameters when displaying the spatial division material in the virtual scene based on the three-dimensional spatial position coordinates, and render the spatial division material in the virtual scene corresponding to the two-dimensional visual parameters according to the two-dimensional spatial position coordinates, so as to convert the spatial division material from the three-dimensional world space to the two-dimensional screen space.

[0068] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the processing method for producing a virtual scene as described above.

[0069] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0070] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the processing method for producing the virtual scene.

[0071] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:

[0072] The present invention provides a processing method and device, a storage medium, and a terminal for producing a virtual scene. Compared with the prior art, the embodiments of the present invention load space division materials in the lens configuration data of a virtual camera when producing a virtual scene; obtain adjustment parameters of a target space division material, and adjust material parameters in a parameter node corresponding to the target space division material based on the adjustment parameters; update the adjusted target space division material in the lens configuration data, so as to produce the virtual scene based on the space division material in the updated lens configuration data, thereby realizing diversified space division requirements when producing the virtual scene, and adjusting the space division material in real time during the production of the virtual scene, thereby meeting the flexible space division composition requirements for the three-dimensional virtual scene, improving the accuracy of the composition production of the virtual scene, and thus improving the efficiency of the virtual scene production.

[0073] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0075] Figure 1 A flowchart of a processing method for producing a virtual scene provided by an embodiment of the present invention is shown;

[0076] Figure 2 A flowchart of another processing method for producing a virtual scene provided by an embodiment of the present invention is shown;

[0077] Figure 3 A flowchart of another processing method for producing a virtual scene provided by an embodiment of the present invention is shown;

[0078] Figure 4 A flowchart of a processing method for producing a virtual scene provided by an embodiment of the present invention is shown;

[0079] Figure 5 A block diagram showing the composition of a processing device for producing a virtual scene provided by an embodiment of the present invention is shown;

[0080] Figure 6 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0081] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0082] As a kind of texture material, space segmentation is usually achieved by loading a configured and fixed-mode space segmentation line texture material. However, it cannot meet the diverse editing requirements when editing and composing images, resulting in poor accuracy in editing and composing images, thereby affecting the efficiency of virtual scene production. An embodiment of the present invention provides a processing method for virtual scene production, such as Figure 1 As shown, the method includes:

[0083] 101. When making a virtual scene, load the space segmentation material in the lens configuration data of the virtual camera.

[0084] In an embodiment of the present invention, the application scenarios applicable to the virtual scene for scene editing may include but are not limited to three-dimensional virtual scenes in game production, two-dimensional virtual scenes in animation production, video production, etc., and further, the production of virtual scenes is applicable to the early and late production processes of virtual scenes, preferably in the later scene editing of virtual scenes. At the same time, since the virtual scene is produced based on the shooting of a virtual camera when the virtual scene is produced, the space segmentation material is loaded in the lens configuration data of the virtual camera. Among them, the virtual camera is an application component for the production of the virtual scene, and the shooting or production of the image content, scene content and other contents in the virtual scene is realized through the lens configuration data. At least one space segmentation material is pre-configured in the lens configuration data, so that when the virtual scene is produced, it is loaded in the lens configuration data to provide the space segmentation material for user rendering. Space division is used to characterize the space division composition content produced as a virtual scene, including but not limited to space division lines, space division balls, space division points, etc. Space division material is the space division material used for space division composition when producing a virtual scene, including but not limited to different styles of space division materials. For example, if the space division is a space division line, the space division material can be: nine-square space division line material, cross-grid space division line material, diagonal space division line material, spiral space division line material, triangle space division line material, etc., which is not specifically limited in the embodiments of the present invention.

[0085] It should be noted that when the space segmentation material is loaded in the lens configuration data, the user can be instructed to select the target space segmentation material from the space segmentation material by displaying the space segmentation material. In addition, in the embodiment of the present invention, the current execution subject can make the virtual scene through the game engine, so the lens configuration parameters can be configured based on the application component of the virtual camera in the game engine, so that the space segmentation material is pre-configured in the lens configuration data.

[0086] 102. Obtain adjustment parameters of a target space segmentation material, and adjust material parameters in a parameter node corresponding to the target space segmentation material based on the adjustment parameters.

[0087] In an embodiment of the present invention, after determining a target space division material from at least one space division material, an adjustment parameter of the target space division material is obtained. At this time, the adjustment parameter is used to characterize the content of adjusting the material parameters of the target space division material, wherein the material parameters include but are not limited to parameters such as position, rotation, scale, color, transparency, and shape of the space division material. Correspondingly, the adjustment parameter is the specific content of adjusting the material, for example, the size parameter for adjusting the transparency of the space division line material, which is not specifically limited in the embodiment of the present invention.

[0088] It should be noted that, since the current execution subject can make a virtual scene through a game engine, the material parameters in the parameter node corresponding to the target space segmentation material are adjusted based on the adjustment parameters. The parameter node is a node in the space segmentation material that is bound to different material parameters, so that the material is adjusted through the parameters of this node. Therefore, after obtaining the adjustment parameters, the material parameters in the parameter node corresponding to the target space segmentation material are adjusted based on the adjustment parameters.

[0089] 103. Update the adjusted target space segmentation material in the lens configuration data.

[0090] In the embodiment of the present invention, the target space segmentation material after adjusting the material parameters is configured in the lens configuration data, so as to produce the virtual scene based on the space segmentation material in the updated lens configuration data. At this time, the user can retrieve and display it from the lens configuration data at any time, thereby meeting the diversified and flexible adjustment requirements for the target space segmentation material, so that efficient composition production can be achieved based on the space segmentation material in the lens configuration data.

[0091] In another embodiment of the present invention, in order to further define and illustrate, as Figure 2 As shown, before step 101 loads the space segmentation material in the lens configuration data of the virtual camera, the method further includes:

[0092] 201. Obtain space segmentation maps of different element types;

[0093] 202. Configuring material parameters matching the space segmentation map according to different element styles, and generating a space segmentation material;

[0094] 203. Bind different material parameters in the space segmentation material to parameter nodes, and configure the space segmentation material with the parameter nodes in the lens configuration data of the virtual camera.

[0095] In order to adjust the space segmentation material at any time during the production of the virtual scene, the space segmentation material is generated in advance and the parameter node is bound. Specifically, the space segmentation map of different element types is obtained. The space segmentation map is a single channel map, including but not limited to a single Alpha channel map, any single channel map in the three-color channel RGB, and the element type is a type divided according to different element characteristics. In the space segmentation line scene, the element type can be a symmetrical space segmentation line, a vertical composition space segmentation line, a triangular composition space segmentation line, a spatial perspective space segmentation line, a rule of thirds composition space segmentation line, a symmetrical composition space segmentation line and other space segmentation line types, which are not specifically limited in the embodiment of the present invention. At this time, the material parameters are configured through the space segmentation maps of different element types. At the same time, since the space segmentation can also be composed of different styles, the element style includes an element shape style and an element color style. Among them, for the space segmentation line scene, the element shape style can include but not limited to a solid line style, a dotted line style, a line color, etc., which are not specifically limited in the embodiment of the present invention, so as to configure the material parameters matching the space segmentation map according to different element styles, and generate the space segmentation material.

[0096] It should be noted that, since the material needs to be adjusted in the process of making the virtual scene in the game engine, each material parameter in the space segmentation material is bound to a parameter node. In the process of generating the space segmentation material, the user input content is processed and then combined with the shader to obtain the material. Therefore, each material parameter is bound to a parameter node as a material node for adjusting the material parameter, and the space segmentation material with the parameter node is stored in the lens configuration data of the virtual camera.

[0097] In another embodiment of the present invention, in order to further limit and illustrate, step 202 configures material parameters that match the space segmentation map according to different element styles, and generates a space segmentation material including: building a material ball based on the space segmentation map and a shader, and configuring material parameters based on different element styles and the material ball to obtain the space segmentation material; creating a material instance of the space segmentation material.

[0098] In order to generate space segmentation materials of different element styles, so as to meet the real-time adjustment of space segmentation in the process of virtual scene production, when generating space segmentation materials, material parameters are configured and material instances containing parameter nodes for adjusting material parameters are created by constructing a material ball. Among them, in the material creation component in the game engine, a material ball is constructed based on the acquired space segmentation map and shader Shader, and the material parameters corresponding to the material ball are configured according to the element morphology style including the element morphology style and the element color style to obtain the space segmentation material, so as to adjust the material parameters of the position, rotation, scale, color, transparency and shape of the space segmentation based on the adjustment parameters, so as to realize flexible processing in the process of virtual scene production. In addition, when the material parameters of the material ball are configured according to the element style to obtain the space segmentation material, different element styles correspond to the model of space segmentation, so as to obtain the space segmentation material in combination with the material configuration parameters.

[0099] It should be noted that, since all space divisions can be configured in one material, a material instance of the space division material is created, and the material instance contains parameter nodes for adjusting material parameters to indicate the binding of parameter nodes to different material parameters. The generated space division material can be a parent material with editing and adjustment. After the material instance is created, the material instance belongs to a sub-material and is associated with the parent material. The sub-material is dedicated to adjusting material parameters, so that it can be displayed in real time on the space division model during the virtual scene production process.

[0100] In another embodiment of the present invention, in order to further define and illustrate, as Figure 3 As shown, step 102 obtains adjustment parameters of the target space segmentation material, and adjusts the material parameters in the parameter node corresponding to the target space segmentation material based on the adjustment parameters, including:

[0101] 301. Determine a target space segmentation material during production of the virtual scene, and obtain adjustment parameters of the target space segmentation material;

[0102] 302. Analyze the element style corresponding to the adjustment parameter, call the parameter node corresponding to the element style, and adjust the material parameter corresponding to the parameter node based on the adjustment parameter.

[0103] In order to accurately realize the flexible adjustment of the target space segmentation material, during the scene editing operation of the virtual scene, the space segmentation material is first determined, and the corresponding adjustment parameters are obtained, so as to adjust the material parameters by calling the parameter node according to the element style. Among them, the determination of the target element space segmentation material can be based on user selection, or it can be determined based on the scene editing operation. For example, the virtual scene content adjustment operation in the scene editing operation is identified to determine the target space segmentation material. That is, when the snow scene is edited, the adjustment operation in the virtual scene is to add an ancient tree. At this time, the target space segmentation material can be determined as a triangular composition space segmentation line material based on the pre-established corresponding relationship. The embodiment of the present invention does not make specific limitations. At the same time, in order to adjust the target space segmentation material, the adjustment parameters of the target space segmentation material are obtained. At this time, the adjustment parameters can be input by the user or pre-configured. The embodiment of the present invention does not make specific limitations.

[0104] It should be noted that after determining the target space division material, since when generating material parameters, the material parameters are configured based on different element styles and the material ball, and the adjustment parameters are the content for adjusting the material parameters, the element style corresponding to the adjustment parameters is parsed first. Among them, the element style includes an element shape style and an element color style. The element shape style is a solid style or a virtual style used to define the element. For example, the space division material is a space division line. The element shape style can be a solid line or a dotted line. The element color style is the color used to define the element. The embodiment of the present invention does not make specific limitations. In addition, since the created material instance contains parameter nodes for adjusting material parameters, after parsing the element style corresponding to the adjustment parameters, the parameter nodes corresponding to the element style and the adjustment parameters are called to adjust the material parameters corresponding to the parameter nodes based on the adjustment parameters, so as to realize the adjustment of the space division material based on the adjustment parameters.

[0105] In another embodiment of the present invention, in order to further define and illustrate, as Figure 4 As shown, step 1021 determines the target space segmentation material during the production of the virtual scene, and obtains the adjustment parameters of the target space segmentation material, including:

[0106] 401. Analyze the scene editing operation generated in the process of making the virtual scene;

[0107] 402. Determine a target space segmentation material corresponding to the editing operation of the scene according to a preset editing operation space segmentation correspondence relationship;

[0108] 403. Rendering an editing component corresponding to the target space segmentation material;

[0109] 404. Receive adjustment parameters of the target space segmentation material through the material identifier in the editing component.

[0110] In an application scenario for making a virtual scene, such as in the process of editing the virtual scene, the user will perform scene editing operations. In order to flexibly and intelligently adjust the target space segmentation material, the scene editing operation is specifically parsed to determine the target space segmentation material corresponding to the scene editing operation, so as to receive adjustment parameters for adjusting the target space segmentation material. Among them, the scene editing operation includes virtual scene content adjustment operation and special effect animation change operation. The virtual scene content adjustment operation is used to limit the operation of adjusting the model content in the virtual scene. For example, the virtual scene is an empty grassland. The corresponding virtual scene content adjustment operation may include but is not limited to adding cattle, sheep, buildings, etc. to the grassland. The special effect animation change operation is used to limit the operation of changing animation special effects in the virtual scene, including but not limited to adding and deleting animation special effects in the virtual scene. The embodiment of the present invention does not make specific limitations. At this time, the target space division material corresponding to the editing operation of the parsed scene is determined according to the preset editing operation space division correspondence relationship for display in the virtual scene, wherein the preset editing operation space division correspondence relationship is the pre-configured correspondence between different virtual scene content adjustment operations, different special effects animation change operations and different space division materials. For example, the target space division material corresponding to the adding star animation special effects operation is the triangular composition space division line, thereby greatly improving the efficiency of determining the target space division during the composition process.

[0111] It should be noted that in order to meet the user's needs for free adjustment of the target space division material, an editing component containing material identifiers corresponding to different material parameters is pre-configured, and the user's adjustment parameters for adjusting the material parameters of the target space division material are received by rendering this editing component. The editing component contains material identifiers corresponding to different material parameters. At this time, different material identifiers are used to represent the material content of different material parameters, such as color, moving position, etc., so that the adjustment parameters of the target space division material are received through the material identifier in the editing component.

[0112] In another embodiment of the present invention, for further limitation and explanation, step 101 loads the space division material in the lens configuration data of the virtual camera, and specifically also includes: retrieving and displaying the space division material identifiers of different element types from the lens configuration data of the virtual camera, and in the scene editing area, rendering the virtual scene according to the lens visual parameters in the lens configuration data to indicate that the target space division material is determined from the space division material identifier.

[0113] In an application scenario for making a virtual scene, such as in the process of editing a virtual scene, in order to load the space division material in the lens configuration data, so that the user can edit the composition of the virtual scene based on the space division situation in the virtual scene, specifically, the space division material identifiers of different element types are retrieved and displayed in the lens configuration data, and the virtual scene is rendered at the same time, so that the user can select the required target space division material. The space division material identifiers of different element types are retrieved and displayed in the lens configuration data, and at the same time, the virtual scene is rendered in the scene editing area according to the lens visual parameters in the lens configuration data, so that the user can select the target space division material from the space division material identifiers of different element types based on the displayed virtual scene. Among them, the lens visual parameters are used to limit the lens visual direction and lens visual display of the virtual camera, so as to display the virtual scene according to the lens vision. In addition, it should be noted that although the element types include symmetrical space division lines, vertical composition space division lines, triangular composition space division lines, spatial perspective space division lines, rule of thirds composition space division lines, symmetrical composition auxiliary space division lines, etc., the same element type can still be divided into different types of element content, for example, Figure 5 As shown, the proportional space division lines can be divided horizontally and vertically to obtain space division materials corresponding to multiple proportional space division lines and corresponding space division materials to select the corresponding target space division material, which is not specifically limited in the embodiment of the present invention.

[0114] Correspondingly, before the step of obtaining the adjustment parameters of the target space segmentation material, the step further includes: covering the target space segmentation material on the virtual scene for display according to the size and clarity of the virtual scene.

[0115] Specifically, in the process of realizing virtual scene production based on space division, after determining the target space division material, it needs to be displayed in the virtual scene as a basis for composition. Therefore, according to the size and clarity of the virtual scene, the target space division material is overlaid on the virtual scene for display. For example, the spatial perspective space division line is overlaid with the size and clarity of the virtual scene, thereby covering the display spatial perspective space division line.

[0116] In another embodiment of the present invention, for further limitation and explanation, after step 103 updates the adjusted target space division material in the lens configuration data to produce the virtual scene based on the space division material in the updated lens configuration data, the method further includes: if the target space division material is a diagonal element material, retrieving the color block parameters in the lens configuration data, and obtaining the color block rendering area to be rendered in the virtual scene; rendering the color block rendering area based on the color block parameters, and displaying it in the virtual scene.

[0117] In an embodiment of the present invention, for a scene in which the target space segmentation material is the object element material, in order to achieve the accuracy of the composition in the production of the virtual scene, the lens configuration data is pre-configured with a color block parameter, so as to render the color block rendering area obtained by diagonally dividing the diagonal element material in the virtual scene based on the color block parameter. Among them, the color block parameter is used to characterize the parameters for rendering the color block in the virtual scene, including but not limited to clarity, color, etc. At this time, after the color block parameter is retrieved, since the diagonal element material can divide the virtual scene in the diagonal dimension, the color block rendering area to be rendered in the virtual scene can be determined, so that the color block rendering area is rendered according to the color block parameter and displayed in the virtual scene. For example, when composing the virtual scene according to the diagonal space dividing line, it is divided into 2 or 4 diagonal areas, and any 1 or 2 color block rendering areas in the diagonal area are obtained as the area to be rendered based on user confirmation or pre-configuration, and a layer of shadow is rendered for this area based on the color block parameter, and displayed in the virtual scene, thereby providing the user with a basis for division of each dimension for composing the virtual scene.

[0118] In another embodiment of the present invention, for further limitation and explanation, after loading the space segmentation material in the lens configuration data of the virtual camera, the method further includes: rendering space segmentation operation information matching the space segmentation material.

[0119] Since the space segmentation material is generated by the space segmentation map of different element types, and the material parameters are adjusted according to different element styles, in order to meet the user's flexible adjustment of material parameters in the virtual scene, the space segmentation operation information matching the space segmentation material is rendered to instruct the user to adjust the space segmentation material based on the space segmentation operation information. Among them, the space segmentation operation information is pre-generated and records the adjustment method and usage instructions of different space segmentation materials, that is, it specifically contains the operation content of the space segmentation material corresponding to different element types and different element styles, so as to indicate the processing of the space segmentation material.

[0120] It should be noted that in the embodiment of the present invention, when the current execution end is making a virtual scene, the processing steps of making a virtual scene based on the game engine include: 1. creating a new virtual scene production project; 2. as a production user (such as a scene editing user), building a virtual scene usage process; 3. creating a virtual camera in the level; 4. loading the space segmentation material in the lens configuration data in the virtual camera; 5. determining the material parameters of the parameter node corresponding to the element style to be adjusted of the target space segmentation material based on the material ball in the material instance; 6. adjusting the material parameters based on the obtained adjustment parameters; 7. updating the target space segmentation material after adjusting the material parameters in the lens configuration data, so that the user can make a composition of the virtual scene based on the real-time adjusted space segmentation. At the same time, in order to facilitate the user to determine the use method of any space segmentation material at any time during the composition process of the virtual scene production, when creating the project, a separate sub-level map of the space segmentation operation information is added, and the user can view the use method of the space segmentation material corresponding to different element types and different element styles through this level map. At this time, in order to facilitate loading of the space segmentation material and the corresponding space segmentation operation information in any production project, the space segmentation material and the sub-level map can be packaged in one file so as to be migrated to any production project for use. Of course, components or plug-ins containing space segmentation materials of different element types and styles can also be generated so as to be used by different image processing systems or engines, which is not specifically limited in the embodiment of the present invention.

[0121] In another embodiment of the present invention, for further explanation and limitation, it further includes:

[0122] If the lens visual parameters for rendering the virtual scene are two-dimensional visual parameters, determining the two-dimensional spatial position coordinates of the space segmentation material rendered in the virtual scene according to the screen space coordinates corresponding to the virtual scene, so as to display the space segmentation material in the virtual scene based on the two-dimensional spatial position coordinates; or,

[0123] If the lens visual parameters for rendering the virtual scene are three-dimensional visual parameters, the three-dimensional space position coordinates of the space segmentation material rendered in the virtual scene are determined according to the world space coordinates corresponding to the virtual scene, so as to display the space segmentation material in the virtual scene based on the three-dimensional space position coordinates.

[0124] Since the lens visual parameters are used to limit the lens visual direction and lens visual display of the virtual camera, that is, the lens visual parameters can be two-dimensional visual parameters displayed by the virtual scene in the screen interface, or three-dimensional visual parameters displayed by the virtual scene in the virtual world space. In order to avoid poor composition effects due to lack of three-dimensional information, and to achieve three-dimensional virtual scene composition, by rendering three-dimensional space segmentation materials in a three-dimensional virtual scene, each dimension can be viewed for composition, thereby facilitating the precision production of the virtual scene. In an embodiment of the present invention, space segmentation materials are rendered in virtual scenes of different dimensions to meet the composition requirements of using space segmentation materials in virtual scenes of different dimensions. For lens visual parameters of different dimensions, space segmentation materials are displayed in the virtual scene based on spatial coordinates of different dimensions.

[0125] In a scene where a virtual scene is produced using a two-dimensional screen interface, that is, the lens visual parameters for rendering this virtual scene are two-dimensional visual parameters. At this time, the two-dimensional screen interface for rendering this virtual scene is a two-dimensional screen space. Therefore, determining the two-dimensional spatial position coordinates of the spatial segmentation material rendered in this virtual scene is to render this spatial segmentation material according to the two-dimensional spatial position coordinates in the two-dimensional virtual scene, thereby showing the segmentation effect of the two-dimensional space. Among them, determining the two-dimensional spatial position coordinates of the spatial segmentation material can directly cover and render the spatial segmentation material in the virtual scene of the screen space, and determining the two-dimensional spatial position coordinates of the spatial segmentation material in this two-dimensional virtual scene is not specifically limited in the embodiment of the present invention.

[0126] In a scene where a virtual scene is produced using a three-dimensional scene component, that is, the lens visual parameters for rendering this virtual scene are three-dimensional visual parameters. At this time, the world space for rendering this virtual scene is a three-dimensional virtual space. Therefore, determining the three-dimensional spatial position coordinates of the spatial segmentation material rendered in this virtual scene is to render this spatial segmentation material according to the three-dimensional spatial position in the three-dimensional virtual scene, thereby showing the segmentation effect of the three-dimensional space. Among them, the three-dimensional spatial position coordinates of the spatial segmentation material can be determined by first determining the two-dimensional empty position coordinates of the spatial segmentation material based on the preset two-dimensional visual interface of the virtual camera lens, and then extending the position coordinates of the third dimension according to the third lens visual angle, thereby determining the complete three-dimensional spatial position coordinates. It is also possible to directly determine the three-dimensional spatial position coordinates of different materials in the virtual scene based on the three-dimensional space component produced by the virtual scene in the game engine, which is not specifically limited in the embodiments of the present invention.

[0127] In another embodiment of the present invention, for further explanation and limitation, it further includes:

[0128] In the case where the space segmentation material is displayed in the virtual scene based on the two-dimensional space position coordinates, the two-dimensional space position coordinates of the space segmentation material are converted into three-dimensional space position coordinates in the world space coordinates of the virtual scene according to the two-dimensional to three-dimensional space mapping relationship of the lens visual parameters, and the space segmentation material is rendered in the virtual scene corresponding to the three-dimensional visual parameters according to the three-dimensional space position coordinates, so as to convert the space segmentation material from the two-dimensional screen space to the three-dimensional world space; or,

[0129] When the space-division material is displayed in the virtual scene based on the three-dimensional space position coordinates, the three-dimensional space position coordinates of the space-division material are mapped to two-dimensional space position coordinates in the screen space coordinates of the virtual scene according to the three-dimensional to two-dimensional space mapping relationship of the lens visual parameters, and the space-division material is rendered in the virtual scene corresponding to the two-dimensional visual parameters according to the two-dimensional space position coordinates, so as to convert the space-division material from the three-dimensional world space to the two-dimensional screen space.

[0130] In an embodiment of the present invention, in order to achieve flexible composition of virtual scenes of different dimensions, when a space segmentation material is displayed in a virtual scene based on a two-dimensional space position coordinate, the two-dimensional virtual scene with the space segmentation material can be converted into a three-dimensional virtual scene with the space segmentation material. Specifically, the two-dimensional space position coordinates of the space segmentation material are converted into three-dimensional space position coordinates in the world space coordinates of the virtual scene according to the two-dimensional to three-dimensional space mapping relationship of the lens visual parameters, wherein the two-dimensional to three-dimensional space mapping relationship of the lens visual parameters is a spatial position correspondence relationship of a two-dimensional plane converted to a three-dimensional space in a preset configuration, thereby directly converting the two-dimensional space coordinate position into the three-dimensional space position coordinate according to this spatial position correspondence relationship, such as the spatial position correspondence relationship of {x, y}→{x', y', z}, thereby converting the two-dimensional space coordinate position {x, y} into the three-dimensional space coordinate position {x', y', z}. In addition, after conversion into three-dimensional spatial position coordinates, the space segmentation material is rendered in the virtual scene corresponding to the three-dimensional visual parameters according to the three-dimensional spatial position coordinates. At this time, the virtual scene corresponding to the three-dimensional visual parameters is a three-dimensional virtual scene, which can be rendered according to the three-dimensional visual parameters by a scene production system such as a game engine to obtain a three-dimensional virtual scene, and the space segmentation material with the three-dimensional spatial position coordinates is rendered and displayed in the three-dimensional virtual scene, so as to realize the conversion of the space segmentation material from the two-dimensional screen space to the three-dimensional world space. In addition, since the three-dimensional virtual scene contains one more dimension of scene content, when editing and producing the two-dimensional virtual scene, the produced scene information is recorded, so that when rendering the three-dimensional virtual scene, this scene information is used as the basis for rendering the three-dimensional virtual scene, and the embodiment of the present invention does not make specific limitations.

[0131] In an embodiment of the present invention, in order to realize flexible composition of virtual scenes of different dimensions, when rendering a space segmentation material in a virtual scene based on a three-dimensional space position coordinate, the three-dimensional virtual scene with the space segmentation material can be converted into a two-dimensional virtual scene with the space segmentation material. Specifically, the three-dimensional space position coordinate of the space segmentation material can be mapped to the two-dimensional space position coordinate in the screen space coordinate of the virtual scene according to the three-dimensional to two-dimensional space mapping relationship of the lens visual parameter. Among them, the three-dimensional to two-dimensional space mapping relationship of the lens visual parameter is a spatial position correspondence relationship of a three-dimensional space mapped to a two-dimensional plane in a preset configuration, so that the three-dimensional space coordinate position is directly converted to the two-dimensional space position coordinate according to this spatial position correspondence relationship, such as the spatial position correspondence relationship of {x', y', z}→{x, y}, so that the three-dimensional space coordinate position {x', y', z} is mapped to the two-dimensional space coordinate position {x, y}. Then, the space segmentation material is rendered in the two-dimensional virtual scene corresponding to the two-dimensional visual parameter according to the two-dimensional space position coordinate, so as to realize the conversion of the space segmentation material from the three-dimensional world space to the two-dimensional screen space.

[0132] The embodiment of the present invention provides a processing method for virtual scene production. Compared with the prior art, the embodiment of the present invention loads a space division material in the lens configuration data of a virtual camera when producing a virtual scene; obtains adjustment parameters of a target space division material, and adjusts material parameters in a parameter node corresponding to the target space division material based on the adjustment parameters; updates the adjusted target space division material in the lens configuration data, so as to produce the virtual scene based on the space division material in the updated lens configuration data, thereby realizing diversified space division requirements when producing the virtual scene. The space division material can be adjusted in real time during the process of producing the virtual scene, thereby meeting the flexible space division composition requirements for the three-dimensional virtual scene, improving the accuracy of the composition production of the virtual scene, and thus improving the efficiency of the virtual scene production.

[0133] Furthermore, as a response to the above Figure 1 The embodiment of the present invention provides a processing device for producing a virtual scene, such as Figure 5 As shown, the device comprises:

[0134] A loading module 51 is used to load the space segmentation material in the lens configuration data of the virtual camera when making a virtual scene;

[0135] An adjustment module 52, used to obtain adjustment parameters of the target space segmentation material, and adjust the material parameters in the parameter node corresponding to the target space segmentation material based on the adjustment parameters;

[0136] The updating module 53 is used to update the adjusted target space segmentation material in the lens configuration data, so as to produce the virtual scene based on the updated space segmentation material in the lens configuration data.

[0137] Furthermore, the device also includes:

[0138] An acquisition module, used for acquiring space segmentation maps of different element types, wherein the space segmentation map is a single channel map;

[0139] A configuration module, used to configure material parameters matching the space segmentation map according to different element styles, and generate a space segmentation material;

[0140] The binding module is used to bind different material parameters in the space segmentation material to parameter nodes, and configure the space segmentation material with the parameter nodes in the lens configuration data of the virtual camera.

[0141] Furthermore, the configuration module includes:

[0142] A configuration unit, configured to construct a material ball based on the space segmentation map and the shader, and configure material parameters of the material ball based on different element styles to obtain a space segmentation material;

[0143] A creation unit is used to create a material instance of the space segmentation material, wherein the material instance includes a parameter node for adjusting material parameters to indicate binding parameter nodes to different material parameters.

[0144] Furthermore, the adjustment module includes:

[0145] A determination unit, used to determine a target space segmentation material during the production of the virtual scene, and obtain adjustment parameters of the target space segmentation material;

[0146] The adjustment unit is used to parse the element style corresponding to the adjustment parameter, and call the parameter node corresponding to the element style, and adjust the material parameter corresponding to the parameter node based on the adjustment parameter, wherein the element style includes an element shape style and an element color style.

[0147] Furthermore, the determination unit is specifically used to parse the scene editing operations generated during the production of the virtual scene, the scene editing operations including virtual scene content adjustment operations and special effect animation change operations; determine the target space division material corresponding to the scene editing operations according to the preset editing operation space division correspondence relationship, so as to display it in the virtual scene; render the editing component corresponding to the target space division material, the editing component containing material identifiers corresponding to different material parameters; and receive the adjustment parameters of the target space division material through the material identifier in the editing component.

[0148] Furthermore, the device further comprises: a display module,

[0149] The loading module is specifically used to retrieve and display the space segmentation material identifiers of different element types from the lens configuration data of the virtual camera, and render the virtual scene in the scene editing area according to the lens visual parameters in the lens configuration data to indicate the determination of the target space segmentation material from the space segmentation material identifier;

[0150] The display module is used to cover the target space segmentation material on the virtual scene for display according to the size and clarity of the virtual scene.

[0151] Furthermore, the device also includes:

[0152] A calling module, configured to call the color block parameters in the lens configuration data and obtain the color block rendering area to be rendered in the virtual scene if the target space segmentation material is a diagonal element material;

[0153] A rendering module is used to render the color block rendering area based on the color block parameters and display it in the virtual scene.

[0154] Furthermore, the device also includes:

[0155] A rendering module is used to render space division operation information matching the space division material, wherein the space division operation information includes operation contents of the space division material corresponding to different element types and different element styles to indicate processing of the space division material.

[0156] Furthermore, the device also includes:

[0157] A first determining module is used to determine the two-dimensional space position coordinates of the space segmentation material rendered in the virtual scene according to the screen space coordinates corresponding to the virtual scene if the lens visual parameters for rendering the virtual scene are two-dimensional visual parameters, so as to display the space segmentation material in the virtual scene based on the two-dimensional space position coordinates; or

[0158] The second determination module is used to determine the three-dimensional space position coordinates of the space segmentation material rendered in the virtual scene according to the world space coordinates corresponding to the virtual scene if the lens visual parameters of rendering the virtual scene are three-dimensional visual parameters, so as to display the space segmentation material in the virtual scene based on the three-dimensional space position coordinates.

[0159] Further,

[0160] The rendering module is further used for, when displaying the space segmentation material in the virtual scene based on the two-dimensional space position coordinates, converting the two-dimensional space position coordinates of the space segmentation material into three-dimensional space position coordinates in the world space coordinates of the virtual scene according to the two-dimensional to three-dimensional space mapping relationship of the lens visual parameters, and rendering the space segmentation material in the virtual scene corresponding to the three-dimensional visual parameters according to the three-dimensional space position coordinates, so as to convert the space segmentation material from the two-dimensional screen space to the three-dimensional world space; or,

[0161] The rendering module is also used to map the three-dimensional spatial position coordinates of the spatial division material into two-dimensional spatial position coordinates in the screen space coordinates of the virtual scene according to the three-dimensional to two-dimensional spatial mapping relationship of the lens visual parameters when displaying the spatial division material in the virtual scene based on the three-dimensional spatial position coordinates, and render the spatial division material in the virtual scene corresponding to the two-dimensional visual parameters according to the two-dimensional spatial position coordinates, so as to convert the spatial division material from the three-dimensional world space to the two-dimensional screen space.

[0162] An embodiment of the present invention provides a processing device for virtual scene production. Compared with the prior art, the embodiment of the present invention loads a space division material in the lens configuration data of a virtual camera when producing a virtual scene; obtains adjustment parameters of a target space division material, and adjusts material parameters in a parameter node corresponding to the target space division material based on the adjustment parameters; updates the adjusted target space division material in the lens configuration data, so as to produce the virtual scene based on the space division material in the updated lens configuration data, thereby realizing diversified space division requirements when producing the virtual scene. The space division material can be adjusted in real time during the process of producing the virtual scene, thereby meeting the flexible space division composition requirements for the three-dimensional virtual scene, improving the accuracy of the composition production of the virtual scene, and thus improving the efficiency of the virtual scene production.

[0163] According to an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the processing method for virtual scene production in any of the above method embodiments.

[0164] Figure 6 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.

[0165] like Figure 6 As shown, the terminal may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .

[0166] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .

[0167] The communication interface 604 is used to communicate with other devices such as clients or other servers.

[0168] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above-mentioned processing method embodiment of the virtual scene production.

[0169] Specifically, the program 610 may include program codes, which include computer operation instructions.

[0170] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0171] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0172] The program 610 may be specifically configured to enable the processor 602 to perform the following operations:

[0173] When making a virtual scene, load the space segmentation material in the lens configuration data of the virtual camera;

[0174] Acquire adjustment parameters of the target space segmentation material, and adjust material parameters in a parameter node corresponding to the target space segmentation material based on the adjustment parameters;

[0175] The adjusted target space division material is updated in the lens configuration data, so as to produce the virtual scene based on the updated space division material in the lens configuration data.

[0176] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0177] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A processing method for producing a virtual scene, characterized in that: include: When making a virtual scene, load the space segmentation material in the lens configuration data of the virtual camera; Acquire adjustment parameters of the target space segmentation material, and adjust material parameters in a parameter node corresponding to the target space segmentation material based on the adjustment parameters; The adjusted target space segmentation material is updated in the lens configuration data, so as to produce the virtual scene based on the updated space segmentation material in the lens configuration data; Before loading the space segmentation material into the lens configuration data of the virtual camera, the method further includes: Obtaining space segmentation maps of different element types, wherein the space segmentation map is a single channel map; Configuring material parameters matching the space segmentation map according to different element styles, and generating a space segmentation material; Different material parameters in the space segmentation material are bound to parameter nodes, and the space segmentation material with the parameter nodes is configured in the lens configuration data of the virtual camera.

2. The method according to claim 1, characterized in that The configuring material parameters matching the space segmentation map according to different element styles and generating the space segmentation material comprises: Constructing a material ball based on the space segmentation map and the shader, and configuring material parameters of the material ball based on different element styles to obtain a space segmentation material; A material instance of the space segmentation material is created, wherein the material instance includes parameter nodes for adjusting material parameters to indicate binding parameter nodes to different material parameters.

3. The method according to claim 1, characterized in that The obtaining the adjustment parameters of the target space segmentation material, and adjusting the material parameters in the parameter node corresponding to the target space segmentation material based on the adjustment parameters includes: Determining a target space segmentation material during the production of the virtual scene, and obtaining adjustment parameters of the target space segmentation material; The element style corresponding to the adjustment parameter is parsed, and the parameter node corresponding to the element style is retrieved, and the material parameter corresponding to the parameter node is adjusted based on the adjustment parameter, wherein the element style includes an element shape style and an element color style.

4. The method according to claim 3, characterized in that The step of determining the target space segmentation material during the process of making the virtual scene and obtaining the adjustment parameters of the target space segmentation material includes: Analyzing scene editing operations generated during the production of the virtual scene, the scene editing operations including virtual scene content adjustment operations and special effect animation change operations; Determine, according to a preset editing operation space segmentation correspondence relationship, a target space segmentation material corresponding to the editing operation of parsing the scene, so as to display it in the virtual scene; Rendering an editing component corresponding to the target space segmentation material, wherein the editing component includes material identifiers corresponding to different material parameters; The adjustment parameters of the target space segmentation material are received through the material identifier in the editing component.

5. The method according to claim 1, characterized in that The step of loading the space segmentation material in the lens configuration data of the virtual camera includes: Retrieving and displaying spatial segmentation material identifiers of different element types from the lens configuration data of the virtual camera, and rendering the virtual scene in the scene editing area according to the lens visual parameters in the lens configuration data to indicate determining the target spatial segmentation material from the spatial segmentation material identifier; Before obtaining the adjustment parameters of the target space segmentation material, the method further includes: According to the size and definition of the virtual scene, the target space segmentation material is overlaid on the virtual scene for display.

6. The method according to claim 5, characterized in that After updating the adjusted target space segmentation material in the lens configuration data, the method further includes: If the target space segmentation material is a diagonal element material, then the color block parameters in the lens configuration data are retrieved, and a color block rendering area to be rendered in the virtual scene is obtained; The color block rendering area is rendered based on the color block parameters and displayed in the virtual scene.

7. The method according to any one of claims 1 to 6, characterized in that: After loading the space segmentation material in the lens configuration data of the virtual camera, the method further includes: Rendering space division operation information matching the space division material, the space division operation information includes operation contents of the space division material corresponding to different element types and different element styles, so as to indicate processing of the space division material.

8. The method according to claim 1, characterized in that The method further comprises: If the lens visual parameters for rendering the virtual scene are two-dimensional visual parameters, determining the two-dimensional spatial position coordinates of the space segmentation material rendered in the virtual scene according to the screen space coordinates corresponding to the virtual scene, so as to display the space segmentation material in the virtual scene based on the two-dimensional spatial position coordinates; or, If the lens visual parameters for rendering the virtual scene are three-dimensional visual parameters, the three-dimensional space position coordinates of the space segmentation material rendered in the virtual scene are determined according to the world space coordinates corresponding to the virtual scene, so as to display the space segmentation material in the virtual scene based on the three-dimensional space position coordinates.

9. The method according to claim 8, characterized in that The method further comprises: In the case where the space segmentation material is displayed in the virtual scene based on the two-dimensional space position coordinates, the two-dimensional space position coordinates of the space segmentation material are converted into three-dimensional space position coordinates in the world space coordinates of the virtual scene according to the two-dimensional to three-dimensional space mapping relationship of the lens visual parameters, and the space segmentation material is rendered in the virtual scene corresponding to the three-dimensional visual parameters according to the three-dimensional space position coordinates, so as to convert the space segmentation material from the two-dimensional screen space to the three-dimensional world space; or, When the space-division material is displayed in the virtual scene based on the three-dimensional space position coordinates, the three-dimensional space position coordinates of the space-division material are mapped to two-dimensional space position coordinates in the screen space coordinates of the virtual scene according to the three-dimensional to two-dimensional space mapping relationship of the lens visual parameters, and the space-division material is rendered in the virtual scene corresponding to the two-dimensional visual parameters according to the two-dimensional space position coordinates, so as to convert the space-division material from the three-dimensional world space to the two-dimensional screen space.

10. A processing device for producing a virtual scene, characterized in that: include: A loading module is used to load the space segmentation material in the lens configuration data of the virtual camera when making a virtual scene; An adjustment module, used to obtain adjustment parameters of the target space segmentation material, and adjust the material parameters in the parameter node corresponding to the target space segmentation material based on the adjustment parameters; An updating module, used for updating the adjusted target space segmentation material in the lens configuration data, so as to produce the virtual scene based on the space segmentation material in the updated lens configuration data; Wherein, the device further comprises: An acquisition module, used for acquiring space segmentation maps of different element types, wherein the space segmentation map is a single channel map; A configuration module, used to configure material parameters matching the space segmentation map according to different element styles, and generate a space segmentation material; The binding module is used to bind different material parameters in the space segmentation material to parameter nodes, and configure the space segmentation material with the parameter nodes in the lens configuration data of the virtual camera.

11. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the processing method for producing a virtual scene according to any one of claims 1 to 9.

12. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the processing method for virtual scene production according to any one of claims 1-9.

Citation Information

Patent Citations

  • Model training data acquisition method and device, computer equipment and storage medium

    CN113516778A