Message sending method, medium, electronic device, and program product
By determining the target message based on the virtual character's spatial location and the original message in the game, and simulating the message attenuation effect with distance in real-world scenarios, the problem of messages being ignored in the world chat channel is solved, improving the game's immersion and the fun of player interaction.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2026-04-02
AI Technical Summary
In the game, chat messages in the world chat channel are easily overlooked, lack differentiation, and the interaction between players is not immersive or fun enough.
By determining the target message based on the virtual character's spatial location and the original message in the virtual scene, and displaying different target messages in the virtual scene, the system simulates the attenuation effect of messages with distance in real-world scenes, providing diverse chat modes to meet the communication needs of different players.
It enhances the game's immersion and player engagement, reduces interference from public chat channels, and increases the fun of player interaction.
Smart Images

Figure CN2025093407_02042026_PF_FP_ABST
Abstract
Description
Message sending method, medium, electronic device and program product
[0001] Cross-reference to Related Applications
[0002] This application claims priority to Chinese Patent Application No. 202411368344.8, filed September 27, 2024, the disclosure of which is incorporated herein in its entirety as part of the present application. TECHNICAL FIELD
[0003] The present disclosure relates to a message sending method, medium, electronic device and program product. BACKGROUND
[0004] In a game scenario, there are generally two ways for players to communicate with each other. The first way is to send chat messages through a world chat channel of the game or to send chat messages through a private chat channel after establishing a social relationship. However, the density of messages in the world chat channel is high, and the message refresh speed is fast. Moreover, the messages in the world chat channel are intended for all players, which can cause the chat messages in the world chat channel to be extremely easy to be ignored, resulting in the chat messages being unable to be effectively conveyed. Moreover, the messages are directly sent in the world chat channel, and lack of differentiation. SUMMARY
[0005] This summary is provided to introduce a selection of concepts, which are further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
[0006] In a first aspect, the present disclosure provides a message sending method, comprising:
[0007] displaying a first virtual scene picture corresponding to a first virtual role, the first virtual role being a virtual role controlled by a first client;
[0008] in response to an original message issued by a second virtual role in a virtual scene, displaying a target message in the first virtual scene picture, wherein the target message is determined according to a spatial position of the first virtual role and the second virtual role in the virtual scene and the original message.
[0009] In a second aspect, the present disclosure provides a message sending method, comprising:
[0010] displaying a second virtual scene picture corresponding to a second virtual role;
[0011] In response to the message sending operation triggered by the second virtual scene picture, 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 a first virtual scene picture 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.
[0012] In a third aspect, the present disclosure provides a message sending method, which comprises:
[0013] receiving an original message sent by a second virtual character in a virtual scene;
[0014] obtaining a target message according to the spatial positions of a 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 a first client;
[0015] sending the target message to the first client, so that the first client displays the target message through a first virtual scene picture corresponding to the first virtual character.
[0016] In a fourth aspect, the present disclosure provides a computer readable medium, which stores a computer program, and the computer program is executed by a processing device to implement the steps of the method of the first aspect, and / or implement the steps of the method of the second aspect, and / or implement the steps of the method of the third aspect.
[0017] In a fifth aspect, the present disclosure provides an electronic device, which comprises:
[0018] a storage device, which stores a computer program;
[0019] a processing device, which is used to execute the computer program in the storage device to implement the steps of the method of the first aspect, and / or implement the steps of the method of the second aspect, and / or implement the steps of the method of the third aspect.
[0020] In a sixth aspect, the present disclosure provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps of the method of the first aspect, and / or implement the steps of the method of the second aspect, and / or implement the steps of the method of the third aspect.
[0021] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF DRAWINGS
[0022] The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The same or similar components have the same or similar reference labels. It should be understood that the drawings are not necessarily to scale, with emphasis instead being placed upon illustrating the principles of the embodiments of the present disclosure. In the drawings:
[0023] FIG. 1 is a flowchart of a message transmission method according to some embodiments;
[0024] FIG. 2 is a schematic diagram of determining a first virtual role according to some embodiments;
[0025] FIG. 3 is a schematic diagram of determining a target word according to some embodiments;
[0026] FIG. 4 is a schematic diagram of a second virtual scene according to some embodiments;
[0027] FIG. 5 is a schematic diagram of displaying a target message according to some embodiments;
[0028] FIG. 6 is a flowchart of a message transmission method according to other embodiments;
[0029] FIG. 7 is a flowchart of a message transmission method according to still other embodiments;
[0030] FIG. 8 is a schematic diagram of a structure of a message transmission apparatus according to an exemplary embodiment;
[0031] FIG. 9 is a schematic diagram of a structure of a message transmission apparatus according to another exemplary embodiment;
[0032] FIG. 10 is a schematic diagram of a structure of a message transmission apparatus according to still another exemplary embodiment; and
[0033] FIG. 11 is a schematic diagram of a structure of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0034] Embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings. While several embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be construed as being limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and fully convey the scope of the present disclosure to those skilled in the art. It should be understood that the drawings and embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure.
[0035] It should be understood that the various steps in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. Additionally, the method embodiments can include additional steps and / or omit performing the steps shown. The scope of the present disclosure is not limited in this regard.
[0036] The term "include" and variations thereof as used herein mean "to include, without limitation." 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." Related terms shall be construed accordingly.
[0037] It should be noted that the terms "first", "second", etc. mentioned in the 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.
[0038] It should be noted that the modification of "one" or "multiple" mentioned in the disclosure is illustrative and not limiting, and those skilled in the art should understand that unless otherwise explicitly indicated in the context, it should be understood as "one or more".
[0039] The names of the messages or information exchanged between the plurality of devices in the embodiments of the disclosure are only for illustrative purposes, and are not used to limit the scope of the messages or information.
[0040] It can be understood that before using the technical solutions disclosed in the embodiments of the disclosure, the type, use range, use scenario, etc. of the personal information involved in the disclosure should be informed to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations.
[0041] For example, in response to receiving the active request of the user, prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using the personal information of the user. Thus, the user can voluntarily choose whether to provide personal information to the electronic device, application program, server or storage medium, etc. software or hardware performing the operation of the technical solutions of the disclosure according to the prompt information.
[0042] As an optional but not limiting implementation manner, in response to receiving the active request of the user, the manner of sending prompt information to the user may, for example, be a pop-up window manner, and the prompt information may, for example, be presented in the form of text in the pop-up window. In addition, the pop-up window may also carry selection controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0043] It can be understood that the above notification and user authorization process is only illustrative and does not limit the implementation manner of the disclosure, and other manners meeting the relevant laws and regulations can also be applied to the implementation manner of the disclosure.
[0044] Meanwhile, it can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and relevant provisions.
[0045] FIG. 1 is a flowchart of a message sending method according to some embodiments. As shown in FIG. 1, the present disclosure provides a message sending method, which can be executed by an electronic device, specifically, by a message sending apparatus, which can be implemented in software and / or hardware and configured in the electronic device. It should be understood that the electronic device can be a first client. As shown in FIG. 1, the method can include the following steps.
[0046] In step 110, a first virtual scene picture corresponding to a first virtual character is displayed.
[0047] Here, the first virtual character is a virtual character controlled by the first client. The first virtual character can refer to a player-controlled character. For example, a player controls a first virtual character in a virtual scene through a first client. The virtual scene can refer to a game scene, such as a two-dimensional game scene, a three-dimensional game scene, a virtual reality scene, and the like.
[0048] The first virtual scene picture can refer to a picture of the virtual scene displayed from the perspective of the first virtual character. For example, the first virtual scene picture can be a game picture of the perspective corresponding to the first virtual character obtained by a virtual camera.
[0049] In step 120, in response to an original message sent by a second virtual character in a virtual scene, a target message is displayed in the first virtual scene picture, wherein the target message is determined according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message.
[0050] Here, the original message can refer to a message sent by the second virtual character to the first virtual character in the virtual scene. The second virtual character can refer to a player-controlled character in the virtual scene other than the first virtual character. Of course, the second virtual character can also be a non-player-controlled character (NPC) in the virtual scene.
[0051] It should be noted that the original message can be a public message sent by the second virtual character in the virtual scene. That is, the original message can be a message sent by the second virtual character to multiple first virtual characters in the virtual scene. For example, the original message can be a message sent by the second virtual character to the first virtual characters within a certain range of the second virtual character.
[0052] In the embodiments of the present disclosure, the original message can be a text message or a voice message. That is, the message sending method provided by the embodiments of the present disclosure is applicable to sending text messages and voice messages.
[0053] When the second virtual character sends the original message in the virtual scene, the target message is displayed in the first virtual scene picture. The target message is obtained by processing the original message.
[0054] The spatial position of the first virtual character and the second virtual character in the virtual scene can refer to first position information of the first virtual character in the virtual scene and second position information of the second virtual character in the virtual scene. Of course, the spatial position of the first virtual character and the second virtual character in the virtual scene can refer to the distance between the first virtual character and the second virtual character in the virtual scene, which can be determined according 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.
[0055] 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 target message can be determined by the first client 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 target message can be determined by the server 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 that the second virtual character is a non-player character controlled by the second client, the target message can also be determined by the second client 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.
[0056] It should be noted that in the case that the spatial position of the first virtual character and the second virtual character in the virtual scene is different, the target message displayed in the first virtual scene picture is different. For example, in the case that the distance between the first virtual character and the second virtual character is far, the target message can include part of the content of the original message or does not contain the content of the original message, and in the case that the distance between the first virtual character and the second virtual character is close, the target message can be the original message.
[0057] By processing the original message sent by the second virtual character according to the spatial position of the first virtual character and the second virtual character in the virtual scene, different original messages are displayed under different spatial positions, thereby simulating the effect that the received chat messages in the real scene will also be different with the distance, so that the game can be more realistic and immersive.
[0058] Thus, by displaying the first virtual scene picture corresponding to the first virtual character, in response to the original message issued 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 picture, 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, and the game experience of the user is improved.
[0059] In the embodiments of the present disclosure, the first virtual character can refer to a virtual character in the virtual scene that can receive the original message issued by the second virtual character. For example, the first virtual character can be a virtual character in the virtual scene that is not more than a message receiving distance corresponding to the original message from the second virtual character.
[0060] The message receiving distance corresponding to the original message can refer to the maximum distance that can receive the original message indicated by the second virtual character. By comparing the distance between the virtual character in the virtual scene and the second virtual character and the message receiving distance, the first virtual character that can receive the original message sent by the second virtual character is determined in the virtual scene.
[0061] The virtual character in the virtual scene that is less than or equal to the message receiving distance from the second virtual character can receive the original message sent by the second virtual character. The virtual character in the virtual scene that is greater than the message receiving distance from the second virtual character cannot receive the original message sent by the second virtual character.
[0062] Therefore, the second virtual character can select virtual characters of different distances in the virtual scene for communication by specifying different message receiving distances. For example, the second virtual character can specify 10 units of length of the virtual scene as the message receiving distance, so that the virtual character in the virtual scene that is not more than 10 units of length from the second virtual character can receive the original message sent by the second virtual character.
[0063] For example, in specific implementation, the position information of the second virtual character can be taken as the origin, and the message receiving distance can be taken as the radius to determine the message receiving range, and then the virtual character in the virtual scene within the message receiving range is determined as the first virtual character.
[0064] FIG. 2 is a schematic diagram illustrating determination of a first virtual role according to some embodiments. As shown in FIG. 2, the distance between virtual role A in a virtual scene 201 and a second virtual role 202 is less than a message receiving distance 203, the distance between virtual role B in the virtual scene 201 and the second virtual role 202 is less than the message receiving distance 203, and the distance between virtual role C in the virtual scene 201 and the second virtual role 202 is greater than the message receiving distance 203, then virtual role A and virtual role B are the first virtual role. That is, an original message sent by the second virtual role 202 indicating that a virtual role within the message receiving distance 203 can receive the original message, can be received by virtual role A and virtual role B in the virtual scene 201, but cannot be received by virtual role C.
[0065] Based on this, the player can select a specific message receiving distance, which not only meets the needs of the player to communicate with players at a specific distance, but also avoids excessive useless information in the public chat channel, thereby reducing the messages on the public chat channel to disturb the player. Moreover, through the message sending method provided by the embodiments of the present disclosure, the player can achieve the purpose of communicating with people near the virtual scene without establishing a social relationship with other players, thereby reducing the cost of communication between the player and other players and greatly improving the gaming experience.
[0066] In some implementable embodiments, the original message can be determined as the target message in response to the distance between the first virtual role and the second virtual role in the virtual scene being not greater than a preset distance threshold.
[0067] In some other implementable embodiments, part of the information in the original message can be determined as the target message in response to the distance between the first virtual role and the second virtual role in the virtual scene being greater than the preset distance threshold.
[0068] Here, the distance between the first virtual role and the second virtual role in the virtual scene can be determined by a first position message of the first virtual role in the virtual scene and a second position message of the second virtual role in the virtual scene.
[0069] After receiving the original message sent by the second virtual role, if the distance between the first virtual role and the second virtual role is not greater than the preset distance threshold, the target message is the original message. If the distance between the first virtual role and the second virtual role is greater than the preset distance threshold, the target message is part of the information in the original message.
[0070] According to the different distances between the first virtual role and the second virtual role, the target message displayed by the corresponding first virtual role can be different, thereby simulating the effect that users at different distances in a real scene hear different contents of the message sent from the same position.
[0071] It is worth noting that since the first virtual role is a virtual role with a distance not greater than the message receiving distance, the preset distance threshold is less than the message receiving distance. As shown in FIG. 2, the preset distance threshold 204 is less 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 the preset distance threshold can be set for different message sending modes for sending the original message.
[0072] As shown in FIG. 2, the distance between the virtual role A and the second virtual role 202 is less than the preset distance threshold 204, and the distance between the virtual role B and the second virtual role 202 is less than the preset distance threshold 204.
[0073] When the distance between the first virtual role and the second virtual role is less than or equal to the preset distance threshold, the original message is displayed in the first virtual scene picture corresponding to the first virtual role.
[0074] When the distance between the first virtual role and the second virtual role is greater than the preset distance threshold, part of the information in the original message is displayed in the first virtual scene picture corresponding to the first virtual role.
[0075] That is, although the virtual role A and the virtual role B can both receive the message sent by the second virtual role 202, the content of the original message received by the virtual role A and the virtual role B is different due to the different distances. For example, the target message displayed by the virtual role A is the original message sent by the second virtual role 202, and the target message displayed by the virtual role B is part of the information in the original message.
[0076] Exemplarily, assuming that the original message sent by the second virtual role 202 is “Did you hear that Xiao Li from the next class and my friend Dahua confessed, and after being rejected, he hit her”, when the virtual role A is the first virtual role, the target message “Did you hear that Xiao Li from the next class and my friend Dahua confessed, and after being rejected, he hit her” is displayed in the first virtual scene picture of the virtual role A, and when the virtual role B is the first virtual role, the target message “... confessed...” is displayed in the first virtual scene picture of the virtual role B.
[0077] It is worth noting that in the case that the distance between the first virtual character and the second virtual character in the virtual scene is greater than the preset distance threshold, the content of the target message can also be different for different distances of the first virtual character. That is, in the case that the distance between the first virtual character and the second virtual character in the virtual scene is greater than the preset distance threshold, the first virtual character closer to the second virtual character displays more of the part of the original message included in the target message relative to the content of the part of the original message included in the target message displayed by the first virtual character farther from the second virtual character.
[0078] Thus, through the above-mentioned embodiments, the effect of message attenuation with distance in a real scene can be simulated in a virtual scene, making the game more realistic and immersive.
[0079] In some implementable embodiments, 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.
[0080] Here, the role attribute information can refer to identity information, age information, and other attribute information of the first virtual character. It is worth noting that the identity information corresponding to the first virtual character can refer to the game profession of the first virtual character in the virtual scene, such as teacher, worker, marksman, auxiliary, warrior, and wizard.
[0081] In the case that the distance between the first virtual character and the second virtual character is greater than the preset distance threshold, information matching the role attribute information of the first virtual character can be determined from the original information according to the role attribute information of the first virtual character, and the target message can be determined according to the matching information.
[0082] In some embodiments, each word included in the original message can be determined, a target word matching the role attribute information of the first virtual character can be determined from each word according to the role attribute information of the first virtual character, and then the target message can be obtained based on the target word.
[0083] If the original message is a text message, the text message can be processed for word segmentation to obtain each word included in the original message. If the original message is a voice message, the voice message can be processed for language recognition to convert the voice message into text, and then the text can be processed for word segmentation to obtain each word included in the original message.
[0084] Taking the identity information as an example of the role attribute information, the interest degree of each word in the same original message for different identity information of the first virtual character is different, and therefore at least one target word related to the identity information can be determined from each word.
[0085] For example, the original message sent by the second virtual role is "Did you hear that Xiao Li from the next class and my friend Da Hua confessed, and after being rejected, he hit her", if the identity information of the first virtual role A is "teacher", the identity information of "teacher" is more interested in the word "confessed", then the target message displayed by the first virtual role A is "...... confessed......". If the identity information of the first virtual role B is "police", the identity information of "police" is more interested in the word "hit", then the target message displayed by the first virtual role B is "...... hit her".
[0086] In some embodiments, the words can be sorted according to the degree of association between the identity information and the different words from high to low, and one or more words with high ranking can be selected as target words.
[0087] For example, one or more words with the largest degree of association with the identity information among the words can be selected as target words. It should be noted that the number of target words determined can be determined according to other types of role attribute messages. For example, for a virtual role with an older age, the ability to receive messages is lower, and the number of target words can be less than the number of target words corresponding to a virtual role with a younger age.
[0088] After obtaining the target words, the message content in the original message sent by the second virtual role except the target words is omitted to obtain the target message. For example, in the original message "Did you hear that Xiao Li from the next class and my friend Da Hua confessed, and after being rejected, he hit her", the target word is "confessed", and the target message is "...... confessed......".
[0089] In the case of a voice message as the original 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, and cannot clearly hear the content except the target words.
[0090] FIG. 3 is a schematic diagram illustrating the determination of target words according to some embodiments. As shown in FIG. 3, the second virtual role sends an original message, the original message is processed by word segmentation to obtain word A, word B, word C, word D, and word E, then the "word A, word B, word C, word D, and word E" are sorted according to the role attribute information of the first virtual role to obtain the sorting sequence of "word D> word B> word C> word A> word E". Then, the original message is processed into "...... word B...... word D......", and then the first virtual scene picture corresponding to the first virtual role displays the target message of "...... word B...... word D......".
[0091] Thus, by the above-mentioned embodiments, the original messages sent by the second virtual role displayed by the first virtual roles with different distances are different, thereby simulating the effect that the messages in the real scene attenuate with the distance in the virtual scene, so that the communication between the players can be more immersive and interesting. Moreover, by processing the original message through the role attribute information, the words of the target message displayed by the virtual roles with different role attribute information can be different, so that the messages received by the players can be more in line with the settings of the role attribute information of the virtual roles, thereby improving the enthusiasm of the players in the virtual scene.
[0092] In some other implementable embodiments, in response to the distance between the first virtual role and the second virtual role 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.
[0093] Here, when the distance between the first virtual role and the second virtual role 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 role and the second virtual role in the virtual scene is far, and the first virtual role cannot receive the message sent by the second virtual role.
[0094] It should be noted that the first virtual role here can be any virtual role in the virtual scene, or it can refer to a virtual role in the virtual scene whose distance from the second virtual role is greater than the message receiving distance but less than the target distance threshold. When the second virtual role sends the original message, other virtual roles act as the first virtual role, and the target message displayed by the first virtual role with different distances is different. For the first virtual role with a distance greater than the message receiving distance, the indication message is displayed in the corresponding first virtual scene picture.
[0095] 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.
[0096] Among them, the indication message is used to indicate that the second virtual role sends a message in the virtual scene, and the indication message does not contain the message content of the original message.
[0097] For example, assuming that the original message is “Did you hear that Xiao Li from the next class and my friend Dahua confessed, and after being rejected, he hit her”, for the first virtual role with a distance greater than the message receiving distance, the corresponding target message can be “[second virtual role] sent a message”, or “[second virtual role] spoke in the virtual scene” and other indication messages.
[0098] The indication message does not contain any message content of the original message sent by the second virtual character. The indication message is used to prompt the first virtual character that the second virtual character sent a message in the virtual scene.
[0099] 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 that can receive the original message, and for the first virtual character, it is equivalent to not being able to "hear" the message sent by the second virtual character. By taking 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 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 distance being too far, so as to prompt 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.
[0100] Thus, through the above embodiments, not only can the effect of the message in the real scene being attenuated with the distance be simulated in the virtual scene, so that the communication between players can be more immersive and interesting, but also the distance between players can be shortened through the indication message, and the enthusiasm of player interaction can be increased.
[0101] It is worth noting that in the embodiments of the present disclosure, 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 picture, 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 picture. When the distance between the first virtual character and the second virtual character in the virtual scene is greater than the message receiving distance, the indication message is displayed in the first virtual scene picture. Based on this, the effect of the message in the real scene being attenuated with the distance can be simulated in the virtual scene, so that the communication between players can be more immersive and interesting.
[0102] In some implementable embodiments, the message receiving distance can be determined by the second virtual character.
[0103] Exemplarily, the second client corresponding to the second virtual character can determine the message receiving distance according to the selected message sending mode for sending the original message, wherein different message sending modes correspond to different message receiving distances; or determine the message receiving distance according to the specified distance.
[0104] Here, different message sending modes correspond to different message receiving distances, and the message receiving distance corresponding to the message sending mode selected by the second virtual character for sending the original message is determined.
[0105] In the embodiments of the present disclosure, the message sending mode can include a whisper mode, a talk mode and a shout mode.
[0106] In the 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 the 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 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 original message sent by the second virtual character. Wherein, n is the distance between the second virtual character and the first virtual character, a is a preset distance threshold, and b is a message receiving distance.
[0107] In the talk 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.
[0108] In the shout 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 cannot be received through the message bubble.
[0109] Exemplarily, in the embodiments of the present disclosure, the message sending mode corresponding to the original message can be the whisper mode shown in the above embodiments, of course, in actual application scenarios, the message sending mode corresponding to the original message can also be a message sending mode set according to requirements.
[0110] When the second virtual character sends the 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 the preset distance threshold, the information matched with the character attribute information is determined from the original information according to the character attribute information corresponding to the first virtual character, and the target message is determined according to the matched information.
[0111] Thus, through the above embodiments, various chat modes can be provided in the virtual scene, so that players can communicate in different forms according to needs, greatly improving the game experience of players.
[0112] FIG. 4 is a schematic diagram of a second virtual scene picture, according to some embodiments. As shown in FIG. 4, when the second virtual character needs to send a message in the virtual scene, the second virtual character can select a corresponding message sending mode through the second virtual scene picture 401 corresponding to the second virtual character. For example, the player can select one of whisper mode, talk mode, and shout mode as the mode for sending the original message.
[0113] 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 input original message.
[0114] Of course, the player corresponding to the second virtual character can specify a distance through the second virtual scene picture corresponding to the second virtual character before sending the original message, and the second client can determine the specified distance as the message receiving distance.
[0115] It should be understood that by taking the specified distance as the message receiving distance, the player can communicate with other players within different distances according to needs. Of course, in the embodiments of the present disclosure, 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 virtual characters within the city can all receive the original message sent by the second virtual character.
[0116] Thus, through the above embodiments, the player can specify the message receiving distance corresponding to the original message sent by the player in different ways, so that the player can communicate with other players within different distances, greatly improving the freedom and experience of the game.
[0117] In some implementable embodiments, in step 120, the target message can be displayed through a public chat channel in the first virtual scene picture, and / or the target message can be displayed in the first virtual scene picture through a message bubble rendered on the second virtual character.
[0118] 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 picture. As shown in FIG. 4, the target message that the first virtual character can receive can be displayed in the public chat channel.
[0119] Of course, the first client corresponding to the first virtual role can also display the target message through the message bubble rendered on the second virtual role. It should be understood that, in the case that the second virtual role appears in the first virtual scene picture corresponding to the first virtual role, the first client of the first virtual role renders and displays the corresponding message bubble on the second virtual role in the first virtual scene picture based on the received target message, so as to display the message sent by the second virtual role through the message bubble.
[0120] It is worth noting that, according to the different message sending modes used by the second virtual role to send the original message, the message sent by the second virtual role can be displayed through the public chat channel and / or the message bubble.
[0121] In some embodiments, the first client can display the target message in the public chat channel of the first virtual scene picture through a target display style, which is used to indicate the message sending mode used by the second virtual role when sending the original message.
[0122] For the original message sent by the second virtual role using different message sending modes, the first client corresponding to the first virtual role displays the target message in the public chat channel through the corresponding target display style. In this way, the message sending mode corresponding to the message sent by the second virtual role is displayed to the player through the target display style.
[0123] FIG. 5 is a schematic diagram of displaying a target message according to some embodiments. As shown in FIG. 5, the second virtual role 601 (player C) sends an original message of “You know M3?” through the whisper mode, and the target message that the first virtual role 602 can receive under the message receiving distance corresponding to the whisper mode is “……know……”. The first client corresponding to the first virtual role 602 displays the target message of “……know……” through the message bubble 603, and displays the target message of “……know……” in the public chat channel of the first virtual role 602 through the target display style of “[player C] whisper: ……know……?” to indicate that the second virtual role 601 sends the message of “……know……” through the whisper mode.
[0124] Therefore, through the above-mentioned embodiments, the first virtual roles in the virtual scene that are different distances from the second virtual role will receive messages of different styles, which increases the diversity and interest of the in-game communication of the players.
[0125] Figure 6 is a flowchart illustrating a message sending method according to some other embodiments. As shown in Figure 6, this disclosure provides a message sending method that can be executed by an electronic device, specifically by a message sending device, which can be implemented in software and / or hardware and configured in the electronic device. It should be understood that the electronic device can be a second client. As shown in Figure 6, the method may include the following steps.
[0126] In step 610, the second virtual scene screen corresponding to the second virtual character is displayed.
[0127] Here, the second virtual character is a virtual character controlled by a second client. The second virtual character can refer to a player-controlled character. For example, a player controls a second virtual character in a virtual scene through a second client.
[0128] The second virtual scene view can refer to the view of a virtual scene displayed from the perspective of a second virtual character. Taking a game as an example, the second virtual scene view can be the game view from the perspective of the second virtual character, obtained through a virtual camera.
[0129] In step 620, in response to the message sending operation triggered by the second virtual scene screen, the second virtual character is controlled to send an original message in the virtual scene. The original message is used to display a target message in the first virtual scene screen corresponding to the first virtual character. The target message is determined based on the spatial positions of the first and second virtual characters in the virtual scene and the original message. The first virtual character is a virtual character controlled by the first client.
[0130] Here, the message sending operation can be an action triggered by the player through a second client within a second virtual scene. In response to the message sending operation, the second client controls the second virtual character to send the original message within the virtual scene.
[0131] For the player corresponding to the second virtual character, they 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.
[0132] It should be noted that the original message can be a public message sent by the second virtual character in the virtual scene. That is, the original message can be a message sent by the second virtual character to multiple first virtual characters in the virtual scene. For example, the original message can be a message sent by the second virtual character to first virtual characters 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 a detailed description of the target message can be found in the relevant descriptions of the above embodiments, and will not be repeated here.
[0133] This displays the second virtual scene screen corresponding to the second virtual character, and responds to the message sending operation triggered in the second virtual scene screen, controlling the second virtual character to send the original message in the virtual scene. This can simulate the message attenuation effect in the real scene, making the game more realistic and immersive, and improving the user's gaming experience.
[0134] In some feasible implementations, the first virtual character can be a virtual character in the virtual scene whose distance from the second virtual character is no greater than the message receiving distance corresponding to the original message.
[0135] Here, the message receiving distance, the first virtual character, and the distance between the virtual characters and the second virtual character can all be referred to the relevant descriptions in the above embodiments, and will not be repeated here.
[0136] It is worth noting that the first virtual character can be determined by the second client or by the server.
[0137] Based on this, players can choose a specific message receiving distance, which not only meets their need to communicate with players at a specific distance but also avoids generating too much useless information in the public chat channel, thus reducing the disturbance of messages on the public chat channel to players. Moreover, the message sending method provided by this disclosure embodiment also enables players to communicate with people near the virtual scene without establishing social relationships with other players, reducing the cost of communication between players and greatly improving the gaming experience.
[0138] In some feasible implementations, the second client can determine the message receiving distance based on the selected message sending mode for sending the original message, wherein different message sending modes correspond to different message receiving distances; or determine the message receiving distance based on a specified distance.
[0139] It should be understood that the explanation of how to determine the message receiving distance can be found in the relevant description of the above embodiments, and will not be repeated here.
[0140] Therefore, through the above implementation methods, a variety of chat modes can be provided in the virtual scene, allowing players to communicate in different forms according to their needs, which greatly improves the player's gaming experience.
[0141] It should be noted that the roles between the first client and the second client are switchable in the embodiments of the present disclosure. That is, when one client acts as a message sender, the client acts as the second client, and when one client acts as a message receiver, the client acts as the first client. Of course, when one client acts as both a message sender and a message receiver, the client acts as both the first client and the second client. For example, when one client sends a message in a virtual scene, the client can also receive a message at the same time. Therefore, the message sending method shown in FIG. 1 can be executed on one client, and the message sending method shown in FIG. 6 can also be executed on the client.
[0142] FIG. 7 is a flowchart of a message sending method according to still other embodiments. As shown in FIG. 7, the embodiments of the present disclosure provide a message sending method, which can be executed by an electronic device, in particular, by a message sending apparatus, which can be implemented in the form of software and / or hardware and configured in the electronic device. It should be understood that the electronic device can be a server. As shown in FIG. 7, the method can include the following steps.
[0143] In step 710, an original message sent by a second virtual role in a virtual scene is received.
[0144] Here, the server can receive the original message sent by the second virtual role in the virtual scene. It should be noted that when the second virtual role is a player-controlled role, the server can receive the original message sent by the second client corresponding to the second virtual role. When the second virtual role is a non-player-controlled role, the server can directly obtain the original message sent by the second virtual role from the server.
[0145] In step 720, a target message is obtained according to the spatial positions of the first virtual role and the second virtual role in the virtual scene and the original message.
[0146] Here, the first virtual role is a virtual role controlled by the first client. How to obtain the target message according to the spatial positions of the first virtual role and the second virtual role in the virtual scene and the original message can refer to the related description of the above embodiments, which will not be described here.
[0147] In step 730, the target message is sent to the first client, so that the first client displays the target message through the first virtual scene picture corresponding to the first virtual role.
[0148] Here, the server sends the target message to the first client corresponding to the first virtual role, so that the first client corresponding to the first virtual role can display the target message in the virtual scene.
[0149] The server receives the original message sent by the second client corresponding to the second virtual role, processes the original message into different target messages according to the distance, and sends the target messages to the first client corresponding to the first virtual role to display the target messages in the first client, so as to realize the communication between the player corresponding to the second virtual role and the player corresponding to the first virtual role.
[0150] Therefore, by the steps 710 to 730, 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, and the user's game experience can be improved.
[0151] In some implementable embodiments, the server can determine the distance between the virtual role in the virtual scene and the second virtual role, and determine the virtual role with a distance not greater than the message receiving distance corresponding to the original message as the first virtual role.
[0152] In some embodiments, the initial distance between the virtual role and the second virtual role can be determined according to the first position information of the virtual role in the virtual scene and the second position information of the second virtual role in the virtual scene, and then the initial distance is adjusted according to the role perception ability corresponding to the virtual role and / or the occlusion included between the virtual role and the second virtual role, to obtain the distance between the virtual role and the second virtual role in the virtual scene.
[0153] Here, the initial distance between the virtual role and the second virtual role can refer to the actual distance between the virtual role and the second virtual role in the virtual scene. Therefore, the initial distance between each virtual role and the second virtual role in the virtual scene can be determined according to the first position information of the virtual role in the virtual scene and the second position information of the second virtual role in the virtual scene.
[0154] The role perception ability corresponding to the virtual role refers to the ability of the virtual role related to receiving the message. Exemplarily, the perception ability can refer to the hearing parameter and / or the visual parameter corresponding to the virtual role. It should be understood that different virtual roles in the virtual scene can have different role perception abilities, which can be the parameter value obtained by learning by the virtual role or the parameter value set by default in the game.
[0155] The initial distance can be adjusted according to the role perception ability, which can be enlarged, reduced, or not adjusted. In the embodiments of the present disclosure, the role perception ability is negatively correlated with the distance between the virtual role and the second virtual role. That is, the greater the role perception ability corresponding to the virtual role, the smaller the distance between the virtual role and the second virtual role after adjustment, so that the virtual role is more likely to receive the original message sent by the second virtual role, and the virtual role receives the original message sent by the second virtual role more clearly.
[0156] In some embodiments, the target distance correction coefficient corresponding to the role perception ability of the virtual role can be determined according to the role perception ability corresponding to the virtual role, and the distance between the virtual role and the second virtual role can be determined according to the sum of the initial distance and the target distance correction coefficient.
[0157] The role perception ability can be set as a standard role perception ability, and the target distance correction coefficient corresponding to the virtual role can be determined according to the difference between the role perception ability corresponding to the virtual role and the standard role perception ability.
[0158] It is worth noting that the target distance correction coefficient corresponding to the standard role perception ability can be 0, and the distance between the virtual role and the second virtual role under the standard role perception ability is the corresponding initial distance. If the role perception ability of the virtual role is less than the standard role perception ability, the target distance correction coefficient is positive, so as to increase the initial distance between the virtual role and the second virtual role, so that the distance between the virtual role and the second virtual role is increased, thereby affecting whether the virtual role can receive the message and the amount of information included in the received message. If the role perception ability of the virtual role is greater than the standard role perception ability, the target distance correction coefficient is negative, so as to reduce the initial distance between the virtual role and the second virtual role, so that the distance between the virtual role and the second virtual role is reduced, thereby affecting whether the virtual role can receive the message and the amount of information included in the received message.
[0159] For example, the hearing ability and / or visual ability of the virtual role A is relatively better than those of other virtual roles, so that the virtual role A is more likely to obtain the original message sent by the second virtual role, and the amount of information of the obtained original message is more.
[0160] The occlusion between the virtual role and the second virtual role refers to an object arranged between the virtual role and the second virtual role in the virtual scene. For example, the occlusion can be rain, a wall, a tree, and the like in the virtual scene.
[0161] The initial distance can be adjusted according to the occlusion included between the virtual character and the second virtual character, which can be an operation of increasing, decreasing or not adjusting the initial distance. In the embodiments of the present disclosure, the occlusion coefficient corresponding to the occlusion is positively correlated with the distance between the virtual character and the second virtual character. That is, the more the occlusion included 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 amount of information of the original message sent by the second virtual character received by the virtual character is less.
[0162] In some embodiments, the occlusion coefficient corresponding to the occlusion can be determined according to the occlusion included between the virtual character and the second virtual character, and then the initial distance is adjusted by the occlusion coefficient to obtain the distance between the virtual character and the second virtual character.
[0163] The occlusion coefficient corresponding to the occlusion can be determined according to the material properties (such as density, absorption coefficient) of the occlusion. That is, the occlusion of different material properties corresponds 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 the initial distance between the virtual character and the second virtual character can be dynamically increased when there is an occlusion between the virtual character and the second virtual character, so that the virtual character is less likely to receive the original message sent by the second virtual character when there is an occlusion between the virtual character and the second virtual character, thereby simulating the attenuation effect of the message in the real scene.
[0164] It is worth noting that when there is no occlusion 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 occlusion 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 occlusion included between the virtual character and the second virtual character and / or the character perception ability, thereby simulating the attenuation effect of the message in the real scene, so that the game can be more realistic and immersive, and different virtual characters can receive different information, and the game can be more realistic.
[0165] FIG. 8 is a structural schematic diagram of a message sending device according to an exemplary embodiment. As shown in FIG. 8, the present disclosure provides a message sending device 800, which comprises:
[0166] The first display module 801 is configured to display a first virtual scene picture corresponding to a first virtual character, the first virtual character being a virtual character controlled by a first client;
[0167] The second display module 802 is configured to display a target message in the first virtual scene picture in response to the original message sent by the second virtual character in the virtual scene, wherein the target message is determined according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message.
[0168] 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.
[0169] 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 information in the original message is determined as the target message.
[0170] Optionally, based on the role attribute information of the first virtual character, information matched with the role attribute information is determined from the original information, and the target message is determined according to the matched information.
[0171] Optionally, in response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than a message receiving distance corresponding to the original message, an indication message is determined as the target message, wherein the indication message is used to indicate that the second virtual character sends a message in the virtual scene, and the indication message does not contain the message content of the original message.
[0172] Optionally, the second display module 802 is specifically configured to:
[0173] The target message is displayed through a public chat channel in the first virtual scene picture, and / or the target message is displayed in the first virtual scene picture through a message bubble rendered on the second virtual character.
[0174] The logic of the method performed by each functional module in the message sending device 800 described above can refer to the part of the method related to the above-mentioned embodiments, which will not be described here.
[0175] FIG. 9 is a structural schematic diagram of a message sending device according to another exemplary embodiment. As shown in FIG. 9, the present disclosure provides a message sending device 900, which comprises:
[0176] The third display module 901 is configured to display a second virtual scene picture corresponding to a second virtual character;
[0177] 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 by the second virtual scene picture, wherein the original message is used to display a target message in a first virtual scene picture corresponding to the first virtual character, and the target message is determined according to a spatial position 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] Optionally, the first virtual character is a virtual character in the virtual scene, and a distance between the virtual character and the second virtual character is not greater than a message receiving distance corresponding to the original message.
[0179] Optionally, the message sending device 900 further includes:
[0180] The first determination module is configured to determine the message receiving distance according to a selected message sending mode used to send the original message, wherein different message sending modes correspond to different message receiving distances; or
[0181] The second determination module is configured to determine the message receiving distance according to a specified distance.
[0182] The logic of the method performed by each functional module in the message sending device 900 described above can refer to the related method part of the above embodiments, which will not be repeated here.
[0183] FIG. 10 is a structural schematic diagram of a message sending device according to another exemplary embodiment. As shown in FIG. 10, the present disclosure provides a message sending device 1000, which includes:
[0184] The receiving module 1001 is configured to receive an original message sent by a second virtual character in a virtual scene;
[0185] The obtaining module 1002 is configured to obtain a target message according to a spatial position of a 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 a first client;
[0186] 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 picture corresponding to the first virtual character.
[0187] Optionally, the message sending device 1000 further includes:
[0188] a third determining module configured to determine a distance between the virtual role in the virtual scene and the second virtual role;
[0189] a fourth determining module configured to determine, as the first virtual role, the virtual role whose distance is not greater than a message receiving distance corresponding to the original message.
[0190] Optionally, the third determining module is specifically configured to:
[0191] determine an initial distance between the virtual role and the second virtual role according to first position information of the virtual role in the virtual scene and second position information of the second virtual role in the virtual scene;
[0192] adjust the initial distance according to a role perception ability corresponding to the virtual role and / or an occlusion included between the virtual role and the second virtual role, to obtain the distance between the virtual role in the virtual scene and the second virtual role.
[0193] The logic of the method performed by each functional module in the message sending device 1000 described above can refer to the part of the method related to the embodiments described above, and will not be described here.
[0194] Reference is made to FIG. 11, which shows a structural schematic diagram of an electronic device (such as a terminal device (which can also be referred to as a client, such as the first client and the second client in the above embodiments) or a server) 1100 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure can include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and the like, as well as fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 11 is only an example, and should not bring any limitation to the functions and use range of the embodiments of the present disclosure.
[0195] As shown in FIG. 11, the electronic device 1100 can include a processing device (such as a central processor, a graphics processor, etc.) 1101, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1102 or loaded into a random access memory (RAM) 1103 from a storage device 1108. 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 through a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0196] In general, the following devices can be connected to the I / O interface 1105: input devices 1106 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; output devices 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; storage devices 1108 including, for example, a magnetic disk, a hard disk, and the like; and communication devices 1109. The communication devices 1109 can allow the electronic device 1100 to communicate wirelessly or wiredly with other devices to exchange data. While FIG. 11 shows the electronic device 1100 with various devices, it is understood that all of the shown devices are not required to be implemented or present. More or less devices can alternatively be implemented or present.
[0197] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 1109, or installed from the storage devices 1108, or installed from the ROM 1102. When the computer program is executed by the processing devices 1101, the above-described functions defined in the methods of the embodiments of the present disclosure are performed.
[0198] It should be noted that the computer-readable medium described above can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used or used in conjunction with an instruction execution system, apparatus or device. In the disclosure, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the foregoing. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to a wire, a cable, a RF (radio frequency) or the like, or any suitable combination of the foregoing.
[0199] In some embodiments, the client, server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
[0200] The computer-readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device and not be assembled into the electronic device.
[0201] The computer-readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, the electronic device:
[0202] display a first virtual scene picture corresponding to a first virtual character, the first virtual character being a virtual character controlled by a first client;
[0203] in response to an original message sent by a second virtual character in a virtual scene, display a target message in the first virtual scene picture, wherein the target message is determined according to a spatial position of the first virtual character and the second virtual character in the virtual scene and the original message.
[0204] Alternatively, when the one or more programs are executed by the electronic device, the electronic device is caused to:
[0205] display a second virtual scene picture corresponding to a second virtual character;
[0206] in response to a message sending operation triggered in the second virtual scene picture, control the second virtual character to send an original message in a virtual scene, wherein the original message is used to display a target message in a first virtual scene picture corresponding to a first virtual character, the target message being determined according to a spatial position of the first virtual character and the second virtual character in the virtual scene and the original message, the first virtual character being a virtual character controlled by a first client.
[0207] Alternatively, when the one or more programs are executed by the electronic device, the electronic device is caused to:
[0208] receive an original message sent by a second virtual character in a virtual scene;
[0209] obtain a target message according to a spatial position of a 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 a first client;
[0210] send the target message to the first client, so that the first client displays the target message through a first virtual scene picture corresponding to the first virtual character.
[0211] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can 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 the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0212] The computer program instructions can also be loaded onto a computer or other programmable information processing apparatus to cause a series of operations to be performed on the computer or other programmable information processing apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable information processing apparatus implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0213] The modules involved in the embodiments of the present disclosure can be implemented in the manner of software or hardware. Among them, the name of the module does not constitute a limitation to the module itself in some cases.
[0214] The functions described in the foregoing description can be implemented, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0215] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0216] The above description is only preferred embodiments of the present disclosure and a description of principles of applied technology. It should be understood by those skilled in the art that the disclosed scope of the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and also covers other technical solutions formed by the combinations of the above technical features or equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by the mutual replacement of the above features and the technical features disclosed in the present disclosure (but not limited to) having similar functions.
[0217] In addition, although each operation is depicted in a particular order, this should not be understood as requiring the operations to be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing can be advantageous. Likewise, although specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be combined in a single embodiment. Conversely, various features described in the context of a single embodiment can also be separated and implemented in multiple embodiments.
[0218] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With respect to the devices in the above-described embodiments, in which various modules perform operations, the specific manner in which the operations are performed by the various modules has been described in detail in the embodiments related to the method, and will not be described here in detail.
Claims
1. A message sending method, comprising: displaying a first virtual scene picture corresponding to a first virtual character, the first virtual character being a virtual character controlled by a first client; in response to an original message sent by a second virtual character in a virtual scene, displaying a target message in the first virtual scene picture, wherein the target message is determined according to a spatial position of the first virtual character and the second virtual character in the virtual scene and the original message.
2. The method of claim 1, wherein, The target message is determined according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message, comprising: in response to a distance between the first virtual character and the second virtual character in the virtual scene being not greater than a preset distance threshold, determining the original message as the target message.
3. The method of claim 1, wherein, The target message is determined according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message, comprising: 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, determining part of information in the original message as the target message.
4. The method of claim 3, wherein, The part of information in the original message is determined as the target message, comprising: based on character attribute information of the first virtual character, determining information matching the character attribute information from the original information, and determining the target message according to the matching information.
5. The method of claim 1, wherein, The target message is determined according to the spatial position of the first virtual character and the second virtual character in the virtual scene and the original message, comprising: in response to the distance between the first virtual character and the second virtual character in the virtual scene being greater than a message receiving distance corresponding to the original message, determining an indication message as the target message, wherein the indication message is used to indicate that the second virtual character sends a message in the virtual scene, and the indication message does not contain message content of the original message.
6. The method of any one of claims 1 to 5, wherein, The target message is displayed in the first virtual scene picture, comprising: displaying the target message through a public chat channel in the first virtual scene picture, and / or displaying the target message in the first virtual scene picture through a message bubble rendered on the second virtual character.
7. A message sending method, comprising: displaying a second virtual scene picture corresponding to a second virtual character; in response to a message sending operation triggered in the second virtual scene picture, controlling the second virtual character to send an original message in a virtual scene, wherein the original message is used to display a target message in a first virtual scene picture corresponding to a first virtual character, the target message being determined according to a spatial position of the first virtual character and the second virtual character in the virtual scene and the original message, the first virtual character being a virtual character controlled by a first client.
8. The method of claim 7, wherein, The first virtual character is a virtual character in the virtual scene whose distance to the second virtual character is not greater than a message receiving distance corresponding to the original message.
9. The method of claim 8, wherein, The message receiving distance is determined by the following steps: determine the message receiving distance according to a selected message sending mode 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.
10. A message sending method, comprising: receiving an original message sent by a second virtual role in a virtual scene; obtaining a target message according to a spatial position of a first virtual role and the second virtual role in the virtual scene and the original message, wherein the first virtual role is a virtual role controlled by a first client; sending the target message to the first client, so that the first client displays the target message through a first virtual scene picture corresponding to the first virtual role.
11. The method of claim 10, wherein, The first virtual role is determined by the following steps: determining a distance between a virtual role in the virtual scene and the second virtual role; determining the virtual role as the first virtual role if the distance is not greater than a message receiving distance corresponding to the original message.
12. The method of claim 11, wherein, The determination of the distance between the virtual role in the virtual scene and the second virtual role comprises: determining an initial distance between the virtual role and the second virtual role according to first position information of the virtual role in the virtual scene and second position information of the second virtual role in the virtual scene; adjusting the initial distance according to a role perception ability corresponding to the virtual role and / or an occlusion included between the virtual role and the second virtual role, to obtain the distance between the virtual role in the virtual scene and the second virtual role.
13. A computer readable medium storing a computer program, wherein, The computer program is executed by the processing device to implement the message sending method of any one of claims 1-6, and / or implement the message sending method of any one of claims 7-9, and / or implement the message sending method of any one of claims 10-12.
14. An electronic device, comprising: a storage device storing a computer program; a processing device configured to execute the computer program in the storage device to implement the message sending method of any one of claims 1-6, and / or implement the message sending method of any one of claims 7-9, and / or implement the message sending method of any one of claims 10-12.
15. A computer program product comprising a computer program, wherein, The computer program is executed by the processor to implement the message sending method of any one of claims 1-6, and / or implement the message sending method of any one of claims 7-9, and / or implement the message sending method of any one of claims 10-12.