Message sending method, medium, electronic device and program product

By processing messages according to spatial location in the virtual scene, simulating the message attenuation effect in the real scene, the problem that world chat channel messages in the game are easily ignored is solved, and the game experience and immersion is improved.

CN119139710AActive Publication Date: 2024-12-17BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
CN202411368344.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-17
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

In game scenarios, the message density in the world chat channel is high and the refresh speed is fast, which makes chat messages easy to be ignored, lack of differences, and lack of effective message communication mechanisms.

Method used

By displaying the target message in the virtual scene, processing is performed based on the spatial position and original message of the first virtual character and the second virtual character in the virtual scene, the message attenuation effect in the real scene is simulated, making the game more realistic and immersive.

Benefits of technology

It improves the user's gaming experience, enhances the immersion and fun of communication between players, reduces useless information in public chat channels, and reduces the cost of players communicating with other players.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119139710A_ABST
    Figure CN119139710A_ABST
Patent Text Reader

Abstract

The invention relates to a message sending method, a medium, electronic equipment and a program product, and relates to the technical field of computers, the method comprises the following steps: displaying a first virtual scene picture corresponding to a first virtual character, and responding to an original message sent by a second virtual character in a virtual scene; the target message determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message is displayed in the first virtual scene picture, the effect of message attenuation in a real scene can be simulated in the virtual scene, a game can be more real and immersive, and the game experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular, to a message sending method, a medium, an electronic device, and a program product. Background Art

[0002] In the game scene, there are generally two ways for players to communicate with each other. The first way is to send chat messages through the game's world chat channel or send chat messages through the private chat channel after establishing a social relationship. However, the density of messages in the world chat channel is high, the message refresh speed is fast, and the messages in the world chat channel are for all players. This will make the chat messages in the world chat channel extremely easy to be ignored, resulting in the chat messages not being effectively conveyed. In addition, the messages are directly sent to the world chat channel, lacking differentiation. Summary of the invention

[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] In a first aspect, the present disclosure provides a message sending method, comprising: Displaying a first virtual scene picture corresponding to a first virtual character, where the first virtual character is a virtual character controlled by a first client; In response to an original message sent by the second virtual character in the virtual scene, a target message is displayed in the first virtual scene screen, wherein the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message.

[0005] In a second aspect, the present disclosure provides a message sending method, the method comprising: Displaying a second virtual scene picture corresponding to the second virtual character; In response to a message sending operation triggered in the second virtual scene screen, the second virtual character is controlled to send an original message in the virtual scene, wherein the original message is used to display a target message in the first virtual scene screen corresponding to the first virtual character, and the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, and the first virtual character is a virtual character controlled by the first client.

[0006] In a third aspect, the present disclosure provides a message sending method, the method comprising: receiving an original message sent by the second virtual character in the virtual scene; Obtaining a target message according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, wherein the first virtual character is a virtual character controlled by the first client; The target message is sent to the first client, so that the first client displays the target message through a first virtual scene screen corresponding to the first virtual character.

[0007] In a fourth aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect, and / or implements the steps of the method described in the second aspect, and / or implements the steps of the method described in the third aspect.

[0008] In a fifth aspect, the present disclosure provides an electronic device, including: a storage device having a computer program stored thereon; A processing device, used to execute the computer program in the storage device to implement the steps of the method described in the first aspect, and / or, to implement the steps of the method described in the second aspect, and / or, to implement the steps of the method described in the third aspect.

[0009] In a sixth aspect, the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect, and / or implements the steps of the method described in the second aspect, and / or implements the steps of the method described in the third aspect.

[0010] Based on the above technical solution, by displaying the first virtual scene screen corresponding to the first virtual character, in response to the original message sent by the second virtual character in the virtual scene, the target message determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message is displayed in the first virtual scene screen, the effect of message attenuation in the real scene can be simulated in the virtual scene, so that the game can be more realistic and immersive, thereby improving the user's gaming experience.

[0011] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 is a flowchart of a message sending method according to some embodiments.

[0013] Figure 2 is a schematic diagram showing determination of a first virtual character according to some embodiments.

[0014] Figure 3 is a schematic diagram showing determination of a target word according to some embodiments.

[0015] Figure 4 is a schematic diagram of a second virtual scene screen according to some embodiments.

[0016] Figure 5 is a schematic diagram showing displaying a target message according to some embodiments.

[0017] Figure 6 is a flowchart of a message sending method according to some other embodiments.

[0018] Figure 7 is a flowchart of a message sending method according to some further embodiments.

[0019] Figure 8 The figure is a schematic diagram of the structure of a message sending device according to an exemplary embodiment.

[0020] Fig. 9 is a schematic structural diagram of a message sending device according to another exemplary embodiment.

[0021] Fig.10 is a schematic structural diagram of a message sending device according to yet another exemplary embodiment.

[0022] Fig.11 It is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0024] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0025] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0026] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0029] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0030] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0031] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0032] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0033] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0034] Figure 1 FIG. 1 is a flowchart of a message sending method according to some embodiments. Figure 1 As shown, the embodiment of the present disclosure provides a message sending method, which can be executed by an electronic device, specifically, by a message sending device, which can be implemented by software and / or hardware and configured in the electronic device. It should be understood that the electronic device can be a first client. Figure 1 As shown, the method may include the following steps.

[0035] In step 110, a first virtual scene image corresponding to the first virtual character is displayed.

[0036] Here, the first virtual character is a virtual character controlled by the first client. The first virtual character may refer to a player-controlled character. Exemplarily, the player controls the first virtual character in a virtual scene through the first client. The virtual scene may refer to a game scene, such as a two-dimensional game scene, a three-dimensional game scene, a virtual reality scene, and the like.

[0037] The first virtual scene image may refer to an image of a virtual scene displayed from the perspective of the first virtual character. Taking a game as an example, the first virtual scene image may be a game image from the perspective of the first virtual character acquired by a virtual camera.

[0038] In step 120, in response to the original message sent by the second virtual character in the virtual scene, a target message is displayed in the first virtual scene screen, wherein the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message.

[0039] Here, the original message may refer to a message sent by the second virtual character to the first virtual character in the virtual scene. The second virtual character may refer to a player-controlled character other than the first virtual character in the virtual scene. Of course, the second virtual character may also be a non-player-controlled character (NPC) in the virtual scene.

[0040] It should be noted that the original message may be a public message sent by the second virtual character in the virtual scene. That is, the original message may be a message sent by the second virtual character to multiple first virtual characters in the virtual scene. For example, the original message may be a message sent by the second virtual character to the first virtual character within a certain range of the second virtual character.

[0041] In the embodiment of the present disclosure, the original message may be a text message or a voice message. That is, the message sending method provided in the embodiment of the present disclosure is applicable to both sending text messages and sending voice messages.

[0042] When the second virtual character sends an original message in the virtual scene, a target message is displayed in the first virtual scene screen, wherein the target message is obtained by processing the original message.

[0043] The spatial positions of the first virtual character and the second virtual character in the virtual scene may refer to the first position information of the first virtual character in the virtual scene and the second position information of the second virtual character in the virtual scene. Of course, the spatial positions of the first virtual character and the second virtual character in the virtual scene may refer to the distance between the first virtual character and the second virtual character in the virtual scene, and the distance may be determined based on the first position information of the first virtual character in the virtual scene and the second position information of the second virtual character in the virtual scene.

[0044] The original message can be processed according to the spatial position of the first virtual character and the second virtual character in the virtual scene to obtain the target message. It should be noted that the first client can determine the target message according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message, or the server can determine the target message according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message. Of course, in the case where the second virtual character is a non-player character controlled by the second client, the second client can also determine the target message according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message. After the second client obtains the target message, the second client sends the target message to the server, and the server sends the target message to the first client.

[0045] It is worth noting that when the first virtual character and the second virtual character are in different spatial positions in the virtual scene, the target message displayed in the first virtual scene screen is different. For example, when the distance between the first virtual character and the second virtual character is far, the target message may include part of the content of the original message or not contain the content of the original message, and when the distance between the first virtual character and the second virtual character is close, the target message may be the original message.

[0046] By processing the original message sent by the second virtual character according to the spatial positions of the first virtual character and the second virtual character in the virtual scene, different original messages are displayed in different spatial positions, thereby simulating the effect that the chat messages received in the real scene will be different depending on the distance, making the game more realistic and immersive.

[0047] Therefore, by displaying the first virtual scene screen corresponding to the first virtual character, in response to the original message sent by the second virtual character in the virtual scene, the target message determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message is displayed in the first virtual scene screen, the effect of message attenuation in the real scene can be simulated in the virtual scene, so that the game can be more realistic and immersive, thereby improving the user's gaming experience.

[0048] In the embodiment of the present disclosure, the first virtual character may refer to a virtual character in the virtual scene that can receive the original message sent by the second virtual character. For example, the first virtual character may be a virtual character in the virtual scene whose distance from the second virtual character is not greater than the message receiving distance corresponding to the original message.

[0049] The message receiving distance corresponding to the original message may refer to the maximum distance indicated by the second virtual character at which the original message can be received. By comparing the distance between the virtual character and the second virtual character in the virtual scene and the message receiving distance, the first virtual character that can receive the original message sent by the second virtual character is determined from the virtual scene.

[0050] A virtual character whose distance from the second virtual character in the virtual scene is less than or equal to the message receiving distance can receive the original message sent by the second virtual character. A virtual character whose distance from the second virtual character in the virtual scene is greater than the message receiving distance cannot receive the original message sent by the second virtual character.

[0051] Therefore, the second virtual character can choose to communicate with virtual characters at different distances in the virtual scene by specifying different message receiving distances. For example, the second virtual character can specify 10 unit lengths of the virtual scene as the message receiving distance, so that virtual characters in the virtual scene that are no more than 10 unit lengths away from the second virtual character can receive the original message sent by the second virtual character.

[0052] Exemplarily, in a specific implementation, the message receiving range may be determined with the position information of the second virtual character as the origin and the message receiving distance as the radius, and then the virtual character in the virtual scene within the message receiving range may be determined as the first virtual character.

[0053] Figure 2 FIG. 1 is a schematic diagram showing how to determine a first virtual character according to some embodiments. Figure 2As shown, the distance between the virtual character A in the virtual scene 201 and the second virtual character 202 is less than the message receiving distance 203, the distance between the virtual character B in the virtual scene 201 and the second virtual character 202 is less than the message receiving distance 203, and the distance between the virtual character C in the virtual scene 201 and the second virtual character 202 is greater than the message receiving distance 203, then the virtual character A and the virtual character B are the first virtual characters. In other words, the original message sent by the second virtual character 202, which indicates that the virtual characters within the message receiving distance 203 can receive, can be received by the virtual characters A and B in the virtual scene 201, but cannot be received by the virtual character C.

[0054] Based on this, players can select a specific message receiving distance, which can not only meet the needs of players to communicate with players at a specific distance, but also avoid too much useless information in the public chat channel, so as to reduce the disturbance of messages on the public chat channel to players. Moreover, through the message sending method provided by the embodiment of the present disclosure, players can also achieve the purpose of communicating with people near the virtual scene without establishing social relationships with other players, reducing the cost of players communicating with other players and greatly improving the game experience.

[0055] In some practicable implementations, in response to the distance between the first virtual character and the second virtual character in the virtual scene being no greater than a preset distance threshold, the original message may be determined as the target message.

[0056] In some other feasible implementations, in response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than a preset distance threshold, part of the information in the original message may be determined as the target message.

[0057] Here, the distance between the first virtual character and the second virtual character in the virtual scene may be determined by a first position message of the first virtual character in the virtual scene and a second position message of the second virtual character in the virtual scene.

[0058] After receiving the original message sent by the second virtual character, if the distance between the first virtual character and the second virtual character is not greater than the preset distance threshold, the target message is the original message. If the distance between the first virtual character and the second virtual character is greater than the preset distance threshold, the target message is part of the original message.

[0059] According to the different distances between the first virtual character and the second virtual character, the target message displayed by the corresponding first virtual character may be different, thereby simulating the effect that users at different distances in a real scene hear different contents of messages sent from the same location.

[0060] It is worth noting that, since the first virtual character is a virtual character whose distance is not greater than the message receiving distance, the preset distance threshold is less than the message receiving distance. Figure 2 As shown, the preset distance threshold 204 is smaller than the message receiving distance 203. It should be understood that the size of the preset distance threshold can be set according to actual conditions, or different sizes of preset distance thresholds can be set for different message sending modes for sending original messages.

[0061] like Figure 2 As shown, the distance between the virtual character A and the second virtual character 202 is less than the preset distance threshold 204 , and the distance between the virtual character B and the second virtual character 202 is less than the preset distance threshold 204 .

[0062] When the distance between the first virtual character and the second virtual character is less than or equal to a preset distance threshold, the original message is displayed in the first virtual scene picture corresponding to the first virtual character.

[0063] When the distance between the first virtual character and the second virtual character is greater than a preset distance threshold, part of the information in the original message is displayed in a first virtual scene screen corresponding to the first virtual character.

[0064] That is, although both virtual character A and virtual character B can receive the message sent by the second virtual character 202, due to the difference in distance, the content of the original message received by virtual character A and virtual character B is different. For example, the target message displayed by virtual character A is the original message sent by the second virtual character 202, and the target message displayed by virtual character B is part of the information in the original message.

[0065] Exemplarily, assuming that the original message sent by the second virtual character 202 is "Have you heard? Xiao Li from the next class confessed to my friend Dahua, and hit her after being rejected", when virtual character A acts as the first virtual character, the target message "Have you heard? Xiao Li from the next class confessed to my friend Dahua, and hit her after being rejected" is displayed in the first virtual scene screen of virtual character A, and when virtual character B acts as the first virtual character, the target message "...confession..." is displayed in the first virtual scene screen of virtual character B.

[0066] It is worth noting that, when the distance between the first virtual character and the second virtual character in the virtual scene is greater than a preset distance threshold, the contents of the corresponding target messages may be different for the first virtual characters at different distances. That is, when the distance between the first virtual character and the second virtual character in the virtual scene is greater than a preset distance threshold, the partial message of the original message included in the target message displayed by the first virtual character that is closer to the second virtual character has more content than the partial message of the original message included in the target message displayed by the first virtual character that is farther away from the second virtual character.

[0067] Therefore, through the above implementation, the effect of the message attenuation with distance in the real scene can be simulated in the virtual scene, making the game more realistic and immersive.

[0068] In some feasible implementations, based on the role attribute information of the first virtual character, information matching the role attribute information can be determined from the original information, and the target message can be determined according to the matching information.

[0069] Here, the character attribute information may refer to the identity information, age information, etc. of the first virtual character. It is worth noting that the identity information corresponding to the first virtual character may refer to the game profession of the first virtual character in the virtual scene, such as teacher, worker, shooter, assistant, warrior, mage, etc.

[0070] When the distance between the first virtual character and the second virtual character is greater than a preset distance threshold, information matching the character attribute information is determined from the original information according to the character attribute information corresponding to the first virtual character, and a target message is determined according to the matching information.

[0071] In some embodiments, each word included in the original message may be determined, and according to the role attribute information corresponding to the first virtual character, a target word matching the role attribute information may be determined among the words, and then a target message may be obtained based on the target word.

[0072] If the original message is a text message, the text message can be segmented to obtain the words included in the original message. If the original message is a voice message, the voice message can be identified and converted into text, and then the text can be segmented to obtain the words included in the original message.

[0073] Taking the role attribute information as identity information as an example, the first virtual characters with different identity information have different interests in various words in the same original message. Therefore, at least one target word related to the identity information can be determined from among the various words.

[0074] For example, the original message sent by the second virtual character is "Have you heard that Xiao Li from the next class confessed to my friend Da Hua, and hit her after being rejected", if the identity information of the first virtual character A is "teacher", the identity information of the "teacher" is more interested in the word "confession", and the target message displayed to the first virtual character A is "...confession...". If the identity information of the first virtual character B is "policeman", the identity information of the "policeman" is more interested in the word "beat", and the target message displayed to the first virtual character B is "...beat her".

[0075] In some embodiments, the words may be ranked from high to low according to the correlation between the identity information and the different words, and one or more words ranked high may be selected as target words.

[0076] For example, one or more words with the greatest correlation with the identity information among the words can be used as target words. It should be noted that the number of determined target words can be determined based on other types of character attribute messages. For example, for an older virtual character, whose ability to receive messages is lower, the number of target words can be less than the number of target words corresponding to a younger virtual character.

[0077] After obtaining the target word, the message content except the target word in the original message sent by the second virtual character is omitted and displayed to obtain the target message. For example, in the original message "Have you heard that Xiao Li from the next class confessed to my friend Da Hua and hit her after being rejected", the target word is "confession", and the target message is "...confession...".

[0078] In the case where the original message is a voice message, the remaining audio frames in the voice message except the audio frames corresponding to the target words can be blurred to obtain the target message. That is, in the target message, the player can only clearly hear the target words, but cannot clearly hear the contents other than the target words.

[0079] Figure 3 FIG. 1 is a schematic diagram showing how to determine a target word according to some embodiments. Figure 3As shown, the second virtual character sends the original message, performs word segmentation on the original message, obtains word A, word B, word C, word D, word E, and then sorts "word A, word B, word C, word D, word E" according to the character attribute information of the first virtual character to obtain the sorting sequence of "word D>word B>word C>word A>word E". Next, the original message is processed into "......word B......word D......", and then the first virtual scene screen corresponding to the first virtual character displays the target message of "......word B......word D......".

[0080] Thus, through the above implementation, the original message sent by the second virtual character displayed by the first virtual character at different distances will be different, thereby simulating the effect of the message attenuation in the real scene with the distance in the virtual scene, making the communication between players more immersive and interesting. Moreover, by processing the original message through the character attribute information, the words of the target message displayed by the virtual characters with different character attribute information can be differentiated, so that the message received by the player can be more in line with the setting of the character attribute information of the virtual character, and the enthusiasm of the player to communicate in the virtual scene is improved.

