Object processing method and device, electronic equipment and computer readable storage medium

By adjusting the material influence parameters of virtual objects in Unreal Engine, the generation efficiency and performance issues caused by material changes were resolved, achieving efficient material updates and game optimization.

CN119524424APending Publication Date: 2025-02-28NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411620865.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In Unreal Engine, when generating a large number of identical virtual objects by using the vegetation tool to call the layered instantiation static mesh technology, changing the material will reduce the efficiency of virtual scene generation and affect game performance.

Method used

The virtual scene is displayed through a graphical user interface. In response to the addition operation, the parameter editing panel of the editing tool is displayed, the adjustment parameters and target adjustment values ​​are configured, the material influence parameters are adjusted and the virtual object is updated, so as to realize material changes without adding new materials.

Benefits of technology

It improves the efficiency of virtual scene generation, reduces the number of drawing calls, optimizes game performance, and allows some virtual objects to have different material effects in the virtual scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119524424A_ABST
    Figure CN119524424A_ABST
Patent Text Reader

Abstract

The invention discloses an object processing method and device, electronic equipment and a computer readable storage medium. According to the embodiment of the invention, a virtual scene is displayed through a graphical user interface, and the virtual scene comprises a plurality of virtual objects; in response to an adding operation on the virtual scene, displaying a parameter editing panel of an editing tool, and in response to an editing operation on the parameter editing panel, configuring an adjustment parameter defined in the editing tool and a target adjustment value of the adjustment parameter for an initial virtual object in the virtual objects; according to the target adjustment value, performing adjustment processing on a material influence parameter for the initial virtual object in the virtual scene to obtain a target material influence parameter of the initial virtual object; and updating the initial virtual object according to the target material influence parameter to obtain a target virtual object, so that the generation efficiency of a virtual scene can be improved, the drawing and calling times can be reduced, and the game performance can be optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of rendering technology, and in particular to an object processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] In Unreal Engine, you can use the Foliage Tool to call Hierarchical Instanced Static Mesh (HISM) to add a large number of identical virtual objects to the virtual scene. The identical virtual objects can be, for example, vegetation, which can be trees, grass, or cacti.

[0003] The materials of a large number of virtual objects obtained by calling the layered instanced static mesh technology through the vegetation tool are the same. If you want to change the materials of a large number of virtual objects, you need to add new materials. However, adding new materials not only reduces the efficiency of virtual scene generation, but also increases the number of draw calls, which has a negative impact on game performance. Summary of the invention

[0004] The embodiments of the present application provide an object processing method, device, electronic device and computer-readable storage medium, which can improve the efficiency of generating virtual scenes, reduce the number of drawing calls, and optimize game performance.

[0005] In a first aspect, an embodiment of the present application provides an object processing method, the method comprising:

[0006] Displaying a virtual scene through a graphical user interface, wherein the virtual scene includes a plurality of virtual objects;

[0007] In response to the adding operation on the virtual scene, a parameter editing panel of the editing tool is displayed, and in response to the editing operation on the parameter editing panel, the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters are configured for the initial virtual object in the virtual objects;

[0008] According to the target adjustment value, adjusting the material influence parameter of the initial virtual object in the virtual scene to obtain the target material influence parameter of the initial virtual object;

[0009] The initial virtual object is updated according to the target material influence parameters to obtain a target virtual object.

[0010] In a second aspect, an embodiment of the present application further provides an object processing device, the device comprising:

[0011] A first display module, used for displaying a virtual scene through a graphical user interface, wherein the virtual scene includes a plurality of virtual objects;

[0012] a second display module, configured to display a parameter editing panel of the editing tool in response to an adding operation on the virtual scene, and to configure the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual object in the virtual objects in response to an editing operation on the parameter editing panel;

[0013] An adjustment processing module, used for adjusting the material influence parameters for the initial virtual object in the virtual scene according to the target adjustment value, to obtain the target material influence parameters for the initial virtual object;

[0014] The object updating module is used to update the initial virtual object according to the target material influence parameter to obtain the target virtual object.

[0015] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; the above-mentioned processor loads instructions from the above-mentioned memory to execute any object processing method provided in the embodiment of the present application.

[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute any object processing method provided in the embodiment of the present application.

[0017] In an embodiment of the present application, a virtual scene is displayed through a graphical user interface, and the virtual scene includes multiple virtual objects; in response to an addition operation on the virtual scene, a parameter editing panel of an editing tool is displayed, and in response to an editing operation on the parameter editing panel, adjustment parameters defined in the editing tool and target adjustment values ​​of the adjustment parameters are configured for an initial virtual object in the virtual object; according to the target adjustment value, the material influence parameters for the initial virtual object in the virtual scene are adjusted to obtain the target material influence parameters of the initial virtual object; according to the target material influence parameters, the initial virtual object is updated to obtain the target virtual object, so that some virtual objects in the virtual object can be updated through the editing tool, so that the material performance effect of some virtual objects in the virtual scene can be changed without adding new materials, thereby improving the generation efficiency of the virtual scene, reducing the number of drawing calls, and optimizing game performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 This is a flowchart of an embodiment of the object processing method provided in the embodiment of the present application;

[0020] Figure 2 is a schematic diagram of a graphical user interface provided in an embodiment of the present application;

[0021] Figure 3 is another schematic diagram of a graphical user interface provided in an embodiment of the present application;

[0022] Figure 4 is another schematic diagram of a graphical user interface provided in an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of a parameter editing panel provided in an embodiment of the present application;

[0024] Figure 6 is another schematic diagram of a graphical user interface provided in an embodiment of the present application;

[0025] Figure 7 is a schematic diagram of a region selection object provided in an embodiment of the present application;

[0026] Figure 8 is a schematic diagram of an adjustment window provided in an embodiment of the present application;

[0027] Fig. 9 is a schematic diagram of the identification provided in the embodiments of the present application;

[0028] Fig.10 is a schematic diagram of a virtual scene provided in an embodiment of the present application;

[0029] Fig.11 is another embodiment flow chart of the object processing method provided in the embodiment of the present application;

[0030] Fig.12 is a schematic diagram of a target script provided in an embodiment of the present application;

[0031] Fig.13 is a schematic diagram of a blueprint in an editing tool provided in an embodiment of the present application;

[0032] Fig.14 is a schematic diagram of a shader provided in an embodiment of the present application;

[0033] Fig.15 is a schematic diagram of the structure of an object processing device provided in an embodiment of the present application;

[0034] Fig.16 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0036] Before explaining the embodiments of the present application in detail, some terms involved in the embodiments of the present application are first explained.

