CN109885367B - Interactive chat implementation method, device, terminal and storage medium - Google Patents

Interactive chat implementation method, device, terminal and storage medium Download PDF

Info

Publication number
CN109885367B
CN109885367B CN201910097558.9A CN201910097558A CN109885367B CN 109885367 B CN109885367 B CN 109885367B CN 201910097558 A CN201910097558 A CN 201910097558A CN 109885367 B CN109885367 B CN 109885367B
Authority
CN
China
Prior art keywords
message
chat
virtual
target
action
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910097558.9A
Other languages
Chinese (zh)
Other versions
CN109885367A (en
Inventor
徐俏云
陆卫
蔡韶曼
蒋婕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910097558.9A priority Critical patent/CN109885367B/en
Publication of CN109885367A publication Critical patent/CN109885367A/en
Application granted granted Critical
Publication of CN109885367B publication Critical patent/CN109885367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method, a device, a terminal and a storage medium for realizing interactive chat; the embodiment of the invention can receive the virtual scene chat instruction; acquiring virtual scene material data according to the virtual scene chat instruction; displaying a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members; and displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the virtual roles correspond to the positions of the message display areas. The scheme can realize chat interaction based on a virtual scene.

Description

Interactive chat implementation method, device, terminal and storage medium
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device, a terminal and a storage medium for realizing interactive chat.
Background
With the development of communication technology, many chat-type applications are currently on the market. At present, chat applications provide a chat interface for users to perform chat sessions.
Disclosure of Invention
The embodiment of the invention provides an interactive chat implementation method, an interactive chat implementation device, a terminal and a storage medium, which can implement chat interaction based on a virtual scene.
The embodiment of the invention provides an interactive chat implementation method, which comprises the following steps:
receiving a virtual scene chat instruction;
acquiring virtual scene material data according to the virtual scene chat instruction;
displaying a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members;
and displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the virtual roles correspond to the positions of the message display areas.
Correspondingly, the embodiment of the invention provides an interactive chat implementation device, which comprises:
the receiving unit is used for receiving a virtual scene chat instruction;
the acquisition unit is used for acquiring virtual scene material data according to the virtual scene chat instruction;
the interface display unit is used for displaying a virtual scene chat interface according to the virtual scene material data, and the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members;
and the message display unit is used for displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the virtual roles correspond to the positions of the message display areas.
Correspondingly, an embodiment of the present invention further provides a terminal, including: a processor and a memory; the memory stores a plurality of instructions, and the processor loads the instructions stored in the memory to execute the steps of the interactive chat implementation method provided by any one of the embodiments of the present invention.
Correspondingly, the embodiment of the present invention further provides a storage medium, where the storage medium stores instructions, and the instructions, when executed by a processor, implement the steps in the interactive chat method provided in any of the embodiments of the present invention.
The embodiment of the invention can receive the virtual scene chat instruction; acquiring virtual scene material data according to the virtual scene chat instruction; displaying a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members; and displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the virtual roles correspond to the positions of the message display areas. The scheme can realize chat interaction based on a virtual scene.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic structural diagram of an interactive chat system provided in an embodiment of the present invention;
fig. 1b is a flowchart of an interactive chat implementation method provided in an embodiment of the present invention;
FIG. 1c is a schematic diagram of virtual scene selection according to an embodiment of the present invention;
FIG. 1d is a schematic diagram of a chat interface of a virtual scene provided in an embodiment of the present invention;
FIG. 1e is a schematic diagram of another virtual scene chat interface provided by the embodiment of the invention;
FIG. 2 is a schematic diagram of a virtual scene chat loading logic provided in an embodiment of the present invention;
FIG. 3a is a GamePlay architecture diagram according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of an openG L rendering pipeline provided by the embodiment of the present invention;
FIG. 4a is a flow chart illustrating a process of sending actions according to an embodiment of the present invention;
FIG. 4b is a flow chart illustrating a process of receiving actions according to an embodiment of the present invention;
FIG. 4c is a schematic diagram of mirror logic processing provided by an embodiment of the present invention;
FIG. 5a is a diagram illustrating an action message according to an embodiment of the present invention;
FIG. 5b is a diagram illustrating the sending of an action message according to an embodiment of the present invention;
FIG. 5c is a diagram illustrating the sending of an action message according to an embodiment of the present invention;
FIG. 6a is a schematic diagram of a bubble anchor point provided by an embodiment of the present invention;
FIG. 6b is a schematic view of a bubble display area provided by an embodiment of the present invention;
FIG. 6c is a schematic diagram of a text line feed according to an embodiment of the present invention;
FIG. 6d is a logic diagram for implementing a bubble alignment stacking arrangement according to an embodiment of the present invention;
fig. 6e is an operation diagram of a virtual scene chat interface provided in the embodiment of the present invention;
fig. 7a is another flow diagram of an interactive chat implementing method according to an embodiment of the present invention;
FIG. 7b is a schematic diagram of another virtual scene chat interface provided by an embodiment of the invention;
fig. 8a is a schematic structural diagram of an interactive chat implementing apparatus according to an embodiment of the present invention;
fig. 8b is a schematic structural diagram of an interactive chat implementing apparatus according to an embodiment of the present invention;
fig. 8c is a schematic structural diagram of an interactive chat implementing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method, a device, a terminal and a storage medium for realizing interactive chat.
The embodiment of the invention provides an interactive chat system, which comprises: the interactive chat implementation device provided by the embodiment of the invention can be integrated in a terminal, and the terminal can be a mobile phone, a tablet computer, a notebook computer and other equipment. In addition, the interactive chat system may further include other devices, such as a server.
For example, referring to fig. 1a, the interactive chat system includes a terminal and a server, wherein the terminal is integrated with the interactive chat implementing apparatus provided by the embodiment of the present invention. The terminal is connected with the server through a network.
The terminal can receive a virtual scene chat instruction; acquiring virtual scene material data (such as virtual background material data and virtual role material data) according to the virtual scene chat instruction; for example, the terminal may acquire virtual scene material data from a server. Then, the terminal can display a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members; and displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the message display areas correspond to the positions of the virtual roles of the chat members.
The following are detailed below. The order of the following examples is not intended to limit the preferred order of the examples.
In an embodiment, the description will be made from the perspective of an interactive chat implementing apparatus, which may be specifically integrated in a terminal.
As shown in fig. 1b, an interactive chat implementation method is provided, where the interactive chat implementation method may be executed by a processor of a terminal, and the specific process may be as follows:
101. and receiving a virtual scene chat instruction.
For example, in an embodiment, a user may trigger the virtual scene chat instruction through a user operation interface of the chat client. The user operation interface is an interface displayed by the chat client and used for the user to carry out chat operation.
For example, the user operation interface may be a normal chat session interface; a virtual scene chat control can be set in a common chat session interface; the user can operate the virtual scene chat control to trigger the virtual scene chat instruction, so that the virtual scene chat is switched to. At this time, a virtual scene chat instruction triggered by a chat user through a virtual scene chat control in a common chat session interface of the chat client can be received.
For another example, the user operation interface may be a chat session list interface, where the chat session list interface includes at least one chat session, and in actual application, a virtual scene chat control of each chat session may be set on the list interface, and a user may trigger a virtual scene chat instruction by operating a virtual scene chat control of a certain chat session, so as to enter the virtual scene chat interface of the chat session, and chat in a virtual scene. At this time, a virtual scene chat instruction triggered by the user through the virtual scene chat control of the chat session in the chat session list interface can be received.
In an embodiment, in a case of a default virtual scenario chat mode, if the user operation interface is a chat session list interface, the chat session list interface includes at least one chat session, and the user may operate the chat session to trigger a virtual scenario chat instruction, so as to enter the virtual scenario chat interface of the chat session, and chat in a virtual scenario. At this time, a virtual scene chat instruction triggered by the user through the chat session in the chat session list interface can be received.
Wherein the virtual scene is a virtual spatial environment; embodiments of the present invention apply this concept to chat interfaces, where a "virtual scene" refers to an interface simulation space, and the simulation space may include a space simulating reality (e.g., a bedroom) or a fantasy space (e.g., a monster city).
102. And acquiring virtual scene material data according to the virtual scene chat instruction.
The virtual scene material data may include virtual background material data and virtual character material data, and the virtual scene material data may also include animation material data and the like. The virtual background material data may include virtual background image data and the like, and the virtual character material data may include virtual character material data and the like.
In an embodiment, if the virtual scene material data has been downloaded to the local in advance, at this time, the virtual scene material data may be acquired from the local according to the virtual scene chat instruction (e.g., loading the virtual scene material data).
In one embodiment, if the virtual scene material data is not downloaded, then at this point, the virtual scene material data may be downloaded from the server according to the virtual scene chat instruction.
In practical application, when a user initiates virtual scene chat, the user can select a scene of a virtual scene and select a virtual role under the virtual scene; at this time, the selected virtual scene background material data and character material data of the character may be acquired.
For example, the step of "obtaining virtual scene material data according to a virtual scene chat instruction" may include:
displaying a virtual scene selection interface according to the virtual scene chat instruction, wherein the virtual scene selection interface comprises at least one candidate virtual scene identifier;
displaying a detail interface of the candidate virtual scene based on the scene viewing operation aiming at the candidate virtual scene identification;
determining a target virtual scene based on scene confirmation operation aiming at the detail interface, and displaying a virtual role selection interface corresponding to the target virtual scene, wherein the virtual role selection interface comprises candidate virtual roles in the target virtual scene;
determining a selected target role based on a role confirmation operation for the virtual role selection interface;
virtual scene data of the target virtual scene is obtained, and the virtual scene data comprises virtual background material data and role material data of the target role.
The candidate virtual scene identifier may be in various forms, for example, a number of the virtual scene, a thumbnail of the virtual scene, a cover page of the virtual scene, and the like.
For example, referring to fig. 1c, when the terminal receives a virtual scene chat instruction, a "chat theme selection" interface may be displayed, where the chat theme selection interface includes a plurality of chat themes to be selected, and each chat theme corresponds to one virtual scene. The user can perform a theme viewing operation on the chat theme in the selected chat theme interface, and the terminal responds to the theme viewing operation to display a theme detail interface, wherein the theme detail interface comprises detail information (such as a three-dimensional image of a virtual scene) of a virtual scene corresponding to the theme, and a scene confirmation control element "confirmation traversal". When a user clicks the scene confirmation control to confirm the crossing, the terminal determines that the virtual scene of the current theme is the target virtual scene, and responds to the clicking operation to display the virtual character selection interface under the current theme. In an embodiment, the topic detail interface may further include a detail information viewing control; referring to fig. 1c, when the user clicks the detail information viewing control, the terminal responds to an information interface displaying a virtual scene, the information interface including detailed introduction information; when a user clicks a scene confirmation control in an information interface to confirm crossing, the terminal determines that the virtual scene of the current theme is a target virtual scene, and responds to the clicking operation to display a virtual character selection interface under the current theme.
The candidate virtual roles included in the virtual role selection interface are matched virtual roles in the selected virtual scene. Referring to fig. 1c, after displaying the avatar selection interface, the user may select his/her avatar in the avatar selection interface, for example, the user may perform a character selection operation in the avatar selection interface, and the terminal displays the selected avatar in response to the character selection operation. After the virtual role is selected, the user can click a role confirmation control in the virtual role selection interface to confirm the role, and at the moment, the terminal responds to the operation to determine the selected virtual role and displays the virtual scene chat interface. Specifically, the terminal may obtain (e.g., download or locally read) virtual background material data of the target virtual scene and character material data of the selected virtual character, so as to render and display a virtual scene chat interface.
103. And displaying a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members.
The virtual character is an avatar representing a chat user in a virtual scene, and may include a reorganized avatar organ or a unique avatar created by dressing, that is, may include a 2D planar avatar or a 3D modeled avatar.
Wherein, the virtual chat background can be a virtual space environment; for example, the interface simulation space can be referred to, and the simulation space can include a space simulating reality (such as a bedroom) and can also include a fantasy space (such as a monster city). The virtual chat background can be combined with virtual characters to form "themes", such as future city themes, monster forest themes, and the like. In one embodiment, to achieve greater immersion, the background and character in the scene are only available for selection by the kit.
The chat members are users participating in the current chat, and may include a primary chat member and a guest chat member, the primary chat member refers to the terminal user, i.e., the user (oneself) currently using the terminal, and the guest chat member is another chat member except the terminal user in the chat session.
The virtual scene chat interface in the embodiment of the invention can be a virtual scene chat interface for single chat or group chat. In the case of single chat, the virtual scene chat interface includes virtual roles of two chat users, such as a host virtual role, a guest virtual role.
In the case of group chat, the virtual scene chat interface may include two or more virtual roles of chat users, such as a virtual role of a main chat member, virtual roles of other group chat members.
The virtual scene chat interface further includes user information (such as a nickname) of the chat members, for example, a personal nickname (i.e., a master nickname) and a friend nickname (i.e., a guest nickname) can be displayed. In one embodiment, the user information of the chat member can be located in a position near the avatar of the chat member, such as above the avatar's head.
Taking single chat as an example, referring to fig. 1d, a virtual scene chat interface is provided, which may include a virtual chat background and virtual roles of chat members. The personal and friendly nicknames are also displayed in the interface.
Referring to fig. 1d, the virtual chat scenario interface may further include a top bar (header bar), and the top bar may be provided with a return control (button) and other functional controls. In addition, referring to fig. 1d, the virtual chat scenario interface may further include a message input field in which the user may input the contents of the transmission message.
In the embodiment of the invention, after the terminal acquires the virtual scene material data, the terminal can load and render the virtual scene material data to obtain the rendered virtual scene chat interface, and then the rendered virtual scene chat interface is displayed.
In one embodiment, the animation effect may be displayed on the virtual scene chat interface, for example, when the virtual scene data further includes animation material data, the animation effect may be displayed according to the virtual character material data (virtual character material data of all chat members) and the animation material data.
In one embodiment, in order to ensure the virtual scene display responsiveness of each chat member, the virtual character material data of the guest chat members may be subjected to mirror image processing. For example, when the user a and the user B chat, for the terminal on the user a side, the user a is the master (for example, the user a is displayed on the right side of the interface, and the character direction is towards the left), and the user B is the guest (for example, the user a is displayed on the left side of the interface, and the character direction is towards the right); for the terminal on the user B side, the user B is a master, for example, displayed on the right side of the interface with the character oriented to the right side, and the user a is a guest (displayed on the left side of the interface with the character oriented to the right side). Therefore, the guest character orientation should be the opposite of the original character orientation both on the user a side and on the user B side, and therefore, it is necessary to mirror the client character material to realize the user a and the user B side to view the mutually corresponding interface representation.
For example, in one embodiment, the virtual scene data includes: virtual background material data, virtual role material data of a main chat member and virtual material data of a guest chat member; the terminal can carry out mirror image processing on the virtual material data of the guest chat members; and displaying a virtual scene chat interface according to the virtual background material data, the virtual role material data of the main chat member and the mirrored virtual material data.
For example, referring to fig. 2, the process of displaying the virtual scene chat interface may include the following process, and the following loading refers to data loading rendering:
when entering the virtual scene, judging whether scene resources (namely virtual background materials) exist, if not, downloading the scene resources and loading the scene, and if so, directly loading the scene (namely loading the virtual background).
Judging whether character materials (namely role materials) exist after the scene is loaded; if no figure material exists, downloading the figure material, and judging whether the figure is in a master mode or not; and if the human materials directly judge whether the human is in the main status, directly loading the human if the human is in the main status, and if the human is not in the main status, carrying out mirror image processing on the human materials and then loading the human.
After the character is loaded, whether default animation materials exist or not can be judged, if not, the animation materials are downloaded, the character animation is loaded, and if yes, the character animation is directly loaded.
The display of a virtual scene chat interface can be realized through the loading logic; in one embodiment, the display may be performed each time an object (e.g., a scene, a person, etc.) is loaded, or may be performed after all objects are loaded.
The following describes a specific material data loading process, that is, a rendering process of a virtual scene chat interface, according to an embodiment of the present invention:
in one embodiment, to improve rendering efficiency and image quality, loading of material may be implemented by a game engine (e.g., Gameplay engine),
the step of displaying the virtual scene chat interface according to the virtual scene material data may include:
converting the virtual scene material data into a material file supported by a game, wherein the material file comprises rendering information of the virtual scene material, and the rendering information comprises rendering object information and rendering setting information;
rendering the rendering object information according to the rendering setting information to obtain a rendering result;
and displaying the virtual scene chat interface according to the rendering result.
In one embodiment, the game engine may include a format conversion layer, a service layer, an engine layer and a rendering layer, wherein the format conversion layer is configured to convert the virtual scene material data into a material file supported by the game, such as a gpb (game Play byte) format file, the service layer is configured to perform corresponding function management, such as scene management (SceneManager), camera management (CameraManager), layer management (L ayoutManager), node management (nodemaager), light management (L ightManager), and the like.
Specifically, the step of "rendering the rendering object information according to the rendering setting information" may include:
submitting rendering information of the virtual scene material to a service layer for corresponding function management, and transmitting rendering setting parameters and rendering object parameters to an engine layer based on the function management;
and calling a rendering setting interface at the engine layer to set a rendering tool of the rendering layer, and calling the rendering interface to render the rendering object information by using the set rendering tool to obtain a rendering result.
Referring to fig. 3a, the architecture of a game engine includes a gpb (game Play byte) layer, a service layer, an engine layer, an openG L layer (rendering layer), and a runtime environment.
The virtual scene material data is assumed to be a file in an FBX format, the FBX file is one of the mainstream 3D materials at present, and the FBX file can be converted into a GPB file at a GPB layer. The GPB file may include information related to the 3D material, such as model information, rendering setting information, vertex information, animation information, and the like.
The information is submitted to each manager of the service layer to perform corresponding function management. The business layer can transmit parameters to the engine layer based on function management, such as transmitting rendering setting parameters and rendering object parameters;
the engine layer is responsible for providing encapsulation of each basic component and the openG L interface, specifically, the engine layer can call rendering setting parameters to a rendering tool (such as a shader) of the rendering setting interface setting rendering layer, and call the rendering interface to render the rendering object information by using the set rendering tool.
The openG L layer is mainly configured with a vertex shader and a fragment shader, and the shader is configured to control a rendering pipeline of the GPU to complete rendering and drawing, for example, referring to fig. 3b, a schematic diagram of an openG L rendering pipeline is shown.
104. And displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the message display areas correspond to the positions of the virtual roles of the chat members.
In the embodiment of the invention, each chat member has a message display area, and a single chat is taken as an example, the chat system can comprise two message display areas, namely a message display area of a main chat member and a message display area of a guest chat member; for example, as shown in fig. 1e, the message display area of the user and the message display area of the friend may be included.
The message display area of each chat member corresponds to the virtual character of the chat member, and specifically, the message display area of the chat member corresponds to the position of the virtual character of the chat member. Therefore, the corresponding relation between the virtual roles and the messages in the virtual scene chat interface can be improved, and a user can easily know who role is? What is said? And greatly improves the chat efficiency.
For example, in the two-dimensional coordinate system (XY axis) of the virtual chat scene interface, the message display area of the chat member corresponds to the position of the virtual character of the chat member on the X or Y axis. For example, referring to FIG. 1e, each avatar corresponds to its message display area on the Y-axis, wherein the content of messages sent by chat members can be displayed in the message display area above its avatar. For example, as shown in fig. 1d and 1e, a message bubble (containing message content) sent by each chat member is displayed on top of the avatar of each chat member. Chat members can quickly identify which chat member sent what message in the virtual scene chat interface.
In one embodiment, message sending action can be displayed, and chat interestingness and interactivity are improved. For example, when a chat member sends a message (including a primary chat member sending a message or a guest chat member sending a message), the virtual role of the chat member can make corresponding actions based on the content of the sent message.
The step of displaying the content of the message sent by the chat member in the message display area corresponding to the virtual character of the chat member may include:
acquiring target message content sent by a target chat member;
displaying target message content in a message display area corresponding to a target virtual role of a target chat member, and displaying a message sending dynamic effect according to the target message content, wherein the message sending dynamic effect comprises the following steps: and the target virtual role executes the message sending action corresponding to the target message content.
The target chat member is a chat member currently sending a message in the chat session, and may be a primary chat member (such as the user) or a guest chat member (such as another person).
For example, when the target chat member is a guest chat member, the target chat member can receive a message sent by the target chat member, obtain the target message content from the received message, display a message carrier containing the target message content, such as a message bubble, in a message display area of the chat member, and display a corresponding message effect according to the target message content. When the target chat member is the main chat member, the message content input and sent by the chat member can be obtained, a message carrier bearing the message content is displayed in a message display area corresponding to the virtual role of the chat member, and the corresponding message sending effect is displayed according to the message content.
In the embodiment of the invention, the message sending dynamic effect stands on the principal or the main chat member, and if the target chat member sends messages for the principal and the principal, the message sending dynamic effect is obtained; and if the target chat member is the guest chat member, the message sending action is the message receiving action.
In the embodiment of the invention, the message sending action effect can comprise an animation of the virtual character executing the action; for example, a message sending action corresponding to the message content is executed. The message sending actions can be divided into various types according to actual requirements, for example, the message sending actions are divided into: interactive action, independent action, etc., wherein the interactive action is the action of interaction between the virtual characters, and the independent action can be the action which is completed by the virtual characters independently. In an embodiment, the interactive actions may be further divided into character interactive actions, background interactive actions, and the like, wherein the character interactive actions are interactive actions between characters, and the background interactive actions may be interactive actions between characters and a background, and the like.
In the embodiment of the invention, the action can comprise limb actions, facial expression actions and the like of the character.
In an embodiment, different types of action effects may be displayed for different types of actions, and in particular, the step "displaying a messaging action effect according to a target message content" may include:
determining a message sending action corresponding to the target message content;
when the message sending action is used as an interactive action, displaying the action effect of the target virtual character and the virtual character of the interactive chat member for interactively executing the message sending action;
and when the message sending action is an independent action, displaying the action effect that the target virtual character independently completes the message sending action.
In one embodiment, when the message sending action is used as the background interaction operation, the action effect of the target virtual character interacting with the background is displayed.
Wherein, the interaction actions can comprise inter-character thigh holding, inter-character chest beating and other interaction actions; the independent actions may include facial expressive actions of the character (e.g., laughing, crying, etc.), limb actions of the character (e.g., waving a hand), and the like.
For example, referring to fig. 4a, the target chat member is a master, that is, a master chat member, and when the master sends a message, a message sending action corresponding to the message content may be determined; judging whether the message sending action is an interactive action, if so, displaying the action effect of the master running the active action and the guest running the passive action; if not, the dynamic effect of the single person action operated by the owner is displayed.
For another example, referring to fig. 4b, the target chat member is a guest, that is, a guest chat member, and when the host terminal receives the message content sent by the guest, the host terminal may determine a message receiving action (for the host); judging whether the message receiving action is an interactive action, if so, displaying the action effect of the guest running the active operation and the host running the passive action; if not, displaying the action effect of the guest running the single action.
In one embodiment, a user can trigger and display a message sending action effect corresponding to an action message by sending the action message; for example, when the target chat member is the master chat member, the target chat member may select to send the action message, and at this time, the terminal may display the message content corresponding to the action message in the message display area of the role of the target chat member, and display the message sending action corresponding to the action message.
In an embodiment, specifically, the step "obtaining the target message content sent by the target chat member" may include:
displaying a message selection area on a virtual scene chat interface, wherein the message selection area comprises at least one action message, and the action message corresponds to corresponding message content and message sending action;
determining a sent target action message based on the selection operation of the target chat member aiming at the message selection area;
taking the message content corresponding to the target action message as the target message content sent by the target chat member;
at this time, the step of "displaying the message transmission action according to the target message content" may include: and displaying the message sending action corresponding to the target action message.
Wherein, the action message is a message with message sending action and message content (such as default message content); when an action message is sent, default message content corresponding to the action message and a corresponding message sending action may be displayed.
And the message sending action of the action message comprises a message sending action corresponding to the action message executed by the target virtual role. For example, the message sending action corresponding to the action message may be "hammer the chest", and when the action message is sent, a "hammer the chest" action effect may be displayed, and the user will see that the host character hammers the chest of the guest character.
The message selection area can be displayed in various triggering modes, for example, a user can operate the virtual scene chat interface to trigger the message selection area to be displayed; for example, an action message control may be provided in the virtual scene interface or a function bar of the interface, and the message selection area is triggered and displayed when a user operates, for example, a click operation, on the action message control.
For example, referring to fig. 5a, the user may trigger the display of an action message selection page at the bottom of the two-day interface (e.g., below the input field) in the virtual scene through the operation of the virtual scene interface, where the action message selection page includes "beat chest", "say nothing XX", "hug thigh", and so on. When the user selects the 'hugging thigh' action message, the terminal can display a message bubble containing the message content 'hugging thigh' in the message display area of the master role and simultaneously display the action effect corresponding to the 'hugging thigh', if the master role can rush to the front of the guest role to hug the thigh of the guest.
In the embodiment of the present invention, the implementation of the message sending animation may refer to the data loading process, for example, a scene may be loaded first, a character may be loaded, and then an animation may be loaded, so as to implement the message sending animation. In one embodiment, the guest materials are mirrored when the action is implemented, considering that the display direction of the characters in the host-guest interface is the opposite direction.
Specifically, the step of displaying the dynamic effect of the target virtual character and the interactive chat member virtual character interactive execution message sending action may include:
acquiring character materials of interactive chat members, character materials of target chat members and dynamic effect data;
carrying out mirror image processing on the figure materials of the interactive chat members to obtain mirrored figure materials;
and displaying the dynamic effect of the target virtual role and the virtual role interaction execution message sending action of the interaction chat members according to the mirrored character materials, the character materials of the target chat members and the dynamic data.
The image of the client can be subjected to mirror image logic according to the habit that the chat owner is on the right and the friend is on the left in the client interface. The mirror logic may be implemented by flipping the personality Node matrix, for example, the mirror of the personality on the X axis may be implemented in the manner shown in fig. 4 c.
For example, referring to fig. 5b, the user may operate through the virtual scene interface to trigger the display of an action message selection page at the bottom of the two-day interface (e.g., below the input field) of the virtual scene, including "martial arts", "kicking", "quarrel" and other action messages. When the user selects and sends the action message of 'martial art', the terminal can display the message bubble containing the corresponding character of 'martial art' in the message display area of the master character and simultaneously display the action corresponding to the 'martial art', for example, the master character and the guest character use weapons to play against each other, wherein fig. 5b is an action schematic displayed by the master client side, and fig. 5c is an action schematic displayed by the client or the friend client side.
In an embodiment, the message content may be displayed in various manners, for example, the message content sent by the chat member may be displayed in a stacked arrangement, for example, when the message carrier is used to carry the message content, referring to fig. 1d and fig. 1e, the message bubbles sent by the chat member are displayed in the message display stacked arrangement of the virtual character.
Specifically, the step of displaying the content of the message sent by the chat member in the message display area corresponding to the virtual character of the chat member may include:
and displaying a message carrier sent by the chat members in a message display area corresponding to the virtual roles of the chat members in a stacking arrangement mode, wherein the message carrier carries message contents sent by the chat members.
Wherein the stacked arrangement may: the message carriers or message contents are arranged in a space in a stacked manner in a certain direction, for example, the message carriers or message contents may be arranged in a space in a stacked manner in a certain direction based on a message transmission time. For example, the message carriers or message contents sent before are stacked one after the other below the latest message carrier or message content, with the latest message carrier or message content uppermost.
The stacking arrangement direction of the message carriers or the message contents can be set according to actual requirements, for example, the stacking arrangement direction can be an X-axis direction or a Y-axis direction under the condition of establishing a two-dimensional coordinate system of an interface; when a three-dimensional coordinate system of a plane is established, X, Y or the Z-axis direction may be used. That is, the stacked arrangement may be a two-dimensional stack or a three-dimensional stack.
The following describes an implementation of the stacking arrangement of the message carriers by taking an example of the stacking arrangement in a vertical direction, e.g. the Y-axis direction:
for example, the step of displaying a message carrier sent by the chat member in a message display area corresponding to the virtual character of the chat member in a stacked arrangement manner may include:
acquiring positioning point position information of a first message carrier, wherein the positioning point position information comprises a first horizontal position of a positioning point in the horizontal direction and a first vertical position of the positioning point in the vertical direction;
adjusting a second vertical position of a positioning point of a second message carrier based on the first vertical position to obtain an adjusted vertical position, wherein the sending time of the second message carrier is earlier than that of the first message carrier;
and updating the display of the second message carrier in the message display area according to the adjusted vertical position, thereby realizing the stacking arrangement effect of the message carriers.
For example, when the latest message carrier needs to be displayed, the position information of the current positioning point of the latest message carrier is acquired, and the position information comprises the horizontal position of the positioning point in the horizontal direction and the vertical position of the positioning point in the vertical direction; based on the vertical position of the current locating point, adjusting the historical vertical position of the historical locating point of the historical message carrier to obtain an adjusted vertical position; and updating the display of the historical message carrier according to the adjusted vertical position, and displaying the latest message carrier in the message display area corresponding to the virtual character of the chat member according to the position information of the current positioning point.
The position information of the positioning point may include a horizontal position of the positioning point in a horizontal direction (e.g., X axis), and a vertical position of the positioning point in a vertical direction (e.g., Y axis); for example, coordinates (x, y) of the anchor point are included. The position information of the anchor point determines the display position of the message carrier, for example, the position information of the current anchor point determines the display position of the latest message carrier. Referring to fig. 6a, a bubble location reference point P, which is a location reference point of the left character bubble, determines the display position of the bubble.
The adjustment manner of the vertical position may include multiple manners, for example, the historical vertical position value may be set to be equal to the vertical position of the current positioning point + the position value increment, and the position value increment may be positive or negative. The position value increment may be a fixed constant or may be determined based on a function.
For example, assume that there are two message bubbles α and β, the sending time of β is closer (e.g. the latest message bubble) and the sending message of β is earlier (e.g. the history message bubble). in this case, the coordinates of the locating points P of β bubble and β bubble are (x β, y α) and (x β and y β), respectively.
In one embodiment, to achieve the stacking arrangement effect, the horizontal position (e.g., X-axis coordinate of the point location) of the positioning point of the previously transmitted message carrier may also be adjusted. Specifically, the step of displaying the message carrier sent by the chat member in the message display area corresponding to the virtual character of the chat member in a stacking arrangement manner may further include:
comparing the width of the second message carrier with the width of the message display area;
adjusting a second horizontal position of a positioning point of a second message carrier according to the width comparison result to obtain an adjusted horizontal position;
updating the display of the second message carrier in the message display area according to the adjusted vertical position, comprising:
and updating the display of the second message carrier in the message display area according to the adjusted vertical position and the adjusted horizontal position.
The width of the message carrier is the width of the message carrier in the horizontal direction, for example, when the message carrier is a rectangular message bubble, that is, the width of the message bubble is the rectangular width in the horizontal direction.
For example, in an embodiment, when the width of the second message carrier is equal to the width of the message display area, the second horizontal position of the anchor point of the second message carrier is set to a certain position, for example, to zero; for another example, when the width of the second message carrier is smaller than the width of the message display area, the second horizontal position value may be randomly determined over the width of the message display area.
For example, when the message bubble width w is x2 (message display region width), then x of the message bubble anchor point is 0, refer to bubble Ω shown in fig. 6d, when the message bubble width w < x2, then x of the message bubble anchor point is randomly determined, and x is less than x2, refer to bubble β shown in fig. 6 d.
Specifically, referring to fig. 6a, point P is the left character bubble location reference point, and w0 is the natural length of the character in the bubble when the line is not to be rewound. Referring to fig. 6b, which is a division of the guest message display area, wherein y0 is the maximum height of the bubble display area defined per scene, x1 is the maximum width of the bubble display area of the left character, and x2 is the maximum width of the bubble display area of the right character. Y0 can be set according to actual requirements, for example, it can be changed in different scenes to adapt to the best display effect. x1 and x2 need to perform video processing of the display screen, and in general, x1 is x2 is x, that is, the display area of the guest-host bubble bisects the screen. In the embodiment of the invention, the positions such as y0, x1 and x2 are relative positions in the screen, are not absolute positions, and can be adjusted according to requirements in practical application.
In one embodiment, when displaying the message carrier or the message content, the length w0 of the text to be displayed can be compared with the width x of the message display area of the character, so as to feed the text line and obtain the width and height of the message carrier. For example, referring to fig. 6c, taking the owner as an example of displaying the bubble, the text stock w0 may be compared with the width x2 of the bubble display area of the owner, and text may be displayed in line according to the comparison result, so as to obtain the width and height of the bubble. For example, when w0 is greater than x2, the characters are subjected to line feed, and the width w of the bubble is x2 and the height h of the bubble is obtained; when w0 is less than or equal to x2, w is wo and the height of the bubble is h, the original height of the bubble.
In an embodiment, in order to better realize the stacking arrangement effect, the position of the positioning point of the message carrier sent before in the arrangement direction can be adjusted; specifically, the step of displaying the message carrier sent by the chat member in the message display area corresponding to the virtual character of the chat member in a stacking arrangement manner may further include:
adjusting the arrangement position of the second message carrier in the arrangement direction according to the sending time of the second message carrier to obtain an adjusted arrangement position;
at this time, the step of "updating the display of the second message carrier in the message display area according to the adjusted vertical position and the adjusted horizontal position" may include: and updating the display of the second message carrier in the message display area according to the adjusted disposal position, the adjusted horizontal position and the adjusted arrangement position.
The arrangement direction is a direction in which the message carriers or the message contents are stacked and arranged, for example, the direction may be set according to an actual requirement, for example, referring to fig. 6d, the direction is a Z-axis direction, and at this time, the sorting position is a Z-coordinate value of the message carrier on the Z-axis.
The arrangement position of the message carrier may be determined according to the sending time of the message carrier, for example, the earlier the sending time, the larger the arrangement position (e.g., z coordinate), that is, the later the sorting position (e.g., z coordinate); the later the transmission time, the smaller the array position (e.g., z coordinate), i.e., the earlier the sequencing position.
In an embodiment, the arrangement positions of the second message carrier and the first message carrier may be updated and set based on the transmission time ordering result between the second message carrier and the first message carrier.
For example, taking the three-dimensional coordinate system XYZ as an example, suppose that there are two message bubbles, 2 is closer in transmission time (e.g., the latest message bubble) and 0 is earlier in transmission message (e.g., the history message bubble), where the coordinates of the point P of the location points of the 3 and 1 bubbles are (x 7, y, z 1), (x 4, y 5, z 6), respectively, in order to achieve the stacking arrangement, y 9 of the 8 bubbles may be adjusted based on y 5 of the 3 bubbles, e.g., y0 ═ y 7+ m, x 4 is set based on the comparison result of the 2 bubbles and the width x of the message display region, e.g., when the message bubble width w is x (the message display region width), x of the location point of the message bubble is 0, refer to the bubble Ω shown in fig. 6d, when the message bubble width w < x, x of the location point of the message bubble is randomly determined, and x is less than x, refer to the bubble 6 shown in fig. 6d, if the bubble width w is less than the display region x, the bubble is moved at the same time, z is set, z is 8, z is updated, and the effect of the stacking arrangement is achieved.
By analogy, for other historical bubbles, for example, the coordinate xyz value can be updated by the third bubble Ω in the above manner, so that the effect of stacking and arranging the bubbles in the message display area is realized.
In one embodiment, in order to allow the user to recognize the transmission time of the message, the message may be displayed with different display parameters for different message transmission times, so that the message may be displayed differently based on the transmission time of the message.
For example, the step of displaying the content of the message sent by the chat member in the message display area corresponding to the virtual character of the chat member may include:
when the latest message content sent by the chat members needs to be displayed, displaying the latest message content in the message display area corresponding to the virtual role of the chat members according to the display parameters corresponding to the latest message content;
and adjusting the display parameters of the historical message content in the message display area according to the message sending time of the historical message content, and updating the display of the historical message content according to the adjusted display parameters.
The display parameter is a display parameter of the message content, and may include at least one of opacity (or transparency), font size, color, and the like. In practical applications, when the message content is carried by the message carrier, the display parameter may be a display parameter of the message carrier, such as a display parameter of a bubble.
For example, referring to fig. 1c and fig. 1d, the transparency change, the font change and the stacking effect can be used to create a spatial depth sense of bubble arrangement, and represent the time sequence of messages, so that the user can distinguish the messages at different times.
In an embodiment, after displaying the virtual scene chat interface, the user may also operate the interface to browse the virtual chat background, view messages, and the like. For example, the terminal may expand and display the virtual chat background based on the background browsing operation of the chat members for the virtual scene interface; for example, other non-displayed portions of the virtual chat background are displayed. The background browsing operation may include a slide operation, such as a left or right slide operation, or the like.
For another example, the terminal may also display the history messages based on the message viewing operation of the chat members with respect to the virtual scene interface, for example, in the case of a stacked arrangement, the history messages may be displayed by scrolling forward.
For example, referring to FIG. 6e, the user can slide left and right to browse the virtual chat background and slide up and down to view the message.
In an embodiment, the chat background of the virtual scene may change along with information such as chat indicators, for example, current chat indicator information of chat members is monitored in real time; and changing the virtual chat background according to the chat index information.
The chat index information may include chat activity, chat intimacy, and the like, for example, the virtual item in the virtual background may be changed according to the chat activity, such as a tree in the background being long, blossoming, and fruiting according to the activity of the user chat.
As can be seen from the above, the embodiment of the present invention can implement chat interaction based on virtual scenes, and in addition, solves the problem of intuitive correspondence between "virtual characters" and "bubble messages": who says what at what time, the chat experience is greatly improved.
In addition, the virtual character and the chat background material can be operated and selected according to actual requirements, the personalized selection of a user on the chat atmosphere is met, the traditional visual experience is broken through by the dynamic arrangement of the bubble messages, the feeling of being lighter and more lively is brought to people, and the message identification degree at different times is greatly improved.
In light of the foregoing description, the following will illustrate methods provided by embodiments of the present invention.
Specifically, the method of the present invention is described in detail by taking an example in which an interactive chat implementing apparatus is integrated in a terminal (for example, integrated in the terminal in the form of a client).
Referring to fig. 7a, a method for implementing interactive chat may include:
701. and the terminal receives a virtual scene chat instruction.
There may be various triggering manners of the virtual scene chat instruction, and reference may be made to the description of the above embodiments.
702. And the terminal acquires the virtual scene material data according to the virtual scene chat instruction.
The virtual scene material data may include virtual background material data and virtual character material data, and the virtual scene material data may also include animation material data and the like. The virtual background material data may include virtual background image data and the like, and the virtual character material data may include virtual character material data and the like.
Reference may be made in particular to the description of the embodiments above.
703. And the terminal displays a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members.
The virtual character is an avatar representing a chat user in a virtual scene, and may include a reorganized avatar organ or a unique avatar created by dressing, that is, may include a 2D planar avatar or a 3D modeled avatar.
Wherein, the virtual chat background can be a virtual space environment; for example, the interface simulation space can be referred to, and the simulation space can include a space simulating reality (such as a bedroom) and can also include a fantasy space (such as a monster city). The virtual chat background can be combined with virtual characters to form "themes", such as future city themes, monster forest themes, and the like. In one embodiment, to achieve greater immersion, the background and character in the scene are only available for selection by the kit.
Specifically, the loading and displaying process of the virtual scene chat interface may refer to the description of the above embodiments.
For example, the terminal displays a virtual scene chat interface as shown in fig. 7b according to the virtual scene material data, where the virtual scene chat interface includes a principal virtual character and a friend virtual character, a message sent by the principal is displayed in a message display area above the principal virtual character, and a message sent by the friend is displayed in a message display area above the friend virtual character. In addition, user information such as a nickname is displayed at a position around the personal avatar and the friend avatar, for example, at a position above the head.
704. The terminal acquires the target message content sent by the target chat member.
The target chat member is a chat member currently sending a message in the chat session, and may be a primary chat member (such as the user) or a guest chat member (such as another person).
For example, when the target chat member is a guest chat member, the target chat member can receive a message sent by the target chat member and obtain the target message content from the received message. When the target chat member is the main chat member, the content of the message input and sent by the chat member can be obtained.
In one embodiment, the message content may also be the message content corresponding to the action message, for example, when the user selects to send the action message, the message content corresponding to the action message may be acquired.
705. The terminal displays the target message content in the message display area corresponding to the target virtual role of the target chat member, and displays the message sending dynamic effect according to the target message content, wherein the message sending dynamic effect comprises the following steps: and the target virtual role executes the message sending action corresponding to the target message content.
Wherein the message display area corresponds to a location of the virtual character of the chat member.
The message display area of each chat member corresponds to the virtual character of the chat member, and specifically, the message display area of the chat member corresponds to the position of the virtual character of the chat member. Therefore, the corresponding relation between the virtual roles and the messages in the virtual scene chat interface can be improved, and a user can easily know who role is? What is said? And greatly improves the chat efficiency.
For example, the terminal may display a message carrier sent by the chat member in a message display area corresponding to the virtual role of the chat member in a stacked arrangement manner, where the message carrier carries message content sent by the chat member. Specifically, the implementation of the stacked arrangement display effect can refer to the description of the above embodiments.
Reference may be made to the above description of the embodiments for displaying the message sending action according to the message content.
For example, referring to fig. 5a, the user may trigger the display of an action message selection page at the bottom of the two-day interface (e.g., below the input field) in the virtual scene through the operation of the virtual scene interface, where the action message selection page includes "beat chest", "say nothing XX", "hug thigh", and so on. When the user selects the 'hugging thigh' action message, the terminal can display a message bubble containing the message content 'hugging thigh' in the message display area of the master role and simultaneously display the action effect corresponding to the 'hugging thigh', if the master role can rush to the front of the guest role to hug the thigh of the guest.
As can be seen from the above, the embodiment of the present invention can implement chat interaction based on virtual scenes, and in addition, solves the problem of intuitive correspondence between "virtual characters" and "bubble messages": who says what at what time, the chat experience is greatly improved.
In addition, the scheme of the embodiment of the invention can realize the display dynamic effect during the message sending, thereby greatly improving the chat experience of the user.
In order to better implement the interactive chat implementation method provided by the embodiment of the invention, an embodiment of the invention further provides an interactive chat implementation device, and the interactive chat implementation device is suitable for terminals. The terms are the same as those in the data synchronization method, and details of implementation can be referred to the description in the method embodiment.
In an embodiment, an interactive chat implementation apparatus is further provided, where the interactive chat implementation apparatus may be specifically implemented in a terminal, for example, the interactive chat implementation apparatus may be integrated in a client in a form of a client, as shown in fig. 8a, and the interactive chat implementation apparatus may include: the receiving unit 801, the obtaining unit 802, the interface display unit 803, and the message display unit 804 are specifically as follows:
a receiving unit 801, configured to receive a virtual scene chat instruction;
an obtaining unit 802, configured to obtain virtual scene material data according to the virtual scene chat instruction;
an interface display unit 803, configured to display a virtual scene chat interface according to the virtual scene material data, where the virtual scene chat interface includes a virtual chat background and virtual roles of chat members;
a message display unit 804, configured to display the message content sent by the chat member in a message display area corresponding to a virtual character of the chat member, where the virtual character corresponds to a position of the message display area.
In an embodiment, referring to fig. 8b, the message display unit 804 may include:
a content acquiring subunit 8041, configured to acquire a target message content sent by a target chat member;
a display subunit 8042, configured to display the target message content in a message display area corresponding to a target virtual character of a target chat member, and display a message sending dynamic effect according to the target message content, where the message sending dynamic effect includes: and the target virtual role executes the message sending action corresponding to the target message content.
In an embodiment, the display sub-unit 8042 may be specifically configured to:
determining a message sending action corresponding to the target message content;
when the message sending action is an interactive action, displaying the target virtual character and the virtual character of the interactive chat member to interactively execute the action effect of the message sending action;
and when the message sending action is taken as an independent action, displaying the action effect that the target virtual role independently completes the message sending action.
In an embodiment, the content acquiring sub-unit 8041 may be configured to:
displaying a message selection area on the virtual scene chat interface, wherein the message selection area comprises at least one action message, and the action message corresponds to corresponding message content and message sending action;
determining a sent target action message based on the selection operation of the target chat member aiming at the message selection area;
taking the message content corresponding to the target action message as the target message content sent by the target chat member;
displaying message sending dynamic effects according to the target message content, comprising: and displaying the message sending action corresponding to the target action message.
In an embodiment, referring to fig. 8c, the apparatus for implementing interactive chat may further include: the background change unit 805 is specifically configured to:
monitoring the current chat index information of the chat members in real time;
and changing the virtual chat background according to the chat index information.
In an embodiment, the message display unit 804 may be configured to: and displaying a message carrier sent by the chat members in a message display area corresponding to the virtual roles of the chat members in a stacking arrangement mode, wherein the message carrier carries message contents sent by the chat members.
In an embodiment, the message display unit 804 may be specifically configured to:
acquiring positioning point position information of a first message carrier, wherein the positioning point position information comprises a first horizontal position of a positioning point in the horizontal direction and a first vertical position of the positioning point in the vertical direction;
adjusting a second vertical position of a positioning point of a second message carrier based on the first vertical position to obtain an adjusted vertical position, wherein the sending time of the second message carrier is earlier than that of the first message carrier;
and updating the display of the second message carrier in the message display area according to the adjusted vertical position, thereby realizing the stacking arrangement effect of the message carriers.
In an embodiment, the message display unit 804 is further configured to: comparing the width of the second message carrier with the width of the message display area; adjusting a second horizontal position of a positioning point of a second message carrier according to the width comparison result to obtain an adjusted horizontal position; and updating the display of the second message carrier in the message display area according to the adjusted vertical position and the adjusted horizontal position.
In an embodiment, the message display unit 804 is further configured to: adjusting the arrangement position of the second message carrier in the arrangement direction according to the sending time of the second message carrier to obtain an adjusted arrangement position; and updating the display of the second message carrier in the message display area according to the adjusted disposal position, the adjusted horizontal position and the adjusted arrangement position.
In an embodiment, the message display unit 804 may be specifically configured to:
when the latest message content sent by the chat members needs to be displayed, displaying the latest message content in the message display area corresponding to the virtual role of the chat members according to the display parameters corresponding to the latest message content;
and adjusting the display parameters of the historical message content in the message display area according to the message sending time of the historical message content, and updating the display of the historical message content according to the adjusted display parameters.
In an embodiment, the interface display unit 803 may be specifically configured to:
converting virtual scene material data into a material file supported by a game, wherein the material file comprises rendering information of a virtual scene material, and the rendering information comprises rendering object information and rendering setting information;
submitting the rendering information of the virtual scene material to a service layer for corresponding function management, and transmitting rendering setting parameters and rendering object parameters to an engine layer based on the function management;
calling a rendering setting interface at the engine layer to set a rendering tool of the rendering layer, and calling the rendering interface to render the rendering object information by using the set rendering tool to obtain a rendering result;
and displaying the virtual scene chat interface according to the rendering result.
In an embodiment, the display sub-unit 8042 may be specifically configured to:
acquiring character materials of interactive chat members, character materials of target chat members and dynamic effect data;
mirroring the figure materials of the interactive chat members to obtain mirrored figure materials;
and displaying the dynamic effect of the target virtual role and the virtual role of the interactive chat members for executing the message sending action in an interactive way according to the mirrored character materials, the character materials of the target chat members and the dynamic data. In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
The embodiment of the invention provides an interactive chat implementation device, which receives a virtual scene chat instruction through a receiving unit 801; the obtaining unit 802 obtains virtual scene material data according to the virtual scene chat instruction; displaying, by the interface display unit 803, a virtual scene chat interface according to the virtual scene material data, where the virtual scene chat interface includes a virtual chat background and virtual roles of chat members; the message display unit 804 displays the message content sent by the chat member in the message display area corresponding to the virtual character of the chat member, wherein the virtual character corresponds to the position of the message display area. The scheme can realize chat interaction based on a virtual scene.
The embodiment of the present invention further provides a terminal, which may be a terminal or a server, for example, the terminal may be an interworking server between heterogeneous message systems, a server in a message system, and the like, and for example, the terminal may be a user terminal, such as a mobile phone, a tablet computer, and the like. As shown in fig. 9, it shows a schematic structural diagram of a terminal according to an embodiment of the present invention, specifically:
the terminal may include components such as a processor 901 of one or more processing cores, memory 902 of one or more computer-readable storage media, a power supply 903, and an input unit 904. Those skilled in the art will appreciate that the terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 901 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the terminal. Optionally, processor 901 may include one or more processing cores; preferably, the processor 901 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 901.
The memory 902 may be used to store software programs and modules, and the processor 901 executes various functional applications and data processing by operating the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 902 may also include a memory controller to provide the processor 901 access to the memory 902.
The terminal further comprises a power supply 903 for supplying power to each component, and preferably, the power supply 903 may be logically connected to the processor 901 through a power management system, so that functions of managing charging, discharging, power consumption management and the like are realized through the power management system. The power supply 903 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal may further include an input unit 904, and the input unit 904 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the terminal may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 901 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 902 according to the following instructions, and the processor 901 runs the application programs stored in the memory 902, so as to implement various functions as follows:
receiving a virtual scene chat instruction; acquiring virtual scene material data according to the virtual scene chat instruction; displaying a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members; and displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the virtual roles correspond to the positions of the message display areas.
For example, in one embodiment, the content of a target message sent by a target chat member is obtained; displaying the target message content in a message display area corresponding to a target virtual role of a target chat member, and displaying a message sending dynamic effect according to the target message content, wherein the message sending dynamic effect comprises the following steps: and the target virtual role executes the message sending action corresponding to the target message content.
For example, in one embodiment, a message sending action corresponding to the target message content is determined; when the message sending action is an interactive action, displaying the target virtual character and the virtual character of the interactive chat member to interactively execute the action effect of the message sending action; and when the message sending action is taken as an independent action, displaying the action effect that the target virtual role independently completes the message sending action.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Therefore, the terminal provided by the embodiment of the invention can realize the chat based on the virtual scene, and the chat experience is greatly improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for implementing interactive chat provided by the embodiments of the present invention. Such as:
receiving a virtual scene chat instruction; acquiring virtual scene material data according to the virtual scene chat instruction; displaying a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members; and displaying the message content sent by the chat members in the message display areas corresponding to the virtual roles of the chat members, wherein the virtual roles correspond to the positions of the message display areas.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any method provided by the embodiment of the present invention can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The method, the device, the terminal and the storage medium for implementing interactive chat provided by the embodiment of the invention are described in detail, a specific embodiment is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present invention.

Claims (23)

1. An interactive chat implementation method is characterized by comprising the following steps:
receiving a virtual scene chat instruction;
acquiring virtual scene material data according to the virtual scene chat instruction;
displaying a virtual scene chat interface according to the virtual scene material data, wherein the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members;
displaying the message content sent by the chat members in the message display area corresponding to the virtual roles of the chat members, wherein, the virtual character of each chat member corresponds to a message display area, the virtual character corresponds to the position of the message display area, the message display area corresponding to the virtual role of each chat member comprises a plurality of message contents sent by each chat member, and the message content sent by each chat member is stacked and arranged in the space in the message display area corresponding to the virtual role of the chat member based on the message sending time of each message content, the message content of a plurality of different message sending times in the message display area is displayed by adopting different display parameters, the message content comprises historical message content sent by the chat members in historical time and latest message content sent by the chat members in current time;
and when receiving background browsing operation of the chat members aiming at the virtual chat background, displaying other undisplayed parts of the virtual chat background, wherein the background browsing operation comprises sliding operation.
2. The method for implementing interactive chat as claimed in claim 1, wherein displaying the message content sent by the chat member in the message display area corresponding to the virtual character of the chat member comprises:
acquiring target message content sent by a target chat member;
displaying the target message content in a message display area corresponding to a target virtual role of a target chat member, and displaying a message sending dynamic effect according to the target message content, wherein the message sending dynamic effect comprises the following steps: and the target virtual role executes the message sending action corresponding to the target message content.
3. The interactive chat implementing method of claim 2, wherein displaying a messaging campaign based on the target message content comprises:
determining a message sending action corresponding to the target message content;
when the message sending action is an interactive action, displaying the target virtual character and the virtual character of the interactive chat member to interactively execute the action effect of the message sending action;
and when the message sending action is taken as an independent action, displaying the action effect that the target virtual role independently completes the message sending action.
4. The method as claimed in claim 2, wherein the step of obtaining the target message content sent by the target chat member comprises:
displaying a message selection area on the virtual scene chat interface, wherein the message selection area comprises at least one action message, and the action message corresponds to corresponding message content and message sending action;
determining a sent target action message based on the selection operation of the target chat member aiming at the message selection area;
taking the message content corresponding to the target action message as the target message content sent by the target chat member;
displaying message sending dynamic effects according to the target message content, comprising: and displaying the message sending action corresponding to the target action message.
5. The interactive chat implementing method of claim 1, further comprising:
monitoring the current chat index information of the chat members in real time;
and changing the virtual chat background according to the chat index information.
6. The method for implementing interactive chat as claimed in claim 1, wherein displaying the message content sent by the chat member in the message display area corresponding to the virtual character of the chat member comprises:
and displaying a message carrier sent by the chat members in a message display area corresponding to the virtual roles of the chat members in a stacking arrangement mode, wherein the message carrier carries message contents sent by the chat members.
7. The interactive chat implementing method of claim 6, wherein displaying the message carrier sent by the chat member in the message display area corresponding to the virtual character of the chat member in a stacking arrangement mode comprises:
acquiring positioning point position information of a first message carrier, wherein the positioning point position information comprises a first horizontal position of a positioning point in the horizontal direction and a first vertical position of the positioning point in the vertical direction;
adjusting a second vertical position of a positioning point of a second message carrier based on the first vertical position to obtain an adjusted vertical position, wherein the sending time of the second message carrier is earlier than that of the first message carrier;
and updating the display of the second message carrier in the message display area according to the adjusted vertical position, thereby realizing the stacking arrangement effect of the message carriers.
8. The interactive chat implementing method of claim 7, wherein a message carrier sent by the chat member is displayed in a message display area corresponding to the virtual character of the chat member in a stacking arrangement manner, further comprising:
comparing the width of the second message carrier with the width of the message display area;
adjusting a second horizontal position of a positioning point of a second message carrier according to the width comparison result to obtain an adjusted horizontal position;
updating the display of the second message carrier in the message display area according to the adjusted vertical position, comprising:
and updating the display of the second message carrier in the message display area according to the adjusted vertical position and the adjusted horizontal position.
9. The interactive chat implementing method of claim 7, wherein a message carrier sent by the chat member is displayed in a message display area corresponding to the virtual character of the chat member in a stacking arrangement manner, further comprising:
adjusting the arrangement position of the second message carrier in the arrangement direction according to the sending time of the second message carrier to obtain an adjusted arrangement position;
updating the display of the second message carrier in the message display area according to the adjusted vertical position and the adjusted horizontal position, including:
and updating the display of the second message carrier in the message display area according to the adjusted disposal position, the adjusted horizontal position and the adjusted arrangement position.
10. The method for implementing interactive chat as claimed in claim 1, wherein displaying the message content sent by the chat member in the message display area corresponding to the virtual character of the chat member comprises:
when the latest message content sent by the chat members needs to be displayed, displaying the latest message content in the message display area corresponding to the virtual role of the chat members according to the display parameters corresponding to the latest message content;
and adjusting the display parameters of the historical message content in the message display area according to the message sending time of the historical message content, and updating the display of the historical message content according to the adjusted display parameters.
11. The method of claim 1, wherein displaying a virtual scene chat interface based on the virtual scene material data comprises:
converting virtual scene material data into a material file supported by a game, wherein the material file comprises rendering information of a virtual scene material, and the rendering information comprises rendering object information and rendering setting information;
submitting the rendering information of the virtual scene material to a service layer for corresponding function management, and transmitting rendering setting parameters and rendering object parameters to an engine layer based on the function management;
calling a rendering setting interface at the engine layer to set a rendering tool of the rendering layer, and calling the rendering interface to render the rendering object information by using the set rendering tool to obtain a rendering result;
and displaying the virtual scene chat interface according to the rendering result.
12. The method of claim 3, wherein displaying the target avatar and the avatars of the interactive chat members to interactively perform the message sending action comprises:
acquiring character materials of interactive chat members, character materials of target chat members and dynamic effect data;
mirroring the figure materials of the interactive chat members to obtain mirrored figure materials;
and displaying the dynamic effect of the target virtual role and the virtual role of the interactive chat members for executing the message sending action in an interactive way according to the mirrored character materials, the character materials of the target chat members and the dynamic data.
13. An interactive chat implementation apparatus, comprising:
the receiving unit is used for receiving a virtual scene chat instruction;
the acquisition unit is used for acquiring virtual scene material data according to the virtual scene chat instruction;
the interface display unit is used for displaying a virtual scene chat interface according to the virtual scene material data, and the virtual scene chat interface comprises a virtual chat background and virtual roles of chat members;
a message display unit, configured to display message contents sent by chat members in message display areas corresponding to virtual roles of the chat members, where each virtual role of a chat member corresponds to one message display area, the virtual role corresponds to a position of the message display area, the message display area corresponding to the virtual role of each chat member includes a plurality of message contents sent by each chat member, and the message contents sent by each chat member are stacked and arranged in a space in the message display area corresponding to the virtual role thereof based on a message sending time of each message content, the message contents at a plurality of different message sending times in the message display area are displayed with different display parameters, and the message contents include historical message contents sent by the chat members at the historical time and latest message contents sent by the chat members at the current time, and when receiving background browsing operation of the chat members aiming at the virtual chat background, displaying other undisplayed parts of the virtual chat background, wherein the background browsing operation comprises sliding operation.
14. The interactive chat implementing apparatus of claim 13, wherein the message display unit includes:
the content acquisition subunit is used for acquiring the content of the target message sent by the target chat member;
a display subunit, configured to display the target message content in a message display area corresponding to a target virtual character of a target chat member, and display a message sending dynamic effect according to the target message content, where the message sending dynamic effect includes: and the target virtual role executes the message sending action corresponding to the target message content.
15. The interactive chat implementing apparatus of claim 14, wherein the display subunit is specifically configured to:
determining a message sending action corresponding to the target message content;
when the message sending action is an interactive action, displaying the target virtual character and the virtual character of the interactive chat member to interactively execute the action effect of the message sending action;
and when the message sending action is taken as an independent action, displaying the action effect that the target virtual role independently completes the message sending action.
16. An interactive chat implementing apparatus according to claim 14, wherein the content obtaining subunit is configured to:
displaying a message selection area on the virtual scene chat interface, wherein the message selection area comprises at least one action message, and the action message corresponds to corresponding message content and message sending action;
determining a sent target action message based on the selection operation of the target chat member aiming at the message selection area;
taking the message content corresponding to the target action message as the target message content sent by the target chat member;
displaying message sending dynamic effects according to the target message content, comprising: and displaying the message sending action corresponding to the target action message.
17. The interactive chat implementing apparatus of claim 13, further comprising: a background change unit, specifically configured to: monitoring the current chat index information of the chat members in real time; and changing the virtual chat background according to the chat index information.
18. The interactive chat implementing apparatus of claim 13, wherein the message display unit is configured to: and displaying a message carrier sent by the chat members in a message display area corresponding to the virtual roles of the chat members in a stacking arrangement mode, wherein the message carrier carries message contents sent by the chat members.
19. The interactive chat implementing apparatus of claim 18, wherein the message display unit is specifically configured to:
acquiring positioning point position information of a first message carrier, wherein the positioning point position information comprises a first horizontal position of a positioning point in the horizontal direction and a first vertical position of the positioning point in the vertical direction;
adjusting a second vertical position of a positioning point of a second message carrier based on the first vertical position to obtain an adjusted vertical position, wherein the sending time of the second message carrier is earlier than that of the first message carrier;
and updating the display of the second message carrier in the message display area according to the adjusted vertical position, thereby realizing the stacking arrangement effect of the message carriers.
20. The interactive chat apparatus of claim 19, wherein the message display unit is further configured to: comparing the width of the second message carrier with the width of the message display area; adjusting a second horizontal position of a positioning point of a second message carrier according to the width comparison result to obtain an adjusted horizontal position; and updating the display of the second message carrier in the message display area according to the adjusted vertical position and the adjusted horizontal position.
21. The interactive chat apparatus of claim 19, wherein the message display unit is further configured to: adjusting the arrangement position of the second message carrier in the arrangement direction according to the sending time of the second message carrier to obtain an adjusted arrangement position; and updating the display of the second message carrier in the message display area according to the adjusted disposal position, the adjusted horizontal position and the adjusted arrangement position.
22. A terminal for interactive chat implementations, comprising: a processor and a memory; the memory stores a plurality of instructions, and the processor loads the instructions stored in the memory to perform the steps of the interactive chat implementing method of any one of claims 1-12.
23. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the method of any of claims 1-12.
CN201910097558.9A 2019-01-31 2019-01-31 Interactive chat implementation method, device, terminal and storage medium Active CN109885367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910097558.9A CN109885367B (en) 2019-01-31 2019-01-31 Interactive chat implementation method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910097558.9A CN109885367B (en) 2019-01-31 2019-01-31 Interactive chat implementation method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109885367A CN109885367A (en) 2019-06-14
CN109885367B true CN109885367B (en) 2020-08-04

Family

ID=66927649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910097558.9A Active CN109885367B (en) 2019-01-31 2019-01-31 Interactive chat implementation method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109885367B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110384924A (en) * 2019-08-21 2019-10-29 网易(杭州)网络有限公司 The display control method of virtual objects, device, medium and equipment in scene of game
CN111309886B (en) * 2020-02-18 2023-03-21 腾讯科技(深圳)有限公司 Information interaction method and device and computer readable storage medium
US11782577B2 (en) 2020-12-22 2023-10-10 Snap Inc. Media content player on an eyewear device
US11797162B2 (en) 2020-12-22 2023-10-24 Snap Inc. 3D painting on an eyewear device
US12105283B2 (en) * 2020-12-22 2024-10-01 Snap Inc. Conversation interface on an eyewear device
CN113395201B (en) * 2021-06-10 2024-02-23 广州繁星互娱信息科技有限公司 Head portrait display method, device, terminal and server in chat session
CN113521758B (en) * 2021-08-04 2023-10-24 北京字跳网络技术有限公司 Information interaction method and device, electronic equipment and storage medium
CN114168044A (en) * 2021-11-30 2022-03-11 完美世界(北京)软件科技发展有限公司 Interaction method and device for virtual scene, storage medium and electronic device
CN114237540A (en) * 2021-12-20 2022-03-25 安徽教育出版社 Intelligent classroom online teaching interaction method and device, storage medium and terminal
CN117654062A (en) * 2022-08-23 2024-03-08 腾讯科技(成都)有限公司 Virtual character display method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375178A (en) * 2015-07-23 2017-02-01 小米科技有限责任公司 Message display method and device based on instant messaging
CN107885561A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 The method and device of message interface information is provided
CN108234276A (en) * 2016-12-15 2018-06-29 腾讯科技(深圳)有限公司 Interactive method, terminal and system between a kind of virtual image

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286304C (en) * 2004-01-09 2006-11-22 北京讯通佳网网络技术有限公司 Method of realizing scene chat between customers in instant communication
CN103177173B (en) * 2011-12-23 2015-04-22 腾讯科技(深圳)有限公司 Method and device for selecting network virtual character attiring
CN103368816A (en) * 2012-03-29 2013-10-23 深圳市腾讯计算机系统有限公司 Instant communication method based on virtual character and system
KR101540544B1 (en) * 2014-09-05 2015-07-30 서용창 Message service method using character, user device for performing the method, message application comprising the method
EP3224733A4 (en) * 2014-11-25 2018-07-18 Loud-Hailer Inc. Local and temporal method and system of broadcasting via peer-to-peer network
CN108965101B (en) * 2017-05-26 2020-10-13 腾讯科技(深圳)有限公司 Session message processing method, device, storage medium and computer equipment
CN108989268B (en) * 2017-06-01 2021-03-02 腾讯科技(深圳)有限公司 Session display method and device and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375178A (en) * 2015-07-23 2017-02-01 小米科技有限责任公司 Message display method and device based on instant messaging
CN107885561A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 The method and device of message interface information is provided
CN108234276A (en) * 2016-12-15 2018-06-29 腾讯科技(深圳)有限公司 Interactive method, terminal and system between a kind of virtual image

Also Published As

Publication number Publication date
CN109885367A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109885367B (en) Interactive chat implementation method, device, terminal and storage medium
CN107294838B (en) Animation generation method, device and system for social application and terminal
US9526994B2 (en) Deferred teleportation or relocation in virtual worlds
US6349301B1 (en) Virtual environment bystander updating in client server architecture
JP6022953B2 (en) Avatar service system and method for providing avatar in service provided in mobile environment
US9724610B2 (en) Creation and prioritization of multiple virtual universe teleports in response to an event
CN108984087A (en) Social interaction method and device based on three-dimensional avatars
JP2013156986A (en) Avatar service system and method provided through wired or wireless web
CN113648650B (en) Interaction method and related device
CN113826147A (en) Improvements in animated characters
CN111757771B (en) Team gaming operations with users nearby using gaming platforms
KR100957858B1 (en) Avatar presenting method and computer readable medium processing the method
US8631334B2 (en) Virtual world presentation composition and management
CN101620741A (en) Interactive generation method for realistic virtual incarnate model based on component library
US20230298297A1 (en) Layered clothing that conforms to an underlying body and/or clothing layer
KR102079321B1 (en) System and method for avatar service through cable and wireless web
CN100425023C (en) Method and system for displaying element in network game
CN115526967A (en) Animation generation method and device for virtual model, computer equipment and storage medium
JP2020077270A (en) Method for generating 3D object arranged in virtual reality space
JP7549312B2 (en) Information processing system, information processing method, and program
TWI799195B (en) Method and system for implementing third-person perspective with a virtual object
JP7265085B1 (en) Information processing system, information processing method, and program
WO2024055811A1 (en) Message display method and apparatus, device, medium, and program product
WO2007007020A1 (en) System of animated, dynamic, expresssive and synchronised non-voice mobile gesturing/messaging
CN118363687A (en) Social element display method, device, equipment, medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant