Sky background switching method, device and electronic equipment in game
Patent Information
- Application Number
- CN202310602726.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-25
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2043-05-25
AI Technical Summary
但是,该方式只能在游戏关卡的编辑模式中实现背景切换,导致玩家游戏体验感较差;同时,天空盒在切换的时候因为单纯依赖运动器,背景切换表现较为单调,难以满足玩家需求
[0009] This invention provides a method, apparatus, and electronic device for switching the sky background in a game. First, in response to a sky background switching event, the method determines the target sky background information and switching parameters corresponding to the event. Then, based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information. The dynamically changing sky background of the game scene during this updating process is dynamically displayed in the graphical user interface. The process of updating the sky background information involves changing the sky background information corresponding to the game scene from the current sky background information to the target sky background information. In this method, players can trigger a sky background switching event to switch the sky background corresponding to the game scene during gameplay. Furthermore, this method enriches the performance of the sky background switching through switching parameters, thus enhancing the player's gaming experience.
Smart Images

Figure CN117122914B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game interaction design technology, and in particular to a method, device and electronic device for switching sky backgrounds in games. Background Technology
[0002] When users showcase or share their original content on internet platforms, background transitions are often necessary to indicate changes in location or to evoke specific emotions. Common technologies use a skybox to encapsulate the game scene, and the skybox's movement is used to change the background. However, this method only allows background transitions in the game level's edit mode, resulting in a poor player experience. Furthermore, because the skybox relies solely on motion sensors, the background transition animation is rather monotonous and fails to meet player expectations. Summary of the Invention
[0003] The purpose of this invention is to provide a method, device, and electronic device for switching the sky background in a game, so as to switch the sky background in the game level, enrich the sky background switching performance, and enhance the player's gaming experience.
[0004] In a first aspect, the present invention provides a method for switching the sky background in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays a portion of the game scene and the sky background corresponding to the game scene; wherein, the sky background is a background generated based on sky background information; the method includes: responding to a sky background switching event, determining the target sky background information and switching parameters corresponding to the sky background switching event; based on the switching parameters, updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically displaying the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0005] Secondly, the present invention provides a sky background switching device in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays a scene of a portion of the game scene and a sky background corresponding to the game scene; wherein, the sky background is a background generated based on sky background information; the device includes: an information acquisition module, used to respond to a sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event; a sky background switching module, used to update the sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the switching parameters, and dynamically display the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0006] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the sky background switching method in the above-mentioned game.
[0007] Fourthly, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the sky background switching method in the aforementioned game.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] This invention provides a method, apparatus, and electronic device for switching the sky background in a game. First, in response to a sky background switching event, the method determines the target sky background information and switching parameters corresponding to the event. Then, based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information. The dynamically changing sky background of the game scene during this updating process is dynamically displayed in the graphical user interface. The process of updating the sky background information involves changing the sky background information corresponding to the game scene from the current sky background information to the target sky background information. In this method, players can trigger a sky background switching event to switch the sky background corresponding to the game scene during gameplay. Furthermore, this method enriches the performance of the sky background switching through switching parameters, thus enhancing the player's gaming experience.
[0010] Other features and advantages of the invention will be set forth in the following description, or some features and advantages may be inferred from the description or determined without doubt, or may be learned by practicing the techniques described above.
[0011] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0012] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0013] Figure 1 A flowchart illustrating a method for switching the sky background in a game, as provided in an embodiment of the present invention;
[0014] Figure 2 A flowchart illustrating another method for switching the sky background in a game, provided as an embodiment of the present invention;
[0015] Figure 3 This is a schematic diagram illustrating an embodiment of the present invention for updating the sky background based on a first switching method;
[0016] Figure 4 This is a schematic diagram illustrating an embodiment of the present invention for updating the sky background based on a second switching method;
[0017] Figure 5 A flowchart illustrating another method for switching the sky background in a game, provided as an embodiment of the present invention;
[0018] Figure 6 A flowchart illustrating another method for switching the sky background in a game, provided as an embodiment of the present invention;
[0019] Figure 7 A schematic diagram of a parameter setting panel provided in an embodiment of the present invention;
[0020] Figure 8 A schematic diagram of a sky background switching device in a game provided by an embodiment of the present invention;
[0021] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0023] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0024] When users showcase or share their original content with other users through internet platforms, background switching is often necessary to indicate a change in location or to evoke a specific mood. Therefore, background switching has numerous application scenarios and usage requirements in UGC (User Generated Content).
[0025] In related technologies, UGC players can only change backgrounds by enclosing the game scene using a skybox component and then moving the skybox to achieve the background change. This method is difficult to implement and places high demands on game development. Furthermore, due to game optimization limitations, the background cannot be made very detailed, severely restricting the size of the player's game level. Currently, the official background switching method only works in the game level's edit mode. Because the skybox resources are stored within the game scene, dynamically adjusting the skybox in-game requires the client to reload the game scene, thus interrupting the user's gaming experience.
[0026] The related technologies also provide multiple skybox resources. Without dynamic skybox switching, each map can only be used by a single player, severely limiting the creative potential of user-generated content (UGC). Furthermore, the background switching in these technologies relies solely on motion sensors, resulting in a monotonous presentation that fails to meet player expectations.
[0027] To address the aforementioned issues, this invention provides a method, apparatus, and electronic device for switching sky backgrounds in games. This technology can be applied to sky background switching and pause switching scenarios in game levels.
[0028] In one embodiment of this disclosure, the sky background switching method in the game can run on a local terminal device or a server. When the interactive control method in the game runs on a server, the method can be implemented and executed based on a cloud interactive system, wherein the cloud interactive system includes a server and a client device.
[0029] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the sky background switching method in the game are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0030] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0031] In one possible implementation, this embodiment of the invention provides a method for switching sky backgrounds in a game. A graphical user interface (GUI) is provided through a terminal device, which can be either a local terminal device or a client device in a cloud interaction system. The GUI displays a portion of the game scene and the corresponding sky background; wherein the sky background is a background generated based on sky background information. Figure 1 As shown, the method includes the following specific steps:
[0032] Step S102: Respond to the sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event.
[0033] The aforementioned sky background switching event indicates the start of updating the sky background information corresponding to the game scene. This sky background switching event can be determined based on player settings or development needs. Similarly, the target sky background information and switching parameters corresponding to the sky background switching event can also be determined based on player settings or player needs. Specifically, players can set the sky background switching event, as well as the target sky background information and switching parameters corresponding to the event, in the game editor. The aforementioned switching parameters include at least one of the following: switching duration and switching method; the switching duration indicates the time required for the sky background information corresponding to the game scene to be updated from the current sky background information to the target sky background information. This switching duration can be 0 seconds, 3 seconds, or 5 seconds, etc.
[0034] In an optional embodiment, the aforementioned sky background switching event may be a trigger operation for a switching control displayed in a graphical user interface, or it may be a controlled virtual object controlled by a terminal device entering a target area, etc., without specific limitations.
[0035] In the specific implementation, when a player triggers a sky background switching event, the system first obtains the current sky background information of the game scene, as well as the target sky background information and switching parameters corresponding to the sky background switching event. The current sky background information is the sky background information corresponding to the game scene at the time the sky background switching event occurs. Specifically, this sky background information can be a sky background texture or background parameters used to control the sky background texture.
[0036] In one optional embodiment, the game scene includes a skybox, and the sky background information corresponding to the game scene is the attribute information corresponding to the skybox. The sky background is a background generated based on the sky background information of the skybox. The skybox can cover the entire game scene and provide a sky background for the game scene based on the sky background information. It should be noted that the sky background information corresponding to the skybox described below is also the sky background information corresponding to the game scene.
[0037] Step S104: Based on the above switching parameters, update the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically display the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0038] When a sky background switching event occurs, the sky background information corresponding to the game scene can be updated from the current sky background information to the target sky background information according to the switching parameters. During the update process, the updated sky background information corresponding to the game scene is calculated in real time for each update, and the sky background of the game scene rendered based on the updated sky background information is displayed in the graphical user interface. This allows the updated sky background to be dynamically displayed in the graphical user interface, enabling players to intuitively see the changes in the sky background of the game scene in the process of changing by adjusting the game view.
[0039] In an optional embodiment, the process of updating the sky background information may take a preset duration or may be completed immediately, depending on the player's settings. Typically, the preset duration matches the switching duration, which can be determined according to the player's settings.
[0040] This invention provides a method for switching the sky background in a game. In this method, players can trigger a sky background switching event to switch the sky background corresponding to the game scene during the game. At the same time, this method enriches the performance of sky background switching through switching parameters, which helps to improve the player's gaming experience.
[0041] This invention provides a method for switching the sky background in a game. This method is implemented based on the above embodiments. The method focuses on describing the specific process of updating the sky background information of the game scene from the current sky background information to the target sky background information based on the switching parameter (when the switching parameter is the switching duration), and dynamically displaying the dynamically changing sky background information in the graphical user interface during the updating process (implemented through steps S206-S210 below); as follows: Figure 2 As shown, the method includes the following specific steps:
[0042] Step S202: Respond to the game start command and control the graphical user interface to display the game scene corresponding to the game match.
[0043] The game start command mentioned above can be determined according to the game rules. For example, the game start command can be triggered by the player clicking the start game control in the graphical user interface; the game start command can also be triggered by the player clicking any area in the graphical user interface. When the game scene corresponding to the game match is displayed in the graphical user interface, the controlled virtual object controlled by the terminal device is in the game level or game match.
[0044] Step S204: Respond to the sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event; wherein, the switching parameters include the switching duration.
[0045] Step S206: Based on the switching duration, determine the change parameters of the sky background information per unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information.
[0046] In practical implementation, the changing parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information. The aforementioned unit time refers to the time frame during which the sky background information corresponding to the game scene changes while updating the current sky background information to the target sky background information. For example, if the sky background information changes 10 times per second, then each second contains 10 units of time. Therefore, the longer the switching duration, the more units of time the sky background information changes during the process of updating the current sky background information to the target sky background information. Furthermore, as time progresses, the proportion of the target sky background information in the updated sky background information gradually increases within the changing parameter per unit time, until it reaches 1. At this point, the updated sky background information is also the target sky background information.
[0047] Step S208: Based on the change parameters of the sky background information per unit time, the current sky background information, and the target sky background information, dynamically update the sky background information corresponding to the game scene in chronological order.
[0048] In practical implementation, the switching parameters may also include the switching method. Different switching methods determine the way the sky background information corresponding to the dynamically updated game scene is determined based on the change parameters of the sky background information per unit time, the current sky background information, and the target sky background information.
[0049] In an optional embodiment, if the switching parameters further include a first switching mode; and the sky background information includes multiple pixels; then the above step S208 can be implemented by the following steps 10-12:
[0050] Step 10: According to the time sequence, dynamically determine the pixels to be updated among multiple pixels in the sky background information based on the first switching method and the changing parameters; wherein, the pixels to be updated are some pixels among multiple pixels in the sky background information.
[0051] Specifically, the aforementioned first switching method typically involves gradually displaying the sky background rendered based on the target sky background information from one end of the game scene's sky background to the other. In other words, it replaces the current sky background information corresponding to the game scene with the target sky background information in a progressive manner from one end to the other. This first switching method can be called a progressive method or a burning method, etc. If the switching parameters include the first switching method, then it is necessary to dynamically determine which pixels in the sky background information are to be updated based on the changing parameters.
[0052] Based on the above description, the aforementioned changing parameter is the proportion of pixels in the target sky background information and pixels in the current sky background information in the updated sky background information. In an optional embodiment, the aforementioned changing parameter may also be the proportion of the number of pixels in the current sky background information to the number of pixels in the target sky background information in the updated sky background information.
[0053] Step 11: Determine the target pixel value corresponding to the pixel to be updated based on the target sky background information.
[0054] In practical implementation, if the target sky background information is a sky background texture, the pixel value corresponding to the pixel to be updated in the sky background texture can be determined as the target pixel value. If the target sky background information is a background parameter, the target pixel value of the pixel to be updated can be determined based on the background parameter.
[0055] Step 12: Update the pixel value of the pixel to be updated from the current pixel value determined based on the current sky background information to the target pixel value.
[0056] like Figure 3 The diagram shown is a schematic diagram of updating the sky background based on a first switching method according to an embodiment of the present invention. Figure 3 This is a schematic diagram of the sky background rendered during the process of updating the current sky background to the target sky background information. Figure 3 In the first image, the part to the right of the transition line at the countdown position is the sky background of the game scene rendered based on the target sky background information, and the part to the right of the transition line is the sky background of the game scene rendered based on the current target sky background information. Figure 3 The countdown for the first image is 2 minutes and 48 seconds, and the countdown for the second image is 2 minutes and 45 seconds. Figure 3 As can be seen, in chronological order, the proportion of the sky background in the game scene rendered based on the target sky background information gradually increases in the updated sky background.
[0057] In another optional embodiment, if the switching parameters further include a second switching method; and the sky background information includes multiple pixels; then the above step S208 can be implemented by the following steps 20-22:
[0058] Step 20: Determine the pixels to be updated among multiple pixels in the sky background information according to the second switching method; wherein, the pixels to be updated are all pixels among multiple pixels in the sky background information.
[0059] Specifically, the second switching method mentioned above refers to the sky background of the game scene. Based on the sky background rendered from the current sky background information, the entire sky background gradually emerges to resemble the sky background rendered from the target sky background information. This method can be called a gradient or transition method, etc. If the switching parameters include the second switching method, then all pixels in the sky background information are determined as the pixels to be updated.
[0060] Step 21: Determine the target pixel value corresponding to the pixel to be updated based on the target sky background information, and determine the current pixel value corresponding to the pixel to be updated based on the current sky background information.
[0061] In practical implementation, if the target sky background information is a sky background texture, the pixel value corresponding to the pixel to be updated in the sky background texture can be determined as the target pixel value. If the target sky background information is a background parameter, the target pixel value of the pixel to be updated can be determined based on the background parameter. The aforementioned current pixel value is the pixel value corresponding to the pixel to be updated in the current sky background information.
[0062] Step 22: In chronological order, dynamically update the pixel value of the pixel to be updated based on the changing parameters, the target pixel value, and the current pixel value.
[0063] In a specific implementation, the changing parameter can be the proportion of pixels in the target sky background information and pixels in the current sky background information in the updated sky background information. In an optional embodiment, the changing parameter can be the proportion of the pixel value of each pixel in the current sky background information and the pixel value of each pixel in the target sky background information in the updated sky background information.
[0064] like Figure 4 The diagram shown is a schematic diagram of updating the sky background based on a second switching method according to an embodiment of the present invention. Figure 4 This is a diagram illustrating the sky background rendered during the process of updating the current sky background to the target sky background information. Figure 4 The countdown for the first image is 2 minutes and 35 seconds, and the countdown for the second image is 2 minutes and 32 seconds. Figure 4 As can be seen, in chronological order, the sky background of the game scene rendered based on the target sky background information gradually appears in the updated sky background, that is, its proportion gradually increases.
[0065] In one specific embodiment, for each pixel to be updated, the current pixel value and the target pixel value corresponding to the pixel to be updated can be added together to obtain a sum. The product of the sum and the changing parameter is determined as the pixel value of the pixel to be updated.
[0066] Step S210: Dynamically display the dynamically changing sky background of the game scene rendered based on dynamically updated sky background information in the graphical user interface.
[0067] The sky background switching method in the aforementioned game can trigger a sky background switching event when the player is playing a game. According to the switching method and duration corresponding to the sky background switching event, the sky background information of the game scene is dynamically updated to the target sky background information. The dynamically changing sky background of the game scene, rendered based on the dynamically updated sky background information, is dynamically displayed in the graphical user interface. This method enriches the performance of sky background switching and helps to improve the player's gaming experience.
[0068] Based on the above embodiments, the following embodiments describe the switching parameters, including a third switching method, which is the method of switching the sky background of the game scene when switching immediately.
[0069] Specifically, in response to the sky background switching event, the target sky background information and switching parameters corresponding to the sky background switching event are determined; wherein, the switching parameters include a third switching method; according to the third switching method, the sky background information corresponding to the game scene is switched from the current sky background information to the target sky background information, and the sky background of the game scene rendered based on the target sky background information is continuously displayed in the graphical user interface.
[0070] This method can immediately switch the sky background information corresponding to the game scene to the target sky background information when the sky background switching event is triggered, so that the sky background in the graphical user interface changes from the sky background rendered based on the current sky background information to the sky background rendered based on the target sky background information in the next frame. This method can quickly achieve sky background switching.
[0071] Based on the above embodiments, the following embodiments describe a way to pause switching the sky background.
[0072] Specifically, during the process of updating the sky background information, the process of updating the sky background information is paused in response to the sky background pause update event, and the sky background of the game scene rendered according to the sky background information corresponding to the sky background pause update event is continuously displayed in the graphical user interface.
[0073] During the update of the sky background information, if the sky background information corresponding to the game scene has not switched to the target sky background information, and the player triggers a sky background pause update event, the update of the sky background information corresponding to the game scene will immediately stop, and the game scene's sky background effect rendered based on the sky background information corresponding to the sky background pause update event will continue to be displayed in the graphical user interface. At this time, the sky background of the game scene displayed in the graphical user interface may include: a first part of the game scene's sky background rendered by the current sky background information, and a second part of the game scene's sky background rendered by the target sky background information; wherein the first part and the second part can form a complete sky background.
[0074] In some embodiments, a preset transition effect is displayed in the sky background corresponding to the game scene, showing the connection between the first part of the game scene's sky background rendered from the current sky background information and the second part of the game scene's sky background rendered from the target sky background information. This preset transition effect is the transition effect corresponding to the first switching mode, and includes transition colors and transition styles, which can be determined in the game editor as needed.
[0075] In practical implementation, the aforementioned sky background pause update event can be determined based on player settings or development needs. Specifically, players can set a sky background pause update event in the game editor, which is used to indicate the trigger event for pausing the update of the sky background information corresponding to the game scene. In an optional embodiment, the aforementioned graphical user interface also displays a toggle control and a pause control; the aforementioned sky background toggle event includes triggering the toggle control; the sky background pause update event includes triggering the pause control.
[0076] Based on the above description, embodiments of the present invention also provide another method for switching the sky background in a game, such as... Figure 5 As shown, the method includes the following specific steps:
[0077] Step S402: Respond to the control command for the controlled virtual object corresponding to the terminal device, control the controlled virtual object to perform the first game behavior that meets the first preset condition, and control the triggering of the sky background switching event.
[0078] In practice, the first game action under the first preset condition can be determined based on player settings. Optionally, the first game action under the first preset condition can be controlling a controlled virtual object to move to a target area in the game scene. The target area is a specific area within the game scene, and the exact area within the game scene can be determined by the player settings.
[0079] Step S404: Respond to the sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event.
[0080] Step S406: Based on the switching parameters, update the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically display the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface.
[0081] In step S408, during the process of updating the sky background information, a control command is responded to for the controlled virtual object corresponding to the terminal device, the controlled virtual object is controlled to perform a second game behavior that meets the second preset condition, and the sky background update pause event is triggered.
[0082] Step S410: In response to the sky background pause update event, pause the process of updating the sky background information, and continuously display the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event in the graphical user interface.
[0083] In specific implementation, the second game behavior of the above-mentioned second preset condition can be determined according to the player's settings. Optionally, the second game behavior of the second preset condition can be to control the separation of the controlled virtual object from the target area in the game scene.
[0084] In the above method, players can control the sky background to switch and pause by controlling the movement of the controlled virtual object, which enriches the gameplay.
[0085] This invention also provides another method for switching the sky background in a game. This method focuses on describing the setting methods for sky background switching events, sky background pause / update events, target sky background information, and switching parameters; such as... Figure 6 As shown, the method includes the following specific steps:
[0086] Step S502: Display the game editing scene and editing window in the graphical user interface; wherein, the editing window includes multiple editable components.
[0087] The aforementioned game editing scene is a scene provided by the game program, or more accurately, a scene provided by the game editor. Within this scene, editable components can be manipulated. In practice, when a game editing command is triggered, the game editing scene and editing window are displayed in the graphical user interface. This command can be determined according to the game rules. For example, it could be entering the game editor or selecting a scene map for editing.
[0088] The aforementioned editing window can include multiple editable components. The specific component types and forms of these editable components can be set according to development needs. In practical applications, the editing window can include multiple different types of editable components, such as terrain components, mechanism components, decorative components, and combination components. Furthermore, each type of editable component contains multiple editable components, and the display parameters of editable components of the same type may differ in the game scene. That is, some editable components are visible in both the game editing scene and the game scene, while others are visible in the game editing scene but not in the game scene. For example, the large base plate component and the fan-shaped frustum component in the terrain component category, and the cylinder component and the gear component in the mechanism component category, are both visible in both the game editing scene and the game scene. However, the spawn point component and respawn alternative point component, etc., corresponding to the logic components in the mechanism component category, are visible in the game editing scene but not in the game scene.
[0089] In one specific embodiment, after the editing window is displayed in the graphical user interface, a selection operation on the target editable component is responded to, controlling the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein, the virtual object is configured to be displayed with preset display parameters. The preset display parameters include whether it is visible or invisible in the game scene. In specific implementation, the specific operation of the above selection operation can be determined according to the development needs. For example, the selection operation can be dragging the target editable component into the game editing scene, or it can be clicking or long-pressing the target editable component in the editing window, etc.
[0090] Step S504: Respond to the editing operation for the target editable component, and determine the switching conditions, switching parameters, and target sky background information of the target editable component; wherein, the switching parameters include the switching method and / or switching duration, the target editable component is a component among multiple editable components, and the switching conditions are configured to trigger the start or pause of updating the sky background information of the skybox of the game editing scene.
[0091] In practical applications, the aforementioned switching parameters may include only the switching method, only the switching duration, or both. The aforementioned switching conditions are equivalent to the sky background switching event and the sky background pause update event in the above embodiments. The specific operations described above can be determined based on development needs and player settings.
[0092] Step S506: According to the switching parameters corresponding to the target editable component, update the sky background information of the skybox from the current sky background information to the target sky background information, and dynamically display the rendered sky background of the game scene in the graphical user interface during the information switching process of updating the skybox.
[0093] After setting the switching conditions, switching parameters, and target sky background information for the target editable component, an interactive control in the graphical user interface (GUI) can be triggered. This GUI will then dynamically display the sky background of the game scene rendered during the skybox update process, based on the switching parameters of the target editable component. The sky background information of the skybox can also be understood as the sky background information of the game scene.
[0094] In this method, players can freely set the sky background switching event, sky background pause update event, switching parameters, and target sky background information corresponding to the target editable component in the game editing scene, thereby enriching the performance of sky background switching and helping to improve the player's gaming experience.
[0095] In an optional embodiment, the graphical user interface displays setting controls; step S506 can be implemented through the following steps 30-33:
[0096] Step 30: In response to the trigger operation for the setting control, display the parameter setting panel corresponding to the target editable component in the editing window; wherein, the parameter setting panel includes multiple editable controls; the editable controls are used to set the switching conditions, switching parameters and target sky background information of the target editable component.
[0097] In practice, the triggering operation for the settings control can be a click operation or a long press operation on the settings control; triggering the settings control can display the parameter settings panel corresponding to the target editable component. This parameter settings panel is used to set the sky background switching event, sky background pause update event, target sky background information, and background switching parameters corresponding to the target editable component.
[0098] Step 31: Respond to the first setting operation for the parameter setting panel and determine the switching conditions corresponding to the target editable component.
[0099] In practical implementation, the specific operation of the first setting operation can be determined based on the player's actions. The switching conditions include: a sky background switching event when the target editable component begins background switching, and a sky background pause update event when the target editable component pauses background switching. The parameter setting panel includes: a first editable control for setting the sky background switching event, and a second editable control for setting the sky background pause update event; therefore, in response to a first input operation on the first editable control, the sky background switching event corresponding to the target editable component can be set according to the first input operation; in response to a second input operation on the second editable control, the sky background pause update event corresponding to the target editable component can be set according to the second input operation.
[0100] The first and second input operations described above can be determined based on player actions, and players can perform input operations using a full keyboard. In an optional embodiment, the first input operation includes: setting a target component associated with a target editable component, and setting the sky background switching event to: the controlled virtual object controlled by the terminal device moves to the scene space determined by the target component; the second input operation sets the sky background pause update event to: the controlled virtual object moves out of the scene space determined by the target component. The scene control is a certain area in the game scene.
[0101] In another optional embodiment, the first input operation includes: setting a switching control in the graphical user interface and setting the sky background switching event to trigger the switching control; the second input operation includes: setting a pause control in the graphical user interface and setting the sky background pause update event to trigger the pause control.
[0102] Step 32: In response to the second setting parameter for the parameter setting panel, determine the switching parameter corresponding to the target editable component.
[0103] In practical implementation, the specific operation of the second setting mentioned above can be determined based on player actions. The switching parameters include switching methods. Based on this, the switching parameters are set as follows: In response to a click operation on the editable control corresponding to the switching method in the parameter setting panel, multiple preset switching methods are displayed in the parameter setting panel. Different switching methods correspond to different methods for determining the updated pixel points of the sky background information of the skybox, where the sky background information includes multiple pixels; In response to a trigger operation on the target switching method among the multiple preset switching methods, the target switching method is determined as the switching method corresponding to the target editable component. The multiple preset switching methods may include: a first switching method, a second switching method, and a third switching method.
[0104] In a specific implementation, if the target switching method includes a first switching method, the method further includes: responding to a trigger operation for a target switching method among multiple preset switching methods, displaying a transition setting control corresponding to the target switching method in a parameter setting panel; wherein, the transition style control is used to set the transition effect of the connection between the unupdated pixels and the unupdated pixels of the sky background information of the skybox; responding to a setting operation for the transition setting control, determining the transition effect corresponding to the target switching method, and determining the target switching method and the transition effect corresponding to the target switching method as the switching method corresponding to the target editable component. The transition effect includes transition color and / or transition style.
[0105] In one optional embodiment, the switching parameters include a switching duration. Based on this, the switching parameters corresponding to the target editable component are determined as follows: in response to an input operation on the switching duration in the parameter setting panel, the input value corresponding to the input operation is determined as the switching duration corresponding to the target editable component; wherein, the switching duration is the duration for updating the skybox's sky background information from the current sky background information to the target sky background information. Specifically, the input value corresponding to the input operation can be determined based on the player's operation. For example, the input value could be 5 seconds or 10 seconds.
[0106] Step 33: In response to the third setting operation for the parameter setting panel, determine the target sky background information corresponding to the target editable component.
[0107] In practice, the specific operation of the second setting operation can be determined based on the player's actions.
[0108] In an optional embodiment, the target sky background information corresponding to the target editable component can be determined through the following steps 40-42:
[0109] Step 40: Respond to the trigger operation of the editable control corresponding to the target sky background information in the parameter settings panel, and display the custom background option and at least one preset sky background texture in the parameter settings panel.
[0110] In practice, the custom background option allows players to set the target sky background information corresponding to the editable component according to their own needs; the preset sky background texture is a background texture of a specified style provided by the system.
[0111] Step 41: In response to a trigger operation targeting a first sky background texture in at least one preset sky background texture, determine the target sky background information based on the first sky background texture.
[0112] The aforementioned first sky background texture can be any of the preset sky background textures, and the specific preset sky background texture can be determined based on player actions. In practical implementation, the first sky background texture can be defined as the target sky background information.
[0113] In an optional embodiment, in response to a trigger operation targeting a first sky background texture among at least one preset sky background texture, a texture setting control can be displayed in a parameter setting panel. This texture setting control is used to set the texture parameters of the first sky background texture, which include at least one of the following: texture color, texture saturation, and texture transparency. In response to a setting operation targeting the texture setting control, the texture parameters of the first sky background texture are adjusted to obtain the adjusted first sky background texture. The adjusted first sky background texture is then designated as the target sky background information. In this method, players can adjust the selected sky background texture according to their needs, thereby quickly determining the target sky background information.
[0114] In an optional embodiment, in response to a trigger operation for a custom background option, a custom setting control can be displayed in the parameter setting panel; in response to a trigger operation for the custom setting control, multiple preset background parameters can be displayed in the parameter setting panel; in response to setting operations for the multiple preset background parameters, multiple target background parameters can be obtained, and the multiple target background parameters can be determined as the target sky background information. Specifically, the aforementioned preset background parameters include at least one of the following parameters: a first gradient color, a second gradient color, a gradient axis, an axis position, and a gradient contrast. When the target sky background information consists of multiple target background parameters, a sky background containing at least two gradient colors can be rendered based on the multiple target background parameters.
[0115] In one optional embodiment, in response to a trigger operation on the editable control corresponding to the target sky background information in the parameter settings panel, a "no transition background" option is displayed in the parameter settings panel; wherein, the "no transition background" option is used to indicate that the target editable component is disabled; in response to a trigger operation on the "no transition background" option, a pop-up message is displayed in the graphical user interface; wherein, the pop-up message is used to indicate that applying the "no transition background" option will disable the target editable component; in response to a confirmation operation on the pop-up message, the target editable component is disabled. In a specific implementation, if the "no transition background" option is triggered, the target editable component will be unable to switch the sky background, and at this time, the target editable component will also be disabled. The aforementioned pop-up message may allow the player to confirm whether they need to select the "no transition background" option and prompt the player about the phenomenon that occurs after selection.
[0116] In practical implementation, when a target editable component becomes disabled, a prompt message is displayed in the graphical user interface in response to a trigger operation on the target editable component. This prompt message indicates the reason for the target editable component's failure and how to resolve the failure. Specifically, the reason for failure could be that the option without a transition background was selected, and the method to resolve the failure could be to switch to a setting where the target editable component can only be enabled with a transition background.
[0117] In an optional embodiment, the parameter setting panel further includes a first interactive control; this first interactive control is used to preview the sky background switching effect corresponding to the target editable component in a game editing scene. Specifically, in response to a trigger operation on the first interactive control, the switching parameters set based on the target editable component are displayed in the graphical user interface. During the process of updating the sky background information of the skybox (equivalent to the sky background information corresponding to the game scene) from the current sky background information to the target sky background information set by the target editable component, the sky background of the game scene obtained by rendering the sky background information of the skybox is used. In this method, players can use the preview function provided by the first interactive control to check whether the sky background switching effect meets their needs.
[0118] For ease of understanding of the implementation of this invention, such as Figure 7 The diagram shown is a schematic diagram of a parameter setting panel provided in an embodiment of the present invention. Figure 7 The control corresponding to the sky background switched in the middle is the editable control corresponding to the target sky background information; Figure 7 The "event that starts the background switching" is also the sky background switching event, and its corresponding editable control is the first editable control. Clicking the first editable control will bring up the full keyboard. The "event that pauses the background switching" is also the sky background pause update event, and its corresponding editable control is the second editable control. Clicking the second editable control will bring up the full keyboard, where players can input the corresponding events as the sky background switching event and the sky background pause update event. The player clicks... Figure 7 The editable control corresponding to the background switching mode can display a drop-down list containing multiple preset switching modes. Figure 7 The player selected a gradient transition mode. Figure 7 The editable control for the background switching duration can pop up a small keyboard displaying numbers. Players can click on the numbers on the keyboard to set the background switching duration. Figure 7 The background transition time is set to 5 seconds. Figure 7 The sky background test control in the text is also the first interactive control.
[0119] In an optional embodiment, the graphical user interface also displays a second interactive control for simulating a game match scenario and playing the game in the simulated game match scenario.
[0120] Based on this, the method for switching the sky background in the above game can also be achieved through the following steps 50-55:
[0121] Step 50: In response to the trigger operation of the second interactive control, generate a game scene corresponding to the game editing scene based on the editable components in the game editing scene. The game scene includes a controlled virtual object corresponding to the terminal device and a virtual object generated based on the editable components and displayed with preset display parameters; wherein, the preset display parameters include visible and invisible.
[0122] Step 51: Respond to the movement command for the controlled virtual object, control the controlled virtual object to move to the scene space corresponding to the target component, and determine that the sky background switching event is satisfied.
[0123] Step 52: Respond to the sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event.
[0124] Step 53: Based on the switching parameters, update the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically display the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface. The process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0125] Step 54: During the process of updating the sky background information, respond to the movement command for the controlled virtual object, control the separation of the controlled virtual object from the scene space corresponding to the target component, and determine that the sky background update pause event is met.
[0126] Step 55: In response to the sky background pause update event, pause the process of updating the sky background information, and continuously display the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event in the graphical user interface.
[0127] In the above method, players can try out the game in the generated game scene corresponding to the game editing scene; at the same time, when trying out the game, they can trigger the sky background switching event to display the sky background of the game scene rendered during the process of updating the current sky background information to the target sky background information, so that players can further determine whether the set sky background switching effect meets their own needs.
[0128] In an optional embodiment, the graphical user interface further displays a third interactive control. Responding to touch operations on the third interactive control, the system controls the generation of game scene information corresponding to the game editing scene. The game scene information includes component information of edited components within the game editing scene. Edited components are the edited components that respond to editing operations among multiple editable components in the editing window. The system also controls the transmission of the game scene information to a server. The server is configured to communicate with a first terminal device, which is equipped with a game program. A second terminal device is configured to obtain game scene information from the server and generate a corresponding game scene based on the game scene information through the game program. The first terminal device can be a terminal device that touches the third interactive control, or it can be another terminal device that communicates with the server.
[0129] After triggering the third interactive control via a terminal device, game scene information corresponding to the game editing scene can be generated. This game scene information can be saved in a preset location, which can be a map file. This map file can save not only the game scene information but also other map information (including but not limited to screenshots, map names, logs, etc.). After saving the game scene information, the map file is uploaded to the server. Once the server approves the data, it can publish the game scene generated from the game scene information to a preset map pool. Terminal devices connected to the server can then download the corresponding game scene information from the server and generate the corresponding game scene based on that information through the game program, allowing players to experience the game within that scene. This method allows game scene information from the game editor to be published and experienced by other players, thus achieving rapid UGC functionality.
[0130] In addition to the above-described method embodiments, this invention also provides a sky background switching device in a game, which provides a graphical user interface through a terminal device; the graphical user interface displays scene images of part of the game scene and the corresponding sky background; wherein, the sky background is a background generated based on sky background information; such as Figure 8 As shown, the device includes:
[0131] The information acquisition module 70 is used to respond to the sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event.
[0132] The sky background switching module 71 is used to update the sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the switching parameters, and dynamically display the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0133] In the aforementioned game's sky background switching device, players can trigger a sky background switching event to change the sky background corresponding to the game scene during gameplay; at the same time, this method enriches the performance of sky background switching through switching parameters, which helps to enhance the player's gaming experience.
[0134] Furthermore, the process of updating the sky background information continues for a preset duration.
[0135] The aforementioned device also includes a game start module, used to: respond to a game start command and control the graphical user interface to display the game scene corresponding to the game match before responding to a sky background switching event and determining the target sky background information and switching parameters corresponding to the sky background switching event.
[0136] In the specific implementation, the above game scene includes a skybox, the sky background information is the attribute information corresponding to the skybox, and the sky background is the background generated based on the sky background information of the skybox.
[0137] Furthermore, the aforementioned device also includes a switching pause module, used to: during the process of updating sky background information, respond to a sky background pause update event, pause the process of updating sky background information, and continuously display the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event in the graphical user interface.
[0138] In practical applications, the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event includes: a first part of the sky background of the game scene rendered by the current sky background information, and a second part of the sky background of the game scene rendered by the target sky background information.
[0139] In an optional embodiment, a preset transition effect is displayed in the sky background corresponding to the game scene, showing the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information.
[0140] In an optional embodiment, the above-mentioned device further includes a first event triggering module, configured to: before responding to a sky background switching event, respond to a control command for a controlled virtual object corresponding to the terminal device, control the controlled virtual object to perform a first game behavior that meets a first preset condition; and control the triggering of the sky background switching event. The above-mentioned device further includes a second event triggering module, configured to: before responding to a sky background pause update event, respond to a control command for a controlled virtual object corresponding to the terminal device, control the controlled virtual object to perform a second game behavior that meets a second preset condition; and control the triggering of the sky background pause update event.
[0141] Furthermore, the first game behavior under the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior under the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
[0142] In an optional embodiment, the graphical user interface described above also displays a toggle control and a pause control; the sky background toggle event includes triggering the toggle control; the sky background pause update event includes triggering the pause control.
[0143] In specific implementation, the aforementioned switching parameters include the switching duration; the aforementioned sky background switching module 71 is used to: determine, based on the switching duration, the change parameters of the sky background information per unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information; dynamically update the sky background information corresponding to the game scene in chronological order based on the change parameters of the sky background information per unit time, the current sky background information, and the target sky background information; and dynamically display, in the graphical user interface, the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information.
[0144] Furthermore, the aforementioned switching parameters also include a first switching mode; the sky background information includes multiple pixels; the aforementioned sky background switching module 71 is further configured to: dynamically determine the pixels to be updated among the multiple pixels in the sky background information according to the first switching mode and the changing parameters in chronological order; wherein, the pixels to be updated are a subset of the multiple pixels in the sky background information; determine the target pixel value corresponding to the pixels to be updated according to the target sky background information; and update the pixel value of the pixels to be updated from the current pixel value determined according to the current sky background information to the target pixel value.
[0145] Furthermore, the aforementioned switching parameters also include a second switching method; the sky background information includes multiple pixels; the aforementioned sky background switching module 71 is also used for: dynamically updating the sky background information corresponding to the game scene in chronological order according to the change parameters of the sky background information corresponding to a unit time, the current sky background information, and the target sky background information, including: determining the pixel to be updated among the multiple pixels in the sky background information according to the second switching method; wherein, the pixel to be updated is all the pixels among the multiple pixels in the sky background information; determining the target pixel value corresponding to the pixel to be updated according to the target sky background information, and determining the current pixel value corresponding to the pixel to be updated according to the current sky background information; and dynamically updating the pixel value of the pixel to be updated in chronological order according to the change parameters, the target pixel value, and the current pixel value.
[0146] In practice, the aforementioned changing parameters are the proportions of the target sky background information and the current sky background information in the updated sky background information.
[0147] Furthermore, the aforementioned changing parameters refer to the proportion of the target sky background information and the current sky background information in the updated sky background information: the changing parameters refer to the proportion of the pixels of the target sky background information and the pixels of the current sky background information in the updated sky background information.
[0148] In practical applications, the aforementioned changing parameters refer to the proportion of pixels in the target sky background information and pixels in the current sky background information in the updated sky background information, including at least one of the following: the proportion of the pixel value of each pixel in the current sky background information and the pixel value of each pixel in the target sky background information in the updated sky background information; and the proportion of the number of pixels in the current sky background information to the number of pixels in the target sky background information in the updated sky background information.
[0149] In an optional embodiment, the switching parameters include a third switching method; the device further includes a sky switching module, used to: switch the sky background information corresponding to the game scene from the current sky background information to the target sky background information according to the third switching method, and continuously display the sky background of the game scene rendered based on the target sky background information in the graphical user interface.
[0150] Furthermore, the aforementioned device also includes an information setting module, comprising: a window display unit for displaying a game editing scene and an editing window in a graphical user interface; wherein the editing window includes multiple editable components; a component selection unit for responding to a selection operation on a target editable component and controlling the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among multiple editable components; and a component editing unit for responding to an editing operation on the target editable component and determining the switching conditions, switching parameters, and target sky background information corresponding to the target editable component; wherein the switching conditions include: a sky background switching event when the target editable component begins background switching, and a sky background pause update event when the target editable component pauses background switching.
[0151] In its implementation, the graphical user interface displays setting controls; the component editing unit is configured to: respond to a trigger operation on the setting controls and display a parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes multiple editable controls; the editable controls are used to set the switching conditions, switching parameters, and target sky background information of the target editable component; respond to a first setting operation on the parameter setting panel and determine the switching conditions corresponding to the target editable component; respond to a second setting operation on the parameter setting panel and determine the switching parameters corresponding to the target editable component; respond to a third setting operation on the parameter setting panel and determine the target sky background information corresponding to the target editable component.
[0152] Furthermore, the parameter setting panel includes: a first editable control for setting a sky background switching event, and a second editable control for setting a sky background pause update event; the component editing unit is configured to: respond to a first input operation on the first editable control and set a sky background switching event corresponding to the target editable component according to the first input operation; and respond to a second input operation on the second editable control and set a sky background pause update event corresponding to the target editable component according to the second input operation.
[0153] In a specific implementation, the aforementioned component editing unit is also used to: respond to a trigger operation on the editable control corresponding to the target sky background information in the parameter setting panel, display a custom background option and at least one preset sky background texture in the parameter setting panel; and respond to a trigger operation on the first sky background texture among the at least one preset sky background texture, and determine the target sky background information based on the first sky background texture.
[0154] In an optional embodiment, the component editing unit is further configured to: display a custom setting control in the parameter setting panel in response to a trigger operation for the custom background option; display multiple preset background parameters in the parameter setting panel in response to a trigger operation for the custom setting control; obtain multiple target background parameters in response to a setting operation for the multiple preset background parameters, and determine the multiple target background parameters as target sky background information.
[0155] In specific implementation, the above-mentioned preset background parameters include at least one of the following parameters: first gradient color, second gradient color, gradient axis, axis position, and gradient contrast.
[0156] In an optional embodiment, the parameter setting panel further includes a first interactive control; the device includes a switching display module, used to: respond to a trigger operation on the first interactive control, display switching parameters set based on the target editable component in the graphical user interface, and render the sky background of the game scene during the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0157] The sky background switching device in the game provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0158] This invention also provides an electronic device, such as... Figure 9 As shown, the electronic device includes a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the sky background switching method in the above game.
[0159] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays a portion of the game scene and the corresponding sky background; wherein, the sky background is a background generated based on sky background information; the sky background switching method in the game includes: responding to a sky background switching event, determining the target sky background information and switching parameters corresponding to the sky background switching event; based on the switching parameters, updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically displaying the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0160] In this game, the sky background switching method allows players to trigger a sky background switching event to change the sky background corresponding to the game scene during gameplay. At the same time, this method enriches the performance of sky background switching through switching parameters, which helps to enhance the player's gaming experience.
[0161] In an optional embodiment, the process of updating the sky background information described above continues for a preset duration.
[0162] In an optional embodiment, before the steps of responding to the sky background switching event and determining the target sky background information and switching parameters corresponding to the sky background switching event, the method further includes: responding to the game start command and controlling the graphical user interface to display the game scene corresponding to the game match.
[0163] In an optional embodiment, the game scene includes a skybox, the sky background information is the attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox.
[0164] In an optional embodiment, the method further includes: during the process of updating the sky background information, responding to a sky background pause update event, pausing the process of updating the sky background information, and continuously displaying the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event in the graphical user interface.
[0165] In an optional embodiment, the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event includes: a sky background composed of a first part of the sky background of the game scene rendered by the current sky background information and a second part of the sky background of the game scene rendered by the target sky background information.
[0166] In an optional embodiment, the sky background corresponding to the game scene displays a preset transition effect corresponding to the connection between the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information.
[0167] In an optional embodiment, before the step of responding to the sky background switching event, the method further includes: responding to a control command for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first game behavior that meets a first preset condition; controlling the triggering of the sky background switching event; before the step of responding to the sky background pause update event, the method further includes: responding to a control command for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second game behavior that meets a second preset condition; controlling the triggering of the sky background pause update event.
[0168] In an optional embodiment, the first game behavior under the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior under the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
[0169] In an optional embodiment, the graphical user interface described above also displays a toggle control and a pause control; the sky background toggle event includes triggering the toggle control; the sky background pause update event includes triggering the pause control.
[0170] In an optional embodiment, the switching parameters include a switching duration. The step of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the switching parameters, and dynamically displaying the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface, includes: determining, based on the switching duration, the change parameter of the sky background information per unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information; dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information per unit time, the current sky background information, and the target sky background information; and dynamically displaying, in the graphical user interface, the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information.
[0171] In an optional embodiment, the switching parameters further include a first switching method; the sky background information includes multiple pixels; the step of dynamically updating the sky background information corresponding to the game scene in chronological order according to the change parameters of the sky background information corresponding to a unit time, the current sky background information, and the target sky background information includes: dynamically determining the pixels to be updated among the multiple pixels in the sky background information in chronological order according to the first switching method and the change parameters; wherein, the pixels to be updated are some pixels among the multiple pixels in the sky background information; determining the target pixel value corresponding to the pixels to be updated according to the target sky background information; and updating the pixel value of the pixels to be updated from the current pixel value determined according to the current sky background information to the target pixel value.
[0172] In an optional embodiment, the switching parameters further include a second switching method; the sky background information includes multiple pixels; the step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameters of the sky background information per unit time, the current sky background information, and the target sky background information includes: determining the pixels to be updated among the multiple pixels in the sky background information according to the second switching method; wherein, the pixels to be updated are all the pixels among the multiple pixels in the sky background information; determining the target pixel value corresponding to the pixels to be updated based on the target sky background information, and determining the current pixel value corresponding to the pixels to be updated based on the current sky background information; and dynamically updating the pixel value of the pixels to be updated in chronological order based on the change parameters, the target pixel value, and the current pixel value.
[0173] In an optional embodiment, the aforementioned changing parameters are the proportions of the target sky background information and the current sky background information in the updated sky background information.
[0174] In an optional embodiment, the aforementioned changing parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information: the changing parameter is the proportion of the pixels of the target sky background information and the pixels of the current sky background information in the updated sky background information.
[0175] In an optional embodiment, the aforementioned changing parameters are the proportion of pixels in the target sky background information and pixels in the current sky background information in the updated sky background information, including at least one of the following: the proportion of the pixel value of each pixel in the current sky background information and the pixel value of each pixel in the target sky background information in the updated sky background information; and the proportion of the number of pixels in the current sky background information and the number of pixels in the target sky background information in the updated sky background information.
[0176] In an optional embodiment, the switching parameters include a third switching method; the method further includes: according to the third switching method, switching the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and continuously displaying the sky background of the game scene rendered based on the target sky background information in the graphical user interface.
[0177] In an optional embodiment, the target sky background information and switching parameters corresponding to the aforementioned sky background switching event are determined in the following manner: A game editing scene and an editing window are displayed in the graphical user interface; wherein the editing window includes multiple editable components; in response to a selection operation on the target editable component, a virtual object corresponding to the target editable component is generated in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among multiple editable components; in response to an editing operation on the target editable component, the switching conditions, switching parameters, and target sky background information corresponding to the target editable component are determined; wherein the switching conditions include: a sky background switching event when the target editable component begins background switching, and a sky background pause update event when the target editable component pauses background switching.
[0178] In an optional embodiment, the graphical user interface displays setting controls; the step of responding to an editing operation on the target editable component and determining the switching conditions, switching parameters, and target sky background information corresponding to the target editable component includes: responding to a trigger operation on the setting controls and displaying a parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes multiple editable controls; the editable controls are used to set the switching conditions, switching parameters, and target sky background information of the target editable component; responding to a first setting operation on the parameter setting panel and determining the switching conditions corresponding to the target editable component; responding to a second setting parameter on the parameter setting panel and determining the switching parameters corresponding to the target editable component; and responding to a third setting operation on the parameter setting panel and determining the target sky background information corresponding to the target editable component.
[0179] In an optional embodiment, the parameter setting panel includes: a first editable control for setting a sky background switching event, and a second editable control for setting a sky background pause update event; the step of determining the switching condition corresponding to the target editable component in response to a first setting operation on the parameter setting panel includes: in response to a first input operation on the first editable control, setting a sky background switching event corresponding to the target editable component according to the first input operation; in response to a second input operation on the second editable control, setting a sky background pause update event corresponding to the target editable component according to the second input operation.
[0180] In an optional embodiment, the step of responding to the third setting operation of the parameter setting panel and determining the target sky background information corresponding to the target editable component includes: responding to the trigger operation of the editable control corresponding to the target sky background information in the parameter setting panel, displaying a custom background option and at least one preset sky background texture in the parameter setting panel; and responding to the trigger operation of the first sky background texture in the at least one preset sky background texture, determining the target sky background information based on the first sky background texture.
[0181] In an optional embodiment, after responding to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, and displaying the custom background option and at least one preset sky background texture in the parameter setting panel, the method further includes: responding to the triggering operation of the custom background option, displaying a custom setting control in the parameter setting panel; responding to the triggering operation of the custom setting control, displaying multiple preset background parameters in the parameter setting panel; responding to the setting operation of the multiple preset background parameters, obtaining multiple target background parameters, and determining the multiple target background parameters as the target sky background information.
[0182] In an optional embodiment, the preset background parameters include at least one of the following parameters: first gradient color, second gradient color, gradient axis, axis position, and gradient contrast.
[0183] In an optional embodiment, the parameter setting panel further includes a first interactive control; the method further includes: responding to a trigger operation on the first interactive control, displaying switching parameters set based on the target editable component in the graphical user interface, and rendering the sky background of the game scene during the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0184] Furthermore, Figure 8 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 101, the communication interface 103 and the memory 100 connected via the bus 102.
[0185] The memory 100 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0186] Processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 101 or by instructions in software form. Processor 101 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 100, and processor 101 reads information from memory 100 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0187] This invention also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are called and executed by a processor, they cause the processor to implement the sky background switching method in the above-mentioned game. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0188] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays a portion of the game scene and the corresponding sky background; wherein, the sky background is a background generated based on sky background information; the sky background switching method in the game includes: responding to a sky background switching event, determining the target sky background information and switching parameters corresponding to the sky background switching event; based on the switching parameters, updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and dynamically displaying the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0189] In this game, the sky background switching method allows players to trigger a sky background switching event to change the sky background corresponding to the game scene during gameplay. At the same time, this method enriches the performance of sky background switching through switching parameters, which helps to enhance the player's gaming experience.
[0190] In an optional embodiment, the process of updating the sky background information described above continues for a preset duration.
[0191] In an optional embodiment, before the steps of responding to the sky background switching event and determining the target sky background information and switching parameters corresponding to the sky background switching event, the method further includes: responding to the game start command and controlling the graphical user interface to display the game scene corresponding to the game match.
[0192] In an optional embodiment, the game scene includes a skybox, the sky background information is the attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox.
[0193] In an optional embodiment, the method further includes: during the process of updating the sky background information, responding to a sky background pause update event, pausing the process of updating the sky background information, and continuously displaying the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event in the graphical user interface.
[0194] In an optional embodiment, the sky background of the game scene rendered based on the sky background information corresponding to the sky background pause update event includes: a sky background composed of a first part of the sky background of the game scene rendered by the current sky background information and a second part of the sky background of the game scene rendered by the target sky background information.
[0195] In an optional embodiment, the sky background corresponding to the game scene displays a preset transition effect corresponding to the connection between the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information.
[0196] In an optional embodiment, before the step of responding to the sky background switching event, the method further includes: responding to a control command for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a first game behavior that meets a first preset condition; controlling the triggering of the sky background switching event; before the step of responding to the sky background pause update event, the method further includes: responding to a control command for a controlled virtual object corresponding to the terminal device, controlling the controlled virtual object to perform a second game behavior that meets a second preset condition; controlling the triggering of the sky background pause update event.
[0197] In an optional embodiment, the first game behavior under the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior under the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
[0198] In an optional embodiment, the graphical user interface described above also displays a toggle control and a pause control; the sky background toggle event includes triggering the toggle control; the sky background pause update event includes triggering the pause control.
[0199] In an optional embodiment, the switching parameters include a switching duration. The step of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the switching parameters, and dynamically displaying the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface, includes: determining, based on the switching duration, the change parameter of the sky background information per unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information; dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information per unit time, the current sky background information, and the target sky background information; and dynamically displaying, in the graphical user interface, the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information.
[0200] In an optional embodiment, the switching parameters further include a first switching method; the sky background information includes multiple pixels; the step of dynamically updating the sky background information corresponding to the game scene in chronological order according to the change parameters of the sky background information corresponding to a unit time, the current sky background information, and the target sky background information includes: dynamically determining the pixels to be updated among the multiple pixels in the sky background information in chronological order according to the first switching method and the change parameters; wherein, the pixels to be updated are some pixels among the multiple pixels in the sky background information; determining the target pixel value corresponding to the pixels to be updated according to the target sky background information; and updating the pixel value of the pixels to be updated from the current pixel value determined according to the current sky background information to the target pixel value.
[0201] In an optional embodiment, the switching parameters further include a second switching method; the sky background information includes multiple pixels; the step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameters of the sky background information per unit time, the current sky background information, and the target sky background information includes: determining the pixels to be updated among the multiple pixels in the sky background information according to the second switching method; wherein, the pixels to be updated are all the pixels among the multiple pixels in the sky background information; determining the target pixel value corresponding to the pixels to be updated based on the target sky background information, and determining the current pixel value corresponding to the pixels to be updated based on the current sky background information; and dynamically updating the pixel value of the pixels to be updated in chronological order based on the change parameters, the target pixel value, and the current pixel value.
[0202] In an optional embodiment, the aforementioned changing parameters are the proportions of the target sky background information and the current sky background information in the updated sky background information.
[0203] In an optional embodiment, the aforementioned changing parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information: the changing parameter is the proportion of the pixels of the target sky background information and the pixels of the current sky background information in the updated sky background information.
[0204] In an optional embodiment, the aforementioned changing parameters are the proportion of pixels in the target sky background information and pixels in the current sky background information in the updated sky background information, including at least one of the following: the proportion of the pixel value of each pixel in the current sky background information and the pixel value of each pixel in the target sky background information in the updated sky background information; and the proportion of the number of pixels in the current sky background information and the number of pixels in the target sky background information in the updated sky background information.
[0205] In an optional embodiment, the switching parameters include a third switching method; the method further includes: according to the third switching method, switching the sky background information corresponding to the game scene from the current sky background information to the target sky background information, and continuously displaying the sky background of the game scene rendered based on the target sky background information in the graphical user interface.
[0206] In an optional embodiment, the target sky background information and switching parameters corresponding to the aforementioned sky background switching event are determined in the following manner: A game editing scene and an editing window are displayed in the graphical user interface; wherein the editing window includes multiple editable components; in response to a selection operation on the target editable component, a virtual object corresponding to the target editable component is generated in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among multiple editable components; in response to an editing operation on the target editable component, the switching conditions, switching parameters, and target sky background information corresponding to the target editable component are determined; wherein the switching conditions include: a sky background switching event when the target editable component begins background switching, and a sky background pause update event when the target editable component pauses background switching.
[0207] In an optional embodiment, the graphical user interface displays setting controls; the step of responding to an editing operation on the target editable component and determining the switching conditions, switching parameters, and target sky background information corresponding to the target editable component includes: responding to a trigger operation on the setting controls and displaying a parameter setting panel corresponding to the target editable component in the editing window; wherein the parameter setting panel includes multiple editable controls; the editable controls are used to set the switching conditions, switching parameters, and target sky background information of the target editable component; responding to a first setting operation on the parameter setting panel and determining the switching conditions corresponding to the target editable component; responding to a second setting parameter on the parameter setting panel and determining the switching parameters corresponding to the target editable component; and responding to a third setting operation on the parameter setting panel and determining the target sky background information corresponding to the target editable component.
[0208] In an optional embodiment, the parameter setting panel includes: a first editable control for setting a sky background switching event, and a second editable control for setting a sky background pause update event; the step of determining the switching condition corresponding to the target editable component in response to a first setting operation on the parameter setting panel includes: in response to a first input operation on the first editable control, setting a sky background switching event corresponding to the target editable component according to the first input operation; in response to a second input operation on the second editable control, setting a sky background pause update event corresponding to the target editable component according to the second input operation.
[0209] In an optional embodiment, the step of responding to the third setting operation of the parameter setting panel and determining the target sky background information corresponding to the target editable component includes: responding to the trigger operation of the editable control corresponding to the target sky background information in the parameter setting panel, displaying a custom background option and at least one preset sky background texture in the parameter setting panel; and responding to the trigger operation of the first sky background texture in the at least one preset sky background texture, determining the target sky background information based on the first sky background texture.
[0210] In an optional embodiment, after responding to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, and displaying the custom background option and at least one preset sky background texture in the parameter setting panel, the method further includes: responding to the triggering operation of the custom background option, displaying a custom setting control in the parameter setting panel; responding to the triggering operation of the custom setting control, displaying multiple preset background parameters in the parameter setting panel; responding to the setting operation of the multiple preset background parameters, obtaining multiple target background parameters, and determining the multiple target background parameters as the target sky background information.
[0211] In an optional embodiment, the preset background parameters include at least one of the following parameters: first gradient color, second gradient color, gradient axis, axis position, and gradient contrast.
[0212] In an optional embodiment, the parameter setting panel further includes a first interactive control; the method further includes: responding to a trigger operation on the first interactive control, displaying switching parameters set based on the target editable component in the graphical user interface, and rendering the sky background of the game scene during the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information.
[0213] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0214] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0215] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for switching the sky background in a game, characterized in that, A graphical user interface is provided through a terminal device; the graphical user interface displays a portion of the game scene and a corresponding sky background; wherein the sky background is a background generated based on sky background information; the method includes: In response to a sky background switching event, determine the target sky background information and switching parameters corresponding to the sky background switching event; wherein, the switching parameters include the switching duration; Based on the switching parameters, the sky background information corresponding to the game scene is updated from the current sky background information to the target sky background information, and the dynamically changing sky background of the game scene is dynamically displayed in the graphical user interface during the process of updating the sky background information; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information. The step of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the switching parameters, and dynamically displaying the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface, includes: Based on the switching duration, determine the change parameters of the sky background information per unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information; Based on the change parameters of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information, the sky background information corresponding to the game scene is dynamically updated in chronological order. The game scene's sky background is dynamically displayed in the graphical user interface, rendered based on dynamically updated sky background information.
2. The method according to claim 1, characterized in that, The process of updating the sky background information lasts for a preset duration.
3. The method according to claim 1, characterized in that, Before the step of responding to a sky background switching event and determining the target sky background information and switching parameters corresponding to the sky background switching event, the method further includes: In response to the game start command, the graphical user interface is controlled to display the game scene corresponding to the game match.
4. The method according to claim 1, characterized in that, The game scene includes a skybox, the sky background information is the attribute information corresponding to the skybox, and the sky background is a background generated based on the sky background information of the skybox.
5. The method according to claim 1, characterized in that, The method further includes: During the process of updating the sky background information, in response to the sky background pause update event, the process of updating the sky background information is paused, and the sky background of the game scene rendered according to the sky background information corresponding to the sky background pause update event is continuously displayed in the graphical user interface.
6. The method according to claim 5, characterized in that, The sky background of the game scene rendered according to the sky background information corresponding to the sky background pause update event includes: a sky background composed of a first part of the sky background of the game scene rendered by the current sky background information and a second part of the sky background of the game scene rendered by the target sky background information.
7. The method according to claim 6, characterized in that, In the sky background corresponding to the game scene, a preset transition effect is displayed between the first part of the sky background of the game scene rendered by the current sky background information and the second part of the sky background of the game scene rendered by the target sky background information.
8. The method according to claim 5, characterized in that, Before the step of responding to the sky background switching event, the method further includes: responding to a control command for a controlled virtual object corresponding to the terminal device, and controlling the controlled virtual object to perform a first game behavior that satisfies a first preset condition; Controls trigger the aforementioned sky background switching event; Before the step of responding to the sky background pause update event, the method further includes: responding to a control command for the controlled virtual object corresponding to the terminal device, and controlling the controlled virtual object to perform a second game behavior that satisfies a second preset condition; Control triggers the event that pauses the update of the sky background.
9. The method according to claim 8, characterized in that, The first game behavior under the first preset condition is to control the controlled virtual object to move to the target area in the game scene; the second game behavior under the second preset condition is to control the controlled virtual object to separate from the target area in the game scene.
10. The method according to claim 5, characterized in that, The graphical user interface also displays a toggle control and a pause control; the sky background toggle event includes triggering the toggle control; the sky background pause update event includes triggering the pause control.
11. The method according to claim 1, characterized in that, The switching parameters also include a first switching mode; the sky background information includes multiple pixels; The step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameters of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information includes: According to the time sequence, the pixels to be updated among the plurality of pixels in the sky background information are dynamically determined based on the first switching method and the change parameters; wherein, the pixels to be updated are a portion of the plurality of pixels in the sky background information; Determine the target pixel value corresponding to the pixel to be updated based on the target sky background information; The pixel value of the pixel to be updated is updated from the current pixel value determined based on the current sky background information to the target pixel value.
12. The method according to claim 1, characterized in that, The switching parameters also include a second switching method; the sky background information includes multiple pixels; The step of dynamically updating the sky background information corresponding to the game scene in chronological order based on the change parameters of the sky background information corresponding to the unit time, the current sky background information, and the target sky background information includes: The pixels to be updated in the sky background information are determined according to the second switching method; wherein, the pixels to be updated are all the pixels in the sky background information. The target pixel value corresponding to the pixel to be updated is determined based on the target sky background information, and the current pixel value corresponding to the pixel to be updated is determined based on the current sky background information. The pixel value of the pixel to be updated is dynamically updated according to the changing parameters, the target pixel value, and the current pixel value in chronological order.
13. The method according to claim 1, characterized in that, The changing parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information.
14. The method according to claim 13, characterized in that, The changing parameter is the proportion of the target sky background information and the current sky background information in the updated sky background information: the changing parameter is the proportion of the pixels of the target sky background information and the pixels of the current sky background information in the updated sky background information.
15. The method according to claim 14, characterized in that, The changing parameter is the proportion of pixels in the target sky background information and pixels in the current sky background information in the updated sky background information, including at least one of the following: the proportion of the pixel value of each pixel in the current sky background information and the pixel value of each pixel in the target sky background information in the updated sky background information; and In the updated sky background information, the ratio of the number of pixels in the current sky background information to the number of pixels in the target sky background information.
16. The method according to claim 1, characterized in that, The switching parameters include a third switching mode; the method further includes: According to the third switching method, the sky background information corresponding to the game scene is switched from the current sky background information to the target sky background information, and the sky background of the game scene rendered based on the target sky background information is continuously displayed in the graphical user interface.
17. The method according to claim 3, characterized in that, The target sky background information and switching parameters corresponding to the sky background switching event are determined in the following manner: The graphical user interface displays a game editing scene and an editing window; wherein the editing window includes multiple editable components; In response to a selection operation for a target editable component, control the generation of a virtual object corresponding to the target editable component in the game editing scene; wherein the virtual object is configured to be displayed with preset display parameters, and the target editable component is a component among the plurality of editable components; In response to an editing operation on the target editable component, the switching conditions, switching parameters, and target sky background information corresponding to the target editable component are determined; wherein, the switching conditions include: a sky background switching event when the target editable component starts background switching, and a sky background pause update event when the target editable component pauses background switching.
18. The method according to claim 17, characterized in that, The graphical user interface displays settings controls; The steps of responding to an editing operation on the target editable component and determining the switching conditions, switching parameters, and target sky background information corresponding to the target editable component include: In response to a trigger operation on the settings control, a parameter settings panel corresponding to the target editable component is displayed in the editing window; wherein, the parameter settings panel includes multiple editable controls; the editable controls are used to set the switching conditions, switching parameters, and target sky background information of the target editable component; In response to a first setting operation on the parameter setting panel, determine the switching conditions corresponding to the target editable component; In response to the second setting parameter of the parameter setting panel, determine the switching parameter corresponding to the target editable component; In response to a third setting operation on the parameter setting panel, the target sky background information corresponding to the target editable component is determined.
19. The method according to claim 18, characterized in that, The parameter setting panel includes: a first editable control for setting the sky background switching event, and a second editable control for setting the sky background pause update event; The step of responding to the first setting operation of the parameter setting panel and determining the switching conditions corresponding to the target editable component includes: In response to a first input operation on the first editable control, a sky background switching event corresponding to the target editable component is set according to the first input operation; In response to a second input operation on the second editable control, a pause update event for the sky background corresponding to the target editable component is set according to the second input operation.
20. The method according to claim 18, characterized in that, The step of determining the target sky background information corresponding to the target editable component in response to the third setting operation of the parameter setting panel includes: In response to a trigger operation on the editable control corresponding to the target sky background information in the parameter setting panel, a custom background option and at least one preset sky background texture are displayed in the parameter setting panel; In response to a trigger operation targeting a first sky background texture in the at least one preset sky background texture, the target sky background information is determined based on the first sky background texture.
21. The method according to claim 20, characterized in that, The method further includes, after the step of responding to the triggering operation of the editable control corresponding to the target sky background information in the parameter setting panel, and displaying the custom background option and at least one preset sky background texture in the parameter setting panel: In response to a trigger action on the custom background option, display the custom settings control in the parameter settings panel; In response to a trigger operation on the custom settings control, multiple preset background parameters are displayed in the parameter settings panel; In response to the setting operation of the multiple preset background parameters, multiple target background parameters are obtained, and the multiple target background parameters are determined as the target sky background information.
22. The method according to claim 21, characterized in that, The preset background parameters include at least one of the following parameters: first gradient color, second gradient color, gradient axis, axis position, and gradient contrast.
23. The method according to claim 18, characterized in that, The parameter setting panel also includes a first interactive control; the method further includes: In response to the trigger operation of the first interactive control, the switching parameters set based on the target editable component are displayed in the graphical user interface. During the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information, the sky background of the game scene is rendered.
24. A sky background switching device in a game, characterized in that, A graphical user interface is provided through a terminal device; the graphical user interface displays scene images of some game scenes and a corresponding sky background; wherein, the sky background is a background generated based on sky background information; the device includes: An information acquisition module is used to respond to a sky background switching event and determine the target sky background information and switching parameters corresponding to the sky background switching event; wherein, the switching parameters include the switching duration; The sky background switching module is used to update the sky background information corresponding to the game scene from the current sky background information to the target sky background information based on the switching parameters, and dynamically display the dynamically changing sky background of the game scene rendered during the process of updating the sky background information in the graphical user interface; wherein, the process of updating the sky background information is the process of updating the sky background information corresponding to the game scene from the current sky background information to the target sky background information. The sky background switching module is further configured to: determine, based on the switching duration, the change parameter of the sky background information per unit time during the process of updating the current sky background information corresponding to the game scene to the target sky background information; dynamically update the sky background information corresponding to the game scene in chronological order based on the change parameter of the sky background information per unit time, the current sky background information, and the target sky background information; and dynamically display, in the graphical user interface, the dynamically changing sky background of the game scene rendered based on the dynamically updated sky background information.
25. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the sky background switching method in the game according to any one of claims 1 to 23.
26. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the sky background switching method in the game as described in any one of claims 1 to 23.
Citation Information
Patent Citations
Switching method and device of scenes in game, electronic equipment and readable storage medium
CN114225399A
Weather rendering method and apparatus in virtual environment, and device, medium and program
WO2022100437A1