[0037] Among them, in the description of the embodiment of the present application, the terms "first", "second", etc. can be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The term "plurality" refers to two or more.

[0038] The embodiments of the present application provide an object processing method, apparatus, electronic device and computer-readable storage medium. Specifically, the object processing method of the embodiments of the present application can be executed by an electronic device, wherein the electronic device can be a terminal or a server.

[0039] The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc.

[0040] The server can be an independent physical server, 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 networks (CDNs), as well as big data and artificial intelligence platforms.

[0041] The following is a detailed description of the embodiments in conjunction with the accompanying drawings. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.

[0042] In this embodiment, a terminal is taken as an example for description. This embodiment provides an object processing method, such as Figure 1 As shown, the specific process of the object processing method can be as follows:

[0043] 101. Displaying a virtual scene through a graphical user interface, where the virtual scene includes a plurality of virtual objects.

[0044] The graphical user interface is an interface obtained by executing an application on a processor of a terminal and rendering it on a display. The graphical user interface can present the entire virtual scene or only a part of the virtual scene.

[0045] The virtual scene is the content displayed when the application is running on a terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene. The type of the virtual scene can be set according to the actual situation. For example, the virtual scene can be a scene in a game scene or a video, which is not limited in the embodiments of the present application.

[0046] Virtual objects refer to various objects in a virtual scene. The type of virtual objects can be set according to actual conditions. For example, virtual objects can be virtual vegetation, virtual buildings or virtual ground. Virtual vegetation can be virtual trees, virtual cacti or virtual grass, etc. This embodiment of the application does not limit this.

[0047] It is understandable that the terminal may first create a virtual scene through a graphical user interface, and then create a plurality of virtual objects in the virtual scene.

[0048] Optionally, the types to which the multiple virtual objects belong may include at least one, and each type of virtual object may include at least one.

[0049] For example, a virtual scene such as Figure 2 As shown, multiple virtual objects include virtual cacti, virtual grass, cubes and ground. The type of the virtual cactus is the cactus type, the type of the virtual grass is the grass type, the type of the cube is the cube type, and the type of the ground is the ground type. There are multiple virtual cacti of the cactus type, multiple virtual grasses of the grass type, one cube of the cube type, and one ground of the ground type.

[0050] Optionally, when a type of virtual object includes multiple virtual objects, the materials of different virtual objects of the same type may be the same, that is, the material parameters used by different virtual objects of the same type are the same.

[0051] When different virtual objects of the same type have the same material, you can use the Foliage Tool to create different virtual objects of the same type in the virtual scene. Figure 2 As shown, virtual cacti and virtual grass can be created in a virtual scene through vegetation tools.

[0052] 102. In response to an adding operation on the virtual scene, a parameter editing panel of the editing tool is displayed, and in response to an editing operation on the parameter editing panel, adjustment parameters defined in the editing tool and target adjustment values ​​of the adjustment parameters are configured for an initial virtual object in the virtual objects.

[0053] Among them, the editing tool refers to a tool used to modify the material performance effects of certain virtual objects. Through the editing tool, the parameter value of the adjustment parameter can be customized as needed. The adjustment parameter refers to a parameter that can adjust the material influence parameter of the virtual object, which may include at least one, and the material influence parameter refers to a parameter that affects the material performance effect of the virtual tin plating. The target adjustment value refers to the value of the adjustment parameter, and the user can set the target adjustment value according to the needs of the material performance effect of the virtual object. The initial virtual object in the virtual object refers to a part of the virtual object in the virtual object, and the part of the virtual object can be a part of the virtual object of the same type.

[0054] The operation of adding a virtual scene can be understood as an operation of triggering the operation of running an editing tool in the Unreal Engine. The type of the operation of adding a virtual scene can be set according to actual conditions, for example, the adding operation can be a click operation, or the adding operation can be a long press operation, which is not limited in the embodiments of the present application.

[0055] The type of editing operation on the parameter editing panel can be set according to actual conditions. For example, the editing operation on the parameter editing panel can be a sliding operation or an input operation, which is not limited in the embodiment of the present application.

[0056] Optionally, the graphical user interface may include an asset window, the asset window may include an editing tool, and the operation of adding a virtual scene may be a triggering operation of the editing tool. At this time, in response to the operation of adding a virtual scene, a parameter editing panel of the editing tool is displayed, including:

[0057] In response to the triggering operation of the editing tool, the editing tool is run in the Unreal Engine and the parameter editing panel is displayed.

[0058] Among them, the type of trigger operation for the editing tool can be set according to the actual situation. For example, the trigger operation for the editing tool can be a double-click operation or a long press operation, which is not limited in the embodiment of the present application.

[0059] For example, in response to a double-click operation on the editing tool using the left button of the mouse, the editing tool is run in the Unreal Engine and a parameter editing panel is displayed.

[0060] Alternatively, in response to the adding operation to the virtual scene, a parameter editing panel of the editing tool is displayed, including:

[0061] In response to a trigger operation on the editing tool, displaying a control window of the editing tool;

[0062] In response to a confirming run operation on the control window, the editing tool is run in the Unreal Engine and a parameter editing panel is displayed.

[0063] Among them, the type of trigger operation for the editing tool can be set according to the actual situation. For example, the trigger operation for the editing tool can be a click operation or a long press operation, which is not limited in the embodiment of the present application.

