Weather system editing method, device, system and equipment
By creating a weather system editing method in Unreal Engine, loading and setting weather components, the problem of scattered weather effect materials and inconsistent interfaces was solved, and the production efficiency and applicability of weather effects were improved.
Patent Information
- Application Number
- CN202010905379.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-01
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-09-01
AI Technical Summary
In Unreal Engine, weather effect materials are scattered and interfaces are inconsistent, resulting in low production efficiency of weather effects and making it difficult to directly import them into virtual scenes for use.
By creating a weather system editing method, loading weather components into weather files, setting weather parameters based on editing instructions, displaying weather effects, integrating weather components suitable for virtual scenes, and simplifying the production process of weather effects.
It improves the production efficiency of weather effects and reduces the time for obtaining and importing weather components. The output weather files are suitable for weather system rendering scenes in various service programs and electronic devices, and solves the problem of inconsistent interfaces.
Smart Images

Figure CN112037308B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a weather system editing method, device, system, and device. Background Art
[0002] At present, in the existing Unreal Engine (UE), in order to produce weather effects in virtual scenes, it usually takes a lot of time to find materials for weather effects. Taking weather effect materials as weather effect components as an example, weather effect components are scattered and it takes a lot of time to find or produce them, which reduces the production efficiency of weather effects.
[0003] Weather effect materials are often not directly used in the production process of virtual scenes. Taking the weather effect materials as weather effect components as an example, in the production process of weather effects, the interfaces of different weather effect components are inconsistent, so that weather effect components often cannot be directly imported into the virtual engine for application, which also reduces the production efficiency of weather effects.
[0004] In summary, how to improve the production efficiency of weather effects in virtual scenes has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] Embodiments of the present invention provide a weather system editing method and device, system, and equipment to improve the production efficiency of weather effects.
[0006] First aspect, an embodiment of the present invention provides a weather system editing method, the weather system editing method includes:
[0007] Create a weather file for editing a weather system. The weather file is loaded with a weather component, and the weather component corresponds to the weather effects in the weather system;
[0008] In response to the first editing instruction to the weather file, set the weather parameters of the weather component;
[0009] In response to the display instructions for the weather file, the weather system is rendered based on the weather file to display the weather effects of the weather system in the interface of the service program.
[0010] In one possible design, the method further includes: in response to a second editing instruction for the weather file, setting an applicable scope of the weather file in the virtual scene, where the applicable scope includes a spatial scope and / or a temporal scope.
[0011] In one possible design, in response to a second editing instruction for the weather file, the applicable scope of the weather file in the virtual scene is set, including: adding a weather effect processing box corresponding to the virtual scene to the weather file, the weather effect processing box is used to indicate the spatial scope in which the weather file is applicable in the virtual scene; in response to the second editing instruction, setting parameters of the weather effect processing box, wherein the parameters of the weather effect processing box include the priority of the weather effect processing box, and the spatial scope covered by the weather effect processing box.
[0012] In a possible design, after setting the applicable scope of the weather file in the virtual scene, it also includes: detecting whether there is an applicable weather file in the current virtual scene. If there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather unit file, the weather unit file is applied to the rendering engine through the weather driver module to render and display the weather effect corresponding to the current virtual scene in the service program interface; or if there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather cycle file, the weather driver module generates the weather unit file corresponding to the current time according to the current time and the start and end times in the time range, and the weather unit file corresponding to the current time is applied to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface.
[0013] In one possible design, creating a weather file for editing a weather system includes: creating a weather file in response to an instruction to create a weather file; and loading a weather component into the weather file according to a preset configuration rule.
[0014] In a possible design, before creating a weather file, it also includes: obtaining scene resources corresponding to the weather system, the scene resources include a sky ball model and a weather effect model; serializing the sky ball model and the weather effect model into weather system data, and the weather system data is used to configure the weather file.
[0015] In one possible design, a weather component is loaded into a weather file according to preset configuration rules, including: determining the weather component to be loaded; calling a weather driver module to register the controller of the weather component to be loaded into the weather file, and the controller of the weather component is used to apply the weather component to the rendering engine.
[0016] In one possible design, the method also includes: in response to an instruction to select a weather component, displaying a parameter setting area corresponding to the weather component in an interface of the service program, the parameter setting area including at least one control item, and the at least one control item corresponds to at least one parameter of the weather component.
[0017] In one possible design, the first editing instruction includes an editing operation on at least one control item.
[0018] In response to a first editing instruction for a weather file, setting weather parameters of a weather component includes: in response to an editing operation for at least one control item, setting corresponding weather parameters according to the editing operation.
[0019] In one possible design, in response to an editing operation on at least one control item, a corresponding weather parameter is set according to the editing operation, including: if control item i is an input bar, then in response to an input instruction on control item i, the weather parameter value corresponding to control item i is set according to the input value indicated by the input instruction; or if control item i is an operation control item, then in response to a selection instruction on control item i, a corresponding operation is triggered on the weather parameter corresponding to control item i, and the corresponding operation includes deletion, addition, saving, modification, and viewing; or if control item i is a data list, then in response to a selection instruction on control item i, the weather parameter corresponding to control item i is set according to the selection result of control item i; wherein control item i is any one of at least one control item.
[0020] In a second aspect, an embodiment of the present invention provides a weather system editing device, the weather system editing device comprising:
[0021] The weather control module is used to create a weather file for editing the weather system, the weather file is loaded with a weather component, and the weather component corresponds to the weather effect in the weather system; in response to a first editing instruction of the weather file, the weather parameters of the weather component are set; in response to a display instruction of the weather file, the weather driving module is called to render the weather effect of the weather system;
[0022] The weather driver module is used to render weather components based on weather files to display the weather effects of the weather system in the service program interface.
[0023] In one possible design, when the weather driving module sets the applicable scope of the weather file in the virtual scene according to the second editing instruction, it is specifically used to: add a weather effect processing box corresponding to the virtual scene to the weather file, and the weather effect processing box is used to indicate the spatial scope applicable to the weather file in the virtual scene; in response to the second editing instruction, set the parameters of the weather effect processing box, wherein the parameters of the weather effect processing box include the priority of the weather effect processing box, and the spatial scope covered by the weather effect processing box.
[0024] In a possible design, the weather driver module is also used to detect whether there is an applicable weather file in the current virtual scene after setting the applicable scope of the weather file in the virtual scene. If there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather unit file, the weather driver module applies the weather unit file to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface; or if there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather cycle file, the weather driver module generates the weather unit file corresponding to the current time according to the current time and the start and end times in the time range, and applies the weather unit file corresponding to the current time to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface.
[0025] In one possible design, when the weather control module creates a weather file for editing the weather system, it is specifically used to: create a weather file in response to an instruction to create a weather file; and load weather components in the weather file according to preset configuration rules.
[0026] In a possible design, the weather control module is also used to: before creating a weather file, obtain scene resources corresponding to the weather system, the scene resources include a sky ball model and a weather effect model; serialize the sky ball model and the weather effect model into weather system data, and the weather system data is used to configure the weather file.
[0027] In one possible design, when the weather control module loads the weather component in the weather file according to the preset configuration rules, it is specifically used to: determine the weather component to be loaded; call the weather driver module to register the controller of the weather component to be loaded into the weather file, and the controller of the weather component is used to apply the weather component to the rendering engine.
[0028] In one possible design, the weather control module is also used to respond to a selection instruction for a weather component, call the parameter adjustment module to set the weather parameters of the weather component, and call the display module to display the parameter setting area corresponding to the weather component in the interface of the service program, where the parameter setting area includes at least one control item, and the at least one control item corresponds to at least one parameter of the weather component.
[0029] In one possible design, the first editing instruction includes an editing operation on at least one control item.
[0030] When the parameter adjustment module sets the weather parameters of the weather component, it is specifically used to: respond to an editing operation on at least one control item and set the corresponding weather parameters according to the editing operation.
[0031] In a possible design, the parameter adjustment module responds to an edit operation on at least one control item, and when setting the corresponding weather parameter according to the edit operation, it is specifically used to: if control item i is an input bar, then in response to an input instruction on control item i, set the weather parameter value corresponding to control item i according to the input value indicated by the input instruction; or if control item i is an operation control item, then in response to a selection instruction on control item i, trigger a corresponding operation on the weather parameter corresponding to control item i, and the corresponding operation includes deletion, addition, saving, modification, and viewing; or if control item i is a data list, then in response to a selection instruction on control item i, set the weather parameter corresponding to control item i according to the selection result of control item i. Wherein, control item i is any one of the at least one control item.
[0032] In a third aspect, an embodiment of the present invention provides a weather system editing system, the weather system editing system comprising a first service program and a second service program, the first service program is loaded with a virtual scene, wherein
[0033] The second service program is used to create a weather file for editing the weather system, the weather file is loaded with a weather component, and the weather component corresponds to the weather effect in the weather system; in response to a first editing instruction of the weather file, the weather parameter of the weather component is set; in response to a display instruction of the weather file, the weather component is rendered based on the weather file to obtain a rendering result;
[0034] The first service program is used to establish a communication connection with the second service program; receive a rendering result through the communication connection; and display a weather effect of the weather system in a virtual scene based on the rendering result.
[0035] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the weather system editing method in the first aspect.
[0036] An embodiment of the present invention further provides a system, including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the weather system editing method described above.
[0037] An embodiment of the present invention provides a computer-readable medium on which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the weather system editing method described above.
[0038] In the technical solution provided by the embodiment of the present invention, first, a weather file for editing a weather system is created, and the weather file is loaded with a weather component, thereby realizing the integration of the weather component and shortening the time required to find and import the weather component. Since the weather component corresponds to the weather effect in the weather system, the weather parameters of the weather component can be set based on the editing instruction, thereby realizing the editing of the corresponding weather effect in the weather system. Finally, the display instruction of the weather file can render the weather system based on the weather file to display the weather effect of the weather system in the interface of the service program. In this technical solution, the weather components applicable to the weather system are integrated through the weather file, which effectively reduces the acquisition time of the weather component, and the weather effects of the weather system are edited by setting the weather parameters of the weather component, which facilitates the editing and production of the weather system and effectively improves the production efficiency of the weather effects.
[0039] In addition, through the integration of weather components, the final output weather file is essentially a set of weather parameters corresponding to various weather effects, which can be applied to weather system rendering scenes in various service programs and electronic devices. Therefore, this technical solution can also help overcome various problems encountered in porting from PC to mobile terminals. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A flow chart of a weather system editing method provided by one embodiment of the present invention;
[0042] Figure 2 A schematic diagram of the principle of a weather system editing process provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of the principle of another weather system editing process provided by an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of a weather effect of a weather system provided by an embodiment of the present invention;
[0045] Figure 5 A schematic diagram of the working process of a weather system editing system provided by one embodiment of the present invention;
[0046] Figure 6 A schematic diagram of the structure of a weather system editing device provided by an embodiment of the present invention;
[0047] Figure 7 For Figure 6 A schematic diagram of the structure of an electronic device corresponding to the weather system editing device provided in the illustrated embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0050] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0051] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0052] The weather system editing solution provided in the embodiment of the present invention can be executed by an electronic device, which can be a server. The server can be a physical server including an independent host, or a virtual server carried by a host cluster, or a cloud server. The electronic device can also be a terminal device such as a tablet computer, a PC, a laptop computer, etc.
[0053] The embodiment of the present invention provides a weather system editing system, which includes a first service program and a second service program.
[0054] Assuming that the first service program is loaded with a virtual scene, the electronic device can be implemented as a second service program for editing a weather system in the virtual scene. In fact, the weather system can be regarded as a system composed of multiple weather effects (such as clouds, wind, sky, sun, moon, etc.) working together.
[0055] The second service program can be connected to the first service program, and based on the second service program, the weather system of the virtual scene loaded by the first service program can be edited in real time, so as to edit and optimize the weather system of the virtual scene loaded by the first service program. Real-time editing here can be understood as real-time rendering and display of each frame image in the edited weather system of the virtual scene. Of course, the editing process can also be offline, which is not limited here.
[0056] In actual applications, the first service program is, for example, a virtual engine (such as UE4), a virtual scene editor, or a game editor, and the second service program is, for example, an application plug-in mounted to the first service program.
[0057] The weather system editing solution provided in the embodiment of the present invention is applicable to various weather effect production scenes, such as the production scene of a 24-hour weather system in a virtual scene. The virtual scene can be implemented in the form of a three-dimensional scene. Various virtual scenes are, for example, three-dimensional scenes in games and three-dimensional scenes in movies.
[0058] The execution process of the weather system editing method is described below in conjunction with the following embodiments.
[0059] Figure 1 A flow chart of a weather system editing method provided by an embodiment of the present invention is as follows Figure 1 As shown, the weather system editing method includes the following steps:
[0060] 101. Create a weather file for editing a weather system, wherein the weather file is loaded with a weather component, and the weather component corresponds to a weather effect in the weather system;
[0061] 102. In response to a first editing instruction for a weather file, setting weather parameters of a weather component;
[0062] 103. In response to the instruction to display the weather file, render the weather system based on the weather file to display the weather effects of the weather system in the interface of the service program.
[0063] The weather system editing method in this embodiment is applied to the second service program.
[0064] Assume that a virtual scene is loaded in the first service program. In order to edit and produce the weather system in the virtual scene, it is necessary to trigger the second service program to establish a communication connection with the first service program. Specifically, the first service program can display the weather system of the virtual scene.
[0065] In actual applications, the second service program is, for example, an extended function item integrated into the first service program, or an application plug-in mounted into the first service program.
[0066] For example, assuming that the first service program is a virtual engine and the second service program is an application plug-in. Optionally, before 101, the application plug-in is triggered to be pre-mounted on the virtual engine to establish a communication link between the application plug-in and the virtual engine. It is understandable that after the mounting is completed, the application plug-in has the ability to obtain data information managed by the virtual engine.
[0067] Of course, the first service program may also be a game client, or may be other service programs that can load virtual scenes.
[0068] Then, after the second service program mounted on the first service program is triggered, the second service program is started, and in 101, a weather file for editing the weather system is created through the second service program.
[0069] In actual applications, the weather component (Component) applicable to the weather system is loaded in the weather file. This helps to avoid the current problem of too scattered weather effect components and inconsistent interfaces of weather effect components, reduce the acquisition cost of weather components, and improve the acquisition efficiency of weather components.
[0070] Weather components correspond to weather effects in the weather system. Assuming there are multiple weather components, each weather component is a weather effect. For example, the sky component corresponds to the sky color effect, and the moon component corresponds to the moon effect. To edit a weather effect in the weather system, you need to load the weather component corresponding to the weather effect in the weather file corresponding to a certain point in time.
[0071] In fact, weather components can be regarded as a set of weather parameters corresponding to weather effects. For example, the moon component corresponding to the moon effect is composed of weather parameters such as moon position, moon attitude, and moon color. Weather files are composed of weather components, so weather files are essentially a set of weather parameters corresponding to various weather effects.
[0072] Optionally, a corresponding controller is provided for the weather component. The controller is mainly used to assign weather parameters in the weather component to corresponding objects (such as corresponding materials in the sky ball) so that the objects can be rendered based on these weather parameters later. The object is, for example, a material or a cloud in the sky ball. The material is, for example, wood, metal, or glass.
[0073] For example, assuming that the weather component is a sky component, the controller of the sky component can be used to assign the sky color in the sky component to the sky ball, and then the sky ball assigns the sky color to the corresponding sky ball material, so as to display the sky effect of the sky color in the weather system of the virtual scene.
[0074] Optionally, before creating the weather file in 101, obtain scene resources corresponding to the weather system, which include a sky ball model and a weather effect model; serialize the sky ball model and the weather effect model into weather system data, wherein the weather system data is used to configure the weather file.
[0075] It is further assumed that the first service program is a virtual engine, the second service program is an application plug-in, and the sky ball model is assumed to be a sky ball blueprint.
[0076] Based on the above assumptions, the scene resource setting process can be implemented as follows: after opening the virtual scene in the virtual engine, the sky ball blueprint (Blueprints, BP) of the weather system needs to be added to the virtual scene as the central BP of the weather system. The sky ball BP is named BP_XSky_Sphere_NoCycle, for example. Thus, on the basis of the sky ball BP, the BP of each weather effect model is added to the virtual scene. The BP of each weather effect model is, for example, the main light BP, the sky light BP, and the atmospheric fog BP. The sky ball material BP corresponds to the sky material (Sky Material) interface. Weather effect models such as wind BP, rain BP, and snow BP can also be added to the corresponding interfaces between the application plug-in and the virtual engine, such as the wind effect interface (Wind Actor), the rain effect interface (Rain Actor), and the snow effect interface (Sbow Actor). Specifically, in the specific setting process of Rain Actor, the corresponding weather effect BP (i.e., rain BP) needs to be copied or inherited to the corresponding project engineering, and the corresponding project dependencies are set according to the specific project. For example, according to the project settings, the corresponding curve control parameters (Curves), and the 24-hour rain effect management basic parameters (BP_RainManager_24Hour_Base) corresponding to the rain effect BP.
[0077] Among them, the blueprint is a visual script in the virtual engine. In other words, a graph that can be used to replace the traditional script can be constructed by means of nodes and connecting lines, which is convenient for reducing the difficulty of editing weather effects and improving the efficiency of weather effect production. Optionally, for atmospheric fog BP, the atmospheric fog parameters of the atmospheric scattering model can also be processed by pre-calculation to avoid the problem of high computing resource consumption and slow rendering speed after porting from the PC to the mobile terminal.
[0078] Then, after the scene resource setting process described above is implemented, the sky ball BP and each weather effect BP are serialized as weather system data in the form of JavaScript Object Notation (json) in the virtual engine, and the weather system data is stored in the specified path. The weather system data is mainly used for the initialization setting of the weather system. For example, the specified path can be a setting path in the virtual engine, such as "Content / Arts / TAEffect / WeatherData / WeatherCycle / / WeatherUnit".
[0079] In this way, the scene resource preparation work of the virtual scene can be completed through the above steps, which is convenient for executing the subsequent weather system editing steps.
[0080] After completing the scene resource preparation, in 101, creating a weather file for editing the weather system can be implemented as follows: creating a weather file in response to an instruction to create a weather file; loading weather components in the weather file according to preset configuration rules.
[0081] Among them, loading the weather component in the weather file according to the preset configuration rules can be implemented as follows: determining the weather component to be loaded; calling the weather driver module to register the controller of the weather component to be loaded into the weather file, and the controller of the weather component is used to apply the weather component to the rendering engine.
[0082] It is further assumed that the first service program is a virtual engine, the second service program is an application plug-in, and the sky ball model is assumed to be a sky ball blueprint.
[0083] In fact, you can open the application plug-in located in the toolbar, and select the "New Environment Unit" option in the interface of the application plug-in to issue a creation instruction for the weather file. Assume that the default setting in the application plug-in is to load all weather components for all weather files. Based on this, call the weather driver module to register the controllers of all weather components in the weather file, and set the corresponding parameters of the weather components in the application plug-in. In the interface of the application plug-in, hovering the mouse over the parameter corresponding to a certain weather component will have an interpretation of the parameter. Optionally, the weather components are provided with corresponding component curves, which are used to control the interpolation curves between different nodes in various time loops. The application plug-in also supports the replication of environment units and the replication of weather components. The weather driver module can be implemented as a weather driver (Weather Driver) class in the application plug-in.
[0084] In actual applications, the Weather Driver class is mainly responsible for the operation and management of the weather system, interaction with the first service program, creation and loading of weather files, weather system initialization, frame refresh (tick) and other functions.
[0085] Furthermore, after the weather file is created, in 102, the second service program sets the weather parameters of the weather component in response to the editing instruction of the weather file.
[0086] For the purpose of distinction, the editing instruction for triggering the weather parameter setting process is referred to as the first editing instruction. The first editing instruction includes, for example, a deletion instruction, a new addition instruction, a save instruction, a modification instruction, and a view instruction for the weather parameter.
[0087] Optionally, in response to the selection instruction of the weather component, the second service program displays a parameter setting area corresponding to the weather component in the interface of the second service program. The parameter setting area includes at least one control item, and the at least one control item corresponds to at least one parameter of the weather component.
[0088] Based on this, in an optional embodiment, the first editing instruction includes an editing operation on at least one control item. In 102, the second service program responds to the first editing instruction on the weather file and sets the weather parameters of the weather component, which can be implemented as: responding to the editing operation on at least one control item, setting the corresponding weather parameters according to the editing operation.
[0089] Still assume that the first service program is a virtual engine and the second service program is an application plug-in. Assume that the application plug-in displays a parameter setting area corresponding to the weather component. Assume that the parameter setting area corresponding to the weather component is as follows: Figure 2 As shown. Figure 2 In the weather component, the weather components include the cloud component (Cloud), the moon component (Moon), the sky component (Sky), and the sun component (Sun).
[0090] Taking the moon component as an example, Figure 2 , the weather parameters of the moon component include main light color, main light intensity, main light angle (three axes), moon disk angle (three axes), moon outline size, moon phase, moon intensity, moon color, moon angle, use user texture, and user texture preview.
[0091] Taking solar panels as an example, Figure 2 In the weather parameters of the solar component, the main light color, main light intensity, main light angle (three axes), sun disk color, sun disk angle (three axes), sun disk size, sun convergence size, and sun brightness.
[0092] Assume that the control item i is any one of the at least one control item. Based on this, the above-described "responding to the editing operation of at least one control item, setting the corresponding weather parameter according to the editing operation" can be implemented in the following forms:
[0093] Form 1: If the control item i is an input field, then in response to an input instruction to the control item i, the weather parameter value corresponding to the control item i is set according to the input value indicated by the input instruction.
[0094] by Figure 2 Taking the parameter setting area shown in FIG. 1 as an example, assuming that control item i is the input field corresponding to the intensity of the main light in the moon component, assuming that the value entered by the user is "3", the intensity of the main light is set to 3 (the unit can be customized according to the actual application scenario).
[0095] In another example, if the user clicks the "delete" operation control item corresponding to the cloud component, a query message is displayed to the user in the interface of the second service program, such as "Are you sure you want to delete Cloud (i.e., the cloud component)?" If the user selects "yes", the cloud component is deleted from the current weather file. If the user selects "no", the cloud component continues to be retained in the current weather file.
[0096] Form 2: If control item i is an operation control item, then in response to a selection instruction for control item i, a corresponding operation is triggered for the weather parameter corresponding to control item i, and the corresponding operations include deletion, addition, saving, modification, and viewing.
[0097] by Figure 2 Taking the parameter setting area shown as an example, assume that control item i is the "Delete" operation control item corresponding to the cloud component. Assuming that the user clicks the "Delete" operation control item corresponding to the cloud component, the cloud component will be deleted from the current weather file. In another example, assuming that the user clicks the "Delete" operation control item corresponding to the cloud component, an inquiry message will be displayed to the user in the interface of the second service program, such as "Please confirm whether to delete Cloud (i.e., cloud component)?". Assuming that the user selects "Yes", the cloud component will be deleted from the current weather file. Assuming that the user selects "No", the cloud component will continue to remain in the current weather file.
[0098] Form three: If the control item i is a data list, then in response to a selection instruction for the control item i, the weather parameter corresponding to the control item i is set according to the selection result of the control item i.
[0099] by Figure 2 Taking the parameter setting area shown in the figure as an example, assuming that the control item i is a data list corresponding to the user texture preview image in the moon component. Assuming that the user selects the current texture from multiple user texture preview images, the current texture is set as the moon texture, and the thumbnail of the current texture selected by the user is displayed in the preview window of the parameter setting area.
[0100] Optionally, after modifying each control item, you can also use the undo option of the control item to roll back to the state before modifying the control item. The undo option can be expressed as follows: Figure 2 The sky component shown corresponds to the small arrow on the right side of the control.
[0101] Optionally, in Figure 2 You can also click the triangle icon on the left side of each component name to collapse or expand the weather parameter control items corresponding to the component.
[0102] The above three forms can be used to set the weather parameters corresponding to the weather file according to the editing operation, thereby realizing the editing of the weather file. It is understandable that other control items or editing operations can also be used to set the weather parameters corresponding to the weather file. For example, a touch operation based on a slider in a device with a touch screen function.
[0103] It is also important to note that Figure 2 The parameter setting area and weather parameters shown in the figure are only examples, and the layout of the parameter setting area and weather parameters corresponding to the weather component in the embodiment of the present invention are not limited to this.
[0104] In addition to setting the weather parameters of the weather component, it is also necessary to set the applicable scope of the weather file in the virtual scene in response to the second editing instruction of the weather file. The applicable scope includes but is not limited to the spatial scope and / or the time range. The time range is, for example, from morning to noon. The applicable scope here can also be understood as the scope of action of the weather file in the virtual scene. In practical applications, the boundaries of the applicable scope can be set.
[0105] Specifically, in response to the second editing instruction for the weather file, setting the applicable scope of the weather file in the virtual scene can be implemented as follows: adding a weather effect processing box corresponding to the virtual scene to the weather file; and in response to the second editing instruction, setting the parameters of the weather effect processing box.
[0106] The weather effect processing box is used to indicate the spatial range in which the weather file is applicable in the virtual scene. For example, the spatial range in which the weather file is applicable is set according to the game map.
[0107] It is further assumed that the first service program is a virtual engine and the second service program is an application plug-in.
[0108] In the application plug-in, select the weather volume from the volume, bind the weather file to the selected weather volume, and then set the parameters of the weather volume in the weather volume parameter adjustment area of the application plug-in interface.
[0109] The weather effect processing box parameter adjustment area is as follows Figure 3 As shown. Figure 3In the description, the parameters of the weather effect processing box include but are not limited to the priority (Priority) of the weather effect processing box and the spatial range covered by the weather effect processing box. The spatial range covered by the weather effect processing box includes, for example, the location coordinates (Location) of the weather effect processing box, the three-axis rotation coordinates (Rotation), the vertex coordinates (Scale), and the blend radius (Blend Radius) of the weather effect processing box. For example, if the size of the weather effect processing box is 100 (units) * 100 (units) * 100 (units), then the blend radius of the weather effect processing box can be 100 (units). Optionally, the weather parameter value corresponding to the weather effect can be gradually changed from the center to the edge of the weather effect processing box through linear interpolation processing, so as to make a transition in the edge area of each weather effect processing box to improve the realism of the weather effect.
[0110] Of course, you can also set the properties of the weather effect processing box, such as the maximum blend weight of the weather effect processing box (Blend Weight), effect enable option (Enabled), global effect switch module (Infinite Extent), weather file identifier (Profile ID), cycle file option (Cycle Profile), and weather time refreshed per frame in the game (Cycle Delta Time). The unit of weather time refreshed per frame can be hours.
[0111] It should also be noted that Figure 3 The weather effect processing box parameter adjustment area and parameters shown in the figure are only examples, and the layout of the weather effect processing box parameter adjustment area and weather parameters in the embodiment of the present invention are not limited to this.
[0112] In fact, in an optional embodiment, the weather system configured in the weather effect processing box can also be set, such as setting the running speed of the weather system (relative to the virtual scene timeline), specifying weather files, specifying weather affected areas, etc.
[0113] It should be noted that the specific form of setting the parameters of the above-mentioned weather effect processing box can be similar to the specific form of the weather parameters corresponding to the above-mentioned setting control items. The similarities are referenced to each other and will not be expanded here.
[0114] Optionally, detect whether there is an applicable weather file in the current virtual scene. Assume that there is an applicable weather file in the current virtual scene, and assume that the weather file belongs to a weather unit file. Among them, the weather unit file (also called weather unit) describes the weather effect at a specific point in time or in a specific situation. Since the weather parameters described by the weather unit file do not change with the advancement of the timeline, based on the above assumptions, the weather unit file is directly applied (Apply) to the rendering engine through the weather driver module to render and display the weather effect corresponding to the current virtual scene in the service program interface.
[0115] The "apply" operation in this article can be understood as importing the weather file into the rendering engine, and triggering the rendering engine to render and display the weather effects of the weather system in the virtual scene based on the weather parameters provided by the weather file.
[0116] In another embodiment, it is assumed that there is an applicable weather file in the current virtual scene, and it is assumed that the weather file belongs to a weather cycle file. Among them, the weather cycle file is used to represent the weather changes in a specific time period. In fact, the weather cycle file is a collection of multiple weather units. Specifically, the weather cycle file is usually provided with weather effects at multiple key time points, as well as a change curve of the weather effects between multiple key time points. Since the weather parameters described by the weather cycle file change over time, based on the above assumptions, according to the current time and the start and end times in the time range, the weather unit file corresponding to the current time is generated by the weather driver module, and the weather unit file corresponding to the current time is applied to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface. Here, "changing over time" can be understood as the weather parameters changing as the timeline of the virtual scene advances.
[0117] For example, suppose a certain virtual scene m can be divided into n spatial regions. To facilitate the control of the global weather of the virtual scene m, a weather cycle file can be used to configure the global weather effect processing box of the virtual scene m, such as the day and night changes over 24 hours. The weather unit file can also be configured to any of the n spatial regions to form a weather effect processing box for the spatial region, so as to facilitate local control of the weather effects of the spatial region, such as rain, snow, and lightning. Optionally, the area size of the weather effect processing box of the spatial region can be adjusted by a zoom operation, wherein the zoom operation is, for example, sliding the mouse in a preset direction.
[0118] In an optional example, assuming that a morning weather effect is configured in a weather effect processing box of a certain spatial region k1, and assuming that a noon weather effect is configured in a global weather effect processing box. For the spatial region k1, the weather effect belonging to the time interval from morning to noon can be: the weather effect configured in the weather effect processing box of the spatial region k1 is transitioned to the weather effect configured in the global weather effect processing box through interpolation calculation.
[0119] Alternatively, in another optional example, the two weather effects may be interpolated based on the motion parameters such as the moving path of the character object. For example, when the character object moves from the spatial region k1 to another spatial region, the weather effect configured in the weather effect processing box of the spatial region k1 is transitioned to the weather effect configured in the global weather effect processing box through interpolation calculation and the motion parameters such as the moving path and moving speed of the character object.
[0120] Finally, in 103, in response to the display instruction of the weather file, the weather system is rendered based on the weather file to display the weather effects of the weather system in the interface of the service program.
[0121] In fact, the weather effect of the weather system displayed in step 103 can be executed by the first service program or the second service program.
[0122] Specifically, the display instruction may be an instruction to preview the weather file, or may be an instruction to play the weather file, or may be an instruction to adjust the weather file in real time.
[0123] For example, suppose that the user triggers the preview command in the second service program. Suppose that the weather effect includes the sun, sky, and clouds. Based on this, the second service program outputs the weather file to the first service program. After receiving the weather file, the first service program responds to the display command of the weather file, deserializes the weather file into a physical object in the virtual scene, and renders the physical object in the interface of the first service program, forming a Figure 4 Weather effects for the weather system shown.
[0124] The following is an explanation of the execution process of the above weather system editing method with reference to specific examples.
[0125] Assume that the first service program is a virtual engine, and the second service program is a plug-in with a weather system editing function.
[0126] Based on the above assumptions, the user mounts a plug-in with weather system editing function to the virtual engine and establishes a communication connection with the virtual engine. The user enters the plug-in interface and selects the "New Environment Unit" option in the plug-in to create an environment unit (i.e., the weather unit described above, which is used to achieve the corresponding weather effect at a specific time point or in a specific situation in the weather file). The parameter configuration area of the newly created environment unit will be displayed in the plug-in interface so that the user can configure the weather parameters of the environment unit.
[0127] Assume that the newly created environment unit is a "Morning" environment unit, which is used to realize the weather effect corresponding to the morning period in the weather file. The environment unit is loaded with cloud components (Cloud), moon components (Moon), sky components (Sky), sun components (Sun), star components (Star), and environment components (Environment). Taking the sky component as an example, the weather parameters of the sky component include weather change curve (Sky Curve), sky peak color (Sky Zenith Color), sky horizon color (Sky Horizon Color), sky horizon attenuation (Sky Horizon Flloff), sky tint (SkyTint Color), sky exposure (Sky Exposure), use custom sky (Use Custom Sky), use custom sky color (Use Custom Sky Color), and custom sky bounding box (Custom Sky Cubemap). The plug-in responds to the user's first editing instruction for the weather file and sets the weather parameters of the above weather components. Still taking the sky component as an example, the plug-in responds to the user's input operation on the sky horizon attenuation control item and the sky exposure control item, and sets the sky horizon attenuation to 6, for example, and the sky exposure to 1, for example. Optionally, the environment unit and the weather component can be copied. An interpolation curve can be set for each weather component, and the interpolation curve is used to control the interpolation of weather parameters during the transition between two environmental units.
[0128] After setting the weather parameters of the weather component in the plug-in, you can also configure the start and end time points of each environmental unit in the weather cycle. Specifically, assume that a total of 6 environmental units are configured through the above steps. Assume that the identifications of the 6 environmental units are 1011, 1001, 1002, 1003, 1012, and 1004, respectively. Assume that the environmental units identified as 1011, 1001, 1002, 1003, 1012, and 1004 are respectively "Dawn (BeforeMorning)" environmental unit, "Morning" environmental unit, "Noon (Noon)" environmental unit, "Dusk (Dusk)" environmental unit, "After Dusk (AfterDusk)" environmental unit, and "Night (Night)" environmental unit. Based on the above assumptions, the start and end time points of each of the 6 environmental units in the weather cycle are set in the cycle setting column (Cycle Rows), thereby configuring a 24-hour weather cycle file (the weather file is identified as DayNightCycle). Optionally, the intervals between the start and end time points of each environment unit can be set to be non-uniform. For example, according to the area where the virtual scene is located and other attributes of the virtual scene, the time period between the start and end time points of each environment unit in the weather cycle file can be set to be non-uniform. If the virtual scene is in winter, the start and end time of the "dawn" environment unit and the "morning" environment unit will be delayed, and the start and end time points of the "dusk" environment unit and the "after dusk" environment unit will be advanced, so that the time period occupied by the several environment units corresponding to the daytime is shortened, and the time period occupied by the "evening" environment unit is extended.
[0129] Furthermore, in the plug-in interface, the user can also check the preview box in the plug-in interface to trigger the display instruction of the 24-hour weather cycle file, so as to render the weather effect corresponding to the 24-hour weather cycle file in the virtual engine interface, so that the user can view the execution effect of the 24-hour weather cycle file. For the cyclic weather file, the plug-in automatically configures the rendering order of the environmental unit according to the set start and end time points of the environmental unit. Optionally, the user can drag the sliding bar above the cycle setting bar to preview the weather effect at the corresponding time point. Alternatively, the user can also check the debugging box of the plug-in so that the parameters of the 24-hour weather cycle file can be adjusted in the process of displaying the weather effect in the virtual engine interface, and the parameter adjustment results can be rendered in real time in the virtual engine interface, so that the user can view the weather effect of the 24-hour weather cycle file in real time in the virtual engine interface. After completing the debugging, you can click the save option of the plug-in to save the weather file.
[0130] Figure 1During the execution of the weather system editing method shown, first, a weather file for editing the weather system is created, and the weather file is loaded with a weather component, thereby realizing the integration of the weather component and shortening the time required to find and import the weather component. Since the weather component corresponds to the weather effect in the weather system, in response to the editing instruction of the weather file, the weather parameters of the weather component are set, and the corresponding weather effect can be edited by setting the weather parameters of the weather component. Finally, in response to the display instruction of the weather file, the weather system is rendered based on the weather file to display the weather effect of the weather system in the interface of the service program. In this technical solution, the weather component applicable to the weather system is integrated through the weather file, which effectively reduces the acquisition time of the weather component, and the weather effect of the weather system is edited by setting the weather parameters of the weather component, which is convenient for the editing and production of the weather system, and effectively improves the production efficiency of the weather effect. In addition, through the integration of the weather component, the weather file finally output is essentially a set of weather parameters corresponding to various weather effects, which can be applied to the weather system rendering scenes in various service programs and electronic devices, so the method also helps to overcome various problems encountered in the transplantation of the PC end to the mobile end.
[0131] Figure 5 The following is a schematic diagram of the working process of a weather system editing system provided by an embodiment of the present invention. Figure 5 As shown, the weather system editing system includes a first service program and a second service program, and the first service program is loaded with a virtual scene. The working process includes the following steps:
[0132] 501. The second service program creates a weather file for editing the weather system, wherein the weather file is loaded with a weather component, and the weather component corresponds to a weather effect in the weather system;
[0133] 502. The second service program sets weather parameters of the weather component in response to the first editing instruction of the weather file;
[0134] 503. The second service program renders the weather component based on the weather file in response to the display instruction of the weather file to obtain a rendering result;
[0135] 504. The first service program establishes a communication connection with the second service program;
[0136] 505. The first service program receives the rendering result through the communication connection;
[0137] 506. The first service program displays the weather effect of the weather system in the virtual scene based on the rendering result.
[0138] In actual applications, step 506 may also be executed by the second service program.
[0139] It should be noted that Figure 5 The working process of the weather system editing system shown is the same as above. Figure 1 The execution process of the weather system editing method shown is similar, and the similarities are not repeated here.
[0140] The weather system editing device of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these weather system editing devices can be configured using commercially available hardware components through the steps taught in this solution.
[0141] Figure 6 A schematic diagram of the structure of a weather system editing device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the weather system editing device includes: a weather control module 11 and a weather driving module 12.
[0142] The weather control module 11 is used to create a weather file for editing the weather system, wherein the weather file is loaded with a weather component, and the weather component corresponds to the weather effect in the weather system; in response to a first editing instruction of the weather file, the weather parameter of the weather component is set; in response to a display instruction of the weather file, the weather driving module is called to render the weather effect of the weather system;
[0143] The weather driving module 12 is used to render the weather component based on the weather file so as to display the weather effect of the weather system in the interface of the service program.
[0144] Optionally, the weather control module 11 is further configured to call the weather effect processing driving module in response to a second editing instruction for the weather file;
[0145] The weather driving module 12 is further used to set the applicable scope of the weather file in the virtual scene according to the second editing instruction, and the applicable scope includes a spatial scope and / or a temporal scope.
[0146] Optionally, when the weather driving module 12 sets the applicable scope of the weather file in the virtual scene according to the second editing instruction, it is specifically used to: add a weather effect processing box corresponding to the virtual scene to the weather file, the weather effect processing box is used to indicate the spatial scope applicable to the weather file in the virtual scene; in response to the second editing instruction, set the parameters of the weather effect processing box, wherein the parameters of the weather effect processing box include the priority of the weather effect processing box, and the spatial range covered by the weather effect processing box.
[0147] Optionally, the weather driver module 12 is also used to detect whether there is an applicable weather file in the current virtual scene after setting the applicable scope of the weather file in the virtual scene. If there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather unit file, the weather driver module 12 applies the weather unit file to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface; or if there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather cycle file, the weather driver module 12 generates the weather unit file corresponding to the current time according to the current time and the start and end times in the time range, and applies the weather unit file corresponding to the current time to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface.
[0148] Optionally, when the weather control module 11 creates a weather file for editing the weather system, it is specifically used to: create a weather file in response to an instruction to create a weather file; and load a weather component in the weather file according to preset configuration rules.
[0149] Optionally, the weather control module 11 is also used to: before creating a weather file, obtain scene resources corresponding to the weather system, the scene resources including a sky ball model and a weather effect model; serialize the sky ball model and the weather effect model into weather system data, and the weather system data is used to configure the weather file.
[0150] Optionally, when the weather control module 11 loads the weather component in the weather file according to the preset configuration rules, it is specifically used to: determine the weather component to be loaded; call the weather driver module 12 to register the controller of the weather component to be loaded into the weather file, and the controller of the weather component is used to apply the weather component to the rendering engine.
[0151] Optionally, the weather control module 11 is also used to respond to a selection instruction for a weather component, call the parameter adjustment module to set the weather parameters of the weather component, and call the display module to display a parameter setting area corresponding to the weather component in the interface of the service program, the parameter setting area including at least one control item, and at least one control item corresponds to at least one parameter of the weather component.
[0152] Optionally, the first editing instruction includes an editing operation on at least one control item.
[0153] When the parameter adjustment module sets the weather parameters of the weather component, it is specifically used to: respond to an editing operation on at least one control item and set the corresponding weather parameters according to the editing operation.
[0154] Optionally, the parameter adjustment module responds to an edit operation on at least one control item, and when setting the corresponding weather parameter according to the edit operation, is specifically used to: if control item i is an input bar, then in response to an input instruction on control item i, set the weather parameter value corresponding to control item i according to the input value indicated by the input instruction; or if control item i is an operation control item, then in response to a selection instruction on control item i, trigger a corresponding operation on the weather parameter corresponding to control item i, and the corresponding operation includes deletion, addition, saving, modification, and viewing; or if control item i is a data list, then in response to a selection instruction on control item i, set the weather parameter corresponding to control item i according to the selection result of control item i. Wherein, control item i is any one of the at least one control item.
[0155] Figure 6 The weather system editing device shown can execute the methods provided in the aforementioned embodiments. For the parts not described in detail in this embodiment, please refer to the relevant description of the aforementioned embodiments and will not be repeated here.
[0156] In one possible design, the above Figure 6 The structure of the weather system editing device shown can be implemented as an electronic device. Figure 7 As shown, the electronic device may include: a processor 21 and a memory 22. The memory 22 stores executable code, and when the executable code is executed by the processor 21, the processor 21 can at least implement the weather system editing method provided in the above embodiment. The structure of the electronic device may also include a communication interface 23 for communicating with other devices or communication networks.
[0157] In addition, an embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a wireless router, the processor executes the weather system editing method provided in the aforementioned embodiments.
[0158] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.
[0159] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution can essentially or contribute to the part in the form of a computer product, and the present invention can be implemented in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A weather system editing method, characterized in that: The method is applicable to a service program, and the method comprises: Creating a weather file for editing the weather system, wherein the weather file is loaded with weather components corresponding to weather effects in the weather system; In response to a first editing instruction of the weather file, setting weather parameters of the weather component; In response to a display instruction for the weather file, rendering the weather system based on the weather file to display the weather effect of the weather system in the interface of the service program; The method further comprises: in response to a selection instruction for the weather component, displaying a parameter setting area corresponding to the weather component in an interface of the service program, wherein the parameter setting area includes at least one control item, and the at least one control item corresponds to at least one parameter of the weather component; The first editing instruction includes an editing operation on the at least one control item; The step of setting the weather parameters of the weather component in response to the first editing instruction of the weather file comprises: If the control item i is an input field, in response to an input instruction to the control item i, a weather parameter value corresponding to the control item i is set according to an input value indicated by the input instruction; or If the control item i is an operation control item, in response to a selection instruction for the control item i, a corresponding operation is triggered for the weather parameter corresponding to the control item i, and the corresponding operation includes deletion, addition, saving, modification, and viewing; or If the control item i is a data list, in response to a selection instruction for the control item i, the weather parameter corresponding to the control item i is set according to the selection result of the control item i; Wherein, the control item i is any one of the at least one control item; Also includes: In response to a second editing instruction for the weather file, setting an applicable scope of the weather file in the virtual scene, the applicable scope including a spatial scope and / or a temporal scope; Detect whether there is an applicable weather file in the current virtual scene; If there is an applicable weather file for the current virtual scene, and the weather file is a weather unit file, the weather unit file is applied to the rendering engine through the weather driver module to render and display the weather effect corresponding to the current virtual scene in the service program interface; or If there is an applicable weather file in the current virtual scene and the weather file belongs to a weather cycle file, a weather unit file corresponding to the current time is generated by a weather driver module according to the current time and the start and end times in the time range, and the weather unit file corresponding to the current time is applied to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface.
2. The method according to claim 1, characterized in that The step of setting the applicable scope of the weather file in the virtual scene in response to the second editing instruction for the weather file includes: Adding a weather effect processing box corresponding to the virtual scene in the weather file, the weather effect processing box is used to indicate the spatial range in which the weather file is applicable in the virtual scene; In response to the second editing instruction, the parameters of the weather effect processing box are set, wherein the parameters of the weather effect processing box include the priority of the weather effect processing box and the spatial range covered by the weather effect processing box.
3. The method according to claim 1, characterized in that: The creating of a weather file for editing the weather system comprises: In response to an instruction to create the weather file, create the weather file; The weather component is loaded in the weather file according to a preset configuration rule.
4. The method according to claim 3, characterized in that Before creating the weather file, the invention also includes: Acquire scene resources corresponding to the weather system, wherein the scene resources include a sky ball model and a weather effect model; The sky ball model and the weather effect model are serialized into weather system data, and the weather system data is used to configure the weather file.
5. The method according to claim 3, characterized in that: The step of loading the weather component in the weather file according to a preset configuration rule comprises: Determining the weather component to be loaded; The weather driver module is called to register the controller of the weather component to be loaded into the weather file, and the controller of the weather component is used to apply the weather component to the rendering engine.
6. A weather system editing device, characterized in that: The device comprises: A weather control module is used to create a weather file for editing the weather system, wherein the weather file is loaded with a weather component, and the weather component corresponds to the weather effect in the weather system; in response to a first editing instruction for the weather file, the weather parameter of the weather component is set; in response to a display instruction for the weather file, the weather driving module is called to render the weather effect of the weather system; The weather driving module is used to render the weather component based on the weather file to display the weather effect of the weather system in the interface of the service program; The weather control module is further used to respond to the selection instruction of the weather component, call the parameter adjustment module to set the weather parameters of the weather component, and call the display module to display the parameter setting area corresponding to the weather component in the interface of the service program, the parameter setting area includes at least one control item, and the at least one control item corresponds to at least one parameter of the weather component; The first editing instruction includes an editing operation on at least one control item; when the parameter adjustment module responds to the editing operation on at least one control item and sets the corresponding weather parameter according to the editing operation, it is specifically used to: if the control item i is an input field, then in response to the input instruction on the control item i, set the weather parameter value corresponding to the control item i according to the input value indicated by the input instruction; or if the control item i is an operation control item, then in response to the selection instruction on the control item i, trigger a corresponding operation on the weather parameter corresponding to the control item i, and the corresponding operation includes deletion, addition, saving, modification, and viewing; or if the control item i is a data list, then in response to the selection instruction on the control item i, set the weather parameter corresponding to the control item i according to the selection result of the control item i; wherein the control item i is any one of the at least one control item; The weather driving module is also used to set the applicable scope of the weather file in the virtual scene in response to the second editing instruction of the weather file, and the applicable scope includes a spatial scope and / or a time range; detect whether there is an applicable weather file in the current virtual scene; if there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather unit file, the weather driving module applies the weather unit file to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface; or if there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather cycle file, the weather driving module generates a weather unit file corresponding to the current time according to the current time and the start and end times in the time range, and applies the weather unit file corresponding to the current time to the rendering engine to render and display the weather effect corresponding to the current virtual scene in the service program interface.
7. A weather system editing system, characterized in that: The editing system includes a first service program and a second service program, wherein the first service program is loaded with a virtual scene, wherein: The second service program is used to create a weather file for editing the weather system, wherein the weather file is loaded with a weather component, and the weather component corresponds to a weather effect in the weather system; in response to a first editing instruction for the weather file, setting a weather parameter of the weather component; in response to a display instruction for the weather file, rendering the weather component based on the weather file to obtain a rendering result; The second service program is further configured to display a parameter setting area corresponding to the weather component in an interface of the service program in response to a selection instruction for the weather component, wherein the parameter setting area includes at least one control item corresponding to at least one parameter of the weather component; The first editing instruction includes an editing operation on the at least one control item; the second service program is specifically used for, if the control item i is an input field, responding to the input instruction of the control item i, setting the weather parameter value corresponding to the control item i according to the input value indicated by the input instruction; or if the control item i is an operation control item, responding to the selection instruction of the control item i, triggering a corresponding operation on the weather parameter corresponding to the control item i, the corresponding operation includes deletion, addition, saving, modification, and viewing; or if the control item i is a data list, responding to the selection instruction of the control item i, setting the weather parameter corresponding to the control item i according to the selection result of the control item i; wherein the control item i is any one of the at least one control item; The second service program is also used to set the applicable scope of the weather file in the virtual scene in response to the second editing instruction for the weather file, and the applicable scope includes a spatial scope and / or a time range; detect whether there is an applicable weather file in the current virtual scene; if there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather unit file, apply the weather unit file to the rendering engine through the weather driving module, so as to render and display the weather effect corresponding to the current virtual scene in the service program interface; or if there is an applicable weather file in the current virtual scene, and the weather file belongs to a weather cycle file, generate the weather unit file corresponding to the current time through the weather driving module according to the current time and the start and end times in the time range, and apply the weather unit file corresponding to the current time to the rendering engine, so as to render and display the weather effect corresponding to the current virtual scene in the service program interface; The first service program is used to establish a communication connection with the second service program; receive a rendering result through the communication connection; and display the weather effect of the weather system in the virtual scene based on the rendering result.
8. An electronic device, characterized in that: include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the weather system editing method as described in any one of claims 1 to 5.
9. A computer-readable medium, characterized in that At least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the weather system editing method according to any one of claims 1 to 5.