[0081] In some other achievable implementations, in response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than the message receiving distance corresponding to the original message, the indication message is determined as the target message.

[0082] Here, when the distance between the first virtual character and the second virtual character in the virtual scene is greater than the message receiving distance corresponding to the original message, it means that the distance between the first virtual character and the second virtual character in the virtual scene is far, and the first virtual character cannot receive the message sent by the second virtual character.

[0083] It is worth noting that the first virtual character here can be any virtual character in the virtual scene, or it can refer to a virtual character in the virtual scene whose distance from the second virtual character is greater than the message receiving distance but less than the target distance threshold. When the second virtual character sends the original message, other virtual characters, as the first virtual characters, display different target messages for the first virtual characters at different distances. For the first virtual character whose distance is greater than the message receiving distance, it displays an instruction message in the corresponding first virtual scene screen.

[0084] It should be understood that the message receiving distance corresponding to the original message is greater than the preset distance threshold, and the explanation of the message receiving distance will be described in detail in subsequent embodiments.

[0085] The instruction message is used to instruct the second virtual character to send a message in the virtual scene, and the instruction message does not contain the message content of the original message.

[0086] For example, assuming the original message is "Have you heard that Xiao Li from the next class confessed his love to my friend Dahua, and hit her after being rejected", for the first virtual character whose distance is greater than the message receiving distance, the corresponding target message may be "[the second virtual character] sent a message", or "[the second virtual character] spoke in the virtual scene" and other indicative messages.

[0087] The indication message will not contain any message content of the original message sent by the second virtual character. The indication message is used to remind the first virtual character that the second virtual character has sent a message in the virtual scene.

[0088] It is worth noting that when the distance between the first virtual character and the second virtual character in the virtual scene is greater than the message receiving distance corresponding to the original message, it means that the first virtual character has exceeded the maximum distance at which the original message can be received. For the first virtual character, it is equivalent to being unable to "clearly hear" the message sent by the second virtual character. By using the indication message as the target message, the player corresponding to the first virtual character can be prompted that the second virtual character in the virtual scene has sent a message in the virtual scene, but the player corresponding to the first virtual character cannot receive the message sent by the second virtual character in the virtual scene due to the long distance, so as to encourage the first virtual character to approach the second virtual character so that the first virtual character can receive the message sent by the second virtual character.

[0089] Therefore, through the above implementation, not only can the effect of message attenuation with distance in the real scene be simulated in the virtual scene, making the communication between players more immersive and interesting, but also the distance between players can be shortened through instruction messages, thereby increasing the enthusiasm of players to interact.

[0090] It is worth noting that in the disclosed embodiment, when the distance between the first virtual character and the second virtual character in the virtual scene is not greater than the preset distance threshold, the original message sent by the second virtual character is displayed in the first virtual scene screen, and when the distance between the first virtual character and the second virtual character in the virtual scene is greater than the preset distance threshold and not greater than the message receiving distance, part of the information in the original message sent by the second virtual character is displayed in the first virtual scene screen. When the distance between the first virtual character and the second virtual character in the virtual scene is greater than the message receiving distance, an indication message is displayed in the first virtual scene screen. Based on this, the effect of the message attenuation in the real scene with the distance can be simulated in the virtual scene, so that the communication between players can be more immersive and interesting.

[0091] In some feasible implementations, the message receiving distance may be determined by the second virtual character.

[0092] Exemplarily, the second client corresponding to the second virtual character may determine the message receiving distance according to the message sending mode selected for sending the original message, wherein different message sending modes correspond to different message receiving distances; or determine the message receiving distance according to a specified distance.

[0093] Here, different message sending modes correspond to different message receiving distances, and the message receiving distance corresponding to the original message sent by the second virtual character is determined by the message receiving distance corresponding to the message sending mode selected by the second virtual character for sending the original message.

[0094] In the embodiment of the present disclosure, the message sending mode may include a whisper mode, a speak mode, and a shout mode.

[0095] In whisper mode, when the distance satisfies 0<n≤a, the first virtual character can receive the original message sent by the second virtual character, and the original message can be displayed through the public chat channel and message bubble. When the distance satisfies a<n≤b, the first virtual character can receive the message sent by the second virtual character, but only part of the original message is displayed, and the part of the message can be displayed through the public chat channel and message bubble. When the distance satisfies n>b, the first virtual character cannot receive the original message sent by the second virtual character. Among them, n is the distance between the second virtual character and the first virtual character, a is the preset distance threshold, and b is the message receiving distance.

[0096] In the speaking mode, when the distance satisfies 0<n≤b, the first virtual character can receive the original message sent by the second virtual character, and the original message can be displayed through the public chat channel and the message bubble. When the distance satisfies n>b, the first virtual character cannot receive the message sent by the second virtual character.

[0097] In the shouting mode, when the distance satisfies 0<n≤b, the first virtual character can receive the original message sent by the second virtual character, and the original message can be displayed through the public chat channel and the message bubble. When the distance satisfies n>b, the message sent by the second virtual character can be received through the public chat channel, but not through the message bubble.

[0098] Exemplarily, in the disclosed embodiment, the message sending mode corresponding to the original message may be the whisper mode shown in the above embodiment. Of course, in actual application scenarios, the message sending mode corresponding to the original message may also be a message sending mode set according to demand.

[0099] When the second virtual character sends an original message in the selected message sending mode, if the distance between the first virtual character receiving the original message and the second virtual character is greater than a preset distance threshold, information matching the character attribute information is determined from the original message based on the character attribute information corresponding to the first virtual character, and the target message is determined based on the matching information.

[0100] Therefore, through the above implementation, various chat modes can be provided in the virtual scene, so that players can communicate in different forms according to their needs, which greatly improves the players' gaming experience.

[0101] Figure 4 FIG. 1 is a schematic diagram of a second virtual scene screen according to some embodiments. Figure 4 As shown, when the second virtual character needs to send a message in the virtual scene, the corresponding message sending mode can be selected through the second virtual scene screen 401 corresponding to the second virtual character. For example, the player can select a message sending mode from the whisper mode, the talk mode, and the shout mode as the mode for sending the original message.