[0064] The control window refers to a window for controlling and confirming the running of the editing tool. The control window may include a running control. The confirming running operation of the control window may be a triggering operation of the running control.

[0065] For example, graphical user interfaces such as Figure 3 As shown, the asset window can be an asset browser, and the asset window and editing tools can be as shown in Figure 3 As shown, in response to a right-click operation on the editing tool, the displayed control window and the running control can be as shown in FIG. Figure 4 As shown, in response to the triggering operation of the run control, the displayed parameter editing panel can be as follows Figure 5 As shown, at this time, the adjustment parameters are "direct light attenuation" and "ambient light attenuation", and the editing operation on the parameter editing panel is a sliding operation. By sliding the sliding bar of "direct light attenuation", the target adjustment value corresponding to "direct light attenuation" is obtained. By sliding the sliding bar of "ambient light attenuation", the target adjustment value corresponding to "ambient light attenuation" is obtained.

[0066] In some embodiments, the terminal may determine the initial virtual object among the virtual objects after displaying a parameter editing panel of an editing tool in response to an operation of adding a virtual scene, and before configuring the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual object in the virtual objects in response to the editing operation of the parameter editing panel. Alternatively, the terminal may determine the initial virtual object among the virtual objects after displaying the parameter editing panel of the editing tool in response to an operation of adding a virtual scene and before configuring the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual object in the virtual objects in response to the editing operation of the parameter editing panel.

[0067] When determining an initial virtual object among the virtual objects after displaying a parameter editing panel of the editing tool in response to an add operation on the virtual scene and before configuring the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual objects in response to an edit operation on the parameter editing panel, the target adjustment values ​​of the adjustment parameters can be set by firstly editing the parameter editing panel, and then the initial virtual object among the virtual objects can be determined, and then the target adjustment values ​​of the adjustment parameters can be configured for the initial virtual object. At this time, configuring the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual objects in response to an edit operation on the parameter editing panel includes:

[0068] In response to an editing operation on the parameter editing panel, obtaining a target adjustment value of an adjustment parameter defined in the editing tool;

[0069] An initial virtual object among the virtual objects is determined, and an adjustment parameter and a target adjustment value of the adjustment parameter are configured for the initial virtual object.

[0070] Among them, the terminal can respond to the selection operation of the virtual object in the virtual scene, determine the virtual object corresponding to the selection operation as the initial virtual object, and then respond to the adjustment operation of the parameter editing panel, configure the adjustment parameters and the target adjustment value of the adjustment parameters for the initial virtual object. The type of adjustment operation on the parameter editing panel can be set according to actual conditions. For example, the adjustment operation on the parameter editing panel can be a click operation or a long press operation, which is not limited in the embodiments of the present application.

[0071] For example, the parameter editing panel is Figure 5As shown, the adjustment operation on the parameter editing panel is a click operation on "Range Adjustment", and in response to the sliding operation on the sliding bar of "Direct Light Attenuation", the target adjustment value corresponding to "Direct Light Attenuation" is obtained, and the target adjustment value corresponding to "Ambient Light Attenuation" is obtained by sliding the sliding bar of "Ambient Light Attenuation". In response to the selection operation of the virtual object in the virtual scene, the virtual object corresponding to the selection operation is determined as the initial virtual object. Finally, in response to the click operation on "Range Adjustment", the adjustment parameters and the target adjustment values ​​of the adjustment parameters are configured for the initial virtual object.

[0072] In some embodiments, the process of determining the initial virtual object among the virtual objects may be:

[0073] In response to a selection operation on a virtual object in a virtual scene, the virtual object corresponding to the selection operation is determined as an initial virtual object.

[0074] Among them, the parameter editing panel may include a selection control, and the terminal controls the virtual object in the virtual scene to be in a selectable state in response to a trigger operation on the selection control, and in response to a selection operation on the virtual object, determines the virtual object corresponding to the selection operation as the initial virtual object.

[0075] Alternatively, the graphical user interface further includes an asset window, and before determining an initial virtual object in the virtual objects, further includes:

[0076] In response to a drag operation on a region blueprint in the asset window, drag the region blueprint into the virtual scene to instantiate the region blueprint as a region selection object in the virtual scene, and the region selection object can be triggered to make adjustments in the virtual scene;

[0077] At this time, the process of determining the initial virtual object in the virtual objects may also be:

[0078] At least one virtual object in the area selection object is determined as an initial virtual object.

[0079] The region blueprint refers to a script that can generate a region selection object in a virtual scene. The region selection object refers to an object that can be used to select an initial virtual object, which can be a closed figure. The shape of the region selection object can be set according to actual conditions, for example, the region selection object can be a sphere or a cuboid, which is not limited in the embodiments of the present application.

[0080] After dragging an area blueprint into the virtual scene, you can instance the area blueprint as an area selection object.

[0081] For example, the virtual scene and asset windows can be Figure 6As shown, at this time, the asset window can be an asset browser. After dragging the area blueprint to the virtual scene, the virtual scene can be Figure 7 shown.

[0082] It can be understood that after the terminal drags the area blueprint into the virtual scene to instantiate the area blueprint as an area selection object in the virtual scene, if the virtual object in the area selection object does not meet the user's needs, the area selection object can be adjusted in response to a trigger operation on the area selection object so that the area selection area includes the virtual object that the user needs to select.

[0083] Among them, the adjustment of the area selection object may include at least one of moving, rotating and scaling the area selection object. The type of triggering operation on the area selection object can be set according to actual conditions. For example, the triggering operation on the area selection object can be at least one of dragging, scaling and rotating the area selection object. Or, after dragging the area blueprint to the virtual scene, not only can the area selection object be generated in the virtual scene, but also an adjustment window can be displayed on the graphical user interface. The adjustment window can be used to adjust the area selection object. At this time, the triggering operation on the area selection object can be an adjustment operation of the parameters in the adjustment window, and the terminal adjusts the area selection object in response to the adjustment operation.

