Sky environment control method and apparatus, terminal and storage medium
By providing a sky environment control interface in the UGC editor, users can configure the transformation signal and environment parameters to automatically change the sky environment in the virtual scene, solving the problem of insufficient flexibility in sky environment control in the existing technology and achieving higher operational convenience and flexibility.
Patent Information
- Application Number
- PCT/CN2024/107460
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-25
- Filing Date
- 2024-07-25
- Publication Date
- 2025-04-03
AI Technical Summary
In the prior art, the sky environment control flexibility in virtual scenes is poor, and users need to readjust the sky environment parameters to achieve changes.
By providing a sky environment control interface in the UGC editor, users can configure transformation signals and environment parameters to automatically transform the sky environment in the virtual scene to the environment specified by the user.
It improves users' operability and control flexibility for the sky environment. Users can freely configure the transformation timing and environment, realize automated transformation, and simplify the operation process.
Smart Images

Figure CN2024107460_03042025_PF_FP_ABST
Abstract
Description
Sky environment control method, device, terminal and storage medium
[0001] This application claims priority to the Chinese patent application filed on September 25, 2023, with application number 202311248098.8 and invention name “Sky environment control method, device, terminal and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of computer technology, and in particular to a sky environment control method, device, terminal, and storage medium. Background Art
[0003] User-generated content (UGC) refers to user-generated content shared online. In the gaming field, designers encourage user participation in the design of virtual scenes by providing in-game UGC editing capabilities. These virtual scenes include a variety of sky environments, such as a clear daytime sky or a starry night sky.
[0004] Typically, whenever a user wants to change the sky environment in a virtual scene, the parameters of the sky environment need to be readjusted, so the sky environment control method has poor flexibility.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a method, device, terminal, and storage medium for controlling a sky environment. The technical solution is as follows:
[0007] In one aspect, a sky environment control method is provided, the method being executed by a terminal, the method comprising:
[0008] Displaying a sky environment control interface in the UGC editor, wherein the sky environment control interface is used to control the sky environment in the virtual environment;
[0009] Based on the sky environment transformation operation in the sky environment control interface, obtaining a transformation signal and a first environment parameter corresponding to the transformation signal;
[0010] In response to the transformation signal triggered in the virtual scene, the current sky environment in the virtual scene is transformed to the sky environment indicated by the first environmental parameter.
[0011] In another aspect, a sky environment control device is provided, the device comprising:
[0012] A first display module is used to display a sky environment control interface in the UGC editor, where the sky environment control interface is used to control the sky environment in the virtual environment;
[0013] A first acquisition module is configured to acquire a transformation signal and a first environment parameter corresponding to the transformation signal based on a sky environment transformation operation in the sky environment control interface;
[0014] The sky environment transformation module is configured to transform the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in response to the transformation signal triggered in the virtual scene.
[0015] On the other hand, a terminal is provided, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the sky environment control method as described in the above aspects.
[0016] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the operations performed by the sky environment control method as described in the above aspects.
[0017] On the other hand, a computer program product is provided, including a computer program, wherein the computer program is loaded and executed by a processor to implement the operations performed by the sky environment control method as described in the above aspects.
[0018] In the solution provided by the embodiment of the present application, the UGC editor integrates the function of controlling the sky environment in the virtual scene into the sky environment control interface. Users can configure the transformation signal and environmental parameters in the sky environment control interface. When the transformation signal is triggered in the virtual scene, the sky environment in the virtual scene is automatically transformed to the sky environment indicated by the environmental parameters. In other words, the user can freely configure the timing of the sky environment transformation and the type of sky environment to be transformed to, so that the sky environment is automatically transformed when the transformation timing is met, improving the user's operability of the sky environment and thereby increasing the flexibility of controlling the sky environment. In addition, the user can configure the transformation signal and environmental parameters by operating in the sky environment control interface, without having to layout the relevant components in the virtual scene, which improves the convenience of controlling the sky environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0020] FIG2 is a flow chart of a sky environment control method provided in an embodiment of the present application;
[0021] FIG3 is a flow chart of a sky environment control method provided in an embodiment of the present application;
[0022] FIG4 is a schematic diagram of a transformation event editing sub-interface provided in an embodiment of the present application;
[0023] FIG5 is a schematic diagram of another transformation event editing sub-interface provided in an embodiment of the present application;
[0024] FIG6 is a schematic diagram of another transformation event editing sub-interface provided in an embodiment of the present application;
[0025] FIG7 is a schematic diagram of another transformation event editing sub-interface provided in an embodiment of the present application;
[0026] FIG8 is a schematic diagram of another transformation event editing sub-interface provided in an embodiment of the present application;
[0027] FIG9 is a schematic diagram of another transformation event editing sub-interface provided in an embodiment of the present application;
[0028] FIG10 is a schematic diagram of a virtual scene provided in an embodiment of the present application;
[0029] FIG11 is a schematic diagram of another transformation event editing sub-interface provided in an embodiment of the present application;
[0030] FIG12 is a schematic diagram of another transformation event editing sub-interface provided in an embodiment of the present application;
[0031] FIG13 is a schematic diagram of another virtual scene provided in an embodiment of the present application;
[0032] FIG14 is a flow chart of another sky environment control method provided in an embodiment of the present application;
[0033] FIG15 is a schematic diagram of the processing logic of an animation-driven timer provided in an embodiment of the present application;
[0034] FIG16 is a flowchart of another sky environment control method provided in an embodiment of the present application;
[0035] FIG17 is a flowchart of another sky environment control method provided in an embodiment of the present application;
[0036] FIG18 is a flowchart of a signal control method in a virtual scene provided by an embodiment of the present application;
[0037] FIG19 is a flowchart of a method for controlling a transformation event provided by an embodiment of the present application;
[0038] FIG20 is a schematic diagram of another sky environment control interface provided in an embodiment of the present application;
[0039] FIG21 is a flow chart of another sky environment control method provided in an embodiment of the present application;
[0040] FIG22 is a schematic diagram of a sky environment editing sub-interface provided in an embodiment of the present application;
[0041] FIG23 is a schematic diagram of another sky environment editing sub-interface provided in an embodiment of the present application;
[0042] FIG24 is a system architecture diagram of a sky environment control method provided in an embodiment of the present application;
[0043] FIG25 is a flowchart of another sky environment control method provided in an embodiment of the present application;
[0044] FIG26 is a schematic structural diagram of a sky environment control device provided in an embodiment of the present application;
[0045] FIG27 is a schematic structural diagram of another sky environment control device provided in an embodiment of the present application;
[0046] Figure 28 is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0048] It is understood that the terms "first," "second," and the like used herein may be used to describe various concepts herein, but unless otherwise specified, these concepts are not limited by these terms. These terms are merely used to distinguish one concept from another. For example, a first environmental parameter may be referred to as a second environmental parameter, and similarly, a second environmental parameter may be referred to as a first environmental parameter without departing from the scope of this application.
[0049] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all fully authorized by users or relevant parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0050] First, let’s introduce the relevant terms involved in this application:
[0051] User-generated content (UGC) refers to user-generated content shared online. In the gaming industry, designers encourage user participation in the design of game content, including level maps, gameplay, and ecosystems, by providing in-game UGC editing capabilities. This user-driven design enhances user engagement and enriches game content, further satisfying personalized needs.
[0052] A virtual scene is a virtual scene displayed (or provided) when the client is running on a terminal. This virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional scene, or a purely fictional scene. This application does not limit this to any of the following: a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The following embodiments illustrate a three-dimensional virtual scene.
[0053] Weather environment: This includes elements such as a sky background, sky lighting, and other elements used to simulate real-world sky conditions, thereby presenting realistic sky conditions in the virtual scene. For example, a virtual environment may present a cloudy sky, a clear sky, a sunset sky, a rainy sky, or a night sky, though this embodiment does not limit this.
[0054] The sky background can be implemented using a sky sphere or skybox, with a background map rendered onto the background model as the background of the virtual scene. Skylight is a general term for light sources in the sky of a virtual scene, including directional light sources and skylights. Directional light sources refer to light sources with a specific illumination direction, while skylights refer to skylights. Skylights capture distant parts of the virtual scene and apply them as light sources to the virtual scene. Skylights can be static, fixed, or movable.
[0055] In the embodiment of the present application, the sky environment in the virtual scene supports user customization, including sky background customization and sky lighting customization.
[0056] Change Signal: In the embodiments of the present application, a change signal refers to a signal used to trigger a switch in the sky environment. In some embodiments, the change signal is triggered under specific conditions. These conditions may include receiving a specific manual trigger operation, receiving a specific voice message, or the occurrence of a specific event in the virtual scene.
[0057] In this embodiment of the present application, the transformation signal can be customized by the user, and the transformation signal and the environmental parameters of the sky environment constitute a sky environment switching event. Based on the created sky environment switching event, when the transformation signal is triggered, the sky environment can be switched based on the environmental parameters corresponding to the transformation signal.
[0058] FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. As shown in FIG1 , the implementation environment includes a terminal 101 and a server 102. Terminal 101 and server 102 are directly or indirectly connected via wired or wireless communication. FIG1 only uses the connection between server 102 and terminal 101 as an example. In addition, server 102 can be connected to other terminals.
[0059] Optionally, the terminal 101 is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart TV, a smart watch, a laptop computer, an e-book reader, an electronic game console, or a handheld portable game device, etc., but is not limited thereto. The server 102 is an independent physical server, or the server 102 is a server cluster or a distributed system composed of multiple physical servers.
[0060] Optionally, terminal 101 includes a memory and a processor; the memory may include one or more computer-readable storage media, and an operating system and game applications are installed in the memory. Game applications can be any of the following: level-based games, casual competitive games, MMOGs (Massive Multiplayer Online Games), chess and card games, MOBAs (Multiplayer Online Battle Arenas), SLGs (Simulation Games), virtual reality applications, 3D mapping programs, FPSs (First-Person Shooting Games), and multiplayer survival games. The operating system is the foundational software that provides secure access to computer hardware for game applications. The operating system supports the downloading, installation, and running of game applications.
[0061] Optionally, the server 102 is a game server, and the terminal 101 is provided with a game application provided by the server 102, and the terminal 101 interacts with the server 102 through the game application. The server 102 provides a virtual scene for the terminal 101, and the terminal 101 can display a virtual scene interface, etc. through the virtual scene provided by the server 102, and the terminal 101 can control the virtual scene based on the virtual scene interface. The server 102 is used to perform background processing according to the control of the virtual scene by the terminal 101, and provides background support for the terminal 101. Of course, the virtual scene can also be provided by the game application in the terminal 101, that is, the terminal 101 can also display the virtual scene interface without the help of the server 102 (such as stand-alone mode).
[0062] The game application includes a user-generated content editor (UGC) that allows users to customize virtual scenes and edit, save, and publish them. When editing virtual scenes, users can use virtual objects to build different virtual scenes and change the environment within them, such as the weather, sky, or terrain. Users use terminal 101 to save the virtual scene in progress or after editing it. Optionally, terminal 101 uploads the saved virtual scene information to server 102; alternatively, terminal 101 provides the virtual scene information to the game application.
[0063] In some embodiments, terminal 101 can edit a sky environment change event locally and apply it only locally. Alternatively, terminal 101 can upload the edited sky environment change event to server 102, which then distributes the sky environment change event to other terminals for use. Other terminals can be terminals with a social relationship with the current terminal, terminals designated by the current terminal, or terminals in the same game, though this embodiment does not limit this.
[0064] The sky environment control method provided in the embodiment of the present application can be applied to any scenario of controlling the sky environment in a virtual scene.
[0065] For example, a UGC editor is provided in an electronic game application, and users can customize and create virtual scenes through the UGC editor. The virtual scene is used to simulate the real environment in reality, and users can control virtual objects to move in the virtual scene. The virtual scene includes a sky environment. In order to enhance the authenticity of the virtual scene, the sky environment in the virtual scene can be different under different conditions. For example, when the weather is clear, the sky environment in the virtual scene is a cloudless sky. At night, the sky environment in the virtual scene is a starry sky with twinkling stars. When it rains, the sky environment in the virtual scene is a gloomy sky. Therefore, using the method provided in the embodiment of the present application, users can freely set the transformation signal that triggers the transformation of the sky environment, as well as the transformed sky environment, in the UGC editor, thereby achieving flexible control of the sky environment in the virtual scene.
[0066] FIG2 is a flow chart of a sky environment control method provided in an embodiment of the present application. The embodiment of the present application is executed by a terminal. The method includes:
[0067] 201. The terminal displays a sky environment control interface in the UGC editor.
[0068] In some embodiments, a terminal runs a gaming application that includes a user-generated content (UGC) editor. The UGC editor is used to control at least the sky environment in a virtual scene. The UGC editor is an editor for editing user-generated content. It supports users creating virtual objects to enrich the virtual scene. Virtual objects in the virtual scene are created by users using the UGC editor, thereby constructing a virtual scene rich with virtual objects.
[0069] The virtual scene is used to simulate the real environment in reality. The virtual scene includes a sky environment, which is composed of a series of elements related to the simulated real environment, such as the sky background and sky lighting. In the virtual scene, the sky background can be called a sky sphere or a sky box. The sky background is rendered on the background model through a background map as the background of the virtual scene. Sky lighting refers to the general term for light sources in the sky of the virtual scene, including directional light sources and skylights. Directional light sources refer to light sources with a specific illumination direction. Skylights refer to sky lights (Sky Light). Skylights are captured by capturing the distant part of the virtual scene and applying it as a light source to the virtual scene. The skylights can be static skylights, fixed skylights, or movable skylights.
[0070] In the embodiment of the present application, the function of the UGC editor to control the sky environment is mainly described. The UGC editor provides a sky environment control interface, which is used to control the sky environment in the virtual scene, such as controlling the sky background or lighting in the sky environment.
[0071] 202. The terminal obtains a transformation signal and a first environment parameter corresponding to the transformation signal based on a sky environment transformation operation in a sky environment control interface.
[0072] The sky environment control interface provides the ability to control sky environment transformations. If a user wishes to customize a sky environment transformation event within a virtual scene, they can execute a sky environment transformation operation within the sky environment control interface. Based on this sky environment transformation operation, the terminal can obtain a transformation signal set by the user and a first environment parameter corresponding to the transformation signal. In other words, this sky environment transformation operation is used to set a sky environment transformation event consisting of the transformation signal and the environment parameter.
[0073] The transformation signal is a signal for triggering a transformation of the sky environment, and the transformation signal can be triggered based on a specific trigger condition. Optionally, the trigger condition may include a manual operation trigger condition (e.g., a player triggering the transformation signal through a specific manual operation), a voice trigger condition (e.g., a player triggering the transformation signal through a specific voice), an event trigger condition (e.g., a specific event in the virtual scene triggering the transformation signal), etc., which is not limited in this embodiment.
[0074] The conversion signal is a user-defined signal or a signal selected by the user from preset signals provided by the UGC editor. The conversion signal can be composed of text, numbers, letters or symbols.
[0075] In some embodiments, the first environmental parameter includes at least one parameter corresponding to an element that affects the state of the sky in the virtual scene. For example, the first environmental parameter includes a sky background parameter and a lighting parameter, where the sky background parameter indicates the sky background in the sky environment, and the lighting parameter indicates the sky lighting in the sky environment.
[0076] Optionally, the first environmental parameter may be a target environmental parameter or a relative environmental parameter, wherein the target environmental parameter is used to indicate the environmental parameter of the sky environment after the switch, and the relative environmental parameter is used to indicate the difference in environmental parameter between the sky environment after the switch and the sky environment before the switch.
[0077] For example, when the first environmental parameter is a target environmental parameter, the first environmental parameter includes a weather background A and a lighting parameter B; or, when the first environmental parameter is a relative environmental parameter, the first environmental parameter includes a lighting difference C.
[0078] It can be understood that the transformation signal and the first environmental parameter constitute a sky environment transformation event. This sky environment transformation event, when the transformation signal is triggered, transforms the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter. In other words, by setting the transformation signal and the first environmental parameter in the sky environment control interface, an automatically triggerable sky environment transformation event is deployed in the virtual scene.
[0079] 203. The terminal transforms the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in response to the transformation signal triggered in the virtual scene.
[0080] In some embodiments, when a sky environment change event is applied, whenever the terminal detects that a change signal is triggered in a virtual scene, the terminal changes the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter, thereby achieving an effect of automatically changing the sky environment in the virtual scene.
[0081] Optionally, when the first environmental parameter is a target environmental parameter, the terminal displays the sky environment based on the target environmental parameter.
[0082] Optionally, when the first environmental parameter is a relative environmental parameter, that is, characterizing the difference between the target environmental parameter and the current environmental parameter, the terminal determines the target environmental parameter based on the environmental parameter of the current sky environment and the first environmental parameter, thereby displaying the sky environment based on the target environmental parameter.
[0083] In one possible scenario, the user can pre-set a sky environment change event in the sky environment control interface and apply it. During the game, when the change signal is recognized, the terminal will change the sky environment of the virtual scene in the game.
[0084] In some embodiments, the first environmental parameter is applied only to the current terminal, or the first environmental parameter is applied to all or some of the terminals participating in the game. For example, the first environmental parameter can be applied to all terminals in the game, or only to terminals in the same camp as the current terminal (for example, if the player wins the game, all the players' terminals change the sky environment to sunny), or only to terminals in different camps than the current terminal (for example, if the player wins the game, all the enemy terminals change the sky environment to overcast).
[0085] In the method provided by the embodiment of the present application, the UGC editor integrates the function of controlling the sky environment in the virtual scene into the sky environment control interface. The user can configure the transformation signal and environmental parameters in the sky environment control interface. When the transformation signal is triggered in the virtual scene, the sky environment in the virtual scene is automatically transformed to the sky environment indicated by the environmental parameters. In other words, the user can freely configure the timing of the sky environment transformation and the type of sky environment to be transformed to, so that the sky environment is automatically transformed when the transformation timing is met, thereby improving the user's operability of the sky environment and further improving the flexibility of controlling the sky environment. In addition, the user can configure the transformation signal and environmental parameters by operating in the sky environment control interface, without having to layout the relevant components in the virtual scene, which improves the convenience of controlling the sky environment.
[0086] The embodiment of FIG. 2 is merely a brief description of the sky environment control method. For a more detailed process of the sky environment control method, please refer to the following embodiments.
[0087] FIG3 is a flow chart of another sky environment control method provided by an embodiment of the present application. The embodiment of the present application is executed by a terminal. Referring to FIG3 , the method includes:
[0088] 301. The terminal displays a sky environment control interface in the UGC editor, where the sky environment control interface is used to control the sky environment in the virtual scene.
[0089] In one possible implementation, a terminal displays a virtual scene interface, which is used to display a virtual scene. For example, when the virtual scene includes a virtual object controlled by a user, the virtual scene interface is used to display the virtual scene within the viewing angle of the virtual object. The virtual scene interface also includes multiple function options, including a sky environment option. In response to a triggering operation on the sky environment option, the terminal displays the sky environment control interface.
[0090] Optionally, the terminal displays the sky environment control interface on an upper layer of the virtual scene interface. The size of the sky environment control interface is smaller than that of the virtual scene interface, and the sky environment control interface obscures part of the virtual scene interface.
[0091] 302. In response to a triggering operation on a sky environment transformation option in a sky environment control interface, the terminal displays a transformation event editing sub-interface in the sky environment control interface.
[0092] The sky environment control interface includes a sky environment transformation option and a sky environment editing option. The sky environment transformation option is used to trigger the display of the transformation event editing sub-interface. The transformation event editing sub-interface is used to create a sky environment transformation event, that is, to set the transformation signal and environmental parameters in the sky environment transformation event. The sky environment editing option is used to trigger the display of the sky environment editing sub-interface. The sky environment editing sub-interface is used to edit the current sky environment in the virtual scene, that is, to set the environmental parameters of the current sky environment. Among them, this embodiment only provides a detailed description of the transformation event editing sub-interface. For a detailed description of the sky environment editing sub-interface, please refer to the embodiment of Figure 21 below.
[0093] If the user wants to create a sky environment change event, the user triggers the sky environment change option in the sky environment control interface. In response to the triggering operation of the sky environment change option, the terminal displays the change event editing sub-interface in the sky environment control interface.
[0094] FIG4 is a schematic diagram of a sky environment control interface provided by an embodiment of the present application. As shown in FIG4 , a sky environment control interface 401 is displayed on the right side of the virtual scene interface. The sky environment control interface 401 includes a sky environment editing option 402 and a sky environment transformation option 403. When the user triggers the sky environment transformation option 403, a transformation event editing sub-interface is displayed in the sky environment control interface 401. If no sky environment transformation event has been created, that is, if no transformation signal and corresponding environment parameters have been set, the transformation event editing sub-interface displays the prompt text "No sky environment transformation yet."
[0095] 303. The terminal obtains a transformation signal and a first environment parameter based on the editing operation in the transformation event editing sub-interface.
[0096] The user performs an editing operation in the transformation event editing sub-interface to set the transformation signal and the first environmental parameter. Based on the editing operation, the terminal can obtain the first environmental parameter of the transformation signal set by the user.
[0097] In some embodiments, the transformation event editing sub-interface includes a transformation signal editing area and an environment parameter editing area, wherein the transformation signal editing area includes controls for editing the transformation signal, and the environment parameter editing area includes controls for editing the environment parameter. Accordingly, the terminal determines the transformation signal based on editing operations on the controls in the transformation signal editing area, and determines the first environment parameter based on editing operations on the controls in the environment parameter editing area.
[0098] In one possible implementation, the transformation event editing sub-interface includes a creation option for a sky environment transformation event. As shown in FIG4 , the creation option is a “new sky environment transformation” option. In response to the triggering operation of the creation option, the terminal displays a transformation signal editing area and an environment parameter editing area. As shown in FIG5 , the transformation event editing sub-interface includes a transformation signal editing area 501 and an environment parameter editing area 502. The user can edit the transformation signal in the signal editing area 501 and edit the first environment parameter in the environment parameter editing area 502. At this time, the transformation event editing sub-interface also includes a creation option and a preview option. The creation option is a “new transformation option” and the preview option is a “transformation preview” option. When the user triggers the preview option, the terminal displays the effect of transforming the current sky environment in the virtual scene to the sky environment indicated by the currently edited environment parameters.
[0099] In a possible implementation, the process of the terminal acquiring the transformation signal and the first environment parameter based on the editing operation in the transformation event editing sub-interface includes the following steps 3031 to 3033.
[0100] 3031. The terminal obtains a transformation signal based on the signal editing operation in the transformation event editing sub-interface.
[0101] The user performs a signal editing operation in the transformation event editing sub-interface to set the transformation signal. Based on the signal editing operation, the terminal can obtain the transformation signal set by the user. As shown in Figure 6, the transformation event editing sub-interface displays a signal editing area, which includes a "Name" edit box 61, a "Transformation Signal" edit box 62, a "Pause Transformation Signal" edit box 63, and an "End Signal" edit box 64. Among them, the "Name" edit box 61 is used to edit the transformation event identifier, which is detailed in the embodiment of Figure 19 below. The "Transformation Signal" edit box 62 is used to edit the transformation signal. The "Pause Transformation Signal" edit box 63 is used to edit the pause transformation signal. The pause transformation signal is detailed in the embodiment of Figure 16 below. The "End Signal" edit box 64 is used to edit the end signal. The end signal is detailed in the embodiment of Figure 17 below.
[0102] In some embodiments, the transformation signal may be selected from candidate transformation signals, or the transformation signal may be customized by a user.
[0103] Optionally, to avoid transformation conflicts, during the signal editing process, the terminal detects whether the currently edited transformation signal is consistent with the transformation signal in the created sky environment transformation event. If they are consistent, the terminal prompts the user to re-edit the transformation signal.
[0104] Of course, in other possible implementations, when different sky environment change events are allowed to have the same change signal, the terminal may prompt to set priorities for different environment parameters corresponding to the same change signal. Subsequent terminals then apply the environment parameters in order according to the priorities.
[0105] 3032. The terminal obtains first sky background parameters based on the sky background editing operation in the transformation event editing sub-interface.
[0106] The sky environment includes the sky background, and thus the environmental parameters of the sky environment include the sky background parameters. The user performs a sky background editing operation in the transformation event editing sub-interface to set the first sky background parameters. Based on the sky background editing operation, the terminal can obtain the first sky background parameters set by the user.
[0107] As shown in Figure 7, the transformation event editing sub-interface displays an environment parameter editing area, which includes a sky background selection box 701 and editing options 702. If the user wants to change the sky background during the sky environment transformation, they check the sky background selection box 701 and trigger the sky background editing option 702. In response to the triggering operation of editing option 702, the terminal displays the sky background editing sub-interface, and the user performs the sky background editing operation in the sky background editing sub-interface.
[0108] Optionally, the sky background editing operation is used to edit at least one of a sky background image and a sky rotation angle. Accordingly, the sky background parameters acquired by the terminal include at least one of a sky background image and a sky rotation angle.
[0109] The sky background image is the image used to map onto the virtual scene's sky background model. The sky rotation angle, also known as the angle of the skybox or sky sphere, is the angle at which the sky background image is mapped onto the sky background model. At different sky rotation angles, the pattern on the sky background image is positioned at different locations within the virtual scene's sky background model, creating a different sky environment.
[0110] As shown in Figure 8, the sky background editing sub-interface displays a sky background image 81 to be selected and an editing box 82 for the sky rotation angle. The sky background editing sub-interface also displays an editing box 83 for the transition duration and a setting box 84 for the sky transition effect. The transition duration refers to the duration of transforming the sky background in the virtual scene to the sky background indicated by the sky background parameters. The transition duration and the sky transition effect can be seen in the embodiment of Figure 14 below.
[0111] 3033. The terminal obtains the first lighting parameter based on the lighting editing operation in the transformation event editing sub-interface.
[0112] Among them, the sky environment includes lighting, and the environmental parameters of the sky environment include lighting parameters. The user performs a lighting editing operation in the transformation event editing sub-interface to set the first lighting parameter. Based on the lighting editing operation, the terminal can obtain the first lighting parameter set by the user.
[0113] Optionally, as shown in Figure 7, the transformation event editing sub-interface displays an environment parameter editing area, which includes a lighting selection box 703 and editing options 704. If the user wishes to change the lighting during a sky environment transformation, they select lighting selection box 703 and trigger the lighting editing option 704. In response to the triggering of editing option 704, the terminal displays the lighting editing sub-interface, where the user can perform lighting editing operations.
[0114] Optionally, lighting is a general term for the light sources in the sky in the virtual scene, including at least one of directional light sources and skylights. Accordingly, the lighting parameters include at least one of the directional light source intensity, the skylight intensity, the light source color of the directional light source, the light source altitude angle of the directional light source, and the light source azimuth angle of the directional light source.
[0115] As shown in Figure 9 , the lighting editing sub-interface displays an edit box 91 for directional light sources, an edit box 92 for skylight intensity, an edit option 93 for light source color, an edit box 94 for light source altitude angle, and an edit box 95 for light source azimuth angle. The lighting editing sub-interface also displays an edit box 96 for transition duration, which refers to the duration required to transform the lighting in the virtual scene to the lighting indicated by the lighting parameters. For more information on this transition duration, see the embodiment described in Figure 14 below.
[0116] In this embodiment of the present application, the first environmental parameter includes at least one of a first sky background parameter and a first illumination parameter. The terminal executes step 3031 to obtain a transformation signal, and then executes at least one of steps 3032 or 3033 to obtain at least one of the first sky background parameter and the first illumination parameter, thereby constituting the first environmental parameter.
[0117] In an embodiment of the present application, the elements in the sky environment are divided into sky background and lighting. The user can choose to customize the transformation of at least one element in the sky background or lighting by checking the box, thereby meeting the effect requirements of different sky environments in various virtual scenes. The user can freely match different sky background effects and lighting effects, further improving the flexibility of controlling the sky environment.
[0118] Moreover, in the embodiment of the present application, a skylight element is added to the lighting of the sky environment, which is beneficial to enhance the adjustable effect in the sky environment and further improve the authenticity of the sky environment.
[0119] Figure 10 is a schematic diagram of a virtual scene provided by an embodiment of the present application. As shown in Figure 10, when the intensity of skylight is low, the virtual object enters a room in the virtual scene, the brightness of the room is low, and the virtual object is in darkness. Based on this, the user can create a transformation event for transforming the skylight. As shown in Figure 11, the user can create a transformation event named "skylight transformation" and set the transformation signal to "1". As shown in Figure 12, the skylight intensity is set to a larger value of 1.4. When the transformation signal "1" is triggered in the virtual scene, the skylight in the virtual scene is transformed into skylight with a skylight intensity of 1.4. As shown in Figure 13, after increasing the skylight intensity, when the skylight intensity is high, the room where the virtual object is located is brighter than in Figure 10.
[0120] In addition, a set of environmental parameters configured in the sky environment control interface may include sky background parameters and lighting parameters. The sky background parameters and lighting parameters are controlled by the same set of logic. Users can configure the sky background parameters and lighting parameters at the same time in the sky environment control interface. Then, in a sky environment transformation event, the sky background and lighting can be transformed at the same time, instead of dividing the sky background and lighting into two completely independent sets of logic for processing. This further improves the convenience of transforming the sky environment and is conducive to improving the efficiency of transforming the sky environment.
[0121] 304. The terminal transforms the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in response to the transformation signal triggered in the virtual scene.
[0122] Optionally, when the first environmental parameters include a first sky background parameter and a first illumination parameter, the terminal simultaneously transforms the sky background to the sky background indicated by the first sky background parameter and transforms the illumination to the illumination indicated by the first illumination parameter. When the first environmental parameters only include the first sky background parameter, the terminal only needs to transform the sky background to the sky background indicated by the first sky background parameter, without transforming the current illumination. When the first environmental parameters only include the first illumination parameter, the terminal only needs to transform the illumination to the illumination indicated by the first illumination parameter, without transforming the current sky background.
[0123] In a possible implementation, any transformation signal and corresponding environmental parameter are stored in the form of a sky environment transformation event. For example, each sky environment transformation event corresponds to a transformation event identifier, and the transformation event identifier, transformation signal, and environmental parameter are stored correspondingly.
[0124] In response to any signal triggered in the virtual scene, the terminal matches the signal with the signal corresponding to each transformation event identifier. If it is determined that the signal is a transformation signal corresponding to a certain transformation event identifier, the sky environment of the virtual scene is transformed to the environmental parameters corresponding to the transformation event identifier.
[0125] Optionally, if the terminal determines that the signal is a transformation signal corresponding to multiple transformation event identifiers, the multiple determined transformation event identifiers are sequentially added to the waiting queue, and then starting from the first transformation event identifier in the waiting queue, the sky environment in the virtual scene is transformed in sequence to the sky environment indicated by the environmental parameters corresponding to the transformation event identifiers in the waiting queue.
[0126] Among them, the terminal can add multiple transformation event identifiers to the waiting queue according to the order of creation of the sky environment transformation events (for example, in the order of creation events from early to late), or add multiple transformation event identifiers to the waiting queue according to the priority set for the sky environment transformation events (for example, in the order of priority from high to low). This embodiment does not limit this.
[0127] The method provided in the embodiments of the present application integrates the editing logic for transformation information and the editing logic for multiple parameters related to sky environment transformation into a sky environment management interface provided by the UGC editor. Users can customize the transformation signals and various environmental parameters according to their needs to dynamically change the sky environment in the virtual scene. Furthermore, users can freely select the elements to be transformed in a sky environment transformation, such as the sky background and lighting. This increases the user's freedom in transforming the sky environment and satisfies the need to transform different elements individually or in combination, providing greater flexibility in user sky environment transformation.
[0128] In one possible implementation, the sky environment transition can be completed within a single frame, meaning the current sky environment is switched to the target sky environment within a single frame. In another possible implementation, to avoid sudden changes in the sky environment, the terminal can complete the sky environment transition within multiple frames to improve the smoothness of the transition process. Accordingly, when setting a sky environment transition event, an additional transition duration needs to be set.
[0129] FIG14 is a flowchart of another sky environment control method provided in an embodiment of the present application. The embodiment of the present application is executed by a terminal. Referring to FIG14 , the method includes:
[0130] 1401. The terminal displays a sky environment control interface in the UGC editor. The sky environment control interface is used to control the sky environment in the virtual scene.
[0131] The implementation process of step 1401 is similar to that of the above-mentioned steps 201 and 301, and will not be described in detail here.
[0132] 1402. The terminal obtains a transformation signal, a first environment parameter, and a transition duration based on a sky environment transformation operation in a sky environment control interface.
[0133] In an embodiment of the present application, when customizing a sky environment change event, in addition to setting the change signal and the first environment parameter, a transition duration can also be set. The transition duration refers to the time required to change the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter, that is, the time required to transition from one sky environment to another.
[0134] In one possible implementation, the sky environment includes a sky background and lighting, and the transition duration includes a sky background transition duration and a lighting transition duration. The sky background transition duration refers to the duration from the current sky background to the target sky background, and the lighting transition duration refers to the duration from the current lighting to the target lighting.
[0135] Optionally, the sky background and the lighting have a unified transition duration (ie, the transition duration of the environmental parameters is uniformly set), or the sky background and the lighting have respective transition durations, ie, the transition durations of the sky background and the lighting may be different.
[0136] Optionally, the transition duration may be in frames, or in time, such as seconds.
[0137] As shown in FIG8 , the sky background editing sub-interface includes an edit box 83 for the sky background transition duration, in which the user can set the sky background transition duration. Furthermore, the sky background editing sub-interface also includes a setting box 84 for the sky transition effect, which is used to indicate the dynamic effect of transitioning from the current sky background to the target sky background. As shown in FIG9 , the lighting editing sub-interface includes an edit box 96 for the lighting transition duration, in which the user can set the lighting transition duration.
[0138] 1403. In response to a transformation signal triggered in the virtual scene, the terminal transforms the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in a transition transformation manner within a transition duration.
[0139] When the terminal detects that a transformation signal is triggered in the virtual scene, it transforms the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter in a transitional transformation manner within the transition duration, thereby automatically triggering a sky environment transformation event in the virtual scene and achieving the effect of dynamically changing the sky environment in the virtual scene.
[0140] Optionally, different parameters in the first environmental parameters start changing at different times, or different parameters in the first environmental parameters start changing at different times. For example, when the first environmental parameters include a sky background and lighting, the sky background may be switched first, then the lighting, or the lighting may be switched first, then the sky background.
[0141] In one possible implementation, the sky environment includes a sky background and lighting, and the sky background and lighting can be changed simultaneously. The first environment parameter includes a first sky background parameter and a first lighting parameter, and the transition duration includes a sky background transition duration and a lighting transition duration. That is, the sky background and lighting each have their own corresponding transition durations. During the sky background transition duration, the terminal changes the sky background of the virtual scene to the sky background indicated by the first sky background parameter, and during the lighting transition duration, changes the lighting of the virtual scene to the lighting indicated by the first lighting parameter.
[0142] Optionally, the start change time point of the sky background is the same as the start change time point of the lighting. In this case, when the transition duration of the sky background is different from the transition duration of the lighting, the completion change time point of the sky background is also different from the completion change time point of the lighting.
[0143] In one possible implementation, the terminal, in response to a transition signal triggered in the virtual scene, determines a refresh interval for the virtual scene, obtains a third environmental parameter of the sky environment in the virtual scene, and determines the environmental parameters of each frame within the transition duration based on the transition duration, the refresh interval, the third environmental parameter, and the first environmental parameter. The environmental parameters of the first frame within the transition duration are the third environmental parameters, and the environmental parameters of the last frame within the transition duration are the first environmental parameters. Within the transition duration, the terminal sequentially displays each frame according to the refresh interval and based on the environmental parameters of each frame.
[0144] The third environmental parameter refers to the environmental parameter of the current sky environment in the virtual scene.
[0145] The screen refresh interval is the reciprocal of the screen refresh rate. For example, when the screen refresh rate is 50 Hz, that is, the screen is refreshed 50 times per second, the screen refresh interval is 20 ms.
[0146] In a possible implementation, when the transition duration is expressed in time units, the terminal determines the number of transition frames, that is, the number of frames of the picture required to be refreshed within the transition duration, according to the transition duration and the picture refresh interval.
[0147] In other possible implementations, when the transition duration is in frames, that is, when the transition duration is the number of transition frames, the terminal may directly determine the number of transition frames as the number of frames of the image required to be refreshed within the transition duration.
[0148] During the transition process, the sky environment parameters in the first frame are the third parameters, i.e., the parameters at the start of the transition. The sky environment parameters in the last frame are the first parameters, i.e., the parameters at the completion of the transition. Furthermore, the sky environment parameters between the first and last frames are between the third and first parameters, thereby achieving the effect of transitioning from the sky environment indicated by the third parameters to the sky environment indicated by the first parameters.
[0149] Optionally, the terminal determines the environmental parameters of each frame within the transition duration based on the transition duration, the screen refresh interval, the third environmental parameter, and the first environmental parameter, using linear interpolation. The terminal calculates the environmental parameters of the sky environment in each transition frame through linear interpolation based on the third environmental parameter, the first environmental parameter, and the number of transition frames.
[0150] Taking the intensity of a directional light source as an example, the terminal uses the following formula to determine the intensity of the directional light source for each frame.
[0151] Where T represents the transition time, t is a value not greater than T, LI t Indicates the directional light intensity of the sky environment at a time t after the start of the transformation, LI Start Indicates the directional light intensity of the sky environment at the start of the transformation, which is also the directional light intensity in the third environment parameter, LI End Indicates the directional light intensity of the sky environment at the time point when the transformation is completed, that is, the directional light intensity in the first environment parameter.
[0152] In one possible implementation, the terminal implements the transformation of the sky environment through an animation-driven timer. Figure 15 is a schematic diagram of the processing logic of an animation-driven timer provided in an embodiment of the present application. As shown in Figure 15, the terminal determines the timer duration and callback interval of the animation-driven timer based on the screen refresh rate and the transition duration. The timer duration refers to the working duration of the animation-driven timer, and the timer duration T is equal to the transition duration T. The callback interval is also the screen refresh interval, and the callback interval is equal to 1000 / FPS, in ms (milliseconds), and FPS is the screen refresh rate. The On Tick issued by the animation-driven timer refers to the heartbeat pulse of the animation. In each On Tick, the sky environment is updated once, that is, the sky background and lighting in the virtual scene are updated once, until the transition duration is reached, the sky background in the virtual scene becomes the sky background indicated by the first sky background parameter, and the lighting in the virtual scene becomes the lighting indicated by the first lighting parameter, thereby completing a sky environment transformation.
[0153] In the method provided in the embodiments of the present application, users can also configure a transition duration in the sky environment control interface. When a change signal is triggered in the virtual scene, the sky environment in the virtual scene automatically changes to the sky environment indicated by the environmental parameters within the transition duration. In other words, users can freely configure the transition duration for sky environment changes, resulting in different effects at different transition durations. This enriches the presentation of sky environment changes, further increases the flexibility of sky environment changes, and improves the smoothness of the sky environment change process, avoiding sudden changes in the sky environment when the change signal is triggered.
[0154] In a possible implementation, when the sky environment adopts a gradual transformation, that is, when the current sky environment is gradually transformed into the target sky environment within the transition period, a pause transformation signal can be additionally set during the process of setting the sky environment transformation event to control the sky transformation process through the pause transformation signal.
[0155] FIG16 is a flowchart of another sky environment control method provided in an embodiment of the present application. The embodiment of the present application is executed by a terminal. Referring to FIG16 , the method includes:
[0156] 1601. The terminal displays a sky environment control interface in the UGC editor. The sky environment control interface is used to control the sky environment in the virtual scene.
[0157] The implementation process of step 1601 is similar to that of the above-mentioned steps 201 and 301, and will not be described in detail here.
[0158] 1602. The terminal obtains a change signal, a first environment parameter, and a pause change signal based on a sky environment change operation in a sky environment control interface.
[0159] In an embodiment of the present application, when customizing a sky environment change event, in addition to setting a change signal and a first environment parameter, a pause change signal can also be set. The pause change signal is a signal for pausing the change of the sky environment, and the pause change signal can be triggered based on a specific trigger condition. Optionally, the trigger condition may include a manual operation trigger condition (e.g., a player triggers a pause change signal through a specific manual operation), a voice trigger condition (e.g., a player triggers a pause change signal through a specific voice), an event trigger condition (e.g., a specific event in a virtual scene triggers a pause change signal), etc., which is not limited in this embodiment.
[0160] The pause transition signal can be a user-defined signal or a signal selected from preset signals provided by the UGC editor. The pause transition signal can be composed of text, numbers, letters, or symbols. As shown in FIG6 , the transition event editing sub-interface displays a signal editing area, which includes a "Pause Transition Signal" edit box 63. The user can customize the pause transition signal in the "Pause Transition Signal" edit box.
[0161] 1603. The terminal transforms the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in response to the transformation signal triggered in the virtual scene.
[0162] It should be noted that, in the embodiment of the present application, it takes a certain amount of time to transform the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter, rather than directly replacing one sky environment with another. For example, in the embodiment of Figure 14 above, the sky environment in the virtual scene is transformed to the sky environment indicated by the first environmental parameter within the transition period.
[0163] 1604. During the process of transforming the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter, the terminal stops transforming the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter in response to a pause transformation signal triggered in the virtual scene.
[0164] During the process of transforming the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter and the transformation has not yet been completed, if the terminal detects that a pause transformation signal is triggered in the virtual scene, it stops transforming the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter and maintains the current transformation progress.
[0165] For example, taking the sky environment in the virtual scene before the transformation as sky environment A and the sky environment indicated by the first environment parameter as sky environment B, during the process of transforming sky environment A to sky environment B and before the transformation is completed, if it is detected that a pause transformation signal is triggered in the virtual scene, and the current sky environment is sky environment C, the change is stopped and the sky environment in the virtual scene is kept as sky environment C. Sky environment C is a state between sky environment A and sky environment B, that is, the sky environment generated in the process of transitioning sky environment A to sky environment B.
[0166] In one possible implementation, any transformation signal, any pause transformation signal, and any corresponding environmental parameters are stored as sky environment transformation events. For example, each sky environment transformation event corresponds to a transformation event identifier, and the transformation event identifier, the transformation signal, the pause transformation signal, and the environmental parameters are stored in association. In response to any signal triggered in the virtual scene, the terminal matches the signal with the signal corresponding to each transformation event identifier. If the signal is determined to be a pause transformation signal corresponding to a transformation event identifier, the terminal determines whether the sky environment is being transformed to the sky environment indicated by the environmental parameters corresponding to the transformation event identifier. If so, the terminal stops transforming to the sky environment indicated by the environmental parameters. If not, no further processing is performed.
[0167] Optionally, each created sky environment transformation event corresponds to an event state, and the event states include an untransformed state, a transforming state, and a paused transformation state. The event state is stored corresponding to the transformation event identifier, transformation signal, paused transformation signal, and environmental parameters of the sky environment transformation event. In response to any signal triggered in the virtual scene, the terminal matches the signal with the signal corresponding to each transformation event identifier. If it is determined that the signal is a paused transformation signal corresponding to a certain transformation event identifier, it is determined whether the event state corresponding to the transformation event identifier is a transforming state. If so, the transformation is stopped. If not, no processing is required.
[0168] 1605. In response to the transformation signal triggered again in the virtual scene, the terminal continues to transform to the sky environment indicated by the first environment parameter starting from the transformation progress when it was last stopped.
[0169] After pausing the transformation of the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter, if the transformation signal is triggered again, the terminal starts from the transformation progress of the last pause and continues to transform to the sky environment indicated by the first environmental parameter.
[0170] For example, taking the sky environment in the virtual scene before the transformation as sky environment A and the sky environment indicated by the first environment parameter as sky environment B, during the transformation process, if the pause transformation signal is triggered, the transformation is paused, and the paused transformation progress is sky environment C. When the transformation signal is triggered again, the transformation starts from sky environment C and continues to transform sky environment C to sky environment B.
[0171] In one possible implementation, the event states of a sky environment change event include an unchanged state, a changing state, and a paused change state. In response to any signal triggered in the virtual scene, the terminal matches the signal with the signal corresponding to each change event identifier. If the signal is determined to be a change signal corresponding to at least one change event identifier, the terminal determines whether there is a change event identifier with a paused change state among the at least one change event identifier. If so, the sky environment change event corresponding to the change event identifier with a paused change state is preferentially executed, that is, the change is continued from the paused progress. If not, the sky environment change event corresponding to the change event identifier with a paused change state is added to the waiting queue for processing according to the method of step 304 above.
[0172] In some embodiments, when starting a sky environment transformation, the terminal determines the environmental parameters of the sky environment in each transition frame, thereby obtaining a series of environmental parameter sequences. Upon receiving a pause transformation signal, the terminal sets a pause pointer in the environmental parameter sequence based on the environmental parameters corresponding to the pause time. Upon receiving a transformation signal to resume sky environment transformation, the terminal begins transforming the sky environment based on the environmental parameters in the environmental parameter sequence, starting from the pause pointer.
[0173] In the method provided by the embodiments of the present application, users can also configure a pause transformation signal in the sky environment control interface. During a sky environment transformation, if the pause transformation signal is triggered in the virtual scene, the transformation is automatically paused, maintaining the current transformation progress. When the transformation signal is triggered again, the transformation resumes from the paused transformation progress. In other words, the function of interrupting the sky environment transformation process is provided, allowing users to freely configure the timing of pausing the sky environment transformation, enriching the expression of sky environment transformation and further improving the flexibility of sky environment transformation.
[0174] In a possible implementation, the sky environment transformation can also interact with specific events in the virtual scene, that is, when the sky environment transformation is completed, specific events in the virtual scene can be triggered, thereby forming a linkage between the sky environment transformation event and the scene event.
[0175] FIG17 is a flowchart of another sky environment control method provided in an embodiment of the present application. The embodiment of the present application is executed by a terminal. Referring to FIG17 , the method includes:
[0176] 1701. The terminal displays a sky environment control interface in the UGC editor. The sky environment control interface is used to control the sky environment in the virtual scene.
[0177] The implementation process of step 1701 is similar to that of the above-mentioned steps 201 and 301, and will not be described in detail here.
[0178] 1702. The terminal obtains a transformation signal, a first environment parameter, and an end signal based on the sky environment transformation operation in the sky environment control interface.
[0179] In an embodiment of the present application, when customizing a sky environment transformation event, in addition to setting the transformation signal and the first environment parameter, an end signal can also be set. The end signal is used to automatically trigger after the transformation of the sky environment is completed, and the user can also customize to start a specific event in the virtual scene when the end signal is triggered. The end signal is a user-defined signal or a signal selected by the user from the preset signals provided by the UGC editor. The transformation signal can be composed of text, numbers, letters or symbols. As shown in Figure 6, the transformation event editing sub-interface displays a signal editing area, which includes an "end signal" editing box 64. The user can customize the end signal in the "end signal" editing box 64.
[0180] Optionally, the specific event triggered by the end signal may be a candidate event in the virtual scene or a user-defined event, which is not limited in this embodiment.
[0181] 1703. The terminal transforms the sky environment in the virtual scene to the sky environment indicated by the first environment parameter in response to the transformation signal triggered in the virtual scene.
[0182] The implementation process of step 1703 is similar to that of the above step 203 and will not be repeated here.
[0183] 1704. When the terminal changes to the sky environment indicated by the first environmental parameter, the terminal triggers an end signal in the virtual scene.
[0184] Because the user configures an end signal along with the transformation signal and the first environmental parameter, the end signal is automatically triggered in the virtual scene after the sky environment is transformed to the sky environment indicated by the first environmental parameter. That is, the triggering condition for the end signal is the completion of the transformation of the sky environment to the sky environment indicated by the first environmental parameter. Furthermore, the user can also customize the triggering of a specific event in the virtual scene when the end signal is triggered. That is, the end signal is automatically triggered after the sky environment is transformed to the sky environment indicated by the first environmental parameter, and the specific event is automatically triggered after the end signal is triggered. This is equivalent to automatically triggering the specific event after the sky environment is transformed to the sky environment indicated by the first environmental parameter.
[0185] In one illustrative example, the environment parameters in a sky environment change event indicate that the sky environment should be changed to the night sky, and the end signal in the sky environment change event is used to trigger a light event in the virtual scene. With this sky environment change event, the lights of buildings in the virtual scene can be automatically turned on after the sky environment changes to the night sky.
[0186] In the method provided in the embodiments of the present application, users can also configure an end signal in the sky environment control interface. After the sky environment is transformed to the sky environment indicated by the first environmental parameter, the end signal is automatically triggered in the virtual scene. Users can also customize which event is initiated in the virtual scene when the end signal is triggered. This is equivalent to allowing users to customize the automatic initiation of specific events after completing a sky environment transformation. This enhances the user's freedom of control over the virtual scene and enriches the control methods of the virtual scene.
[0187] FIG18 is a flowchart of a signal control method in a virtual scene provided by an embodiment of the present application. The embodiment of the present application is executed by a terminal. Referring to FIG18 , the method includes:
[0188] 1801. The terminal displays a signal control interface in the UGC editor, where the signal control interface is used to control signals in the virtual scene.
[0189] The terminal runs a game application that includes a user-generated content (UGC) editor. The UGC editor is also used to control signals in the virtual scene. The UGC editor provides a signal control interface for controlling signals in the virtual scene, such as the change signal or pause change signal in the above-mentioned embodiment. This embodiment of the application uses the change signal as an example to describe in detail the triggering process of the change signal.
[0190] 1802. The terminal obtains a conversion signal and a trigger condition corresponding to the conversion signal based on a signal editing operation in a signal control interface.
[0191] If the user wants to customize the signal trigger event in the virtual scene, such as customizing the event that triggers the transformation signal, then perform the signal editing operation in the signal control interface to set the transformation signal and the trigger conditions corresponding to the transformation signal. The terminal can then obtain the transformation signal and trigger conditions set by the user based on the signal editing operation.
[0192] The trigger condition refers to a condition that triggers the conversion signal. Optionally, the trigger condition may be a specific event in the virtual scene or a specific operation received by the terminal.
[0193] For example, the trigger condition is that the virtual object enters the target area in the virtual scene (i.e., an entry event in the virtual scene), or the virtual object touches the target object in the virtual scene (i.e., an object touch event), or the time point in the virtual scene reaches the target time point (i.e., a task completion event), or the duration of the virtual object in the virtual scene reaches the target duration (i.e., a stay duration event), or the terminal receives a specific voice command, etc. The trigger condition can be customized by the user, or selected by the user from the preset trigger conditions provided by the UGC editor, and the embodiments of the present application are not limited to this.
[0194] In one possible implementation, the signal control interface includes a signal editing area and a trigger condition editing area. The terminal obtains the transformed signal based on the editing operation in the signal editing area, and obtains the trigger condition based on the editing operation in the trigger condition editing area.
[0195] 1803. When the triggering condition is met, the terminal triggers a transformation signal in the virtual scene.
[0196] When the terminal detects that the trigger condition is currently met, it automatically triggers a change signal in the virtual scene. As in the above embodiment, after the change signal is triggered in the virtual scene, the sky environment can be automatically changed.
[0197] The method provided in the embodiment of the present application provides a UGC editor in the game application. The UGC editor integrates the function of controlling the signal in the virtual scene in the sky environment control interface. The user can configure the transformation signal and trigger condition in the signal control interface. When the trigger condition is met in the virtual scene, the transformation signal can be automatically triggered in the virtual scene, thereby flexibly controlling the triggering timing of the transformation signal. The transformation signal is used to start the transformation of the sky environment in the virtual scene, which is equivalent to the user being able to flexibly control the timing of the transformation of the sky environment in the virtual scene.
[0198] Moreover, one transformation signal can correspond to multiple sky environment transformation events, or even one transformation signal can correspond to multiple different types of events. Thus, by controlling the triggering conditions of the transformation signal, the events in the virtual scene can be flexibly controlled, thereby improving the flexibility and convenience of controlling the virtual scene.
[0199] FIG19 is a flowchart of a method for controlling a transformation event provided by an embodiment of the present application. The embodiment of the present application is executed by a terminal. Referring to FIG19 , the method includes:
[0200] 1901. The terminal displays a sky environment control interface in the UGC editor. The sky environment control interface is used to control the sky environment in the virtual scene.
[0201] The implementation process of step 1901 is similar to that of the above-mentioned steps 201 and 301, and will not be described in detail here.
[0202] 1902. The terminal obtains a transformation signal, a first environment parameter, and a transformation event identifier based on a sky environment transformation operation in a sky environment control interface. The transformation event identifier indicates a transformation event consisting of the transformation signal and the environment parameter.
[0203] In an embodiment of the present application, when customizing a sky environment change event, in addition to setting the change signal and the first environment parameter, a change event identifier can also be set. The change event identifier indicates a sky environment change event composed of the change signal and the first environment parameter. The terminal stores the change event identifier, the change signal and the first environment parameter of the sky environment change event correspondingly.
[0204] The transformation event identifier is a user-defined identifier or an identifier selected by the user from preset identifiers provided by the UGC editor. The transformation event identifier can be composed of text, numbers, letters, or symbols. As shown in Figure 6, the transformation event editing sub-interface displays a signal editing area, which includes a "Name" edit box 61. The user can customize the transformation event identifier in the "Name" edit box 61.
[0205] 1903. The terminal displays the created transformation event identifier on the sky environment control interface.
[0206] In one possible implementation, the terminal also displays a delete option, an edit option, and a view option for the created transformation event identifier. The delete option is used to delete the transformation event indicated by the transformation event identifier, that is, to delete the transformation event identifier, transformation signal, first environment parameter and other information of the sky environment transformation event.
[0207] The editing option is used to edit the transformation event indicated by the transformation event identifier, that is, to edit the transformation event identifier, transformation signal, first environment parameter and other information of the sky environment transformation event. The editing method is the same as the method of creating the sky environment transformation event in the above embodiment.
[0208] The view option is used to view the transformation event indicated by the transformation event identifier, that is, to view information such as the transformation event identifier, the transformation signal, and the first environment parameter of the sky environment transformation event.
[0209] In one possible implementation, the terminal displays the created transformation event identifiers and the event status corresponding to each created transformation event identifier on the sky environment control interface, where the event status includes an untransformed state, a transforming state, and a paused transformation state. The untransformed state means that the process of transforming the current sky environment to the sky environment indicated by the environmental parameters in the sky environment transformation event is not currently being executed, the transforming state indicates that the process of transforming the sky environment to the sky environment indicated by the environmental parameters in the sky environment transformation event is currently being executed, and the paused transformation state means that the process of transforming the current sky environment to the sky environment indicated by the environmental parameters in the sky environment transformation event is paused.
[0210] In the embodiment of the present application, by displaying the event status corresponding to the created transformation event identifier, it is convenient for the user to understand the current transformation of the sky environment, which is beneficial for the user to manage the sky environment transformation event.
[0211] 1904. In response to the triggering operation on the transformation event identifier, the terminal displays the transformation signal and environment parameters in the transformation event indicated by the transformation event identifier.
[0212] If the user wishes to view the transformation signal and environmental parameters corresponding to a transformation event identifier, the user triggers the transformation event identifier, causing the terminal to display the transformation signal and environmental parameters associated with the transformation event indicated by the transformation event identifier. In another embodiment, the terminal also displays viewing options corresponding to previously created transformation event identifiers. In response to a triggering operation on a viewing option associated with any transformation event identifier, the terminal displays the transformation signal and environmental parameters associated with the transformation event indicated by the transformation event identifier. Furthermore, in addition to the transformation signal and environmental parameters, the terminal may also display other information associated with the transformation event, such as a pause signal and an end signal.
[0213] In one possible implementation, a terminal displays a transformation viewing option and the transformation signal and environmental parameters of the earliest transformation event on a sky environment control interface. In response to a triggering operation on the viewing option, multiple transformation event identifiers that have been created are displayed. In response to a triggering operation on the transformation event identifier, the terminal replaces the currently displayed transformation signal and environmental parameters with the transformation signal and environmental parameters of the transformation event indicated by the transformation event identifier.
[0214] Figure 20 is a schematic diagram of another sky environment control interface provided by an embodiment of the present application. As shown in Figure 20, when the user performs a trigger operation on the transformation viewing option in the sky environment control interface, the terminal displays a transformation event identifier list 2001 in the sky environment control interface. The transformation event identifier list 2001 includes the transformation event identifiers of the created sky environment transformation events, namely "Sky Environment Transformation 1", "Sky Environment Transformation 2", "Lighting Transformation 3" and "Starry Sky Transformation 4".
[0215] In some embodiments, when a trigger operation for at least two transformation event identifiers is received, the terminal may compare and display the transformation events indicated by the respective transformation event identifiers, so that the user can modify multiple transformation events synchronously.
[0216] The method provided in the embodiment of the present application displays the created transformation event identifiers and the deletion options, viewing options, editing options and event status corresponding to each transformation event identifier on the sky environment control interface, independently maintains the logic of each sky environment transformation event, reduces the difficulty for users to make secondary modifications to the sky environment transformation events, and supports naming of each sky environment transformation event to facilitate user management.
[0217] FIG21 is a flowchart of another sky environment control method provided in an embodiment of the present application. The embodiment of the present application is executed by a terminal. Referring to FIG21 , the method includes:
[0218] 2101. The terminal displays a sky environment control interface in the UGC editor. The sky environment control interface is used to control the sky environment in the virtual scene.
[0219] The implementation process of step 2101 is similar to that of the above-mentioned steps 201 and 301, and will not be described in detail here.
[0220] 2102. The terminal obtains a second environment parameter based on the editing operation in the sky environment editing sub-interface.
[0221] The sky environment control interface includes a sky environment editing option, which is used to trigger the sky environment editing sub-interface, which is used to edit the current sky environment in the virtual scene, that is, to set the environmental parameters of the current sky environment.
[0222] Optionally, the second environmental parameter includes at least one parameter corresponding to an element that affects the sky state in the virtual scene.
[0223] In one possible implementation, the sky environment editing sub-interface includes preset options and custom options. The terminal obtains the second environment parameter based on the editing operation in the sky environment editing sub-interface, including the following two methods.
[0224] The first method: the terminal obtains the preset environment parameter in response to the trigger operation of the preset option. If the user wants to set the environment parameter to the preset environment parameter provided by the UGC editor, the trigger operation of the preset option is performed, and the preset environment parameter is the second environment parameter.
[0225] Optionally, the environmental parameters include sky background parameters and lighting parameters. In response to a triggering operation on a preset option, the terminal obtains the current sky background parameters and the preset lighting parameters corresponding to the sky background parameters. The preset lighting parameters corresponding to the sky background parameters are preset lighting parameters corresponding to a sky background image in the sky background parameters, and each sky background image corresponds to a set of preset lighting parameters.
[0226] Figure 22 is a schematic diagram of a sky environment editing sub-interface provided in an embodiment of the present application. As shown in Figure 22, the sky environment editing sub-interface includes a preset option 2201 and a custom option 2202. When the user triggers the preset option 2201, the preset lighting parameters are displayed in the sky environment editing sub-interface. Among the preset lighting parameters, the directional light source intensity is 2.8, the sky light intensity is 1.1, the light source color is white, and the light source altitude angle is -50.74.
[0227] The second method: The terminal obtains the environmental parameters determined based on the user's operation in response to a trigger operation on a custom option. If the user wants to customize the environmental parameters, the trigger operation on the custom option is performed. The user can then set the environmental parameters in the sky environment editing sub-interface, and the terminal will obtain the user-set environmental parameters, which are the second environmental parameters.
[0228] Taking the lighting parameters in the user-defined environmental parameters as an example, Figure 23 is a schematic diagram of another sky environment editing sub-interface provided in an embodiment of the present application. As shown in Figure 23, the sky environment editing sub-interface includes preset options 2201 and custom options 2202. When the user triggers the custom option 2202, the lighting parameters set by the user are displayed in the sky environment editing sub-interface. The user can enter the lighting parameters in the input box, or set the lighting parameters by dragging the slide bar. See Figure 23. Among the lighting parameters set by the user, the directional light intensity is 1.26, the sky light intensity is 0.68, the light source color is white, and the light source altitude angle is -35.01.
[0229] In the embodiment of the present application, two methods are provided: using preset environmental parameters and using customized environmental parameters. The preset environmental parameters refer to the environmental parameters provided by the UGC editor, that is, the environmental parameters provided by the application developer. The customized environmental parameters refer to the environmental parameters set by the user. The environmental parameters set by the user can override the preset environmental parameters, that is, the sky environment indicated by the environmental parameters set by the user is presented in the virtual scene. The UGC editor stores two sets of parameters, the preset environmental parameters and the customized environmental parameters, which facilitates the user to compare the customized environmental parameters with the preset environmental parameters, assisting the user to make a configuration that meets his or her expectations during the control process of the sky environment, and the user can use the preset environmental parameters and the customized environmental parameters to match them, thereby increasing the convenience and freedom of the user to control the sky environment.
[0230] In one possible implementation, step 2102 includes at least one of the following:
[0231] (1) The terminal obtains the second sky background parameter based on the sky background editing operation in the sky environment editing sub-interface. This step is similar to the implementation of the above step 3032 and will not be repeated here.
[0232] (2) The terminal obtains the second lighting parameter based on the lighting editing operation in the sky environment editing sub-interface. This step is similar to the implementation of the above step 3033 and will not be repeated here.
[0233] The second environmental parameter includes at least one of a second sky background parameter and a second illumination parameter. The terminal executes at least one of the above (1) or (2) to obtain at least one of the second sky background parameter and the second illumination parameter to constitute the second environmental parameter.
[0234] In an embodiment of the present application, the elements in the sky environment are divided into sky background and lighting. The user can choose to edit at least one element in the sky background or lighting, that is, the editing of the sky background and lighting can be completed at one time, thereby meeting the effect requirements of different sky environments in various virtual scenes, and freely matching different sky background effects and lighting effects, further improving the flexibility of controlling the sky environment.
[0235] 2103. The terminal transforms the sky environment in the virtual scene to the sky environment indicated by the second environment parameter.
[0236] After acquiring the second environment parameter for editing the sky environment, the terminal transforms the sky environment in the virtual scene into the sky environment indicated by the second environment parameter.
[0237] Among them, the difference between the embodiment of the present application and the embodiment of Figure 3 above is that after completing the editing of the transformation signal and the environmental parameters, the embodiment of Figure 3 above automatically performs the transformation based on the environmental parameters when the transformation signal is triggered, while the embodiment of the present application directly performs the transformation based on the environmental parameters after completing the editing of the environmental parameters.
[0238] In some embodiments, during the editing of the second environmental parameters, the terminal may dynamically update the sky environment according to the real-time environmental parameters during the editing process, so that the user can view the effect of the sky environment in real time, thereby improving the efficiency of setting the environmental parameters.
[0239] Figure 24 is a system architecture diagram of a sky environment control method provided by an embodiment of the present application. As shown in Figure 24, the system of the sky environment control method consists of four parts, namely a sky environment transformation creation module 2401, a sky environment transformation animation driving module 2402, a sky environment transformation animation choreography module 2403 and a sky environment transformation module 2404. From the overall design point of view, the sky environment transformation creation module 2401 is responsible for editing and producing sky environment transformation data. The sky environment transformation animation driving module 2402 and the sky environment transformation animation choreography module 2403 are responsible for understanding the sky environment transformation data and determining the environmental parameters of each picture. The sky environment transformation module 2404 is responsible for rendering based on the environmental parameters to produce the final picture effect. Each module is introduced in detail below.
[0240] 1. Sky Environment Transformation Creation Module. The Sky Environment Transformation Creation Module includes a UGC editor for editing sky environment transformation data, including sky background parameters, lighting parameters, and signals (including transformation signals, pause transformation signals, and end signals, etc.), and saves the sky environment transformation data in a sky environment transformation data list. The editor includes a sky background setting interface, a lighting setting interface, a transformation addition interface, a transformation deletion interface, a signal modification interface, a sky background modification interface, a lighting modification interface, and a save interface. The sky background setting interface is used to adjust the sky background in the virtual scene; the lighting setting interface is used to adjust the lighting in the virtual scene; the transformation addition interface is used to create sky environment transformation data; the transformation deletion interface is used to delete sky environment transformation data; the signal modification interface is used to set transformation signals, pause transformation signals, and end signals; the sky background modification interface is used to set the transition duration and sky background parameters when the transformation is completed; the lighting modification interface is used to set the lighting parameters when the transformation is completed; and the save interface is used to apply the sky environment transformation data to the virtual scene to display the corresponding transformation effect. In addition, the Sky Environment Transformation Creation Module also provides a preview interface for previewing the transformation effect corresponding to the currently edited sky environment transformation data.
[0241] 2. Sky Environment Transformation Animation Driver Module. This module is used to determine the sky environment parameters for each frame based on the sky environment transformation data, such as the sky background parameters required for sky background transformation and the lighting parameters required for lighting transformation. This module includes the animation driver timer shown in Figure 15 above.
[0242] 3. Sky Environment Transformation Animation Choreography Module. The Sky Environment Transformation Animation Choreography Module is responsible for choreographing sky environment transformation events. When the trigger conditions are met in the UGC virtual scene, the corresponding signal is input. The Sky Environment Transformation Animation Choreography Module analyzes the signal based on the sky environment transformation data list to determine whether a corresponding transformation exists. If so, the Sky Environment Transformation Animation Driver Module will drive the animation.
[0243] For example, triggering a sky environment change event, pausing a sky environment change event, and resuming a sky environment change event.
[0244] 4. Sky Environment Transformation Module. The Sky Environment Transformation Module is used to modify the parameters of the sky background component and lighting component in the virtual scene. Sky background transformation involves sky background parameters and transition effects, including linear and axial transitions. Lighting transformation involves lighting parameters. This module includes interfaces for setting the sky background image, directional light intensity, light color, skylight intensity, light pitch angle, and light yaw angle.
[0245] FIG25 is a flowchart of another sky environment control method provided in an embodiment of the present application, which includes the following steps.
[0246] 2501. The terminal displays a sky environment control interface in the UGC editor of the game application. The sky environment control interface is used to control the sky environment in the virtual scene.
[0247] 2502. The terminal displays the created transformation event identifiers and the event status corresponding to each created transformation event identifier on the sky environment control interface. The event status includes an untransformed state, a transforming state, and a paused transformation state.
[0248] 2503. In response to the triggering operation on the sky environment transformation option in the sky environment control interface, the terminal displays a transformation event editing sub-interface in the sky environment control interface.
[0249] 2504. The terminal obtains a transformation signal, a first environment parameter, a transition duration, a pause transformation signal, an end signal, and a transformation event identifier based on the editing operation in the transformation event editing sub-interface.
[0250] 2505. In response to a transformation signal triggered in the virtual scene, the terminal transforms the sky environment in the virtual scene to the sky environment indicated by the first environment parameter in a transition transformation manner within a transition duration.
[0251] 2506. During the process of transforming the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter, the terminal stops transforming the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter in response to a pause transformation signal triggered in the virtual scene.
[0252] 2507. In response to the transformation signal triggered again in the virtual scene, the terminal continues to transform the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter from the last time the transformation was stopped.
[0253] 2508. After completing the transformation of the sky environment indicated by the first environmental parameter, the terminal triggers an end signal in the virtual scene.
[0254] FIG26 is a schematic diagram of the structure of a sky environment control device provided in an embodiment of the present application. The device includes:
[0255] A first display module 2601 is used to display a sky environment control interface in the UGC editor, where the sky environment control interface is used to manage the sky environment in the virtual scene;
[0256] A first acquisition module 2602 is configured to acquire a transformation signal and a first environment parameter corresponding to the transformation signal based on a sky environment transformation operation in a sky environment control interface;
[0257] The sky environment transformation module 2603 is configured to transform the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in response to a transformation signal triggered in the virtual scene.
[0258] Optionally, the sky environment control interface includes a sky environment change option; the first acquisition module 2602 is used to:
[0259] In response to a triggering operation on a sky environment transformation option, displaying a transformation event editing sub-interface on the sky environment control interface;
[0260] Based on the editing operation in the transformation event editing sub-interface, a transformation signal and a first environment parameter are obtained.
[0261] Optionally, the first obtaining module 2602 is configured to:
[0262] Based on the signal editing operation in the transformation event editing sub-interface, the transformation signal is obtained;
[0263] Based on the sky background editing operation in the transformation event editing sub-interface, obtain the first sky background parameter;
[0264] Based on the lighting editing operation in the transformation event editing sub-interface, obtain the first lighting parameter;
[0265] The first environmental parameter includes at least one of a first sky background parameter and a first illumination parameter.
[0266] Optionally, the first acquisition module 2602 is configured to acquire a transformation signal, a first environment parameter, and a transition duration based on a sky environment transformation operation;
[0267] The sky environment transformation module 2603 is configured to respond to a transformation signal triggered in the virtual scene and transform the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in a transition transformation manner within a transition duration.
[0268] Optionally, the sky environment transformation module 2603 is configured to:
[0269] In response to a transformation signal triggered in the virtual scene, determining a picture refresh interval of the virtual scene;
[0270] Obtaining a third environment parameter of the current sky environment in the virtual scene;
[0271] Determine the environmental parameters of each frame within the transition duration based on the transition duration, the image refresh interval, the third environmental parameter, and the first environmental parameter, wherein the environmental parameters of the first frame within the transition duration are the third environmental parameters, and the environmental parameters of the last frame within the transition duration are the first environmental parameters;
[0272] During the transition duration, each frame is displayed in sequence according to the frame refresh interval and based on the environmental parameters of each frame.
[0273] Optionally, the first acquisition module 2602 is configured to acquire a transformation signal, a first environment parameter, and a pause transformation signal based on a sky environment transformation operation;
[0274] The sky environment transformation module 2603 is also used to stop transforming the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter in response to a pause transformation signal triggered in the virtual scene during the process of transforming the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter.
[0275] Optionally, the sky environment transformation module 2603 is further configured to respond to a transformation signal triggered again in the virtual scene, and continue transformation to the sky environment indicated by the first environment parameter starting from the transformation progress when it was last stopped.
[0276] Optionally, referring to FIG. 27 , a first acquisition module 2602 is configured to acquire a transformation signal, a first environment parameter, and an end signal based on a sky environment transformation operation;
[0277] The device also includes a signal triggering module 2604, which is used to trigger an end signal in the virtual scene when the environment changes to the sky environment indicated by the first environmental parameter, and the end signal is used to trigger the start of a specific event in the virtual scene.
[0278] Optionally, referring to FIG27 , the UGC editor is further used to control signals in the virtual scene, and the apparatus further includes:
[0279] The second display module 2605 is used to display a signal control interface in the UGC editor, where the signal control interface is used to control signals in the virtual scene;
[0280] The second acquisition module 2606 is used to acquire the conversion signal and the trigger condition corresponding to the conversion signal based on the signal editing operation in the signal control interface;
[0281] The signal triggering module 2604 is configured to trigger a transformation signal in the virtual scene when a triggering condition is met.
[0282] Optionally, the first display module 2601 is further configured to:
[0283] Display the created transformation event identifier on the sky environment control interface, where the transformation event identifier is used to indicate the transformation event composed of the transformation signal and the environment parameters;
[0284] In response to a triggering operation on the transformation event identifier, a transformation signal and an environmental parameter in the transformation event indicated by the transformation event identifier are displayed.
[0285] Optionally, the first display module 2601 is used to display the created transformation event identifier and the event status corresponding to the created transformation event identifier on the sky environment control interface, where the event status includes an untransformed state, a transforming state, and a paused transformation state.
[0286] Optionally, referring to FIG. 27 , the sky environment control interface includes a sky environment editing option; the device further includes:
[0287] The third acquisition module 2607 is configured to display a sky environment editing sub-interface on the sky environment control interface in response to a triggering operation on the sky environment editing option; and acquire a second environment parameter based on the editing operation in the sky environment editing sub-interface;
[0288] The sky environment transformation module 2603 is further configured to transform the current sky environment in the virtual scene into the sky environment indicated by the second environment parameter.
[0289] Optionally, the sky environment editing sub-interface includes preset options and custom options; the third acquisition module 2607 is used to:
[0290] In response to a trigger operation on a preset option, obtaining preset environmental parameters; or,
[0291] In response to a trigger operation on the custom option, an environment parameter determined based on the user operation is obtained.
[0292] Optionally, the third acquisition module 2607 is configured to implement at least one of the following:
[0293] Based on the sky background editing operation in the sky environment editing sub-interface, obtain the second sky background parameters;
[0294] Based on the lighting editing operation in the sky environment editing sub-interface, obtain the second lighting parameter;
[0295] The second environmental parameter includes at least one of a second sky background parameter and a second lighting parameter.
[0296] It should be noted that the sky environment control device provided in the above embodiment is merely an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the sky environment control device provided in the above embodiment and the sky environment control method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0297] An embodiment of the present application also provides a terminal, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed in the sky environment control method of the above embodiment.
[0298] FIG28 shows a schematic structural diagram of a terminal 2800 provided by an exemplary embodiment of the present application.
[0299] The terminal 2800 includes a processor 2801 and a memory 2802 .
[0300] The processor 2801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 2801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 2801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0301] Memory 2802 may include one or more computer-readable storage media, which may be non-transitory. Memory 2802 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 2802 is used to store at least one computer program, which is used by processor 2801 to implement the sky environment control method provided in the method embodiment of the present application.
[0302] In some embodiments, terminal 2800 may optionally include a peripheral device interface 2803 and at least one peripheral device. Processor 2801, memory 2802, and peripheral device interface 2803 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 2803 via a bus, signal lines, or circuit boards. Optionally, the peripheral device includes at least one of a radio frequency circuit, a display screen, a camera assembly, an audio circuit, and a power supply.
[0303] The peripheral device interface 2803 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 2801 and the memory 2802. In some embodiments, the processor 2801, the memory 2802, and the peripheral device interface 2803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2801, the memory 2802, and the peripheral device interface 2803 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0304] Those skilled in the art will understand that the structure shown in FIG28 does not constitute a limitation on the terminal 2800 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0305] An embodiment of the present application also provides a computer-readable storage medium, which stores at least one computer program. The at least one computer program is loaded and executed by a processor to implement the operations performed by the sky environment control method of the above embodiment.
[0306] An embodiment of the present application further provides a computer program product, including a computer program, which is loaded and executed by a processor to implement the operations performed by the sky environment control method of the above embodiment.
[0307] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0308] The above description is merely an optional embodiment of the embodiments of the present application and is not intended to limit the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the embodiments of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for controlling a sky environment, the method being executed by a terminal, the method comprising: Displaying a sky environment control interface in a user generated content (UGC) editor, wherein the sky environment control interface is used to control the sky environment in the virtual environment; Based on the sky environment transformation operation in the sky environment control interface, obtaining a transformation signal and a first environment parameter corresponding to the transformation signal; In response to the transformation signal triggered in the virtual scene, the current sky environment in the virtual scene is transformed to the sky environment indicated by the first environmental parameter.
2. The method according to claim 1, wherein: The sky environment control interface includes a sky environment transformation option; the obtaining of a transformation signal and a first environment parameter corresponding to the transformation signal based on the sky environment transformation operation in the sky environment control interface includes: In response to a triggering operation on the sky environment transformation option, displaying a transformation event editing sub-interface on the sky environment control interface; Based on the editing operation in the transformation event editing sub-interface, the transformation signal and the first environment parameter are obtained.
3. The method according to claim 2, wherein: The acquiring the transformation signal and the first environment parameter based on the editing operation in the transformation event editing sub-interface includes: Based on the signal editing operation in the transformation event editing sub-interface, acquiring the transformation signal; Based on the sky background editing operation in the transformation event editing sub-interface, obtaining a first sky background parameter; Based on the lighting editing operation in the transformation event editing sub-interface, obtaining a first lighting parameter; The first environmental parameter includes at least one of the first sky background parameter and the first lighting parameter.
4. The method according to any one of claims 1 to 3, wherein: The acquiring of a transformation signal and a first environment parameter corresponding to the transformation signal based on the sky environment transformation operation in the sky environment control interface includes: Based on the sky environment transformation operation, acquiring the transformation signal, the first environment parameter and the transition duration; The step of transforming the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter in response to the transformation signal triggered in the virtual scene comprises: In response to the transformation signal triggered in the virtual scene, the current sky environment in the virtual scene is transformed to the sky environment indicated by the first environmental parameter in a transitional transformation manner within the transition duration.
5. The method according to claim 4, wherein: The step of responding to the transformation signal triggered in the virtual scene and transforming the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter in a transitional transformation manner within the transition duration includes: In response to the transformation signal triggered in the virtual scene, determining a picture refresh interval of the virtual scene; Acquire a third environment parameter of the current sky environment in the virtual scene; Based on the transition duration, the picture refresh interval, the third environment parameter and the first environment parameter, determining the environment parameter of each frame within the transition duration, the environment parameter of the first frame within the transition duration is the third environment parameter, and the environment parameter of the last frame within the transition duration is the first environment parameter; During the transition time, each frame is displayed in sequence according to the frame refresh interval and based on the environmental parameters of each frame.
6. The method according to any one of claims 1 to 5, wherein: The acquiring of a transformation signal and a first environment parameter corresponding to the transformation signal based on the sky environment transformation operation in the sky environment control interface includes: Based on the sky environment change operation, acquiring the change signal, the first environment parameter and a pause change signal; The method further comprises: In the process of transforming the sky environment in the virtual scene to the sky environment indicated by the first environmental parameter, in response to the pause transformation signal triggered in the virtual scene, the transformation of the current sky environment in the virtual scene to the sky environment indicated by the first environmental parameter is stopped.
7. The method according to claim 6, wherein: The method further comprises: In response to the transformation signal being triggered again in the virtual scene, the transformation continues to be made to the sky environment indicated by the first environmental parameter, starting from the transformation progress at the last stop.
8. The method according to any one of claims 1 to 7, wherein: The acquiring, based on the sky environment transformation operation in the sky environment control interface, a transformation signal and a first environment parameter corresponding to the transformation signal comprises: Based on the sky environment transformation operation, acquiring the transformation signal, the first environment parameter and an end signal; The method further comprises: When the environment changes to the sky environment indicated by the first environmental parameter, the end signal is triggered in the virtual scene, and the end signal is used to trigger the start of a specific event in the virtual scene.
9. The method according to any one of claims 1 to 8, wherein: The method further comprises: Displaying a signal control interface in the UGC editor, wherein the signal control interface is used to control the signal in the virtual scene; Based on the signal editing operation in the signal control interface, acquiring the transformation signal and the triggering condition corresponding to the transformation signal; When the trigger condition is met, the transformation signal is triggered in the virtual scene.
10. The method according to any one of claims 1 to 9, wherein: The method further comprises: Displaying the created transformation event identifier on the sky environment control interface, the transformation event identifier is used to indicate the transformation event composed of the transformation signal and the environment parameter; In response to a triggering operation on the transformation event identifier, a transformation signal and an environmental parameter in the transformation event indicated by the transformation event identifier are displayed.
11. The method according to claim 10, wherein: The displaying of the created transformation event identifier in the sky environment control interface includes: The created transformation event identifier and the event status corresponding to the created transformation event identifier are displayed on the sky environment control interface, and the event status includes an untransformed state, a transforming state and a paused transformation state.
12. The method according to any one of claims 1 to 11, wherein: The sky environment control interface includes a sky environment editing option; the method further includes: In response to a triggering operation on the sky environment editing option, displaying a sky environment editing sub-interface on the sky environment control interface; Based on the editing operation in the sky environment editing sub-interface, obtaining a second environment parameter; The current sky environment in the virtual scene is transformed to a sky environment indicated by the second environment parameter.
13. The method according to claim 12, wherein: The sky environment editing sub-interface includes preset options and custom options; the acquiring the second environment parameter based on the editing operation in the sky environment editing sub-interface includes: In response to a triggering operation on the preset option, obtaining preset environmental parameters; or, In response to a triggering operation on the custom option, an environmental parameter determined based on the user operation is acquired.
14. The method according to claim 12, wherein: The acquiring of the second environment parameter based on the editing operation in the sky environment editing sub-interface includes at least one of the following: Based on the sky background editing operation in the sky environment editing sub-interface, obtaining a second sky background parameter; Based on the lighting editing operation in the sky environment editing sub-interface, obtaining a second lighting parameter; The second environmental parameter includes at least one of the second sky background parameter and the second lighting parameter.
15. A sky environment control device, comprising: A first display module is used to display a sky environment control interface in a user generated content (UGC) editor, where the sky environment control interface is used to control the sky environment in the virtual environment; A first acquisition module, configured to acquire a transformation signal and a first environment parameter corresponding to the transformation signal based on a sky environment transformation operation in the sky environment control interface; The sky environment transformation module is used to transform the current sky environment in the virtual scene to the sky environment indicated by the first environment parameter in response to the transformation signal triggered in the virtual scene.
16. A terminal, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the operations performed by the sky environment control method according to any one of claims 1 to 14.
17. A computer-readable storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the operations performed by the sky environment control method according to any one of claims 1 to 14.
18. A computer program product, comprising a computer program, wherein the computer program is loaded and executed by a processor to implement the operations performed by the sky environment control method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Method and device for realizing game scene environment change, storage medium and computer equipment
CN112206519A
Planning virtual tourism
CN115705611A
Sky illumination switching method and device in game and electronic equipment
CN116850580A
Sky background switching method and device in game and electronic equipment
CN116850581A
Sky environment control method and device, terminal and storage medium
CN117357891A