[0102] After the player selects the message sending mode, the player can input the message to be sent, and the second client sends the target message to the corresponding first virtual character according to the message sending mode selected by the player and the original message input.

[0103] Of course, before sending the original message, the player corresponding to the second virtual character can specify a distance through the second virtual scene screen corresponding to the second virtual character, and the second client can determine the specified distance as the message receiving distance.

[0104] It should be understood that by using the specified distance as the message receiving distance, the player can communicate with other players within different distances as needed. Of course, in the disclosed embodiment, the distance specified by the second virtual character can also be represented by a location in the virtual scene. For example, the player corresponding to the second virtual character can specify a specific city in the virtual scene as the message sending distance, so that all virtual characters in the city can receive the original message sent by the second virtual character.

[0105] Therefore, through the above implementation, players can specify the message receiving distance corresponding to the original message they sent in different ways, so that players can communicate with other players at different distances, greatly improving the freedom and experience of the game.

[0106] In some feasible implementations, in step 120, the target message may be displayed through a public chat channel in the first virtual scene screen, and / or the target message may be displayed in the first virtual scene screen through a message bubble rendered on the second virtual character.

[0107] Here, the first client corresponding to the first virtual character displays the target message through the public chat channel displayed in the first virtual scene screen. Figure 4 As shown, target messages that can be received by the first virtual character can be displayed in the public chat channel.

[0108] Of course, the first client corresponding to the first virtual character can also display the target message through a message bubble rendered on the second virtual character. It should be understood that when the second virtual character appears in the first virtual scene screen corresponding to the first virtual character, the first client of the first virtual character renders and displays the corresponding message bubble on the second virtual character in the first virtual scene screen based on the received target message, so as to display the message sent by the second virtual character through the message bubble.

[0109] It is worth noting that, depending on the message sending mode used by the second virtual character to send the original message, the message sent by the second virtual character may be displayed through a public chat channel and / or a message bubble.

[0110] In some embodiments, the first client may display the target message in a public chat channel of the first virtual scene screen through a target display style, where the target display style is used to indicate a message sending mode used by the second virtual character when sending the original message.

[0111] For the original message sent by the second virtual character using a different message sending mode, the first client corresponding to the first virtual character displays the target message in the public chat channel through the corresponding target display style, so as to show the player the message sending mode corresponding to the message sent by the second virtual character through the target display style.

[0112] Figure 5 FIG. 1 is a schematic diagram showing a target message according to some embodiments. Figure 5 As shown, the second virtual character 601 (player C) sends the original message "You know M3?" through the whisper mode. At the message receiving distance corresponding to the whisper mode, the target message that can be received by the first virtual character 602 is "...know...". The first client corresponding to the first virtual character 602 displays the target message "...know..." through the message bubble 603, and displays the target message "...know..." in the public chat channel of the first virtual character 602 through the target display style of "[Player C] whisper: ...know...", to indicate that the second virtual character 601 sent the message "...know..." through the whisper mode.

[0113] Thus, through the above implementation, a first virtual character with a different distance from a second virtual character in a virtual scene will receive messages of different styles, thereby increasing the diversity and fun of communication between players in the game.

[0114] Figure 6 FIG. 1 is a flowchart of a message sending method according to some other embodiments. Figure 6 As shown, the embodiment of the present disclosure provides a message sending method, which can be executed by an electronic device, specifically, by a message sending device, which can be implemented by software and / or hardware and configured in the electronic device. It should be understood that the electronic device can be a second client. Figure 6 As shown, the method may include the following steps.

[0115] In step 610, a second virtual scene picture corresponding to the second virtual character is displayed.

[0116] Here, the second virtual character is a virtual character controlled by the second client. The second virtual character may refer to a character controlled by a player. Exemplarily, the player controls the second virtual character in the virtual scene through the second client.

[0117] The second virtual scene picture may refer to a picture of a virtual scene displayed from the perspective of the second virtual character. Taking a game as an example, the second virtual scene picture may be a game picture from the perspective of the second virtual character obtained by a virtual camera.

[0118] In step 620, in response to a message sending operation triggered in the second virtual scene screen, the second virtual character is controlled to send an original message in the virtual scene, wherein the original message is used to display a target message in the first virtual scene screen corresponding to the first virtual character, and the target message is determined based on the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, and the first virtual character is a virtual character controlled by the first client.

[0119] Here, the message sending operation may be an operation for sending a message triggered by the player through the second client in the second virtual scene screen. In response to the message sending operation, the second client controls the second virtual character to send the original message in the virtual scene.

[0120] For the player corresponding to the second virtual character, he can trigger the message sending operation by selecting the message sending mode in the second virtual scene screen and editing the corresponding message to be sent.

[0121] It should be noted that the original message may be a public message sent by the second virtual character in the virtual scene. That is, the original message may be a message sent by the second virtual character to multiple first virtual characters in the virtual scene. For example, the original message may be a message sent by the second virtual character to the first virtual character within a certain range of the second virtual character. The original message sent by the second virtual character is used to display the target message in the first virtual scene screen corresponding to the first virtual character. It should be understood that the detailed description of the target message can refer to the relevant description of the above embodiment, and will not be repeated here.

[0122] Thus, the second virtual scene screen corresponding to the second virtual character is displayed, and in response to the message sending operation triggered in the second virtual scene screen, the second virtual character is controlled to send the original message in the virtual scene. The effect of message attenuation in the real scene can be simulated in the virtual scene, making the game more realistic and immersive, thereby improving the user's gaming experience.

[0123] In some practicable implementations, the first virtual character may be a virtual character whose distance from the second virtual character in the virtual scene is not greater than a message receiving distance corresponding to the original message.

[0124] Here, regarding the message receiving distance, the first virtual character, and the distance between the virtual character and the second virtual character, reference may be made to the relevant description of the above embodiments, which will not be repeated here.

[0125] It is worth noting that the first virtual character may be determined by the second client or by the server.