[0084] For example, virtual scenes and adjustment windows can be Figure 8 As shown, Figure 8 The red window in the figure is for adjusting the parameters of the area selection object. Location represents the center position coordinates of the area selection object, Rotation represents the rotation angle of the area selection object, and Scale represents the width of the area selection object.

[0085] It can be understood that, in response to the triggering operation on the area selection object, the terminal calls at least one of the moving function, the scaling function and the rotating function in the Unreal Engine to adjust the area selection object.

[0086] In an embodiment of the present application, in response to a drag operation on an area blueprint in an asset window, the area blueprint is dragged into a virtual scene to instantiate the area blueprint as an area selection object in the virtual scene. The area selection object can be triggered to make adjustments in the virtual scene, and at least one virtual object in the area selection object is determined as an initial virtual object, so that the virtual object can be selected through the area selection object, so that the user can quickly select virtual objects in various irregular areas non-destructively, repeatedly, and flexibly, and conveniently maintain virtual objects in various areas in scattered virtual scenes, thereby improving the efficiency of selecting virtual objects. Moreover, the area selection object, as an object existing in the virtual scene, can itself be used as a part of the virtual scene. It can be uploaded to the server to be shared between different users, and it can be used as an "identifier" to facilitate the situation where multiple people jointly create a virtual scene.

[0087] In some embodiments, the region selection object may be a sphere, and / or the region selection object may include a mark, which is used to indicate the center position of the region selection object. The shape of the mark can be set according to actual conditions. For example, the mark can be an arrow or a circle. When the mark is an arrow, the mark can be as follows: Fig. 9 shown.

[0088] In an embodiment of the present application, the area selection object is a sphere, which can further improve the convenience of selecting virtual objects. The area selection object includes an identifier, which is used to indicate the center position of the area selection object, so that the user can quickly know the center position of the area selection object, thereby allowing the user to quickly select the virtual object.

[0089] In some embodiments, determining at least one virtual object in the area selection object as an initial virtual object includes:

[0090] Get the center coordinates of the area selection object and the width of the area selection object;

[0091] determining a distance between the center position coordinates and the position coordinates of the virtual object;

[0092] At least one virtual object corresponding to a distance smaller than the width is determined as an initial virtual object, wherein the at least one virtual object corresponding to a distance smaller than the width is at least one virtual object in the area selection object.

[0093] The width corresponding to the region selection object refers to the size of the region selection object. For example, when the region selection object is a sphere, the size of the region selection object is the radius of the sphere.

[0094] In an embodiment of the present application, the center position coordinates of the area selection object and the width corresponding to the area selection object are obtained, the distance between the center position coordinates and the position coordinates of the virtual object is determined, and at least one virtual object corresponding to a distance smaller than the width is determined as an initial virtual object, wherein at least one virtual object corresponding to a distance smaller than the width is at least one virtual object in the area selection object, so that whether the virtual object is located in the area selection object can be determined by the center position coordinates and width of the area selection object, thereby improving the efficiency of determining the initial virtual object.

[0095] In some embodiments, the virtual objects include multiple types, and the number of virtual objects of each type is multiple, and determining the distance between the center position coordinates and the position coordinates of the virtual objects includes:

[0096] Screening multiple virtual objects to obtain virtual objects of target types;

[0097] Determine the distance between the center position coordinates and the position coordinates of a virtual object of the target type.

[0098] The materials of the same type of virtual objects are the same. For example, the virtual scene includes multiple virtual cacti and multiple virtual grasses. The multiple virtual cacti are of the same type, i.e., cactus type; and the multiple virtual grasses are of the same type, i.e., grass type.

[0099] The target type refers to the type of the material of the initial virtual object. For example, the virtual scene includes a virtual cactus and multiple virtual grasses, the initial virtual object is the virtual cactus, and the target type is the cactus type. At this time, only the distance between the center position coordinates and the position coordinates of the virtual cactus is calculated.

[0100] In an embodiment of the present application, multiple virtual objects are screened to obtain a target type of virtual object, and the distance between the center position coordinates and the position coordinates of the target type of virtual object is determined, so that only the distance between the center position coordinates and the position coordinates of the target type of virtual object needs to be calculated, thereby reducing the amount of calculation and improving the speed of determining the initial virtual object.

[0101] In some embodiments, configuring the adjustment parameter and the target adjustment value of the adjustment parameter for the initial virtual object includes:

[0102] Run the target script provided by the editing tool through the game engine's script node to adjust parameters for the initial virtual object configuration;

[0103] Set the parameter value of the tuning parameter to the target tuning value.

[0104] The game engine may also be called Unreal Engine, the script node may also be called Execute PythonScript, and the script node is a tool for running scripts in Unreal Engine. The target script refers to a script for configuring adjustment parameters for the initial virtual object.

[0105] In an embodiment of the present application, a target script provided by an editing tool is run through a script node of a game engine to configure adjustment parameters for an initial virtual object, and the parameter value of the adjustment parameter is set to a target adjustment value, thereby configuring the adjustment parameters for the initial virtual object through the target script.

[0106] 103. According to the target adjustment value, the material influence parameter of the initial virtual object in the virtual scene is adjusted to obtain the target material influence parameter of the initial virtual object.

[0107] Among them, the material influence parameter refers to a parameter that can affect the material performance effect of the initial virtual object, and its type can be set according to the actual situation. For example, the material influence parameter can be at least one of the direct light intensity and the ambient light intensity, which is not limited in the embodiment of the present application. The material performance effect can be set according to the actual situation. For example, the material performance effect can be a color performance effect or a roughness performance effect, which is not limited in the embodiment of the present application.

[0108] After obtaining the target adjustment value, the terminal may multiply the target adjustment value and the material influence parameter, thereby adjusting the material influence parameter and obtaining the target material influence parameter.

