Display control method, device and electronic device in game
By obtaining the target audio information and filter influence factors of the game sound source, and rendering the filter visualization image in real time, the problem of lack of personalization and storage occupation of filter processing results in the existing technology is solved, and the audio-visual effect and fluency of the game are improved.
Patent Information
- Application Number
- CN202110725761.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-06-29
AI Technical Summary
The filter processing method of game resources such as pictures and videos in existing games results in a lack of personalized filter processing results, and the art resources occupy storage space and affect the smoothness of the game.
By obtaining the target audio information of the current game sound source, the target filter influence factor is determined, and the filter visualization image is obtained based on the factor, and displayed in the graphical user interface in real time, reducing storage usage and improving game resource loading efficiency.
It realizes personalized filter processing of game resources, improves the audio-visual effect, reduces the resource burden on the game system, and ensures game fluency.
Smart Images

Figure CN113457135B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a display control method, device and electronic equipment in a game. Background Art
[0002] With the continuous development of multimedia technology, it has been widely used in electronic games (such as mobile games, computer games, etc.). For example, sometimes exciting videos of players' operations are displayed in the game; for another example, sometimes the game has different seasons or versions. In order to promote different seasons or versions, it is usually necessary to produce and display corresponding pictures, videos, etc. In view of the above situation, in order to improve the display effect of relevant game resources, it is usually necessary to perform certain filter processing on game resources such as pictures and videos, such as adding visual elements such as opening and ending credits, text, and graphics as embellishments.
[0003] In existing games, the filter processing method for game resources such as pictures and videos is usually to directly add pre-made art resources to the game. However, in this method, since the art resources are made in advance, the filter processing results of different game resources may be similar. At the same time, these art resources will occupy the system's storage space, thereby reducing the loading efficiency of game resources and affecting the smoothness of the game. Summary of the invention
[0004] The purpose of the present invention is to provide a display control method, device and electronic device in a game to enhance the overall audio-visual effect of game resources, ensure the smoothness of the game and make the filter processing results of the game resources more personalized.
[0005] In a first aspect, an embodiment of the present invention provides a display control method in a game, which provides a graphical user interface of the game through an electronic device; wherein the method includes: obtaining target audio information corresponding to the sound source of the game at the current moment; determining a target filter influence factor corresponding to the target audio information; obtaining a filter visualization image corresponding to the target filter influence factor; and displaying an image including the filter visualization image on the graphical user interface.
[0006] In combination with the first aspect, an embodiment of the present invention provides a first possible implementation of the first aspect, wherein the step of obtaining the target audio information corresponding to the sound source of the game at the current moment includes at least one of the following: determining the sound source at the current moment and the target audio information corresponding to the sound source from the sound resources of the game; wherein the sound resources include the background sound corresponding to the graphical user interface at the current moment and / or the built-in music library of the game; and collecting the sound source through the sound collector of the electronic device to determine the target audio information corresponding to the sound source.
[0007] In combination with the first aspect, an embodiment of the present invention provides a second possible implementation of the first aspect, wherein the step of collecting the sound source through the sound collector of the electronic device includes: checking whether the sound collector of the electronic device is turned on at the current moment; if so, collecting the sound source through the sound collector; the sound source includes user voice and / or ambient sound.
[0008] In combination with the first aspect, an embodiment of the present invention provides a third possible implementation of the first aspect, wherein the step of determining the target filter influence factor corresponding to the target audio information includes: searching for a target filter influence factor that matches the target audio information in a preset correspondence between audio information and filter influence factors; wherein the target audio information includes at least one of the following: vibration amplitude, vibration frequency, sound waveform or sound timbre; the target filter influence factor includes at least one of the following: a reference factor for characterizing the filter presentation effect.
[0009] In combination with the first aspect, an embodiment of the present invention provides a fourth possible implementation of the first aspect, wherein the step of obtaining a filter visualization image corresponding to the target filter influence factor includes: performing filter processing corresponding to the target filter influence factor on the target image to obtain a filter visualization image; or, generating a filter visualization image according to the target filter influence factor.
[0010] In combination with the first aspect, an embodiment of the present invention provides a fifth possible implementation of the first aspect, wherein the target image includes at least one of the following: a designed image, an image to be displayed on the graphical user interface, and a video frame in a recorded video corresponding to the game.
[0011] In combination with the first aspect, an embodiment of the present invention provides a sixth possible implementation of the first aspect, wherein the content displayed by the graphical user interface also includes a filter influence factor adjustment interface; the method also includes: in response to a factor adjustment operation on the filter influence factor adjustment interface, adjusting the filter influence factor according to the factor adjustment operation.
[0012] In combination with the first aspect, an embodiment of the present invention provides a seventh possible implementation of the first aspect, wherein the step of displaying an image including the filter visualization image in the graphical user interface includes: displaying the filter visualization image in the graphical user interface; or, superimposing the filter visualization image with the image to be displayed at the current moment, and displaying the superimposed image in the graphical user interface.
[0013] In a second aspect, an embodiment of the present invention further provides a display control device in a game, which provides a graphical user interface of the game through an electronic device; wherein the device includes: a target audio information acquisition module, used to acquire the target audio information corresponding to the sound source of the game at the current moment; a target filter influence factor determination module, used to determine the target filter influence factor corresponding to the target audio information; a filter visualization image acquisition module, used to acquire a filter visualization image corresponding to the target filter influence factor; and an image display module, used to display an image containing the filter visualization image on the graphical user interface.
[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the display control method in the above-mentioned game.
[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the display control method in the above-mentioned game.
[0016] The embodiment of the present invention provides a display control method, device and electronic device in a game, which first obtains the target audio information corresponding to the sound source of the game at the current moment, then determines the target filter influence factor corresponding to the target audio information, and finally obtains the filter visualization image corresponding to the target filter influence factor, and displays the image containing the filter visualization image on the graphical user interface provided by the electronic device. By adopting the above technology, the filter influence factor can be determined in real time according to the relevant audio information, and a personalized filter visualization image can be obtained according to the filter influence factor, and the display effect of the filter visualization image is more coordinated with the audio information, thereby improving the overall audio-visual effect of the game resources. In addition, since the relevant audio information is obtained in real time and the filter visualization image is also rendered in real time, the filter visualization image will not occupy too much storage space of the game system, so this method can reduce the resource burden of the game system, thereby improving the loading efficiency of game resources and ensuring the smoothness of the game.
[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0018] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A schematic flow chart of a display control method in a game provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of a sound source setting interface provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of another audio source setting interface provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of a filter effect with noise provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of the structure of a display control device in a game provided by an embodiment of the present invention;
[0025] Figure 6 A schematic diagram of the structure of another display control device in a game provided by an embodiment of the present invention;
[0026] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] At present, in existing games, the filter processing method for game resources such as pictures and videos is usually to directly add pre-made art resources to the game, but this method ignores the processing of related sound information, which will make the filter processing results of different game resources lack personalization, and sometimes the tone of the sound information and the color of the image information are not coordinated. Based on this, in order to improve the performance of the game, the embodiment of the present invention provides a display control method, device and electronic device in the game, which can be applied to computers, mobile phones and other devices that can realize human-computer interaction, and is particularly suitable for computer games or mobile games. The scene can improve the audio-visual effects of game resources, ensure the fluency of the game, and make the filter processing results of game resources more personalized.
[0029] To facilitate understanding of this embodiment, a display control method in a game disclosed in an embodiment of the present invention is first introduced in detail.
[0030] The embodiment of the present invention provides a display control method in a game, which provides a graphical user interface of the game through an electronic device. The game in the embodiment of the present invention is a computer game, a mobile phone game or a console game, and the electronic device can be a mobile phone, a computer or other device that can perform human-computer interaction and has a communication function. The above-mentioned audio information is used to characterize information on audio playback effects, such as the vibration size information, timbre, pitch or other related information of the audio, and the above-mentioned filter influence factor is used to characterize parameters related to the filter presentation effect, such as scrambling parameters, deformation parameters, blur parameters or sharpening parameters.
[0031] See also Figure 1 The flowchart of a display control method in a game is shown in the figure. The execution subject of the method is described by taking a terminal device as an example. The terminal device can be an intelligent electronic device, such as a computer, a mobile phone, or other device that can realize human-computer interaction. The method can include the following steps:
[0032] Step S102, obtaining target audio information corresponding to the sound source of the current game.
[0033] The sound source of the game can be the sound resources of the game itself, such as the background music of the game video, the voice of the player in the game, the sound of the skill released in the game, the sound of the controlled game character, etc. The sound source of the game can also be the sound resources outside the game, such as externally imported recordings, the ambient sound around the user, etc.
[0034] At different times, the sound sources of the game can be the same or different. If the sound sources are the same, the specific form of the sound source can be selected in the game's setting information, for example: Figure 2A schematic diagram of a sound source setting interface is shown, wherein the sound source options include game background music, game player voice, game skill release sound, voice of controlled game character, player voice collected by a sound collector, and ambient sound collected by a sound collector, etc. The user can select at least one sound source by clicking.
[0035] For different sound sources, you can configure the sound sources corresponding to different times in the game settings. For example: Figure 3 Another schematic diagram of the audio source setting interface shown in FIG. 1 , in which the audio source options can be selected using Figure 2 The options shown can also be divided into two categories, such as internal game sound sources and external game sound sources. Figure 3 In the sound source setting interface shown, the internal sound sources of the game include the game background music, the voice of the game player, the sound of the game skill release, and the voice of the controlled game character; the external sound sources of the game include: the voice of the player collected by the sound collector, and the ambient sound collected by the sound collector, etc. At the same time, the sound source setting interface also configures a time period setting column for the sound source. The user can select the time period corresponding to the sound source by clicking or inputting. During the game, the specific form of the sound source will be determined according to the time period to which the current system time belongs.
[0036] The sound source of the game can be selected according to actual needs, and there is no limitation on this. After determining the sound source of the game at the current moment, the audio information to be processed is identified from the sound of the sound source as the target audio information.
[0037] Step S104: determining a target filter influence factor corresponding to the target audio information.
[0038] The game filters of this embodiment can be divided into built-in filters and plug-in filters, wherein the built-in filters are various filters that come with the game system, and the plug-in filters are pre-acquired filters that need to be installed in the game before they can be used. Game filters are mainly divided into blur filters, border filters, color filters, distortion filters, etc. according to the presentation effect. When using game filters to process game resources, the filter can be configured in advance in the game setting information. Specifically, one or more filters can be selected according to needs, and this is not limited.
[0039] In this embodiment, one or more reference factors that characterize the filter rendering effect are defined as filter influence factors. For example, for a frame filter, the filter influence factor may be the color, brightness, width, etc. of the frame; for another example, for a color filter, the filter influence factor may be contrast, grayscale, brightness, etc.
[0040] In order to further improve the efficiency of using game filters to process game resources, before using game filters to process game resources, the corresponding relationship between audio information and filter impact factors can be preset. For example, if the filter presentation effect is to add a certain number of noise points, then the filter impact factor can be the number of noise points, and a positive proportional relationship between the vibration frequency of the sound in the audio information and the number of noise points is established. The greater the vibration frequency of the sound, the greater the number of noise points in the filter; see Figure 4 The schematic diagram of a filter effect with noise is shown. By adding some randomly arranged lines or dots to the image, the original image style can be changed or enhanced, giving the image personalized content.
[0041] For another example, if the filter rendering effect is to rotate the noise, then the filter influence factor can be whether the noise rotates at a certain rate, and a corresponding relationship between the vibration frequency of the sound in the audio information and the rotation of the noise is established. The noise will only rotate when the vibration frequency of the sound reaches a certain value. The corresponding relationship between the audio information and the filter influence factor can be selected according to actual needs (such as the type of audio information, the filter rendering effect, etc.), and there is no limitation on this.
[0042] After the corresponding relationship between the audio information and the filter influence factor is preset, the corresponding relationship is applied to the above-mentioned target audio information, and the filter influence factor corresponding to the target audio information is determined as the target filter influence factor according to the corresponding relationship.
[0043] Step S106, obtaining a filter visualization image corresponding to the target filter impact factor.
[0044] After determining the target filter impact factor corresponding to the target audio information, the filter with the target filter impact factor is applied to the game resource to obtain a filter visualization image with the filter presentation effect. The above filter visualization image can be obtained by filtering an existing image, or can be directly generated according to the above target filter impact factor. The specific operation method can be selected according to actual needs and is not limited to this.
[0045] Step S108: displaying the image including the filtered visualized image on a graphical user interface.
[0046] The target filter influence factor may be applied to a part or all of an image, and accordingly, the filter visualization image may be a part or all of the image. When the filter visualization image corresponding to the target filter influence factor is displayed through a graphical user interface, the display content of the graphical user interface is an image including the filter visualization image.
[0047] An embodiment of the present invention provides a display control method in a game, which first obtains the target audio information corresponding to the sound source of the game at the current moment, then determines the target filter influence factor corresponding to the target audio information, and finally obtains the filter visualization image corresponding to the target filter influence factor, and displays the image containing the filter visualization image on the graphical user interface provided by the electronic device. By adopting the above technology, the filter influence factor can be determined in real time according to the relevant audio information, and a personalized filter visualization image can be obtained according to the filter influence factor, and the display effect of the filter visualization image is more coordinated with the audio information, thereby improving the overall audio-visual effect of the game resources. In addition, since the relevant audio information is obtained in real time and the filter visualization image is also rendered in real time, the filter visualization image will not occupy too much storage space of the game system, so this method can reduce the resource burden of the game system, thereby improving the loading efficiency of game resources and ensuring the smoothness of the game.
[0048] In order to facilitate understanding of the technical effect of the display control method in the above game, take the image frames in a video as an example, assuming that a fixed text title "wonderful moment" needs to be added to each image frame in this video, in order to make the text title more vivid, the traditional filter processing needs to perform dynamic video processing on the static text title "wonderful moment", obtain the animated frame of "wonderful moment" corresponding to each image frame, and then load the animated frame into each image frame of the above video. This processing is relatively cumbersome and requires a relatively large storage space to store the animated frame. By using the display control method in the game provided by the embodiment of the present invention, only the "wonderful moment" picture can be loaded during the video playback process, and the target audio information corresponding to each moment in the playback process (i.e., the playback moment of each image frame) can be obtained by recording or extracting audio, and the target filter influence factor is determined according to the target audio information, and then the "wonderful moment" picture is subjected to filter processing according to the target filter influence factor, so that the "wonderful moment" picture with the filter effect can be loaded in the currently played image frame, and the animation effect of the "wonderful moment" picture can be achieved. This process does not require the advance production of "wonderful moments" picture animation frames, and can also achieve the purpose of dynamic titles. It not only reduces the cost of art production, but also realizes random filters for text, making it more personalized.
[0049] Alternatively, if one wants to use an abstract filter image (a mixture of geometry and lines) as a scene for screen conversion, the traditional approach requires loading a pre-prepared filter image in the corresponding video or calling pre-collected materials. The display control method in the above-mentioned game provided by the embodiment of the present invention does not require pre-storing filter images or calling pre-collected materials. The target filter influence factor can be directly determined based on the target audio information at the current moment, and then a filter visualization image can be directly generated based on the target filter influence factor. The image can be used to convert the current screen, thereby saving the early processing preparation process of the filter and reducing the storage space occupied by resources, thereby improving the performance of the system.
[0050] In order to improve the applicability of the display control method in the above game to different application scenarios, the above step S102 (i.e., obtaining the target audio information corresponding to the sound source of the game at the current moment) is optimized. This step can adopt at least one of the following two operation modes:
[0051] The first operation mode is to determine the current sound source and the target audio information corresponding to the sound source from the sound resources of the game; wherein the sound resources include the background sound corresponding to the graphical user interface at the current moment and / or the built-in music library of the game.
[0052] This operation mode is applicable to situations where the electronic device cannot collect external audio information in real time, for example, the electronic device is not equipped with a sound collector, or the electronic device is equipped with a sound collector but the sound collector is turned off or malfunctions. In this case, the game's sound resources may include the background sound corresponding to the graphical user interface at the current moment (such as the background music of the game video, etc.) and / or the game's built-in music library (such as the sound of skills released in the game, the sound emitted by the controlled game character, etc.), determine a suitable sound source from the sound resource as the sound source at the current moment, and identify the audio information to be processed from the sound source as the target audio information to be processed.
[0053] The above-mentioned sound collector can specifically be a microphone, earphone, etc., which can be selected according to actual needs.
[0054] The second operation mode is to collect the sound source through the sound collector of the electronic device and determine the target audio information corresponding to the sound source.
[0055] This operation mode is applicable to situations where the electronic device can collect external audio information in real time, for example, the electronic device is equipped with a sound collector and the sound collector can work normally. Specifically, the following operation mode can be used to collect the sound source through the sound collector of the electronic device: check whether the sound collector of the electronic device is turned on at the current moment; if it is (that is, the sound collector of the electronic device is turned on at the current moment), collect the sound source through the sound collector; the sound source includes user voice and / or ambient sound. Through this operation mode, the collection of user voice or ambient sound can be completed directly through the sound collector, without the need for the processor of the electronic device to distinguish between different types of sounds, which can reduce the load of the processor.
[0056] When performing the above-mentioned step S104 (i.e., determining the target filter influence factor corresponding to the target audio information), in order to facilitate operation, the content of the target audio information and the content of the target filter influence factor are optimized. This step can specifically adopt the following operation method: in the correspondence between the preset audio information and the filter influence factor, the target filter influence factor matching the target audio information is searched; wherein, the target audio information includes at least one of the following: vibration amplitude, vibration frequency, sound waveform or sound timbre; the target filter influence factor includes at least one of the following: a reference factor used to characterize the filter presentation effect.
[0057] Specifically, the above correspondence can be saved in the game in the form of a coordinate curve. For example, in the case of using a color filter, the X-axis represents the vibration amplitude value of the audio information at different times, and the Y-axis represents the overall brightness value of the image at the corresponding time. In this way, the correspondence between the vibration amplitude value and the overall brightness value of the image is established through the coordinate curve; taking music games as an example, the vibration amplitude of the background music in the game can be determined as the content of the target audio information. If the vibration amplitude value of the background music in the game at the current moment is X1, the Y-axis coordinate value Y1 (i.e. the overall brightness value of the image) that matches the X-axis coordinate value X1 can be found in the coordinate curve.
[0058] Specifically, the above correspondence can also be saved in the game in the form of a list. For example, in the case of using a filter that adds a mosaic shape, the row table items are set to the vibration frequency values of the audio information at different times, and the column table items are set to the mosaic-related data at the corresponding time (such as the color, size, position, etc. of the mosaic). In this way, the correspondence between the vibration frequency value and the mosaic-related data is established through the list; taking music games as an example, the vibration frequency of the background music in the game can be determined as the content of the target audio information. If the vibration frequency value of the background music in the game at the current moment is A1, the column data value B1 (i.e., mosaic-related data) that matches the row data value A1 can be found in the list.
[0059] In addition to the two forms of coordinate curve and list described above, the above-mentioned correspondence can also be saved in other forms. Accordingly, the specific steps of searching for the target filter influence factor matching the target audio information in the correspondence can be adjusted according to the saving method of the correspondence, and there is no limitation on this.
[0060] Through the above operation method, the user can determine the specific content of the target audio information and the specific content of the target filter influencing factor according to different filter presentation effects, thereby improving the applicability of the display control method in the above game to diversified filter presentation effects.
[0061] In order to further improve the applicability of the display control method in the above game to different application scenarios, the above step S106 (i.e. obtaining the filter visualization image corresponding to the target filter impact factor) can adopt one of the following two operation modes:
[0062] (1) Performing filter processing corresponding to the target filter impact factor on the target image to obtain a filter visualization image. Specifically, the target image may include at least one of the following: a designed image, an image to be displayed in a graphical user interface, or a video frame in a recorded video corresponding to a game.
[0063] (2) Generate a filter visualization image based on the target filter impact factor.
[0064] For example, for music games, sometimes players need to play in a relatively quiet environment to ensure a good gaming experience. Before playing the game, the current ambient sound can be collected through the electronic equipment corresponding to the game. At this time, the sound source of the game at the current moment is the ambient sound, and the audio information corresponding to the ambient sound can be determined as the target audio information; then the target filter influence factor corresponding to the target audio information can be determined according to the correspondence between the preset audio information and the filter influence factor, and a filter visualization image is generated according to the target filter influence factor and displayed on the graphical user interface. Through this operation method, the possibility of visualization can be provided for the sound source of the game at the current moment, and the generated filter visualization image can reflect the real-time visual state of the sound source of the game at the current moment, thereby improving the user experience.
[0065] In order to meet the actual needs of different users, the display content of the above-mentioned graphical user interface is expanded. In addition to the image containing the filter visualization image, the content displayed by the above-mentioned graphical user interface may also include a filter influence factor adjustment interface. Based on this, the display control method in the above-mentioned game may also include the following operation mode: in response to the factor adjustment operation on the filter influence factor adjustment interface, the filter influence factor is adjusted according to the above-mentioned factor adjustment operation.
[0066] The presentation form of the filter influence factor adjustment interface can be a control, a floating box, etc., which can be selected according to the actual situation and is not limited to this. Accordingly, the above-mentioned factor adjustment operation can be changed in a targeted manner according to the different presentation forms of the filter influence factor adjustment interface. For example, the above-mentioned filter influence factor adjustment interface is displayed in the form of a graphic control in a designated area (such as the upper right corner) of the graphical user interface, and the user can perform a selection operation (such as a mouse click, etc.) on the graphic control; the electronic device responds to the selection operation and pops up a factor adjustment interface in the graphical user interface. The content displayed in the factor adjustment interface may include at least a plurality of parameter setting items corresponding to the filter influence factors and a parameter setting item corresponding to the target audio information; the user can modify the parameter values of different parameter setting items accordingly; the above-mentioned device responds to the parameter value modification operation for different parameter setting items and adjusts the above-mentioned filter influence factor according to the parameter value modification operation. Through the above-mentioned operation mode, the adjustment function of the relevant parameters can be opened to the user so that different users can perform personalized settings, which can meet the filter needs of different users.
[0067] In order to improve the display effect of the filter visualization image, the above step S108 (i.e., displaying the image containing the filter visualization image on the graphical user interface) is optimized according to different ways of obtaining the filter visualization image. This step can specifically adopt one of the following two operation modes:
[0068] (1) Display the filter visualization image in the graphical user interface.
[0069] Specifically, if the filter visualization image is directly generated according to the target filter impact factor, the graphical user interface will directly display the filter visualization image without displaying other images at the same time.
[0070] (2) The filtered visualization image is superimposed on the image to be displayed at the current moment, and the superimposed image is displayed on the graphical user interface.
[0071] Specifically, if the filtered visualized image is obtained by filtering an existing image, the electronic device will superimpose the filtered visualized image with the existing image (ie, the image to be displayed at the current moment), and display the superimposed image on the graphical user interface.
[0072] By setting the above two optional operation modes, the display mode of the filter visualization image can be made more flexible, thereby improving the applicability of the display control method in the above game to different application scenarios.
[0073] In the display control method in the above game, in the process of determining the target filter factor through the target audio information and obtaining the filter visualization image corresponding to the target filter influence factor, an audio visualization method can be used for implementation. For example, the Max technology is used to extract the audio information through the Max technology to provide a reference basis for the modification of the video and / or image. Specifically, the video and / or image can be simply modified according to the extracted audio information, such as modifying the graphic size, display position, rotating the image, etc. Of course, more complex modifications can also be made to the video and / or image, such as modifying the model size, shape, hue adjustment, brightness and other parameters of the three-dimensional space in the video and / or image. On the basis of the above modification method, it can also be combined with related filter technology, which can include filter technology in terms of jitter, sawtooth (mosaic), line drawing or noise. In the above method, the filter visualization image corresponding to the target filter influence factor can be obtained.
[0074] The display control method in the above game can be applied to the game running stage. For example, when the game runs to a scene using the display control method in the game, the display control method in the above game is executed, and a display interface with a filter visualization image can be seen in the graphical user interface. The method can also be applied in the process of making games. For example, when a user customizes a game clip, the display control method in the above game can also be executed to generate a filter visualization image, and then the image can be applied to the game making process.
[0075] In order to better execute the display control method in the above game, the filter processing function corresponding to the display control method in the above game can be configured in the game setting information. If the filter processing function is turned on, the display control method in the above game is executed, otherwise the display control method in the above game is not executed. Of course, the filter processing function can also be turned on by default. When it needs to be turned off, the user can choose to turn off the function. In specific implementation, the function can be configured by the user based on the differentiated needs of the user.
[0076] Based on the above method embodiment, the present invention also provides a display control device in a game, see Figure 5 As shown, the above device includes the following modules:
[0077] The target audio information acquisition module 502 is used to acquire the target audio information corresponding to the sound source of the game at the current moment.
[0078] The target filter impact factor determination module 504 is used to determine the target filter impact factor corresponding to the target audio information.
[0079] The filter visualization image acquisition module 506 is used to acquire the filter visualization image corresponding to the target filter impact factor.
[0080] The image display module 508 is configured to display an image including the filtered visualization image on the graphical user interface.
[0081] An embodiment of the present invention provides a display control device in a game, which first obtains the target audio information corresponding to the sound source of the game at the current moment, then determines the target filter influence factor corresponding to the target audio information, and finally obtains the filter visualization image corresponding to the target filter influence factor, and displays the image containing the filter visualization image on the graphical user interface provided by the electronic device. By adopting the above technology, the filter influence factor can be determined in real time according to the relevant audio information, and a personalized filter visualization image can be obtained according to the filter influence factor, and the display effect of the filter visualization image is more coordinated with the audio information, thereby improving the overall audio-visual effect of the game resources. In addition, since the relevant audio information is obtained in real time and the filter visualization image is also rendered in real time, the filter visualization image will not occupy too much storage space of the game system, so this method can reduce the resource burden of the game system, thereby improving the loading efficiency of game resources and ensuring the smoothness of the game.
[0082] The target audio information acquisition module 502 is also used to: determine the sound source at the current moment and the target audio information corresponding to the sound source from the sound resources of the game; wherein the sound resources include the background sound corresponding to the graphical user interface at the current moment and / or the built-in music library of the game; or, collect the sound source through the sound collector of the electronic device to determine the target audio information corresponding to the sound source. Based on this, the step of collecting the sound source of the game at the current moment through the sound collector of the electronic device includes: checking whether the sound collector of the electronic device is turned on at the current moment; if so, collecting the sound source through the sound collector; the sound source includes user voice and / or ambient sound.
[0083] The above-mentioned target filter influence factor determination module 504 is also used to: search for a target filter influence factor that matches the target audio information in the correspondence between the preset audio information and the filter influence factor; wherein the target audio information includes at least one of the following: vibration amplitude, vibration frequency, sound waveform or sound timbre; the target filter influence factor includes at least one of the following: a reference factor used to characterize the filter presentation effect.
[0084] The filter visualization image acquisition module 506 is further used to: perform filter processing corresponding to the target filter impact factor on the target image to obtain a filter visualization image; or generate a filter visualization image according to the target filter impact factor. Based on this, the target image includes at least one of the following: a designed image, an image to be displayed in the graphical user interface, and a video frame in a recorded video corresponding to the game.
[0085] The image display module 508 is further configured to: display the filtered visualized image on the graphical user interface; or, superimpose the filtered visualized image with the image to be displayed at the current moment, and display the superimposed image on the graphical user interface.
[0086] Based on the display control device in the above game, the display content of the above graphical user interface is expanded, and the content displayed by the above graphical user interface also includes a filter influence factor adjustment interface. Based on this, the embodiment of the present invention also provides another display control device in the game, see Figure 6 The structure diagram of another display control device in the game shown in FIG. 1 further includes:
[0087] The filter influence factor adjustment module 510 is used to respond to a factor adjustment operation on the filter influence factor adjustment interface and adjust the filter influence factor according to the factor adjustment operation.
[0088] The display control device in the game provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the display control method embodiment in the aforementioned game. For the sake of brief description, for parts not mentioned in the embodiment of the display control device in the game, reference may be made to the corresponding contents in the embodiment of the display control method in the aforementioned game.
[0089] The embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device 100 includes a processor 71 and a memory 70, the memory 70 stores computer executable instructions that can be executed by the processor 71, and the processor 71 executes the computer executable instructions to implement the display control method in the above-mentioned game.
[0090] exist Figure 7 In the illustrated embodiment, the electronic device further includes a bus 72 and a communication interface 73 , wherein the processor 71 , the communication interface 73 and the memory 70 are connected via the bus 72 .
[0091] Among them, the memory 70 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 73 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 72 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 72 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0092] The processor 71 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the display control method in the above game can be completed by the hardware integrated logic circuit or software instructions in the processor 71. The above processor 71 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 gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the display control method in the game disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or a combination of hardware and software modules in the decoding processor to execute. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 70, and the processor 71 reads the information in the memory 70 and completes the steps of the display control method in the game of the above-mentioned embodiment in combination with its hardware.
[0093] An embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the display control method in the above-mentioned game. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0094] The computer program product of the display control method, device and electronic device in the game provided by the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the display control method in the game described in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0095] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
[0096] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0097] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0098] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A display control method in a game, characterized in that: Providing a graphical user interface of a game through an electronic device; wherein the method comprises: Obtain target audio information corresponding to the sound source of the game at the current moment; Searching for a target filter influence factor matching the target audio information according to a preset correspondence between the audio information and the filter influence factor; Obtaining a filter visualization image corresponding to the target filter impact factor; An image including the filtered visualized image is displayed on the graphical user interface.
2. The method according to claim 1, characterized in that The step of obtaining target audio information corresponding to the sound source of the game at the current moment includes at least one of the following: Determining a sound source at a current moment and target audio information corresponding to the sound source from the sound resources of the game; wherein the sound resources include background sound corresponding to the graphical user interface at a current moment and / or a music library built into the game; The sound source is collected by the sound collector of the electronic device, and the target audio information corresponding to the sound source is determined.
3. The method according to claim 2, characterized in that The step of collecting the sound source by the sound collector of the electronic device comprises: Check whether the sound collector of the electronic device is turned on at the current moment; If yes, the sound source is collected by the sound collector; the sound source includes user voice and / or ambient sound.
4. The method according to claim 1, characterized in that: The target audio information includes at least one of the following: vibration amplitude, vibration frequency, sound waveform or sound timbre; the target filter influencing factor includes: a reference factor for characterizing the filter presentation effect.
5. The method according to claim 1, characterized in that The step of obtaining a filter visualization image corresponding to the target filter impact factor includes: Performing filter processing corresponding to the target filter impact factor on the target image to obtain a filter visualization image; or, A filter visualization image is generated according to the target filter impact factor.
6. The method according to claim 5, characterized in that The target image includes at least one of the following: a designed image, an image to be displayed on the graphical user interface, and a video frame in a recorded video corresponding to the game.
7. The method according to claim 1, characterized in that The content displayed by the graphical user interface also includes a filter impact factor adjustment interface; the method also includes: In response to a factor adjustment operation on the filter influence factor adjustment interface, the filter influence factor is adjusted according to the factor adjustment operation.
8. The method according to claim 1, characterized in that The step of displaying an image including the filtered visualization image on the graphical user interface comprises: Displaying the filtered visualization image on the graphical user interface; or, The filtered visualization image is superimposed on the image to be displayed at the current moment, and the superimposed image is displayed on the graphical user interface.
9. A display control device in a game, characterized in that: Providing a graphical user interface of a game through an electronic device; wherein the device comprises: A target audio information acquisition module is used to acquire the target audio information corresponding to the sound source of the game at the current moment; A target filter influence factor determination module, used for searching for a target filter influence factor matching the target audio information according to a preset correspondence between the audio information and the filter influence factor; A filter visualization image acquisition module, used to acquire a filter visualization image corresponding to the target filter impact factor; An image display module is used to display an image including the filtered visualization image on the graphical user interface.
10. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the display control method in the game according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the display control method in the game according to any one of claims 1 to 8.