[0126] Based on this, players can select a specific message receiving distance, which can not only meet the needs of players to communicate with players at a specific distance, but also avoid too much useless information in the public chat channel, so as to reduce the disturbance of messages on the public chat channel to players. Moreover, through the message sending method provided by the embodiment of the present disclosure, players can also achieve the purpose of communicating with people near the virtual scene without establishing social relationships with other players, reducing the cost of players communicating with other players and greatly improving the game experience.

[0127] In some feasible implementations, the second client may determine the message receiving distance according to the message sending mode selected for sending the original message, wherein different message sending modes correspond to different message receiving distances; or determine the message receiving distance according to a specified distance.

[0128] It should be understood that the description on how to determine the message receiving distance can refer to the relevant description of the above embodiment, which will not be repeated here.

[0129] Therefore, through the above implementation, various chat modes can be provided in the virtual scene, so that players can communicate in different forms according to their needs, which greatly improves the players' gaming experience.

[0130] It is worth noting that in the embodiments of the present disclosure, the roles between the first client and the second client can be switched. That is, when a client acts as a message sender, the client acts as a second client, and when a client acts as a message receiver, the client acts as a first client. Of course, when a client acts as both a message sender and a message receiver, the client acts as both a first client and a second client. For example, when a client sends a message in a virtual scene, it can also receive messages at the same time. Therefore, both the first and second clients can be executed on one client. Figure 1 The message sending method shown can also be executed Figure 6 The message sending method is shown.

[0131] Figure 7 FIG. 1 is a flowchart of a message sending method according to some other embodiments. Figure 7 As shown, the embodiment of the present disclosure provides a message sending method, which can be executed by an electronic device, specifically, by a message sending device, which can be implemented by software and / or hardware and configured in the electronic device. It should be understood that the electronic device can be a server. Figure 7 As shown, the method may include the following steps.

[0132] In step 710, an original message sent by the second virtual character in the virtual scene is received.

[0133] Here, the server can receive the original message sent by the second virtual character in the virtual scene. It should be noted that when the second virtual character is a player-controlled character, the server can receive the original message sent by the second client corresponding to the second virtual character. When the second virtual character is a non-player-controlled character, the server can directly obtain the original message sent by the second virtual character from the server.

[0134] In step 720, a target message is obtained according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message.

[0135] Here, the first virtual character is a virtual character controlled by the first client. How to obtain the target message according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message can refer to the relevant description of the above implementation mode, which will not be repeated here.

[0136] In step 730, a target message is sent to the first client, so that the first client displays the target message through a first virtual scene screen corresponding to the first virtual character.

[0137] Here, the server sends a target message to the first client corresponding to the first virtual character, so that the first client corresponding to the first virtual character can display the target message in the virtual scene.

[0138] The server receives an original message sent by a second client corresponding to the second virtual character, processes the original message into different target messages according to the distance, and sends the target message to the first client corresponding to the first virtual character, so as to display the target message in the first client, thereby realizing communication between the player corresponding to the second virtual character and the player corresponding to the first virtual character.

[0139] Therefore, through the above steps 710 to 730, the effect of message attenuation in the real scene can be simulated in the virtual scene, making the game more realistic and immersive, thereby improving the user's gaming experience.

[0140] In some feasible implementations, the server may determine the distance between the virtual character and the second virtual character in the virtual scene, and determine the virtual character whose distance is not greater than the message receiving distance corresponding to the original message as the first virtual character.

[0141] In some embodiments, the initial distance between the virtual character and the second virtual character can be determined based on the first position information of the virtual character in the virtual scene and the second position information of the second virtual character in the virtual scene, and then the initial distance is adjusted based on the character perception capabilities corresponding to the virtual characters and / or the obstructions included between the virtual character and the second virtual character to obtain the distance between the virtual character and the second virtual character in the virtual scene.

[0142] Here, the initial distance between the virtual character and the second virtual character may refer to the actual distance between the virtual character and the second virtual character in the virtual scene. Therefore, the initial distance between each virtual character and the second virtual character in the virtual scene may be determined based on the first position information of the virtual character in the virtual scene and the second position information of the second virtual character in the virtual scene.

[0143] The character perception ability corresponding to the virtual character refers to the ability of the virtual character related to receiving messages. For example, the perception ability may refer to the auditory parameters and / or visual parameters corresponding to the virtual character. It should be understood that different virtual characters in a virtual scene may have different character perception abilities, which may be the default setting of the game or the parameter value obtained by the virtual character through learning.

[0144] Adjusting the initial distance according to the character's perception ability may be an operation of increasing, decreasing, or not adjusting the initial distance according to the character's perception ability. In the embodiment of the present disclosure, the character perception ability is negatively correlated with the distance between the virtual character and the second virtual character. That is, the greater the character perception ability corresponding to the virtual character, the smaller the distance between the virtual character and the second virtual character after adjustment, so that the virtual character is more likely to receive the original message sent by the second virtual character, and the original message sent by the second virtual character received by the virtual character is clearer.

[0145] In some embodiments, a target distance correction coefficient corresponding to the character perception ability of the virtual character can be determined according to the character perception ability corresponding to the virtual character, and the distance between the virtual character and the second virtual character can be determined according to the sum of the initial distance and the target distance correction coefficient.

[0146] A character's perception ability may be set as a standard character's perception ability, and then the corresponding target distance correction coefficient may be determined based on the difference between the character's perception ability corresponding to the virtual character and the standard character's perception ability.

[0147] It is worth noting that the target distance correction coefficient corresponding to the standard character perception ability can be 0. Under the standard character perception ability, the distance between the virtual character and the second virtual character is the corresponding initial distance. If the character perception ability of the virtual character is less than the standard character perception ability, the corresponding target distance correction coefficient is a positive value, so as to increase the initial distance between the virtual character and the second virtual character, so that the distance between the virtual character and the second virtual character becomes larger, thereby affecting whether the virtual character can receive the message and the amount of information included in the received message. If the character perception ability of the virtual character is greater than the standard character perception ability, the corresponding target distance correction coefficient is a negative value, so as to reduce the initial distance between the virtual character and the second virtual character, so that the distance between the virtual character and the second virtual character becomes smaller, thereby affecting whether the virtual character can receive the message and the amount of information included in the received message.