[0109] Specifically, the terminal may input the target adjustment value into the shader, and through the shader, multiply the target adjustment value and the material influence parameter to obtain the target material influence parameter.

[0110] In some embodiments, when a target script provided by an editing tool is run through a script node of a game engine to configure adjustment parameters for an initial virtual object, and a parameter value of the adjustment parameter is set to a target adjustment value, the material influence parameter for the initial virtual object in the virtual scene is adjusted according to the target adjustment value to obtain the target material influence parameter of the initial virtual object, including:

[0111] In response to configuring adjustment parameters for the initial virtual object, generating a parameter modification callback event in the game engine;

[0112] Based on the parameter modification callback event, the target adjustment value is transmitted to the hierarchical instanced static mesh component;

[0113] Reads target adjustment values ​​from hierarchical instanced static mesh components;

[0114] The material effect parameters for the initial virtual object in the virtual scene are adjusted according to the target adjustment value to obtain the target material effect parameters of the initial virtual object.

[0115] Among them, the hierarchical instanced static mesh component (HISM) refers to a component in the Unreal Engine for efficiently rendering large-scale identical virtual objects. In the embodiment of the present application, since the target script provided by the editing tool is run through the script node of the game engine to configure the adjustment parameters for the initial virtual object, a parameter modification callback event can be generated in the game engine. Since there is a parameter modification callback event, the hierarchical instanced static mesh component can be triggered to update the value of the Num Custom Data Floats parameter in itself to the target adjustment value, so that the shader can read the target adjustment value from the hierarchical instanced static mesh component, and adjust the material effect parameters for the initial virtual object in the virtual scene according to the target adjustment value, and obtain the target material influence parameters of the initial virtual object, so that the setting of the target adjustment value can take effect.

[0116] 104. Update the initial virtual object according to the target material influence parameter to obtain the target virtual object.

[0117] After obtaining the target material influence parameter, the terminal re-renders the initial virtual object according to the target material influence parameter to obtain the target virtual object, so as to update the initial virtual object.

[0118] In an embodiment of the present application, it is possible to update some virtual objects in the virtual object through editing tools, so that the material performance effects of some virtual objects in the virtual scene can be changed without adding new materials, thereby improving the generation efficiency of the virtual scene, reducing the number of drawing calls, and optimizing game performance.

[0119] Furthermore, when some virtual objects are some virtual objects among multiple virtual objects of the same type, the initial virtual object and other virtual objects can be made to have different material expression effects through editing tools. Other virtual objects refer to virtual objects other than the initial virtual object among virtual objects of the same type. This makes it possible for different virtual objects of the same type to have different material expression effects in the virtual scene without adding new materials, thereby improving the generation efficiency of the virtual scene, reducing the number of drawing calls, and optimizing game performance.

[0120] For example, a virtual scene can be Fig.10As shown in 1001, at this time, part of the virtual cactus does not receive the shadow cast by the cube and becomes black. In this embodiment, the editing tool is used to configure adjustment parameters and target adjustment values ​​of the adjustment parameters for part of the virtual cactus. The target adjustment value is used to darken the color of part of the cactus through the shader, so that the virtual cactus in the shadow area becomes black, which visually achieves the effect of receiving the shadow cast by the cube. At this time, the virtual scene can be as shown in FIG. Fig.10 As shown in 1002.

[0121] As can be seen from the above content, in an embodiment of the present application, a virtual scene is displayed through a graphical user interface, and the virtual scene includes multiple virtual objects; in response to an addition operation on the virtual scene, a parameter editing panel of the editing tool is displayed, and in response to an editing operation on the parameter editing panel, adjustment parameters defined in the editing tool and target adjustment values ​​of the adjustment parameters are configured for an initial virtual object in the virtual object; according to the target adjustment value, the material influence parameters for the initial virtual object in the virtual scene are adjusted to obtain the target material influence parameters of the initial virtual object; according to the target material influence parameters, the initial virtual object is updated to obtain the target virtual object, thereby realizing the updating of some virtual objects in the virtual object through the editing tool, so that the material performance effect of some virtual objects in the virtual scene can be changed without adding new materials, thereby improving the generation efficiency of the virtual scene, reducing the number of drawing calls, and optimizing game performance.

[0122] According to the following Fig.11 , the object processing method provided in this application is further explained.

[0123] 1101. Display a virtual scene and an asset window through a graphical user interface. The virtual scene includes multiple types of virtual objects, and each type of virtual object may include at least one.

[0124] The materials of virtual objects of the same type may be the same. When there are multiple virtual objects of the same type, multiple virtual objects of the same type may be created in a virtual scene through a foliage tool.

[0125] 1102. In response to a drag operation on a region blueprint in an asset window, drag the region blueprint into a virtual scene to instantiate the region blueprint as a region selection object in the virtual scene, and the region selection object can be triggered to make adjustments in the virtual scene.

[0126] The region selection object is a sphere, and / or the region selection object includes an identifier, and the identifier is used to indicate the center position of the region selection object.

[0127] 1103. In response to an adding operation of an editing tool to the asset window, a parameter editing panel of the editing tool is displayed, and in response to an editing operation on the parameter editing panel, a target adjustment value is obtained.

[0128] 1104. In response to the adjustment operation on the parameter editing panel, multiple virtual objects are screened to obtain virtual objects of a target type.

[0129] Among them, you can set it in the parameter editing panel so that the terminal can determine whether to filter multiple virtual objects. For example, when the parameter editing panel is Figure 5 If you check "Filter by parent material?", it means that multiple virtual objects are filtered according to the set parent material to obtain virtual objects of the target type.

[0130] Optionally, when the parameter editing panel is Figure 5 As shown, when "Adjust unbatch models" is not checked, it means that the object processing method provided in this embodiment is executed through the editing tool, and when "Adjust unbatch models" is checked, it means that other parameter customization methods are executed through the editing tool.

