CN109885367A - 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
CN109885367A
CN109885367A CN201910097558.9A CN201910097558A CN109885367A CN 109885367 A CN109885367 A CN 109885367A CN 201910097558 A CN201910097558 A CN 201910097558A CN 109885367 A CN109885367 A CN 109885367A
Authority
CN
China
Prior art keywords
message
chat
virtual
virtual scene
display area
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.)
Granted
Application number
CN201910097558.9A
Other languages
Chinese (zh)
Other versions
CN109885367B (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

Abstract

The embodiment of the invention discloses a kind of interactive chat implementation method, device, terminal and storage mediums;The embodiment of the present invention can receive virtual scene chat instruction;It is chatted to instruct according to the virtual scene and obtains virtual scene material data;Show that virtual scene chat interface, the virtual scene chat interface include the virtual role of cyberchat background and chat member according to the virtual scene material data;In the corresponding message display area of virtual role of chat member, the message content that the chat member sends is shown, wherein the virtual role is corresponding with the position of its message display area.The interaction of the chat based on virtual scene may be implemented in the program.

Description

Interactive chat implementation method, device, terminal and storage medium
Technical field
The present invention relates to communication technique fields, and in particular to a kind of interactive chat implementation method, device, terminal and storage are situated between Matter.
Background technique
With the development of communication technologies, occur many chat class applications on the market at present.The application of chat class provides at present Chat interface carries out chat sessions for user.
Summary of the invention
The embodiment of the present invention provides a kind of interactive chat implementation method, device, terminal and storage medium, may be implemented to be based on The chat of virtual scene interacts.
The embodiment of the invention provides a kind of interactive chat implementation methods, comprising:
Receive virtual scene chat instruction;
It is chatted to instruct according to the virtual scene and obtains virtual scene material data;
Show that virtual scene chat interface, the virtual scene chat interface include according to the virtual scene material data The virtual role of cyberchat background and chat member;
In the corresponding message display area of virtual role of chat member, described chat in the message that member sends is shown Hold, wherein the virtual role is corresponding with the position of its message display area.
Correspondingly, the embodiment of the invention provides a kind of interactive chat realization devices, comprising:
Receiving unit, for receiving virtual scene chat instruction;
Acquiring unit obtains virtual scene material data for chatting to instruct according to the virtual scene;
Interface display unit, for showing virtual scene chat interface, the void according to the virtual scene material data Quasi- scene chat interface includes the virtual role of cyberchat background and chat member;
Message display unit, for showing the chat in the corresponding message display area of virtual role of chat member The message content that member sends, wherein the virtual role is corresponding with the position of its message display area.
Correspondingly, the embodiment of the invention also provides a kind of terminals, comprising: processor and memory;The memory matter It is stored with a plurality of instruction, the processor loads the instruction of the memory storage to execute any offer of the embodiment of the present invention Step in interactive chat implementation method.
Correspondingly, the embodiment of the present invention also provides a kind of storage medium, the storage medium is stored with instruction, described instruction Step in the interactive chat method of any offer of the embodiment of the present invention is provided when being executed by processor.
The embodiment of the present invention can receive virtual scene chat instruction;Instruction acquisition is chatted virtually according to the virtual scene Scene material data;Virtual scene chat interface, virtual scene chat circle are shown according to the virtual scene material data Face includes the virtual role of cyberchat background and chat member;In the corresponding message display region of virtual role of chat member Domain shows the message content that the chat member sends, wherein the virtual role is opposite with the position of its message display area It answers.The interaction of the chat based on virtual scene may be implemented in the program.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 a is the structural schematic diagram of interactive chat system provided in an embodiment of the present invention;
Fig. 1 b is that the process of interactive chat implementation method provided in an embodiment of the present invention is intended to;
Fig. 1 c is virtual scene selection schematic diagram provided in an embodiment of the present invention;
Fig. 1 d is virtual scene chat interface schematic diagram provided in an embodiment of the present invention;
Fig. 1 e is another virtual scene chat interface schematic diagram provided in an embodiment of the present invention;
Fig. 2 is virtual scene chat load logic schematic diagram provided in an embodiment of the present invention;
Fig. 3 a is GamePlay architecture diagram provided in an embodiment of the present invention;
Fig. 3 b is openGL rendering pipeline schematic diagram provided in an embodiment of the present invention;
Fig. 4 a is sending action processing flow schematic diagram provided in an embodiment of the present invention;
Fig. 4 b is reception movement processing flow schematic diagram provided in an embodiment of the present invention;
Fig. 4 c is mirror logic processing schematic provided in an embodiment of the present invention;
Fig. 5 a is that action message provided in an embodiment of the present invention sends schematic diagram;
Fig. 5 b is that action message provided in an embodiment of the present invention sends schematic diagram;
Fig. 5 c is that action message provided in an embodiment of the present invention sends schematic diagram;
Fig. 6 a is bubble anchor point schematic diagram provided in an embodiment of the present invention;
Fig. 6 b is bubble display area provided in an embodiment of the present invention schematic diagram;
Fig. 6 c is wrap text schematic diagram provided in an embodiment of the present invention;
Fig. 6 d is that bubble arrangement stacked arrangement provided in an embodiment of the present invention realizes logic;
Fig. 6 e is virtual scene chat interface operation chart provided in an embodiment of the present invention;
Fig. 7 a is that another process of interactive chat implementation method provided in an embodiment of the present invention is intended to;
Fig. 7 b is another virtual scene chat interface schematic diagram provided in an embodiment of the present invention;
Fig. 8 a is a kind of structural schematic diagram of interactive chat realization device provided in an embodiment of the present invention;
Fig. 8 b is another structural schematic diagram of interactive chat realization device provided in an embodiment of the present invention;
Fig. 8 c is another structural schematic diagram of interactive chat realization device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of interactive chat implementation method, device, terminal and storage medium.
The embodiment of the invention provides an interactive chat systems, comprising: interactive chat provided in an embodiment of the present invention is realized Device, the interactive chat realization device can integrate in the terminal, which can be mobile phone, tablet computer, laptop Etc. equipment.In addition, interactive chat system can also include other equipment, for example, the equipment such as server.
For example, interactive chat system includes terminal and server with reference to Fig. 1 a, wherein terminal is integrated with implementation of the present invention The interactive chat realization device that example provides.Terminal and server pass through network connection.
Wherein, terminal can receive virtual scene chat instruction;It is chatted to instruct according to virtual scene and obtains virtual scene element Material data (as included virtual background material data, virtual role material data);For example, terminal can obtain virtually from server Scene material data.Then, terminal can show virtual scene chat interface, the virtual scene according to virtual scene material data Chat interface includes the virtual role of cyberchat background and chat member;It is aobvious in the corresponding message of virtual role of chat member Show region, the message content that display chat member sends, wherein the position of the virtual role of message display area and chat member It is corresponding.
It is described in detail separately below.It should be noted that the sequence of following embodiment is not as preferably suitable to embodiment The restriction of sequence.
In one embodiment, it will be described from the angle of interactive chat realization device, interactive chat realization device tool Body can integrate in terminal.
As shown in Figure 1 b, a kind of interactive chat implementation method is provided, which can be by terminal Processor executes, and detailed process can be such that
101, virtual scene chat instruction is received.
Wherein, the triggering mode of virtual scene chat instruction can there are many, for example, in one embodiment, user can be with Virtual scene chat instruction is triggered by the user interface of chat client.The user interface is aobvious for chat client That shows carries out the interface of chatting operation for user.
For example, the user interface can be common chat sessions interface;It can be set in common chat sessions interface Set virtual scene chat control;User can carry out operation triggering virtual scene chat instruction to virtual scene chat control, from And switch to virtual scene chat.At this point it is possible to receive in the common chat sessions interface that chat user passes through chat client The virtual scene of virtual scene chat control triggering, which is chatted, to be instructed.
In another example the user interface can be chat sessions list interface, chat sessions list interface includes at least One chat sessions when practical application, can chat control in the virtual scene that each chat sessions are arranged in list interface, user The control that can be chatted by the virtual scene to some chat sessions carries out operation triggering virtual scene chat instruction, hence into The virtual scene chat interface of the chat sessions, chats under virtual scene.It is arranged at this point it is possible to receive user by chat sessions The virtual scene of the virtual scene chat control triggering of chat sessions, which is chatted, in surface and interface instructs.
In one embodiment, in the case where default Virtual scene Chat mode, if user interface is chat meeting List interface is talked about, chat sessions list interface includes at least one chat sessions, and user can operate for chat sessions Virtual scene chat instruction is triggered, hence into the virtual scene chat interface of the chat sessions, is chatted under virtual scene.This When, it can receive virtual scene chat instruction of the user by chat sessions triggering in chat sessions list interface.
Wherein, virtual scene is Virtual space environment;This concept is applied to chat interface by the embodiment of the present invention, here " virtual scene " refer to interface simulation space, simulation space may include the space (a such as bedroom) of simulation reality, can also To include the space (a such as strange beast city) of illusion.
102, it is chatted to instruct according to virtual scene and obtains virtual scene material data.
Wherein, virtual scene material data may include virtual background material data, virtual role material data, in addition, Virtual scene material data can be with cartoon material data etc..Wherein, virtual background material data may include virtual background figure As data etc., virtual role material data may include virtual portrait material data etc..
In one embodiment, if virtual scene material data has been previously downloaded to local situation, at this point it is possible to root Obtain virtual scene material data from local according to virtual scene chat instruction (such as load virtual scene material data).
In one embodiment, if virtual scene material data is not downloaded, at this point it is possible to be chatted according to virtual scene Instruction downloads virtual scene material data from server.
In practical application, when user initiates virtual scene chat, user can choose the scene of virtual scene, and select Virtual role under the virtual scene;At this point it is possible to obtain virtual scene background material data and the role of role of selection Material data.
For example, step " chatted to instruct according to virtual scene and obtain virtual scene material data ", may include:
It is chatted according to virtual scene and instructs display virtual scene selection interface, virtual scene selection interface includes at least one Candidate virtual scene identity;
Operation is checked based on the scene for candidate virtual scene identity, shows the details interface of candidate virtual scene;
Based on the scene confirmation operation for being directed to details interface, destination virtual scene, and displaying target virtual scene pair are determined The virtual role selection interface answered, virtual role selection interface include the candidate virtual role under destination virtual scene;
Based on the role's confirmation operation for being directed to virtual role selection interface, the target roles of selection are determined;
The virtual scene data of destination virtual scene are obtained, virtual scene data include virtual background material data and target Role's material data of role.
Wherein, the form of candidate virtual scene identity can there are many, for example, include virtual scene number, virtual field The thumbnail of scape, surface plot of virtual scene etc..
For example, when terminal receives virtual scene chat instruction, can show " selection chat theme " boundary with reference to Fig. 1 c Face, selection chat theme interface includes multiple chat themes to be selected, and each chat theme corresponds to a kind of virtual scene.User can Operation is checked to carry out theme to the chat theme in selection chat theme interface, and terminal responds the operation and shows topics details circle Face, the theme details interface include the detail information (3-D image of such as virtual scene) that theme corresponds to virtual scene, and Scene confirms control " confirmation is passed through ".When the user clicks when scene confirmation control " confirmation is passed through ", terminal determines current topic Virtual scene is destination virtual scene, and responds the virtual role selection interface under clicking operation display current topic.One In embodiment, theme details interface can also include that detail information checks control;With reference to Fig. 1 c, detail information is looked into when the user clicks When seeing control, the information interface of terminal response display virtual scene, which includes that information is discussed in detail;When the user clicks Terminal determines that the virtual scene of current topic is destination virtual scene when scene confirms control " confirmation is passed through " in information interface, and Respond the virtual role selection interface under clicking operation display current topic.
Wherein, the candidate virtual role that virtual role selection interface includes is matched virtual angle under the virtual scene of selection Color.With reference to Fig. 1 c, after showing virtual role selection interface, user can select oneself in virtual role selection interface Virtual image role, for example, user can carry out role selecting operation in virtual role selection interface, terminal responds role's choosing Select the virtual image role that operation shows selection.After having selected virtual role, user can click virtual role selection interface In role confirm control " confirmation role ", at this point, terminal determines the virtual role of selection in response to the operation, show virtual field Scape chat interface.Specifically, the virtual background material number of available (such as downloading or local reading) the destination virtual scene of terminal According to, selection virtual role personage's material data, with rendering show virtual scene chat interface.
103, show that virtual scene chat interface, the virtual scene chat interface include void according to virtual scene material data The virtual role of quasi- chat background and the member that chats.
Wherein, virtual role is the virtual image that chat user is represented in virtual scene, may include recombinating vivid organ Or exclusive virtual image is created in dressing, namely may include 2D good image plane or 3D modeling image.
Wherein, cyberchat background can be Virtual space environment;For example, can refer to interface simulation space, simulation is empty Between may include simulation reality space (a such as bedroom), also may include illusion space (a such as strange beast city).It is empty Quasi- chat background can constitute " theme ", such as future city theme, monster's forest theme etc. in conjunction with virtual role.One In embodiment, in order to obtain stronger feeling of immersion, the background and role in scene are only for mating selection.
Wherein, chat member is the user for participating in current chat, may include main chat member, visitor chat member, and master chats Its member refers to that this terminal user, i.e., user's (in person) of currently used terminal, visitor chat member are in chat sessions except this Other chat members except terminal user.
Virtual scene chat interface can be the virtual scene chat interface of single chat or group chat in the embodiment of the present invention.? In the case where single chat, virtual scene chat interface includes the virtual role of two chat users, for example, the virtual role of owner, The virtual role of guest.
In the case where group chat, virtual scene chat interface may include the void of two or more chat user Quasi- role, for example, the virtual role of the virtual role of main chat member, other multiple group chat members.
Wherein, virtual scene chat interface further includes the user information (such as pet name) of chat member, for example, can show The pet name (i.e. owner's pet name), good friend's pet name (i.e. guest's pet name) in person.In one embodiment, the user information of member of chatting can be with The position near the virtual role of chat member, for example, being located at virtual role above-head position.
It is a kind of virtual scene chat interface with reference to Fig. 1 d by taking single chat as an example, may include cyberchat background, chat The virtual role of member.My pet name and good friend's pet name are also shown in the interface.
Wherein, with reference to Fig. 1 d, cyberchat scene interface can also include top column (headbar), and top column, which can be set, to be returned Return control (button) and other function control.In addition, cyberchat scene interface can also include that message inputs with reference to Fig. 1 d Column, user can input in message input field sends message content.
In the embodiment of the present invention, terminal, can be to virtual scene material number after getting virtual scene material data According to load rendering is carried out, then virtual scene chat interface after being rendered shows virtual scene chat interface after rendering.
In one embodiment, animation effect can also be shown in virtual scene chat interface, for example, working as virtual scene data It, can be according to virtual role material data (the virtual role material number of all chat members when further including cartoon material data According to), cartoon material data show animation effect virtual scene chat interface.
In one embodiment, wherein, can be to guest for the concord of the virtual scene display of each chat member of guarantee The virtual role material data of chat member carries out mirror image processing.For example, when user A and user B chats, for the side user A Terminal for, user A is owner's (be such as shown on the right of interface, personage direction towards the left side), user B is that guest (is shown in boundary The face left side, personage direction is towards the right);For the terminal of the side user B, user B is that owner is such as shown on the right of interface, personage Direction is towards the right), user A be guest's (be shown in the interface left side, personage direction towards the right).Therefore, regardless of the side user A still In the side user B, the personage direction of guest should all be primitive man's object space to opposite direction, it is therefore desirable to the personage of client Material carries out mirror image processing, to realize the interface performance that user A, the viewing of the side user B are mutually echoed.
For example, in one embodiment, virtual scene data include: virtual background material data, main the virtual of member of chatting Role's material data, visitor chat member virtual material data;Terminal can carry out the virtual material data of visitor chat member Mirror image processing;According to virtual background material data, it is main chat member virtual role material data and mirror image after virtual element Material data show virtual scene chat interface.
For example, the process that virtual scene chat interface is shown may include following process with reference to Fig. 2, load below refers to Be data load rendering:
Scenario resources (i.e. virtual background material) is judged whether there is when entering virtual scene, if not having, downloads scene Resource, loading scenario, if so, being then loaded directly into scene (i.e. load virtual background).
Personage's material (i.e. role's material) is judged whether there is after loading scenario;If there is no personage's material, under it is manned Object material judges whether personage is owner's state;If there is personage's material directly to judge whether personage is owner's state, if owner's state, It is loaded directly into personage, if not owner's state, then load personage after carrying out mirror image processing to personage's material.
After loading personage, it can be determined that whether have default animation material, if not having, download cartoon material, load Character animation, if so, being then loaded directly into character animation.
The display of virtual scene chat interface may be implemented by above-mentioned load logic;It in one embodiment, can be every It is secondary to show when having loaded object (such as scene, personage), it can also be display together after having loaded all objects.
Specific material data loading procedure namely the rendering of virtual scene chat interface of the embodiment of the present invention is described below Process:
It in one embodiment, can (such as Gameplay draws by game engine in order to promote rendering efficiency and image quality Hold up) load of Lai Shixian material,
Can may include: by step " showing virtual scene chat interface according to virtual scene material data "
Virtual scene material data is converted into the material file of game support, material file includes virtual scene material Spatial cue, wherein spatial cue includes rendering objects information and rendering setting information;
Rendering objects information is rendered according to rendering setting information, obtains rendering result;
Virtual scene chat interface is shown according to rendering result.
In one embodiment, game engine may include format conversion layer, operation layer, engine layers and rendering layer;Wherein, lattice Formula conversion layer is used to for virtual scene material data being converted into material file such as GPB (Game Play Byte) lattice of game support The file of formula.Operation layer, for carrying out corresponding function management, such as scene management (SceneManager), camera management (CameraManager), layer-management (LayoutManager), node administration (NodeManager), light management (LightManager) etc..Engine layers auxiliary provides the encapsulation of basis combination and rendering interface.Rendering layer, for rendering work to be arranged Have (such as tinter), realizes rendering.
Specifically, step " according to rendering setting information rendering objects information is rendered ", may include:
The spatial cue of virtual scene material is delivered to operation layer and carries out corresponding function management, and is based on function management Rendering setting parameter and rendering objects parameter are transmitted to engine layers;
It calls rendering setting interface that the rendering tool of rendering layer is set in engine layers, and calls rendering interface using setting Rendering tool renders rendering objects information afterwards, obtains rendering result.
Wherein, be a kind of framework of game engine with reference to Fig. 3 a, including GPB (Game Play Byte) layer, operation layer, Engine layers, openGL layers of (rendering layer), running environment.
Assuming that virtual scene material data is FBX formatted file, FBX file is one of 3D material of current mainstream, in GPB Layer is convertible into GPB file.It can include the relevant information of 3D material in GPB file, such as model information renders setting information, top Point information, animation information etc..
Information above can be delivered to each manager of operation layer, do corresponding function management.It can be based in operation layer Function management is passed to engine layers to be joined, such as transmitting rendering setting parameter and rendering objects parameter;
Engine layers are responsible for providing the encapsulation of each infrastructure component and openGL interface.Specifically, engine layers can be rendered and be set Setting parameter calls rendering setting interface that the rendering tool (such as tinter) of rendering layer is arranged, and calls rendering interface using setting Rendering tool renders rendering objects information afterwards.
OpenGL layers are mainly arranged vertex shader and fragment shader, and setting after stain device is utilized to control the wash with watercolours of GPU Pipeline is contaminated, color applying drawing is completed.For example, being the schematic diagram of openGL rendering pipeline with reference to Fig. 3 b.
104, in the message that the corresponding message display area of virtual role of chat member, display chat member are sent Hold, wherein message display area is corresponding with the chat position of virtual role of member.
In the embodiment of the present invention, it may include two by taking single chat as an example that each chat member, which has a message display area, A message display area, i.e., it is main chat member message display area, visitor chat member message display area;For example, as schemed 1e, may include I message display area, good friend message display area.
Wherein, each message display area at chat member is corresponding with the virtual role of chat member, specifically, The message display area of chat member is corresponding with the chat position of virtual role of member.It can be lifted at virtual scene in this way By the corresponding relationship of virtual role and message in chat interface, allow user be easy to know " which role who is? it is assorted saying ? ", greatly improve chat efficiency.
For example, in the two-dimensional coordinate system (XY axis) at cyberchat scene interface, the message display area for the member that chats with The position of the virtual role of chat member is corresponding on X or Y-axis.For example, each virtual role and its message are shown with reference to Fig. 1 e Region is corresponding in Y-axis, wherein the message content that chat member sends, it can be in the message display area above its virtual role Display.For example, as shown in figs. 1 d and 1e, showing that each chat member sends on the virtual role crown of each chat member Message bubble (include message content).Chat member can be quickly recognized in virtual scene chat interface which chat at Member has sent any message.
In one embodiment, it can also show that message sends dynamic effect, promote chat interest and interactivity.For example, when chatting When its member sends message (including main chat member sends message or visitor chat member sends message), can chat member Virtual role corresponding movement can be made based on the message content of transmission.
Step is " in the message that the corresponding message display area of virtual role of chat member, display chat member are sent Hold ", may include:
Obtain the target message content that target chat member sends;
In the corresponding message display area of destination virtual role of target chat member, displaying target message content, and Show that message sends dynamic effect according to target message content, it includes: in destination virtual role's performance objective message that message, which sends dynamic effect, Hold corresponding message sending action.
Wherein, target chat member is the chat member of currently transmitted message in chat sessions, and can chat member based on (such as me) or visitor's chat member (such as other people).
For example, can receive the message that target chat member sends, from connecing when target chat member is visitor chat member Target message content is obtained in the message received, is shown in the message display area of chat member comprising target message content Message carrier such as message bubble, and the dynamic effect of corresponding message is shown according to target message content.When target chat member based on chat When its member, available chat member inputs the message content sent, in the corresponding message of the virtual role of chat member Display area shows the message carrier of bearer messages content, and shows that corresponding message sends dynamic effect according to the message content.
In the embodiment of the present invention, message sends dynamic effect, stands for me or main chat member, such as target chat member When sending message for I and I, then as message sends dynamic effect;When if target is chatted, member is visitor chat member, that It is the dynamic effect of message sink that message, which sends dynamic effect,.
In the embodiment of the present invention, message sends the animation that dynamic effect may include virtual role execution movement;Disappear for example, executing Cease the corresponding message sending action of content.Wherein, message sending action can be divided into multiple types according to actual needs, than Such as, message sending action divides are as follows: interaction movement, self contained function etc., wherein interaction movement interacts dynamic between virtual role Work, self contained function can be the independent execution of virtual role.In one embodiment, it is mutual can also to be divided into role for interaction movement Movement, background interaction movement etc., interaction movement of the role-play interaction movement between role, background interaction movement can be role Movement etc. is interacted between background.
In the embodiment of the present invention, movement may include the limb action of role, facial expression movement etc..
In one embodiment, different types of dynamic effect can be shown for different type movement, specifically, step " according to Target message content shows that message sends dynamic effect ", may include:
Determine the corresponding message sending action of target message content;
When message sending action is that interaction acts, the virtual role of displaying target virtual role and interactive chat member Interaction executes the dynamic effect of message sending action;
When message sending action is self contained function, displaying target virtual role complete independently message sending action is moved Effect.
In one embodiment, displaying target virtual role, mutual with background when message sending action is background interactive operation Dynamic dynamic effect.
Wherein, interaction movement may include that the interactions movement such as beat one's breast between thigh, role is embraced between role;Self contained function can wrap Include the facial expression movement (such as laugh, wail) of role, the limb action (such as waving) of role.
For example, target chats member as owner, that is, main chat member with reference to Fig. 4 a, when owner sends message, can determine The corresponding message sending action of message content;Judge whether message sending action is interaction movement, if so, display owner's operation Positive action, guest run the dynamic effect passively acted;If it is not, then showing that owner runs the dynamic effect of single stunt.
For another example, with reference to Fig. 4 b, target chats member as guest i.e. visitor's chat member, and terminal master terminal receives guest's hair When the message content sent, it can determine the corresponding message sink movement of message content (for terminal master);Judge that message connects Whether receipts movement is interaction movement, if then showing that guest runs active operation, owner runs the dynamic effect passively acted;If it is not, Then show that guest runs the dynamic effect of single stunt.
In one embodiment, it is dynamic can to show that the corresponding message of action message is sent by sending action message trigger by user Effect;For example, when target chat member based on chat member, that is, owner when, target chat member can choose sending action message, At this point, terminal can show the corresponding message content of action message in the message display area of the role of target chat member, and The corresponding message of the dynamic effect message of display sends dynamic effect.
In one embodiment, specifically, step " obtaining the target message content that target chat member sends ", can wrap It includes:
Message selection region is shown in virtual scene chat interface, message selection region includes at least one action message, Wherein, action message corresponds to corresponding message content, message sends dynamic effect;
It is directed to the selection operation of message selection region based on target chat member, determines the target action message sent;
The target message content that the corresponding message content of target action message is sent as target chat member;
At this point, step " showing that message sends dynamic effect according to target message content ", may include: displaying target action message Corresponding message sends dynamic effect.
Wherein, action message is that dynamic effect, the message of message content (such as default message content) are sent with message;Work as transmission When dynamic effect message, it can show that the corresponding default message content of action message and corresponding message send dynamic effect.
Wherein, it includes that the corresponding message of destination virtual role execution action message is sent that the message of action message, which sends dynamic effect, Movement.For example, the corresponding message sending action of action message can show for " beating one's breast " when sending the action message The dynamic effect of " beating one's breast ", user will be appreciated that mastership role beats the chest of guest role.
Wherein, the triggering mode that message selection region is shown can there are many, for example, user can chat for virtual scene Its interface carries out operation to trigger display message selection region;It for example, can be in the function at virtual scene interface or interface Action message control is set in column, when user selects area to action message control operation such as clicking operation triggering display message Domain.
For example, user can carry out operation triggering at two days interfaces of virtual scene by virtual scene interface with reference to Fig. 5 a Bottom (such as input field below) display action message select page, including the movement such as " beating one's breast ", " not mentionleting alone words XX ", " embracing thigh " Message.When user's selection " embracing thigh " action message, terminal can be shown in the message display area of mastership role comprising disappearing The message bubble of breath content " embracing thigh " simultaneously shows " embracing thigh " corresponding dynamic effect simultaneously, as mastership role will be flushed to guest Role embraces its thigh in front.
In the embodiment of the present invention, the realization that message sends dynamic effect can refer to above-mentioned data load process, for example, can be first Then loading scenario, load personage load animation to realize that message sends dynamic effect.In one embodiment, it is contemplated that Zhu Kejie The direction that role shows in face is opposite direction, also needs to carry out mirror image processing to the material of guest when realizing dynamic effect.
Specifically, " displaying target virtual role and the interaction of the virtual role of interactive chat member execute message and send step Movement dynamic effect ", may include:
Obtain personage's material of interactive chat member, personage's material of target chat member and dynamic effect data;
Mirror image processing is carried out to personage's material of intercommunication chat member, obtains personage's material after mirror image;
According to personage's material after mirror image, personage's material of target chat member and dynamic data, displaying target virtual role, The dynamic effect of message sending action is executed with the virtual role interaction of interactive chat member.
Wherein, according to the owner that chats in client end interface on the right side, good friend, can for the figure image of guest in left habit With mirror logic.Mirror logic, such as can be real by mode shown in Fig. 4 c by the realization of overturning personage Node matrix Mirror image of the existing personage in X-axis.
For example, user can carry out operation triggering at two days interfaces of virtual scene by virtual scene interface with reference to Fig. 5 b Bottom (such as input field below) display action message select page, including the action messages such as " tourney ", " foot is kicked ", " quarrel ". When user selects " tourney " action message and sends, terminal can be shown in the message display area of mastership role comprising " ratio It is military " it corresponds to the message bubble of text and shows " tourney " corresponding dynamic effect simultaneously, as mastership role and guest role both sides use Weapon is mutually beaten, wherein Fig. 5 b is the dynamic effect signal that owner's client is shown, Fig. 5 c is moving of show of client or good friend's client Effect signal.
In one embodiment, the display mode of message content can there are many, for example, can be by the way of stacked arrangement The message content that display chat member sends, for example, when using message carrier bearer messages content, with reference to Fig. 1 d and Fig. 1 e, The message bubble that chat member sends shows that stacked arrangement is shown in the message of virtual role.
Specifically, " in the corresponding message display area of virtual role of chat member, display chat member sends step Message content " may include:
By the way of stacked arrangement, chat member the corresponding message display area of virtual role, display chat at The message carrier that member sends, the message content that message carrier carrying chat member sends.
Wherein, stacked arrangement can be with: along some direction stacked arrangement message carrier or message content in space, than It such as, specifically, can be based on message sending time along some direction stacked arrangement message carrier or message content in space. For example, in latest news carrier or message content topmost, the message carrier or message content sent before is sequentially stacked on Below latest news carrier or message content.
Wherein, the direction of message carrier or the stacked arrangement of message content can be set according to actual needs, for example, building It can be X-axis or Y direction in the case of the two-dimensional coordinate system in delimitation face;It, can in the three-dimensional system of coordinate for establishing face Think X, Y or Z-direction.Namely stacked arrangement can be two dimension stacking or three-dimensional stacked.
Below to introduce the realization side of message carrier stacked arrangement for vertical direction such as Y direction are to stacked arrangement Formula:
For example, step " by the way of stacked arrangement, in the corresponding message display area of virtual role of chat member, Show the message carrier that chat member sends ", may include:
Obtain first message carrier locating point position information, locating point position information include anchor point in the horizontal direction First level position, the first upright position in vertical direction;
Based on the first upright position, the second upright position of the anchor point of second message carrier is adjusted, is adjusted Upright position after whole, wherein sending time of the sending time of second message carrier earlier than first message carrier;
Second message carrier is updated in the display of message display area according to upright position after adjustment, to realize that message carries Body stacked arrangement effect.
For example, the location information of the current anchor point of latest news carrier is obtained when needing to show latest news carrier, Location information includes horizontal position, the upright position of anchor point in vertical direction of anchor point in the horizontal direction;Based on working as The upright position of prelocalization point is adjusted the historic vertical position of the history anchor point of history message carrier, is adjusted Upright position afterwards;The display of history message carrier, and the position according to current anchor point are updated according to upright position after adjustment Information shows latest news carrier in the corresponding message display area of virtual role of chat member.
Wherein, the location information of anchor point may include horizontal position of the anchor point in the horizontal direction in (such as X-axis), positioning Upright position of the point in vertical direction (such as Y-axis);For example, including the coordinate (x, y) of anchor point.The location information of anchor point is determined The display position of message carrier is determined, for example, the location information of current anchor point determines the display position of latest news carrier.With reference to Fig. 6 a, bubble positioning datum point P decide the display position of bubble, which is the positioning datum point of left side role bubble.
Wherein, the adjustment mode of upright position may include a variety of, work as example, historic vertical positional value can be set and be equal to The upright position of prelocalization point+positional value increment, the positional value increment can be positive, or negative.The positional value increment can Think a Fixed constant, can also be determined based on function.
Such as, it is assumed that there are two message bubbles of α, β, the transmission of the sending time of α closer (such as latest news bubble), β disappears Breath is earlier (such as history message bubble).Wherein, α bubble, β bubble anchor point P point coordinate be (x α, y α), (x β, y β) respectively. At this point, for realize stacked arrangement, can the y α based on α bubble y β in β bubble is adjusted.Specifically, y β=y α+M, In, M is bubble difference in height rule change, which can set according to actual needs, for example, can be thought as definite value, for example, M= 10px (pixel), M are also possible to determine based on function, such as M=10+ (n-1) * 2.
It in one embodiment, can also be to the anchor point of the message carrier sent before in order to realize stacked arrangement effect Horizontal position (such as the X axis coordinate in point site) is adjusted.Specifically, step is " by the way of stacked arrangement, in chat member The corresponding message display area of virtual role, display chat member send message carrier " can also include:
The width of the width of second message carrier and message display area is compared;
It is adjusted, is adjusted according to the second horizontal position of the width versus result to the anchor point of second message carrier Horizontal position afterwards;
Second message carrier is updated in the display of message display area according to upright position after adjustment, comprising:
Second message carrier is updated in the aobvious of message display area according to horizontal position behind upright position after adjustment and adjustment Show.
Wherein, the width of message carrier is the width of message carrier in the horizontal direction, for example, when message carrier is rectangle When message bubble, as the width of message bubble is rectangle width in the horizontal direction.
For example, in one embodiment, when the width of second message carrier is equal to the width of message display area, then by the Second horizontal position of the anchor point of two message carriers is set as some position, for example, being set as zero;For another example, when second disappears When the width of breath carrier is less than the width of message display area, second can be determined at random in the width range of message display area Horizontal position value.
For example, when message bubble width w=x2 (message display area width), then the x=of message bubble anchor point 0, the bubble Ω with reference to shown in Fig. 6 d;As message bubble width w < x2, then the x of message bubble anchor point is determined at random, and X is less than x2, the bubble β with reference to shown in Fig. 6 d.It is, being moved at random in region if bubble width w is less than display area x2 It is dynamic.
Specifically, with reference to Fig. 6 a, P point is left side role bubble positioning datum point, and text is not when entering a new line in w0=bubble Natural length.It is the division of host and guest message display area, wherein the bubble that each scene of y0=defines is shown with reference to Fig. 6 b The maximum height in region, the maximum width of the bubble display area of the left side x1=role, the bubble viewing area of the right x2=role The maximum width in domain.Wherein, y0 can be set according to actual needs, for example, can change in different scenes, to adapt to most Good display effect.X1, x2 needs do display screen video processing, under normal circumstances, x1=x2=x, i.e. host and guest's bubble viewing area Screen is divided in domain equally.Position such as y0, x1, x2 are the relative position in screen in the embodiment of the present invention, are not absolute positions, real It is adjustable according to demand in the application of border.
It in one embodiment, can be by the length w0 of text to be shown and angle when showing message carrier or message content The width x of the message display area of color is compared, to enter a new line to text, obtains the wide height of message carrier.For example, with reference to Text can be produced the stock w0 and width x2 of owner's bubble display area and compared by Fig. 6 c by taking owner shows bubble as an example, root Wrap text is carried out according to comparing result to show, and obtains the wide height of bubble.For example, working as w0 > x2, text enters a new line, and obtains bubble Width w=x2 and bubble height h;As w0≤x2, w=wo and bubble height are h, bubble original height.
It in one embodiment, can also be to the message carrier sent before in order to which stacked arrangement effect is better achieved Position of the anchor point in orientation is adjusted;Specifically, step is " by the way of stacked arrangement, chat member's The corresponding message display area of virtual role shows the message carrier that chat member sends ", can also include:
Arrangement position of the second message carrier in orientation is adjusted according to the sending time of second message carrier It is whole, it is adjusted rear arrangement position;
At this point, step " it is aobvious in message to update second message carrier according to horizontal position behind upright position after adjustment and adjustment Show the display in region ", it may include: according to arrangement position behind horizontal position after disposal site, adjustment after adjustment and adjustment, more Display of the new second message carrier in message display area.
Wherein, orientation is the direction of message carrier or message content stacked arrangement, for example, the direction can be according to reality Border demand setting, for example, being Z-direction, at this point, sorting position is z coordinate value of the message carrier on Z axis with reference to Fig. 6 d.
Wherein, the arrangement position of message carrier can be determined according to the sending time of message carrier, for example, sending time is got over Early arrangement position (such as z coordinate) is bigger namely sorting position (such as z coordinate) more rearward;More late arrangement position (such as z of sending time Coordinate) smaller namely sorting position is more forward.
It in one embodiment, can be based on the sending time ranking results between second message carrier and first message carrier Setting is updated to the arrangement position of second message carrier and first message carrier.
For example, for establishing three-dimensional coordinate system XYZ, it is assumed that have two message bubbles of α, β, the sending time of α is closer The transmission message of (such as latest news bubble), β are earlier (such as history message bubble).Wherein, the anchor point P point of α bubble, β bubble Coordinate is (x α, y α, z α), (x β, y β, z β) respectively.At this point, for realize stacked arrangement, can the y α based on α bubble to β bubble Middle y β is adjusted, such as y β=y α+M.The comparison result of width x2 based on β bubble and message display area sets x β It sets, such as when message bubble width w=x2 (message display area width), then the x=0 of message bubble anchor point, with reference to figure Bubble Ω shown in 6d;As message bubble width w < x2, then the x of message bubble anchor point is determined at random, and x is less than x2, The bubble β with reference to shown in Fig. 6 d.It is, if bubble width w is less than display area x2, the random movement in region.Meanwhile Sending time based on α bubble, β bubble is updated setting to z α, z β, and z α=0, z β < z α is such as arranged.To realize β bubble With the stacked arrangement effect of α bubble.
Similarly analogize, for other history bubbles, as third bubble Ω can using aforesaid way to coordinate xyz value into Row updates, to realize bubble stacked arrangement effect in message display area.
In one embodiment, to allow user that can identify the sending time of outbound message, when can be sent for different messages Between using different display parameters show message, message is distinctly displayed with message based sending time.
For example, " in the corresponding message display area of virtual role of chat member, what display chat member sent disappears step Cease content ", may include:
When needing to show the latest news content that chat member sends, joined according to the corresponding display of latest news content Number shows latest news content in the corresponding message display area of virtual role of chat member;
According to the message sending time of history message content to the display parameters of history message content in message display area It is adjusted, the display of history message content is updated according to display parameters after adjustment.
Wherein, display parameters are the display parameters of message content, may include that opacity (or transparency), font are big At least one of small, color etc. parameter.In practical application, when passing through message carrier bearer messages content, display parameters It can be the display parameters of message carrier, such as the display parameters of bubble.
For example, can use transparency change, font variation with reference to Fig. 1 c and Fig. 1 d and stack effect, manufacture bubble row The space depth feelings of column, show the chronological order of message, and the message of different time is distinguished convenient for user.
In one embodiment, after showing virtual scene chat interface, user can also carry out operation browsing to interface Cyberchat background checks message etc..For example, terminal can be browsed based on chat member for the background at virtual scene interface Operation, extension display cyberchat background;For example, other non-display portions of display cyberchat background.Background browsing behaviour Work may include slide, such as left or right slide.
For another example, terminal is also based on chat member and checks operation for the message at virtual scene interface, shows history Message, for example, can be shown history message rolls forward in the case where stacked arrangement.
For example, with reference to Fig. 6 e, user, which can horizontally slip, browses cyberchat background, slides up and down and checks message.
In one embodiment, the chat background of virtual scene can follow the information such as chat index to be changed, for example, real When the current chat indication information of monitoring chat member;Cyberchat background is changed according to chat indication information.
Wherein, chat indication information may include chat liveness, chat cohesion etc., for example, in virtual background Virtual objects can be changed according to chat liveness, and the liveness that for example one tree in background is chatted according to user is long Height is bloomed, result.
From the foregoing, it will be observed that the interaction of the chat based on virtual scene may be implemented in the embodiment of the present invention, in addition, also solving " empty The intuitive correspondence problem of anthropomorphic object " and " bubble message ": what who has said at what time, greatly promotes chat experience.
In addition, virtual portrait can be runed with chat background material, it can select according to actual needs, meet user to chat The individualized selection of atmosphere, the dynamic arrangement of bubble message breach traditional visual experience, give people more slim and graceful active sense By, and greatly promote different time message resolution.
According to the content of foregoing description, method provided in an embodiment of the present invention will be illustrated below.
Specifically, by taking interactive chat realization device is integrated in terminal (being such as integrated in terminal in client form) as an example, come The method of the present invention is discussed in detail.
With reference to Fig. 7 a, a kind of interactive chat implementation method, detailed process may include:
701, terminal receives virtual scene chat instruction.
Wherein, virtual scene chat instruction triggering mode can there are many, can refer to above-described embodiment introduction.
702, terminal, which chats to instruct according to virtual scene, obtains virtual scene material data.
Wherein, virtual scene material data may include virtual background material data, virtual role material data, in addition, Virtual scene material data can be with cartoon material data etc..Wherein, virtual background material data may include virtual background figure As data etc., virtual role material data may include virtual portrait material data etc..
The introduction of above-described embodiment can specifically be referred to.
703, terminal shows that virtual scene chat interface, virtual scene chat interface include according to virtual scene material data The virtual role of cyberchat background and chat member.
Wherein, virtual role is the virtual image that chat user is represented in virtual scene, may include recombinating vivid organ Or exclusive virtual image is created in dressing, namely may include 2D good image plane or 3D modeling image.
Wherein, cyberchat background can be Virtual space environment;For example, can refer to interface simulation space, simulation is empty Between may include simulation reality space (a such as bedroom), also may include illusion space (a such as strange beast city).It is empty Quasi- chat background can constitute " theme ", such as future city theme, monster's forest theme etc. in conjunction with virtual role.One In embodiment, in order to obtain stronger feeling of immersion, the background and role in scene are only for mating selection.
Specifically, the loaded and displayed process of virtual scene chat interface can refer to the description of above-described embodiment.
For example, terminal shows virtual scene chat interface as shown in Figure 7b according to virtual scene material data, wherein empty Quasi- scene chat interface includes my virtual role, good friend's virtual role, and the message that I sends is shown in my virtual role The message display area of top, the message that good friend sends are shown in the message display area above good friend's virtual role.In addition, My virtual role, good friend's virtual role peripheral position such as above-head position show the respective user information such as pet name Deng.
704, terminal obtains the target message content that target chat member sends.
Wherein, target chat member is the chat member of currently transmitted message in chat sessions, and can chat member based on (such as me) or visitor's chat member (such as other people).
For example, can receive the message that target chat member sends, from connecing when target chat member is visitor chat member Target message content is obtained in the message received.When target chat member based on chat member when, available chat member is defeated Enter the message content of transmission.
Message content can be with the corresponding message content of action message, for example, when user selects to send in one embodiment When action message, the corresponding message content of available action message.
705, terminal is in the corresponding message display area of destination virtual role of target chat member, displaying target message Hold, and show that message sends dynamic effect according to target message content, it includes: destination virtual role's performance objective that message, which sends dynamic effect, The corresponding message sending action of message content.
Wherein, message display area is corresponding with the chat position of virtual role of member.
Wherein, each message display area at chat member is corresponding with the virtual role of chat member, specifically, The message display area of chat member is corresponding with the chat position of virtual role of member.It can be lifted at virtual scene in this way By the corresponding relationship of virtual role and message in chat interface, allow user be easy to know " which role who is? it is assorted saying ? ", greatly improve chat efficiency.
For example, terminal can be by the way of stacked arrangement, in the corresponding message display region of virtual role of chat member Domain, the message carrier that display chat member sends, the message content that message carrier carrying chat member sends.Specifically, it stacks The implementation for arranging display effect can refer to the introduction of above-described embodiment.
Wherein, show that message sends the dynamic mode imitated and can refer to the description of above-described embodiment according to message content.
For example, user can carry out operation triggering at two days interfaces of virtual scene by virtual scene interface with reference to Fig. 5 a Bottom (such as input field below) display action message select page, including the movement such as " beating one's breast ", " not mentionleting alone words XX ", " embracing thigh " Message.When user's selection " embracing thigh " action message, terminal can be shown in the message display area of mastership role comprising disappearing The message bubble of breath content " embracing thigh " simultaneously shows " embracing thigh " corresponding dynamic effect simultaneously, as mastership role will be flushed to guest Role embraces its thigh in front.
From the foregoing, it will be observed that the interaction of the chat based on virtual scene may be implemented in the embodiment of the present invention, in addition, also solving " empty The intuitive correspondence problem of anthropomorphic object " and " bubble message ": what who has said at what time, greatly promotes chat experience.
In addition, display dynamic effect when message is sent may be implemented in the embodiment of the present invention, user's chat body is greatly improved It tests.
For the ease of better implementation interactive chat implementation method provided in an embodiment of the present invention, also mention in one embodiment A kind of interactive chat realization device is supplied, which is suitable for terminal.The wherein meaning of noun and above-mentioned number According to identical in synchronous method, specific implementation details can be with reference to the explanation in embodiment of the method.
In one embodiment, a kind of interactive chat realization device is additionally provided, which specifically can be with In terminal, for example, can be integrated in the form of client in the client, as shown in Figure 8 a, which can It is specific as follows to include: receiving unit 801, acquiring unit 802, interface display unit 803 and message display unit 804:
Receiving unit 801, for receiving virtual scene chat instruction;
Acquiring unit 802 obtains virtual scene material data for chatting to instruct according to the virtual scene;
Interface display unit 803, it is described for showing virtual scene chat interface according to the virtual scene material data Virtual scene chat interface includes the virtual role of cyberchat background and chat member;
Message display unit 804, in the corresponding message display area of virtual role of chat member, display is described to be chatted The message content that its member sends, wherein the virtual role is corresponding with the position of its message display area.
In one embodiment, with reference to Fig. 8 b, message display unit 804 may include:
Content capture unit 8041, the target message content sent for obtaining target chat member;
Subelement 8042 is shown, for showing in the corresponding message display area of destination virtual role of target chat member Show the target message content, and show that message sends dynamic effect according to the target message content, the message sends dynamic effect It include: that the destination virtual role executes the corresponding message sending action of the target message content.
In one embodiment, it shows subelement 8042, can be specifically used for:
Determine the corresponding message sending action of target message content;
When the message sending action is that interaction acts, the destination virtual role and interactive chat member are shown Virtual role interaction executes the dynamic effect of the message sending action;
When the message sending action is self contained function, show that message described in the destination virtual role complete independently is sent out Send the dynamic effect of movement.
In one embodiment, content capture unit 8041, can be used for:
Show that message selection region, the message selection region include that at least one is dynamic in the virtual scene chat interface Make message, wherein action message corresponds to corresponding message content, message sends dynamic effect;
It is directed to the selection operation of message selection region based on target chat member, determines the target action message sent;
The target message content that the corresponding message content of target action message is sent as target chat member;
Show that message sends dynamic effect according to the target message content, comprising: the corresponding message of displaying target action message Send dynamic effect.
In one embodiment, with reference to Fig. 8 c, interactive chat realization device can also include: background change unit 805, specifically For:
The current chat indication information of real-time monitoring chat member;
The cyberchat background is changed according to the chat indication information.
In one embodiment, message display unit 804 can be used for: by the way of stacked arrangement, chat member's The corresponding message display area of virtual role shows that the message carrier that the chat member sends, the message carrier carry institute State the message content that chat member sends.
In one embodiment, message display unit 804 can be specifically used for:
The locating point position information of first message carrier is obtained, the locating point position information includes anchor point in level side Upward first level position, the first upright position in vertical direction;
Based on the first upright position, the second upright position of the anchor point of second message carrier is adjusted, is adjusted Upright position after whole, wherein sending time of the sending time of second message carrier earlier than first message carrier;
The second message carrier is updated in the display of message display area, thus real according to upright position after the adjustment Existing message carrier stacked arrangement effect.
In one embodiment, message display unit 804 are also used to: the width of the second message carrier is disappeared with described The width of breath display area compares;According to width versus result to the second horizontal position of the anchor point of second message carrier It is adjusted, is adjusted rear horizontal position;Institute is updated according to horizontal position after upright position after the adjustment and the adjustment Second message carrier is stated in the display of message display area.
In one embodiment, message display unit 804 are also used to: according to the sending time pair of the second message carrier Arrangement position of the second message carrier in orientation is adjusted, and is adjusted rear arrangement position;According to the tune Arrangement position after horizontal position and adjustment after disposal site, the adjustment, updates the second message carrier in message after whole The display of display area.
In one embodiment, message display unit 804 can be specifically used for:
When needing to show the latest news content that chat member sends, joined according to the corresponding display of latest news content Number shows the latest news content in the corresponding message display area of virtual role of chat member;
According to the message sending time of history message content to the display parameters of history message content in message display area It is adjusted, the display of history message content is updated according to display parameters after adjustment.
In one embodiment, interface display unit 803 can be specifically used for:
Virtual scene material data is converted into the material file of game support, material file includes virtual scene material Spatial cue, wherein the spatial cue includes rendering objects information and rendering setting information;
The spatial cue of the virtual scene material is delivered to operation layer and carries out corresponding function management, and is based on function It manages to engine layers and transmits rendering setting parameter and rendering objects parameter;
It calls rendering setting interface that the rendering tool of rendering layer is set in engine layers, and calls rendering interface using setting Rendering tool renders rendering objects information afterwards, obtains rendering result;
Virtual scene chat interface is shown according to rendering result.
In one embodiment, it shows subelement 8042, can be specifically used for:
Obtain personage's material of interactive chat member, personage's material of target chat member and dynamic effect data;
Mirror image processing is carried out to personage's material of intercommunication chat member, obtains personage's material after mirror image;
According to personage's material, personage's material of target chat member and dynamic data after the mirror image, the target is shown Virtual role and the interaction of the virtual role of interactive chat member execute the dynamic effect of the message sending action.When it is implemented, with Upper each unit can be used as independent entity to realize, can also carry out any combination, come as same or several entities It realizes, the specific implementation of above each unit can be found in the embodiment of the method for front, and details are not described herein.
The embodiment of the present invention, which provides a kind of interactive chat realization device and receives virtual scene chat by receiving unit 801, to be referred to It enables;It chats to instruct according to the virtual scene by acquiring unit 802 and obtains virtual scene material data;By interface display unit 803 show that virtual scene chat interface, the virtual scene chat interface include virtual according to the virtual scene material data The virtual role of background of chatting and the member that chats;By message display unit 804 in the corresponding message of virtual role of member of chatting Display area shows the message content that the chat member sends, wherein the position of the virtual role and its message display area It sets corresponding.The interaction of the chat based on virtual scene may be implemented in the program.
The embodiment of the present invention also provides a kind of terminal, which can be terminal or server, for example, terminal can be Intercommunication server between Hetero-structure Message Systems can also also be the server etc. in message system, and for another example, terminal can be use Family terminal, such as mobile phone, tablet computer.As shown in figure 9, it illustrates the structures of terminal involved in the embodiment of the present invention to show It is intended to, specifically:
The terminal may include one or processor 901, one or more calculating of more than one processing core The components such as memory 902, power supply 903 and the input unit 904 of machine readable storage medium storing program for executing.It will be understood by those skilled in the art that The restriction of the not structure paired terminal of terminal structure shown in Fig. 9 may include than illustrating more or fewer components or group Close certain components or different component layouts.Wherein:
Processor 901 is the control centre of the terminal, using the various pieces of various interfaces and the entire terminal of connection, By running or execute the software program and/or module that are stored in memory 902, and calls and be stored in memory 902 Data, execute terminal various functions and processing data, thus to terminal carry out integral monitoring.Optionally, processor 901 can Including one or more processing cores;Preferably, processor 901 can integrate application processor and modem processor, wherein The main processing operation system of application processor, user interface and application program etc., modem processor mainly handles channel radio Letter.It is understood that above-mentioned modem processor can not also be integrated into processor 901.
Memory 902 can be used for storing software program and module, and processor 901 is stored in memory 902 by operation Software program and module, thereby executing various function application and data processing.Memory 902 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to terminal Deng.In addition, memory 902 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 902 can also include Memory Controller, to provide access of the processor 901 to memory 902.
Terminal further includes the power supply 903 powered to all parts, it is preferred that power supply 903 can pass through power-supply management system It is logically contiguous with processor 901, to realize the functions such as management charging, electric discharge and power managed by power-supply management system. Power supply 903 can also include one or more direct current or AC power source, recharging system, power failure detection circuit, The random components such as power adapter or inverter, power supply status indicator.
The terminal may also include input unit 904, which can be used for receiving the number or character letter of input Breath, and generation keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal are defeated Enter.
Although being not shown, terminal can also be including display unit etc., and details are not described herein.Specifically in the present embodiment, eventually Processor 901 in end can be corresponding executable by the process of one or more application program according to following instruction File is loaded into memory 902, and the application program being stored in memory 902 is run by processor 901, to realize Various functions are as follows:
Receive virtual scene chat instruction;It is chatted to instruct according to the virtual scene and obtains virtual scene material data;Root Show that virtual scene chat interface, the virtual scene chat interface include cyberchat back according to the virtual scene material data The virtual role of scape and chat member;Chat member the corresponding message display area of virtual role, show it is described chat at The message content that member sends, wherein the virtual role is corresponding with the position of its message display area.
For example, in one embodiment, obtaining the target message content that target chat member sends;Target chat member's The corresponding message display area of destination virtual role shows the target message content, and according to the target message content Show that message sends dynamic effect, it includes: that the destination virtual role executes the target message content pair that the message, which sends dynamic effect, The message sending action answered.
For example, in one embodiment, determining the corresponding message sending action of target message content;It is moved when the message is sent When as interaction movement, show that the virtual role interaction of the destination virtual role and interactive chat member execute the message The dynamic effect of sending action;When the message sending action is self contained function, destination virtual role complete independently institute is shown State the dynamic effect of message sending action.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that the chat based on virtual scene may be implemented in terminal provided in an embodiment of the present invention, greatly promote merely Its experience.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed Device is loaded, to execute the step in any interactive chat implementation method provided by the embodiment of the present invention.Such as:
Receive virtual scene chat instruction;It is chatted to instruct according to the virtual scene and obtains virtual scene material data;Root Show that virtual scene chat interface, the virtual scene chat interface include cyberchat back according to the virtual scene material data The virtual role of scape and chat member;Chat member the corresponding message display area of virtual role, show it is described chat at The message content that member sends, wherein the virtual role is corresponding with the position of its message display area.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, can execute in any method provided by the embodiment of the present invention The step of, it is thereby achieved that beneficial effect achieved by any method provided by the embodiment of the present invention, is detailed in front Embodiment, details are not described herein.
Be provided for the embodiments of the invention above a kind of interactive chat implementation method, device, terminal and storage medium into It has gone and has been discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, the above implementation The explanation of example is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to According to thought of the invention, there will be changes in the specific implementation manner and application range, is to sum up somebody's turn to do, the content of the present specification is not It is interpreted as limitation of the present invention.

Claims (15)

1. a kind of interactive chat implementation method characterized by comprising
Receive virtual scene chat instruction;
It is chatted to instruct according to the virtual scene and obtains virtual scene material data;
Show that virtual scene chat interface, the virtual scene chat interface include virtual according to the virtual scene material data The virtual role of background of chatting and the member that chats;
In the corresponding message display area of virtual role of chat member, the message content that the chat member sends is shown, In, the virtual role is corresponding with the position of its message display area.
2. interactive chat implementation method as described in claim 1, which is characterized in that corresponding in the virtual role of chat member Message display area shows the message content that the chat member sends, comprising:
Obtain the target message content that target chat member sends;
In the corresponding message display area of destination virtual role of target chat member, the target message content is shown, and Show that message sends dynamic effect according to the target message content, it includes: that the destination virtual role holds that the message, which sends dynamic effect, The corresponding message sending action of the row target message content.
3. interactive chat implementation method as claimed in claim 2, which is characterized in that shown and disappeared according to the target message content Breath sends dynamic effect, comprising:
Determine the corresponding message sending action of target message content;
When the message sending action is that interaction acts, show that the destination virtual role and interactive chat member's is virtual Role-play interaction executes the dynamic effect of the message sending action;
When the message sending action is self contained function, it is dynamic to show that message described in the destination virtual role complete independently is sent The dynamic effect made.
4. interactive chat implementation method as claimed in claim 2, which is characterized in that obtain the target that target chat member sends Message content, comprising:
Message selection region is shown in the virtual scene chat interface, and the message selection region includes that at least one movement disappears Breath, wherein action message corresponds to corresponding message content, message sends dynamic effect;
It is directed to the selection operation of message selection region based on target chat member, determines the target action message sent;
The target message content that the corresponding message content of target action message is sent as target chat member;
Show that message sends dynamic effect according to the target message content, comprising: the corresponding message of displaying target action message is sent Dynamic effect.
5. interactive chat implementation method as described in claim 1, which is characterized in that further include:
The current chat indication information of real-time monitoring chat member;
The cyberchat background is changed according to the chat indication information.
6. interactive chat implementation method as described in claim 1, which is characterized in that corresponding in the virtual role of chat member Message display area shows the message content that the chat member sends, comprising:
By the way of stacked arrangement, chat member the corresponding message display area of virtual role, show it is described chat at The message carrier that member sends, the message carrier carry the message content that the chat member sends.
7. interactive chat implementation method as claimed in claim 6, which is characterized in that by the way of stacked arrangement, chatting The corresponding message display area of the virtual role of member shows the message carrier that the chat member sends, comprising:
Obtain first message carrier locating point position information, the locating point position information include anchor point in the horizontal direction First level position, the first upright position in vertical direction;
Based on the first upright position, the second upright position of the anchor point of second message carrier is adjusted, after being adjusted Upright position, wherein sending time of the sending time of second message carrier earlier than first message carrier;
The second message carrier is updated in the display of message display area according to upright position after the adjustment, is disappeared to realize It ceases stack of carriers and arranges effect.
8. interactive chat implementation method as claimed in claim 7, which is characterized in that by the way of stacked arrangement, chatting The corresponding message display area of the virtual role of member shows the message carrier that the chat member sends, further includes:
The width of the width of the second message carrier and the message display area is compared;
It is adjusted according to second horizontal position of the width versus result to the anchor point of second message carrier, is adjusted rear water Prosposition is set;
The second message carrier is updated in the display of message display area according to upright position after the adjustment, comprising:
The second message carrier is updated according to horizontal position after upright position after the adjustment and the adjustment to show in message The display in region.
9. interactive chat implementation method as claimed in claim 7, which is characterized in that by the way of stacked arrangement, chatting The corresponding message display area of the virtual role of member shows the message carrier that the chat member sends, further includes:
According to the sending time of the second message carrier to arrangement position of the second message carrier in orientation into Row adjustment, is adjusted rear arrangement position;
The second message carrier is updated according to horizontal position after upright position after the adjustment and the adjustment to show in message The display in region, comprising:
According to arrangement position behind horizontal position after disposal site, the adjustment after the adjustment and adjustment, described second is updated Display of the message carrier in message display area.
10. interactive chat implementation method as described in claim 1, which is characterized in that corresponding in the virtual role of chat member Message display area, show it is described chat member send message content, comprising:
When needing to show the latest news content that chat member sends, according to the corresponding display parameters of latest news content, The corresponding message display area of virtual role of chat member, shows the latest news content;
It is carried out according to display parameters of the message sending time of history message content to history message content in message display area Adjustment updates the display of history message content according to display parameters after adjustment.
11. interactive chat implementation method as described in claim 1, which is characterized in that according to the virtual scene material data Show virtual scene chat interface, comprising:
Virtual scene material data is converted into the material file of game support, material file includes the rendering of virtual scene material Information, wherein the spatial cue includes rendering objects information and rendering setting information;
The spatial cue of the virtual scene material is delivered to operation layer and carries out corresponding function management, and is based on function management Rendering setting parameter and rendering objects parameter are transmitted to engine layers;
It calls rendering setting interface that the rendering tool of rendering layer is set in engine layers, and calls rendering interface using wash with watercolours after setting Dyer's tool renders rendering objects information, obtains rendering result;
Virtual scene chat interface is shown according to rendering result.
12. interactive chat implementation method as claimed in claim 3, which is characterized in that show the destination virtual role and mutually The virtual role interaction of dynamic chat member executes the dynamic effect of the message sending action, comprising:
Obtain personage's material of interactive chat member, personage's material of target chat member and dynamic effect data;
Mirror image processing is carried out to personage's material of intercommunication chat member, obtains personage's material after mirror image;
According to personage's material, personage's material of target chat member and dynamic data after the mirror image, the destination virtual is shown The interaction of the virtual role of role and interactive chat member executes the dynamic effect of the message sending action.
13. a kind of interactive chat realization device characterized by comprising
Receiving unit, for receiving virtual scene chat instruction;
Acquiring unit obtains virtual scene material data for chatting to instruct according to the virtual scene;
Interface display unit, for showing virtual scene chat interface, the virtual field according to the virtual scene material data Scape chat interface includes the virtual role of cyberchat background and chat member;
Message display unit, for showing the chat member in the corresponding message display area of virtual role of chat member The message content of transmission, wherein the virtual role is corresponding with the position of its message display area.
14. a kind of terminal characterized by comprising processor and memory;The memory matter is stored with a plurality of instruction, institute It states processor and loads the instruction of the memory storage with the perform claim requirement described in any item interactive chat realization sides 1-12 Step in method.
15. a kind of storage medium, which is characterized in that the storage medium is stored with a plurality of instruction, and described instruction is suitable for processor It is loaded, the step in the described in any item interactive chat implementation methods of 1-12 is required with perform claim.
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 true CN109885367A (en) 2019-06-14
CN109885367B 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)

Cited By (8)

* 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
CN111309886A (en) * 2020-02-18 2020-06-19 腾讯科技(深圳)有限公司 Information interaction method and device and computer readable storage medium
CN113395201A (en) * 2021-06-10 2021-09-14 广州繁星互娱信息科技有限公司 Head portrait display method, device, terminal and server in chat session
CN113521758A (en) * 2021-08-04 2021-10-22 北京字跳网络技术有限公司 Information interaction method and device, electronic equipment and storage medium
US20220197027A1 (en) * 2020-12-22 2022-06-23 Snap Inc. Conversation interface on an eyewear device
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
WO2024041270A1 (en) * 2022-08-23 2024-02-29 腾讯科技(深圳)有限公司 Interaction method and apparatus in virtual scene, device, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556631A (en) * 2004-01-09 2004-12-22 贵阳朗玛信息技术有限公司北京分公司 Method of realizing scene chat between customers in instant communication
CN103177173A (en) * 2011-12-23 2013-06-26 腾讯科技(深圳)有限公司 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
CN106375178A (en) * 2015-07-23 2017-02-01 小米科技有限责任公司 Message display method and device based on instant messaging
CN107210949A (en) * 2014-09-05 2017-09-26 徐庸畅 User terminal using the message service method of role, execution methods described includes the message application of methods described
CN107209749A (en) * 2014-11-25 2017-09-26 劳德—海拉尔股份有限公司 The local and timing method and its system broadcasted by peer-to-peer network
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
CN108965101A (en) * 2017-05-26 2018-12-07 腾讯科技(深圳)有限公司 Conversation message processing method, device, storage medium and computer equipment
CN108989268A (en) * 2017-06-01 2018-12-11 腾讯科技(深圳)有限公司 Session methods of exhibiting, device and computer equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556631A (en) * 2004-01-09 2004-12-22 贵阳朗玛信息技术有限公司北京分公司 Method of realizing scene chat between customers in instant communication
CN103177173A (en) * 2011-12-23 2013-06-26 腾讯科技(深圳)有限公司 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
CN107210949A (en) * 2014-09-05 2017-09-26 徐庸畅 User terminal using the message service method of role, execution methods described includes the message application of methods described
CN107209749A (en) * 2014-11-25 2017-09-26 劳德—海拉尔股份有限公司 The local and timing method and its system broadcasted by peer-to-peer network
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
CN108965101A (en) * 2017-05-26 2018-12-07 腾讯科技(深圳)有限公司 Conversation message processing method, device, storage medium and computer equipment
CN108989268A (en) * 2017-06-01 2018-12-11 腾讯科技(深圳)有限公司 Session methods of exhibiting, device and computer equipment

Cited By (11)

* 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
CN111309886A (en) * 2020-02-18 2020-06-19 腾讯科技(深圳)有限公司 Information interaction method and device and computer readable storage medium
CN111309886B (en) * 2020-02-18 2023-03-21 腾讯科技(深圳)有限公司 Information interaction method and device and computer readable storage medium
US20220197027A1 (en) * 2020-12-22 2022-06-23 Snap Inc. Conversation interface on an eyewear device
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
CN113395201A (en) * 2021-06-10 2021-09-14 广州繁星互娱信息科技有限公司 Head portrait display method, device, terminal and server in chat session
CN113395201B (en) * 2021-06-10 2024-02-23 广州繁星互娱信息科技有限公司 Head portrait display method, device, terminal and server in chat session
CN113521758A (en) * 2021-08-04 2021-10-22 北京字跳网络技术有限公司 Information interaction method and device, electronic equipment and storage medium
CN113521758B (en) * 2021-08-04 2023-10-24 北京字跳网络技术有限公司 Information interaction method and device, electronic equipment and storage medium
WO2024041270A1 (en) * 2022-08-23 2024-02-29 腾讯科技(深圳)有限公司 Interaction method and apparatus in virtual scene, device, and storage medium

Also Published As

Publication number Publication date
CN109885367B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN109885367A (en) Interactive chat implementation method, device, terminal and storage medium
Donghui et al. Virtual reality technology applied in digitalization of cultural heritage
US8504926B2 (en) Model based avatars for virtual presence
CN111701238B (en) Virtual picture volume display method, device, equipment and storage medium
CN111803945B (en) Interface rendering method and device, electronic equipment and storage medium
US9724610B2 (en) Creation and prioritization of multiple virtual universe teleports in response to an event
CN102866919B (en) Cloud drawing-based large-sized three-dimensional scene multi-person collaborative creation method
CN107833277A (en) A kind of Panoramic Warping scene edit methods based on unity3D
CN103095828A (en) Web three dimensional (3D) synchronous conference system based on rendering cloud and method of achieving synchronization
KR20150120427A (en) Providing a tele-immersive experience using a mirror metaphor
CN108052364A (en) One kind is based on remote-operated method for displaying image, device, equipment and storage medium
US11645805B2 (en) Animated faces using texture manipulation
CN111142967B (en) Augmented reality display method and device, electronic equipment and storage medium
Irawati et al. Varu framework: Enabling rapid prototyping of VR, AR and ubiquitous applications
CN105975259A (en) Implementation method and device of 3D (Three-dimensional) space user interface
CN114518825A (en) XR (X-ray diffraction) technology-based man-machine interaction method and system
Ishida et al. Proposal of tele-immersion system by the fusion of virtual space and real space
CN110223367B (en) Animation display method, device, terminal and storage medium
CN207718356U (en) The holophotal system of multi-modal interaction
Zhang et al. VR Design and Display System of Ceramic Products Based on Cloud Service Platform
US20230298290A1 (en) Social interaction method and apparatus, device, storage medium, and program product
Zhao et al. P‐2.8: Research on multi‐user interaction design in augmented reality
CN109147034A (en) Hydroenergy storage station three-dimensional visualization model method for building up and system
TWI799195B (en) Method and system for implementing third-person perspective with a virtual object
CN107908385A (en) A kind of multi-modal interactive system and method based on holography

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