[0148] For example, if the hearing ability and / or visual ability of virtual character A is better than that of other virtual characters, it is easier for virtual character A to obtain the original message sent by the second virtual character, and the amount of information in the obtained original message will be greater.

[0149] The occluder included between the virtual character and the second virtual character refers to an object set between the virtual character and the second virtual character in the virtual scene. For example, the occluder can be rain, walls, trees, etc. in the virtual scene.

[0150] The initial distance can be adjusted according to the obstructions between the virtual character and the second virtual character, and the initial distance can be increased, decreased, or not adjusted. In the embodiment of the present disclosure, the obstruction coefficient corresponding to the obstruction is positively correlated with the distance between the virtual character and the second virtual character. In other words, the more obstructions there are between the virtual character and the second virtual character, the greater the value of the distance obtained after adjustment, so that the virtual character is less likely to receive the original message sent by the second virtual character, and the virtual character receives less information from the original message sent by the second virtual character.

[0151] In some embodiments, an occlusion coefficient corresponding to the occlusion may be determined according to the occlusion between the virtual character and the second virtual character, and then the initial distance may be adjusted by the occlusion coefficient to obtain the distance between the virtual character and the second virtual character.

[0152] Among them, the occlusion coefficient corresponding to the occluder can be determined according to the material properties of the occluder (such as density, absorption coefficient). In other words, occluders with different material properties correspond to different occlusion coefficients. The distance between the virtual character and the second virtual character can be determined according to the occlusion coefficient and the initial distance, so that when there is an occluder between the virtual character and the second virtual character, the initial distance between the virtual character and the second virtual character can be dynamically increased, so that when there is an occluder between the virtual character and the second virtual character, the virtual character is less likely to receive the original message sent by the second virtual character, thereby simulating the attenuation effect of the message in the real scene.

[0153] It is worth noting that when there is no obstruction between the virtual character and the second virtual character, the distance between the virtual character and the second virtual character is equal to the initial distance between the virtual character and the second virtual character. When there is an obstruction between the virtual character and the second virtual character, the distance between the virtual character and the second virtual character is greater than the initial distance between the virtual character and the second virtual character. Thus, the distance can be dynamically determined according to the obstruction and / or character perception ability included between the virtual character and the second virtual character, thereby simulating the attenuation effect of the message in the real scene, making the game more realistic and immersive, and also making different virtual characters receive different information, and also making the game more realistic.

[0154] Figure 8 FIG. 1 is a schematic diagram showing the structure of a message sending device according to an exemplary embodiment. Figure 8 As shown, the embodiment of the present disclosure provides a message sending device 800, and the message sending device 800 includes: A first display module 801 is configured to display a first virtual scene image corresponding to a first virtual character, where the first virtual character is a virtual character controlled by a first client; The second display module 802 is configured to display a target message in the first virtual scene screen in response to an original message sent by the second virtual character in the virtual scene, wherein the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message.

[0155] Optionally, in response to the distance between the first virtual character and the second virtual character in the virtual scene being not greater than a preset distance threshold, the original message is determined as the target message.

[0156] Optionally, in response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than a preset distance threshold, part of the information in the original message is determined as the target message.

[0157] Optionally, based on the role attribute information of the first virtual role, information matching the role attribute information is determined from the original information, and the target message is determined according to the matching information.

[0158] Optionally, in response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than the message receiving distance corresponding to the original message, an indication message is determined as the target message, wherein the indication message is used to instruct the second virtual character to send a message in the virtual scene, and the indication message does not contain the message content of the original message.

[0159] Optionally, the second display module 802 is specifically configured as: The target message is displayed through a public chat channel in the first virtual scene screen, and / or the target message is displayed in the first virtual scene screen through a message bubble rendered on the second virtual character.

[0160] The logic of the method executed by each functional module in the above-mentioned message sending device 800 can refer to the part of the method related to the above-mentioned embodiment, and will not be repeated here.

[0161] Fig. 9 FIG. 1 is a schematic diagram showing a structure of a message sending device according to another exemplary embodiment. Fig. 9 As shown, the embodiment of the present disclosure provides a message sending device 900, and the message sending device 900 includes: The third display module 901 is configured to display a second virtual scene image corresponding to the second virtual character; The control module 902 is configured to control the second virtual character to send an original message in the virtual scene in response to a message sending operation triggered in the second virtual scene screen, wherein the original message is used to display a target message in the first virtual scene screen corresponding to the first virtual character, and the target message is determined based on the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, and the first virtual character is a virtual character controlled by the first client.

[0162] Optionally, the first virtual character is a virtual character whose distance from the second virtual character in the virtual scene is not greater than a message receiving distance corresponding to the original message.

[0163] Optionally, the message sending device 900 further includes: a first determining module configured to determine the message receiving distance according to a message sending mode selected for sending the original message, wherein different message sending modes correspond to different message receiving distances; or The second determination module is configured to determine the message receiving distance according to a specified distance.

[0164] The logic of the method executed by each functional module in the above-mentioned message sending device 900 can refer to the part of the method related to the above-mentioned embodiment, and will not be repeated here.

[0165] Fig.10 FIG. 1 is a schematic diagram showing a structure of a message sending device according to another exemplary embodiment. Fig.10 As shown, the embodiment of the present disclosure provides a message sending device 1000, and the message sending device 1000 includes: The receiving module 1001 is configured to receive an original message sent by the second virtual character in the virtual scene; The obtaining module 1002 is configured to obtain a target message according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, wherein the first virtual character is a virtual character controlled by the first client; The sending module 1003 is configured to send the target message to the first client, so that the first client displays the target message through a first virtual scene screen corresponding to the first virtual character.

[0166] Optionally, the message sending device 1000 further includes: A third determining module is configured to determine the distance between the virtual character in the virtual scene and the second virtual character; The fourth determination module is configured to determine the virtual character whose distance is not greater than the message receiving distance corresponding to the original message as the first virtual character.

[0167] Optionally, the third determining module is specifically configured to: determining an initial distance between the virtual character and the second virtual character according to first position information of the virtual character in the virtual scene and second position information of the second virtual character in the virtual scene; The initial distance is adjusted according to the character perception ability corresponding to the virtual character and / or the obstruction between the virtual character and the second virtual character to obtain the distance between the virtual character and the second virtual character in the virtual scene.