[0131] Optionally, in response to the adjustment operation on the parameter editing panel, the terminal can read all virtual objects in the virtual scene through the GetSelected Level Actors function in the editing tool, and then filter out all area selection objects through the Cast To BP_InteractiveBP_Manager function, and perform the following steps for each area selection object:

[0132] Read the original width of the area selection object, and multiply the original width of the area selection by the scaling parameter to get the width of the area selection object. Use the floating-point variable SetRange to store the width of the area selection object, and use the vector variable TraceStartPoint to store the center position coordinates of the area selection object.

[0133] Through the GetAllActorOfClass function in the editing tool, the virtual object named "InstanceFoliageActor" in the virtual scene is obtained. The virtual object of "InstanceFoliageActor" is the virtual object created by the vegetation tool. Then, the FoliageInstancedStaticMeshComponent of the "InstanceFoliageActor" virtual object is obtained through the GetComponentsByClass function in the editing tool. FoliageInstancedStaticMeshComponent represents the material of the "InstanceFoliageActor" virtual object.

[0134] Next, the GetMaterials function is used to determine whether the material of the "InstanceFoliageActor" virtual object is the material set in the parameter editing panel. If so, the "InstanceFoliageActor" virtual object is a virtual object of the target type, thereby achieving the purpose of filtering other virtual objects, so that only the virtual objects of the target type can be configured and adjusted.

[0135] 1105. Run the target script provided by the editing tool through the script node of the game engine to configure the adjustment parameters defined in the editing tool for the virtual object of the target type.

[0136] The script node may be Execute Python Script, the target script may be a Python script, and the terminal may run the Python script through Execute Python Script to configure adjustment parameters for a virtual object of the target type.

[0137] For example, a Python script can be written as Fig.12 As shown, Num Custom Data Floats represents the adjustment parameters defined in the editing tool, and Num Custom Data Floats is the parameter for setting the target adjustment value in the hierarchical instantiated static mesh component.

[0138] 1106. Determine the distance between the center position coordinates of the area selection object and the position coordinates of the virtual object of the target type, and determine at least one virtual object corresponding to a distance smaller than the width as an initial virtual object, wherein at least one virtual object corresponding to a distance smaller than the width is at least one virtual object in the area selection object.

[0139] 1107. Configure a target adjustment value for the adjustment parameter of the initial virtual object.

[0140] Among them, the terminal can obtain the total number of virtual objects of the target type through the GetInstanceCount function, so as to perform the following loop for each virtual object of the target type: use the GetInstanceTransform function to obtain the position coordinates of each virtual object of the target type, calculate the distance between it and the center position coordinates of the area selection object stored in the vector variable TraceStartPoint, and use the SetCustomDataValue function to assign the target adjustment value to the adjustment parameter of the virtual object corresponding to the distance less than the width stored in the variable SetRange.

[0141] For example, when the adjustment parameters are "direct light reduction" and "ambient light reduction", the following blueprint in the editing tool can be used to assign the two target adjustment values ​​obtained in response to the editing operation on the parameter editing panel to the adjustment parameters of the virtual object corresponding to the distance less than the width, such as Fig.13 As shown, the two target adjustment values ​​are data 0 and data 1 of the virtual object corresponding to the distance less than the width.

[0142] It is understandable that the value of the adjustment parameter of the virtual object corresponding to the distance equal to or greater than the width may not be set, indicating that there is no need to adjust the material influence parameter of the virtual object corresponding to the distance equal to or greater than the width.

[0143] 1108. In response to configuring adjustment parameters for the initial virtual object, a parameter modification callback event is generated in the game engine, and based on the parameter modification callback event, a target adjustment value is transmitted to the hierarchical instantiated static mesh component.

[0144] 1109. Read the target adjustment value from the hierarchical instantiation static mesh component through the shader, and adjust the material effect parameters for the initial virtual object in the virtual scene according to the target adjustment value to obtain the target material effect parameters of the initial virtual object.