[0168] The logic of the method executed by each functional module in the above-mentioned message sending device 1000 can refer to the part of the method related to the above-mentioned embodiment, and will not be repeated here.

[0169] Reference below Fig.11 , which shows a schematic diagram of the structure of an electronic device (e.g., a terminal device (also referred to as a client, such as the first client and the second client in the above-mentioned embodiment) or a server) 1100 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0170] like Fig.11 As shown, the electronic device 1100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage device 11011 to a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0171] Typically, the following devices may be connected to the I / O interface 1105: an input device 1106 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1109. The communication device 1109 may allow the electronic device 1100 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 The electronic device 1100 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0172] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1109, or installed from the storage device 11011, or installed from the ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0173] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0174] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0175] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0176] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: Displaying a first virtual scene picture corresponding to a first virtual character, where the first virtual character is a virtual character controlled by a first client; In response to an original message sent by the second virtual character in the virtual scene, a target message is displayed in the first virtual scene screen, wherein the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message.

[0177] Alternatively, when the above one or more programs are executed by the electronic device, the electronic device: Displaying a second virtual scene picture corresponding to the second virtual character; In response to a message sending operation triggered in the second virtual scene screen, the second virtual character is controlled to send an original message in the virtual scene, wherein the original message is used to display a target message in the first virtual scene screen corresponding to the first virtual character, and the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, and the first virtual character is a virtual character controlled by the first client.

[0178] Alternatively, when the above one or more programs are executed by the electronic device, the electronic device: receiving an original message sent by the second virtual character in the virtual scene; Obtaining a target message according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, wherein the first virtual character is a virtual character controlled by the first client; The target message is sent to the first client, so that the first client displays the target message through a first virtual scene screen corresponding to the first virtual character.

[0179] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0180] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0181] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.

[0182] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0183] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0184] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0185] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0186] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A message sending method, characterized in that: The method comprises: Displaying a first virtual scene picture corresponding to a first virtual character, where the first virtual character is a virtual character controlled by a first client; In response to an original message sent by the second virtual character in the virtual scene, a target message is displayed in the first virtual scene screen, wherein the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message.

2. The method according to claim 1, characterized in that The target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, including: In response to the distance between the first virtual character and the second virtual character in the virtual scene being not greater than a preset distance threshold, the original message is determined as the target message.

3. The method according to claim 1, characterized in that The target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, including: In response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than a preset distance threshold, part of the information in the original message is determined as the target message.

4. The method according to claim 3, characterized in that The determining part of the information in the original message as the target message includes: Based on the role attribute information of the first virtual role, information matching the role attribute information is determined from the original information, and the target message is determined according to the matching information.

5. The method according to claim 1, characterized in that The target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, including: In response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than the message receiving distance corresponding to the original message, an indication message is determined as the target message, wherein the indication message is used to instruct the second virtual character to send a message in the virtual scene, and the indication message does not contain the message content of the original message.

6. The method according to any one of claims 1 to 5, characterized in that The displaying of the target message in the first virtual scene picture includes: The target message is displayed through a public chat channel in the first virtual scene screen, and / or the target message is displayed in the first virtual scene screen through a message bubble rendered on the second virtual character.

7. A message sending method, characterized in that: The method comprises: Displaying a second virtual scene picture corresponding to the second virtual character; In response to a message sending operation triggered in the second virtual scene screen, the second virtual character is controlled to send an original message in the virtual scene, wherein the original message is used to display a target message in the first virtual scene screen corresponding to the first virtual character, and the target message is determined according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, and the first virtual character is a virtual character controlled by the first client.

8. The method according to claim 7, characterized in that The first virtual character is a virtual character whose distance from the second virtual character in the virtual scene is not greater than a message receiving distance corresponding to the original message.

9. The method according to claim 8, characterized in that The message receiving distance is determined by the following steps: determining the message receiving distance according to the message sending mode selected for sending the original message, wherein different message sending modes correspond to different message receiving distances; or The message receiving distance is determined according to the specified distance.

10. A message sending method, characterized in that: The method comprises: receiving an original message sent by the second virtual character in the virtual scene; Obtaining a target message according to the spatial positions of the first virtual character and the second virtual character in the virtual scene and the original message, wherein the first virtual character is a virtual character controlled by the first client; The target message is sent to the first client, so that the first client displays the target message through a first virtual scene screen corresponding to the first virtual character.

11. The method according to claim 10, characterized in that The first virtual character is determined by the following steps: determining a distance between the virtual character in the virtual scene and the second virtual character; The virtual character whose distance is not greater than the message receiving distance corresponding to the original message is determined as the first virtual character.

12. The method according to claim 11, characterized in that The determining the distance between the virtual character in the virtual scene and the second virtual character comprises: determining an initial distance between the virtual character and the second virtual character according to first position information of the virtual character in the virtual scene and second position information of the second virtual character in the virtual scene; The initial distance is adjusted according to the character perception ability corresponding to the virtual character and / or the obstruction between the virtual character and the second virtual character to obtain the distance between the virtual character and the second virtual character in the virtual scene.

13. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, it implements the steps of the method described in any one of claims 1-6, and / or implements the steps of the method described in any one of claims 7-9, and / or implements the steps of the method described in any one of claims 10-12.

14. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device for executing the computer program in the storage device to implement the steps of the method described in any one of claims 1 to 6, and / or to implement the steps of the method described in any one of claims 7 to 9, and / or to implement the steps of the method described in any one of claims 10 to 12.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 6, and / or implements the steps of the method described in any one of claims 7 to 9, and / or implements the steps of the method described in any one of claims 10 to 12.

Citation Information

Patent Citations

  • Distribution server, distribution system, distribution method, and program

    CN111867693A

  • Message display processing method and device, equipment and medium

    CN116320654A

  • Interaction control method and device in game, electronic equipment and readable storage medium

    CN118491086A

  • Data processing systems and methods for enhanced augmentation of interactive video content

    US20210089780A1

Cited By

  • Message sending method, medium, electronic device, and program product

    WO2026066100A1