[0145] For example, a shader can be Fig.14 (When performing other parameter customization methods through the editing tool, Fig.14 The adjustment parameters are "direct light attenuation" and "ambient light attenuation". The shader reads the virtual object's data No. 0 through the "PerInstanceCustomData[0] node" and reads the virtual object's data No. 1 through the "PerInstanceCustomData[1] node", thereby reading two target adjustment values ​​from the hierarchical instantiated static mesh component. After the shader reads the two target adjustment values, it merges the target adjustment value of the adjustment parameter "direct light attenuation" with the direct light intensity to obtain the target direct light intensity, which is the target material influence parameter. It merges the target adjustment value of the adjustment parameter "ambient light attenuation" with the ambient light intensity to obtain the target ambient light intensity, which is the target material influence parameter.

[0146] It can be understood that when the virtual object is a virtual object corresponding to a distance less than the width, the data No. 0 and data No. 1 of the virtual object are two target adjustment values. When the virtual object is a virtual object corresponding to a distance equal to or greater than the width, the data No. 0 and data No. 1 of the virtual object have no specific values, that is, the read data No. 0 and data No. 1 are 0.

[0147] 11010. Update the initial virtual object according to the target material influence parameter to obtain the target virtual object.

[0148] In this embodiment, an initial virtual object for which a target adjustment value needs to be set is obtained in the editing tool, and a script for processing the initial virtual object is written in the editing tool, thereby solving the problem of being unable to write a script inside the HISM virtual object.

[0149] In an embodiment of the present application, through the custom data of the virtual object (the custom data is the target adjustment value) mechanism, it is possible to locally adjust the material performance of the virtual object without increasing the material of the virtual object, thereby avoiding the cumbersome process of creating and maintaining additional materials for the virtual object, significantly improving work efficiency, and at the same time, significantly reducing Draw Calls compared to the method of creating additional materials, thereby optimizing game performance. In addition, in this solution, flexibility is higher, which allows artists to quickly iterate and adjust the visual effects of virtual objects to meet different scene requirements. In addition, by using area selection objects, users can intuitively and accurately control which virtual objects require special material performance, making the visual effects of the scene richer and more realistic.

[0150] The specific implementation method and corresponding beneficial effects of this embodiment can be specifically referred to the above method embodiment, and this embodiment will not be described in detail here.

[0151] In order to better implement the above method, the embodiment of the present application also provides an object processing device, which can be integrated into an electronic device, such as a computer device, which can be a terminal, a server, or other device.

[0152] Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a personal computer and other devices; the server can be a single server or a server cluster composed of multiple servers.

[0153] For example, in this embodiment, the method of the embodiment of the present application is described in detail by taking the object processing device specifically integrated in the terminal as an example. This embodiment provides an object processing device, such as Fig.15 As shown, the object processing device may include:

[0154] The first display module 1501 is used to display a virtual scene through a graphical user interface, where the virtual scene includes a plurality of virtual objects.

[0155] The second display module 1502 is used to display the parameter editing panel of the editing tool in response to the adding operation of the virtual scene, and in response to the editing operation of the parameter editing panel, configure the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual object in the virtual object.

[0156] The adjustment processing module 1503 is used to adjust the material influence parameters of the initial virtual object in the virtual scene according to the target adjustment value to obtain the target material influence parameters of the initial virtual object.

[0157] The object updating module 1504 is used to update the initial virtual object according to the target material influence parameter to obtain the target virtual object.

[0158] In some embodiments, the second display module 1502 is specifically used to perform:

[0159] In response to an editing operation on the parameter editing panel, obtaining a target adjustment value of an adjustment parameter defined in the editing tool;

[0160] An initial virtual object among the virtual objects is determined, and an adjustment parameter and a target adjustment value of the adjustment parameter are configured for the initial virtual object.

[0161] In some embodiments, the graphical user interface further includes an asset window, and the second display module 1502 is further configured to execute:

[0162] In response to a drag operation on a region blueprint in the asset window, drag the region blueprint into the virtual scene to instantiate the region blueprint as a region selection object in the virtual scene, and the region selection object can be triggered to make adjustments in the virtual scene;

[0163] At least one virtual object in the area selection object is determined as an initial virtual object.

[0164] In some embodiments, the second display module 1502 is used to perform:

[0165] Get the center coordinates of the area selection object and the width of the area selection object;

[0166] determining a distance between the center position coordinates and the position coordinates of the virtual object;

[0167] At least one virtual object corresponding to a distance smaller than the width is determined as an initial virtual object, wherein the at least one virtual object corresponding to a distance smaller than the width is at least one virtual object in the area selection object.

[0168] In some embodiments, the virtual objects include multiple types, and the number of virtual objects of each type is multiple, and the second display module 1502 is used to execute:

[0169] Screening multiple virtual objects to obtain virtual objects of target types;

[0170] Determine the distance between the center position coordinates and the position coordinates of a virtual object of the target type.

[0171] In some embodiments, the region selection object is a sphere, and / or the region selection object includes an identifier, and the identifier is used to indicate the center position of the region selection object.

[0172] In some embodiments, the second display module 1502 is used to perform:

[0173] Run the target script provided by the editing tool through the game engine's script node to adjust parameters for the initial virtual object configuration;

[0174] Set the parameter value of the tuning parameter to the target tuning value.

[0175] In some embodiments, the adjustment processing module 1503 is specifically used to perform:

[0176] In response to configuring adjustment parameters for the initial virtual object, generating a parameter modification callback event in the game engine;

[0177] Based on the parameter modification callback event, the target adjustment value is transmitted to the hierarchical instanced static mesh component;

[0178] Reads target adjustment values ​​from hierarchical instanced static mesh components;

[0179] The material effect parameters for the initial virtual object in the virtual scene are adjusted according to the target adjustment value to obtain the target material effect parameters of the initial virtual object.

[0180] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0181] Accordingly, an embodiment of the present application further provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Fig.16 As shown, Fig.16A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1600 includes a processor 1601 having one or more processing cores, a memory 1602 having one or more computer-readable storage media, and a computer program stored in the memory 1602 and executable on the processor. The processor 1601 is electrically connected to the memory 1602. It will be understood by those skilled in the art that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

[0182] Processor 1601 is the control center of electronic device 1600. It uses various interfaces and lines to connect various parts of the entire electronic device 1600, executes various functions of electronic device 1600 and processes data by running or loading software programs and / or modules stored in memory 1602, and calling data stored in memory 1602, thereby monitoring electronic device 1600 as a whole.

[0183] In the embodiment of the present application, the processor 1601 in the electronic device 1600 will load instructions corresponding to the processes of one or more application programs into the memory 1602 according to the following steps, and the processor 1601 will run the application programs stored in the memory 1602 to implement various functions, such as:

[0184] Displaying a virtual scene through a graphical user interface, wherein the virtual scene includes a plurality of virtual objects;

[0185] In response to the adding operation on the virtual scene, displaying a parameter editing panel of the editing tool, and in response to the editing operation on the parameter editing panel, configuring the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual object in the virtual objects;

[0186] According to the target adjustment value, the material influence parameter of the initial virtual object in the virtual scene is adjusted to obtain the target material influence parameter of the initial virtual object;

[0187] The initial virtual object is updated according to the target material influence parameters to obtain the target virtual object.

[0188] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the object processing method above, which will not be elaborated here.

[0189] Optional, such as Fig.16As shown, the electronic device 1600 further includes: a touch screen 1603, a radio frequency circuit 1604, an audio circuit 1605, an input unit 1606, and a power supply 1607. The processor 1601 is electrically connected to the touch screen 1603, the radio frequency circuit 1604, the audio circuit 1605, the input unit 1606, and the power supply 1607, respectively. Those skilled in the art can understand that Fig.16 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0190] The touch display screen 1603 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1603 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-EmittingDiode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, 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 the touch point coordinates, and then sends it to the processor 1601, and can receive the command sent by the processor 1601 and execute it. 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 1601 to determine the type of touch event, and then the processor 1601 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1603 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1603 can also be used as a part of the input unit 1606 to realize the input function.

[0191] The radio frequency circuit 1604 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.

[0192] The audio circuit 1605 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 1605 can transmit the electrical signal converted from the received audio data to the speaker, which is converted 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 1605 and converted into audio data, and then the audio data is output to the processor 1601 for processing, and then sent to another electronic device through the radio frequency circuit 1604, or the audio data is output to the memory 1602 for further processing. The audio circuit 1605 may also include an earplug jack to provide communication between an external headset and an electronic device.

[0193] The input unit 1606 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0194] The power supply 1607 is used to supply power to various components of the electronic device 1600. Optionally, the power supply 1607 can be logically connected to the processor 1601 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 1607 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0195] although Fig.16 Not shown, the electronic device 1600 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0196] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0197] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0198] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute any object processing method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0199] Displaying a virtual scene through a graphical user interface, wherein the virtual scene includes a plurality of virtual objects;

[0200] In response to the adding operation on the virtual scene, displaying a parameter editing panel of the editing tool, and in response to the editing operation on the parameter editing panel, configuring the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual object in the virtual objects;

[0201] According to the target adjustment value, the material influence parameter of the initial virtual object in the virtual scene is adjusted to obtain the target material influence parameter of the initial virtual object;

[0202] The initial virtual object is updated according to the target material influence parameters to obtain the target virtual object.

[0203] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the object processing method above, which will not be elaborated here.

[0204] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0205] Since the computer program stored in the computer-readable storage medium can execute any object processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any object processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0206] The above is a detailed introduction to an object processing method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An object processing method, characterized in that: The method comprises: Displaying a virtual scene through a graphical user interface, wherein the virtual scene includes a plurality of virtual objects; In response to an adding operation on the virtual scene, a parameter editing panel of an editing tool is displayed, and in response to an editing operation on the parameter editing panel, an adjustment parameter defined in the editing tool and a target adjustment value of the adjustment parameter are configured for an initial virtual object among the virtual objects; According to the target adjustment value, adjusting the material influence parameter for the initial virtual object in the virtual scene to obtain the target material influence parameter of the initial virtual object; The initial virtual object is updated according to the target material influence parameter to obtain a target virtual object.

2. The object processing method according to claim 1, characterized in that: In response to the editing operation on the parameter editing panel, configuring the adjustment parameters defined in the editing tool and the target adjustment values ​​of the adjustment parameters for the initial virtual object among the virtual objects includes: In response to an editing operation on the parameter editing panel, obtaining a target adjustment value of an adjustment parameter defined in the editing tool; An initial virtual object among the virtual objects is determined, and the adjustment parameter and the target adjustment value of the adjustment parameter are configured for the initial virtual object.

3. The object processing method according to claim 2, characterized in that: The graphical user interface further includes an asset window, and before determining an initial virtual object among the virtual objects, further includes: In response to a drag operation on a region blueprint in the asset window, drag the region blueprint into the virtual scene to instantiate the region blueprint as a region selection object in the virtual scene, wherein the region selection object can be triggered to make adjustments in the virtual scene; Determining an initial virtual object among the virtual objects includes: At least one virtual object in the area selection object is determined as an initial virtual object.

4. The object processing method according to claim 3, characterized in that: The step of determining at least one virtual object in the region selection object as an initial virtual object comprises: Obtaining the center position coordinates of the area selection object and the width corresponding to the area selection object; determining a distance between the center position coordinates and the position coordinates of the virtual object; At least one virtual object corresponding to a distance smaller than the width is determined as an initial virtual object, wherein the at least one virtual object corresponding to a distance smaller than the width is at least one virtual object in the area selection object.

5. The object processing method according to claim 4, characterized in that: The virtual objects include multiple types, and the number of virtual objects of each type is multiple. The determining the distance between the center position coordinates and the position coordinates of the virtual objects includes: Screening the multiple virtual objects to obtain virtual objects of a target type; A distance between the center position coordinates and the position coordinates of a virtual object of the target type is determined.

6. The object processing method according to claim 3, characterized in that: The region selection object is a sphere, and / or the region selection object includes an identifier, and the identifier is used to indicate a center position of the region selection object.

7. The object processing method according to claim 2, characterized in that: The configuring the adjustment parameter and the target adjustment value of the adjustment parameter for the initial virtual object includes: Running the target script provided by the editing tool through the script node of the game engine to configure the adjustment parameters for the initial virtual object; The parameter value of the adjustment parameter is set as the target adjustment value.

8. The object processing method according to claim 7, characterized in that: The adjusting process of the material influence parameter for the initial virtual object in the virtual scene according to the target adjustment value to obtain the target material influence parameter of the initial virtual object includes: In response to configuring the adjustment parameter for the initial virtual object, generating a parameter modification callback event in the game engine; Based on the parameter modification callback event, transmitting the target adjustment value to the hierarchical instantiated static mesh component; Reading the target adjustment value from the hierarchical instanced static mesh component; The material effect parameters for the initial virtual object in the virtual scene are adjusted according to the target adjustment value to obtain the target material effect parameters of the initial virtual object.

9. An object processing device, characterized in that: The device comprises: A first display module, configured to display a virtual scene through a graphical user interface, wherein the virtual scene includes a plurality of virtual objects; a second display module, configured to display a parameter editing panel of an editing tool in response to an adding operation on the virtual scene, and to configure an adjustment parameter defined in the editing tool and a target adjustment value of the adjustment parameter for an initial virtual object among the virtual objects in response to an editing operation on the parameter editing panel; An adjustment processing module, configured to adjust the material influence parameter for the initial virtual object in the virtual scene according to the target adjustment value, so as to obtain the target material influence parameter for the initial virtual object; The object updating module is used to update the initial virtual object according to the target material influence parameter to obtain a target virtual object.

10. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the object processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the object processing method according to any one of claims 1 to 8.