CN116939235A - Virtual-shooting gift display method and device and electronic equipment - Google Patents
Virtual-shooting gift display method and device and electronic equipment Download PDFInfo
- Publication number
- CN116939235A CN116939235A CN202310672252.8A CN202310672252A CN116939235A CN 116939235 A CN116939235 A CN 116939235A CN 202310672252 A CN202310672252 A CN 202310672252A CN 116939235 A CN116939235 A CN 116939235A
- Authority
- CN
- China
- Prior art keywords
- gift
- virtual
- user
- snap
- giver
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention provides a display method and device of a virtual photo-taking gift and electronic equipment, and belongs to the technical field of Internet. The method is applied to the client and comprises the following steps: receiving a virtual snap gift giving event pushed by a server; acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user image and the second user image comprise at least one of the following: a user avatar, a user avatar; displaying the virtual snap gift presented by the gift giver on a virtual gift display interface; the virtual snap gift comprises a target virtual snap gift material and a snap gesture image of a first user image and a second user image. The virtual photo-taking gift can improve interactive interestingness among users, so that the users have more participation, the personalized effect of the virtual gift is realized, and the richness of the virtual gift is improved.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for displaying virtual snap-together gifts and electronic equipment.
Background
With the development of internet technology, voice real-time chat is a popular entertainment mode, such as organizing continuous chat, singing interaction and the like in a voice room. In the real-time interaction process, the audience can give a virtual gift to the homeowner so as to express the favorites of the homeowner, and the interactivity among users can be increased.
When a listener presents a virtual gift to a homeowner, the effect of the presented virtual gift is presented in a voice room or on a full-dress public screen. At present, the conventional virtual gift has a single display effect, the specificity of the user cannot be highlighted, the user in the room can only simply watch the effect, and the donor cannot interact with the homeowner at all.
Disclosure of Invention
The invention provides a display method, a device and electronic equipment of a virtual snap gift, which are used for solving the defect that the effect displayed by the virtual gift is fixed and single in the prior art, realizing the personalized effect of the virtual gift and improving the interactivity of a donor and a host.
The invention provides a display method of a virtual snap gift, which is applied to a client and comprises the following steps:
receiving a virtual snap gift giving event pushed by a server;
Acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar;
displaying the virtual snap gift presented by the gift presenter on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
According to the method for displaying the virtual snap-together gift provided by the invention, the virtual snap-together gift presented by the gift giver is displayed on a virtual gift display interface, and the method comprises the following steps:
determining the simultaneous shooting attitude image according to user information of the gift giver and the gift receiver and gift display configuration of the target virtual simultaneous shooting gift material;
synthesizing the snap gesture image and the target virtual snap gift material to form the virtual snap gift;
and displaying the virtual snap gift on the virtual gift display interface.
According to the display method of the virtual snap gift provided by the invention, the user information comprises at least one of the following: user gender, user identity, interaction index of gift giver and gift receiver.
According to the display method of the virtual-time gift, the gift display configuration comprises at least one of display positions, size proportions and image display directions of the first user image and the second user image in the virtual-time gift, and corresponding relations between the user information and the display positions, the size proportions and/or the image display directions.
The display method of the virtual snap gift provided by the invention further comprises the following steps: responding to a clicking event in a preset coordinate range in the virtual snap gift, and performing corresponding operation according to a preset route corresponding to the preset coordinate range;
the preset coordinate range comprises a coordinate range of a user head portrait, a user virtual image or a user nickname; the preset route comprises one of the following:
ejecting a business card of the gift giver or the gift receiver;
jumping to a voice room or a live channel where the gift giver or the gift receiver is located; or,
Focusing on the gift-giver or the gift-receiver.
According to the method for displaying the virtual-time gift, the file format of the target virtual-time gift material is the video format, and the virtual-time gift is displayed in the form of video.
According to the method for displaying the virtual snap-together gift provided by the invention, the method for acquiring the target virtual snap-together gift material comprises the following steps:
judging whether the target virtual shooting gift material has a local cache file or not;
if yes, calling the local cache file; and if not, downloading from the server according to the download address of the target virtual snap gift material.
The display method of the virtual snap gift provided by the invention further comprises the following steps:
and playing the virtual snap-in gift when the downloaded video time length of the target virtual snap-in gift material reaches the preset time length proportion of the total video time length or reaches the preset time length.
The invention also provides a display device of the virtual snap gift, which comprises:
the receiving module is used for receiving the virtual snap gift giving event pushed by the server side;
the acquisition module is used for acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar;
The display module is used for displaying the virtual snap-in gift presented by the gift giver on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the display method of the virtual photo-taking gift when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of displaying a virtual snap-in gift as described in any of the above.
According to the display method, the display device and the electronic equipment of the virtual snap-in gift, when a client receives a virtual snap-in gift presentation event pushed by a server, a first user image of a gift presenter, a second user image of a gift receiver and target virtual snap-in gift materials are obtained, a snap-in gesture image is generated according to the first user image and the second user image, and the snap-in gesture image is combined with the target virtual snap-in gift materials to form a virtual snap-in gift, and the virtual snap-in gift is displayed on a virtual gift display interface, so that a user can watch the virtual snap-in gift combining the gift presenter and the user image of the gift receiver through the client. That is, the user can personally customize the virtual gift, and the customized virtual snap gift includes the gesture of taking a photo of the user images of the giver and the receiver, and compared with the existing fixed single virtual gift, the virtual snap gift can improve the interactive interestingness between users, so that the users have more participation, the personalized effect of the virtual gift is realized, and the richness of the virtual gift is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a network architecture for voice real-time chat;
fig. 2 is a schematic flow chart of a method for displaying a virtual photo-taking gift according to the present invention;
FIG. 3 is a second flow chart of a method for displaying a virtual photo-taking gift according to the present invention;
fig. 4 (a) and (b) are schematic views of effects of a virtual photo-taking gift provided by the present invention;
fig. 5 is a schematic diagram of an interaction flow between a server and a client in a method for displaying a virtual snap gift provided by the present invention;
fig. 6 is a schematic structural diagram of a display device for virtual photo-taking gifts provided by the invention;
fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that in the description of embodiments of the present invention, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The terms "first," "second," and the like in this specification are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present invention may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. In addition, "and/or" indicates at least one of the connected objects, and the character "/", generally indicates that the associated object is an "or" relationship.
The method, the device and the electronic equipment for displaying the virtual photo-taking gift, which are provided by the invention, can be applied to application scenes of voice real-time chat, and can also be applied to social application scenes of other forms of Internet, such as game public chat, video live broadcast, voice live broadcast, forum chat and the like, wherein multiple users can carry out social contact through a designated voice room, a designated live broadcast channel, a designated chat channel and even a public chat channel, and the users can give the virtual photo-taking gift to other users for interaction. In the client, the virtual photo gift can be displayed on a virtual gift display interface in a room or a channel, so that all real-time online users in the same room, the same channel, a chat square or a public screen can watch the virtual photo gift. The virtual snap gift comprises the snap gestures of the user images of the gift giver and the gift receiver, so that other users can know who the virtual snap gift gives and who gives the virtual snap gift.
The method and the device for displaying the virtual photo-taking gift and the electronic equipment provided by the invention are described in detail below by taking an application scene of voice real-time chat as an example.
Fig. 1 illustrates a network architecture for voice real-time chat. As shown in fig. 1, the network architecture may include a server and a plurality of clients. The server side is used for providing background service of voice real-time chat, and can be a server, a server cluster, a cloud platform and the like. The client provides the service of voice real-time chat for the user, and can be a voice real-time chat application program (APP) and voice real-time chat software which are installed on the terminal, a webpage running on a browser of the terminal, and the like. The terminal may be a smart phone, a computer, a tablet, a PDA (Personal Digital Assistant ), a wearable device, etc.
It will be appreciated that in the context of a game public chat application, the client is a game application, game software, or game web page having public chat functionality. In the application scenario of forum chat, the client is an application, software, or web page with a forum chat layout. In the application scene of voice live broadcast or video live broadcast, the client is a voice or video live broadcast application program and voice or video live broadcast software.
Fig. 2 illustrates a flow chart of a method for displaying a virtual photo-taking gift. As shown in fig. 2, the method is applied to the client, and specifically comprises the following steps:
step 210, receiving a virtual snap gift presentation event pushed by the server.
Step 220, according to the virtual-time gift gifting event, acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material; wherein the first user character and the second user character comprise at least one of the following: user avatar, user avatar.
Step 230, displaying the virtual snap-in gift presented by the gift giver on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
Specifically, in the application scenario of voice real-time chat, a user can enter different voice rooms to chat, the voice rooms are usually provided with at least one homeowner, the homeowner is a creator of the voice rooms, and a listener user entering the voice rooms can perform real-time voice chat with the homeowner and other listener users. The client may be provided with a virtual gift presentation function, and the audience user may present a virtual gift to the homeowner to increase the interest of the interaction between the homeowner and the audience.
The interactive interface of the client can comprise a virtual gift giving interface, the virtual gift giving interface can display a plurality of virtual gifts, and the specific display can be the icon and the value of the virtual gift. The virtual gift may include a conventional virtual gift, a virtual snap-in gift. The conventional virtual gift can be a preset virtual gift provided by the voice real-time chat platform, different audience users give the same conventional virtual gift, and the effect of displaying the conventional virtual gift on the interactive interface is the same.
The virtual snap-in gift provided by the invention needs to combine the user images of the gift giver and the gift receiver and the virtual snap-in gift materials provided by the voice real-time chat platform, that is, different audience users give the same virtual snap-in gift, and the effect of displaying the virtual snap-in gift on the interactive interface is different; the same audience user gives the same virtual snap gift to different homeowners, and the effect of displaying the virtual snap gift on the virtual gift display interface is also different.
The virtual snap gift displayed on the virtual gift presentation interface is a virtual snap gift material, the user images of the gift giver and the gift receiver and the virtual snap gift material are required to be combined, the complete effect of the virtual snap gift is generated, and the virtual snap gift is displayed on the virtual gift display interface.
In step 210, when the gift-giver clicks on an icon of a virtual snap-in gift in the virtual gift-giver interface through its client, the virtual snap-in gift is triggered to be gifted to the designated gift-giver, and the virtual snap-in gift event is sent to the server, and the server pushes the virtual snap-in gift-giver event to the designated client or the full-service real-time online client, so that the client can receive the virtual snap-in gift-giver event.
In particular, the designated clients may be all users in the same voice room, all audience users including homeowners and gift givers.
In some embodiments, the platform may set that a portion of the virtual snap gift may be displayed on the full dress, and the server pushes the virtual snap gift presentation event to the full dress real-time online client. That is, the real-time online client of the full suit will display the virtual snap gift corresponding to the virtual snap gift giving event. For example, some virtual photo gifts with higher value can be set to be displayed on full clothing.
It should be noted that, the virtual-time gift gifting event may carry user information (such as a user ID, a user nickname, a user gender, a user head portrait, a user avatar, a user identity, etc.) of a gift giver, a gift receiver, and gift information (such as a gift ID, a gift download address, etc.) of a virtual-time gift. Specifically, the user identity is an indication of which of the two users is the gift-giver and the gift-receiver.
In step 220, the client may obtain a first user image of the gift-giver and a second user image of the gift-receiver according to the user information carried by the virtual-time gift-giver event.
In some embodiments, the virtual snap-together gift may be snap-together using the user's head portrait, that is, the snap-together pose of the user's head portrait of the gift giver and the gift receiver presented by the virtual snap-together gift. When a user registers a user account number in the voice real-time chat platform, a user head portrait of a person can be set, and the head portrait image or a favorite image of the user is adopted as the user head portrait.
In other embodiments, the virtual snap gift is snap-shot using the user avatar, that is, the snap-shot pose of the user avatar of the gift giver and the gift receiver presented by the virtual snap-shot gift. The voice real-time chat platform can provide the user with the user avatar service, and the user can design the user avatar according to the user preference, specifically designs the five sense organs, the makeup, the hair styling, the clothing styling, the accessory styling and the like of the avatar, and forms the personalized user avatar. The user avatar may be a two-dimensional avatar or a three-dimensional avatar.
The user avatar includes a whole body avatar, and the virtual-time gift can show the snap-in posture of the whole body avatar of the gift giver and the gift receiver, can also show the snap-in posture of the half body avatar of the gift giver and the gift receiver, and can also show the snap-in posture of the head portraits of the avatar of the gift giver and the gift receiver.
It will be appreciated that the snap gesture refers to a gesture that is formed by taking a photo of user images of the gift giver and the gift receiver, the two user images being positioned relatively close together on the virtual gift display interface.
It will be appreciated that when a user modifies his own user avatar or user avatar, the user accordingly gives or receives a virtual in-time gift after the modification, in which a new user avatar or user avatar will be presented.
In step 220, the client may obtain the target virtual-time gift material according to the gift information carried by the virtual-time gift presentation event, for example, determine the target virtual-time gift material according to the gift ID.
In some embodiments, the file format of the target virtual-time-of-day gift material may be an image format, that is, the target virtual-time-of-day gift material may be a static image, and then the virtual-time-of-day gift is a virtual-time-of-day gift in which the material and the image of the user's image in the time pose are combined to form a static presentation.
In other embodiments, the file format of the target virtual-time gift material may be a video format, that is, the target virtual-time gift material may be a dynamic video, and then the virtual-time gift is formed by synthesizing the material and a time-taking gesture image of a user image, and is played and displayed in the form of the video. The video format may be mp4, wmv, avi, vap, etc., and the present invention is not particularly limited.
Specifically, the target virtual-shooting gift material may be a background material (for example, mountain-water scene, city street view, indoor landscape, etc.), and the user image-shooting gesture images of the gift giver and the gift receiver are combined with the background material to form the virtual-shooting gift.
For example, if the target virtual-time gift material is a background animation video, a composite-shooting gesture image of the user virtual image of the gift giver and the gift receiver is inserted into at least one frame image frame of the animation video, so as to form an animation video of the virtual-time gift, and play and display is performed on the virtual-gift display interface.
The target virtual photo-taking gift material can also be an article single-item material. For example, a bundle of flowers may be used, and the flowers are synthesized into the hands of the user's avatar in the in-time gesture image to form the virtual in-time gift. For another example, the dynamic effect of snowflake falling can be combined with the gesture image to form a virtual shooting gift. As another example, a photo frame may be used.
It should be noted that, the specific display effect of the target virtual photo-taking gift material may be set in its gift display configuration.
In some embodiments, the virtual snap-in gift further includes a user nickname of the gift giver and the gift receiver. Thus, users of other clients can know specific gift givers and gift receivers, and personal information of the users can be highlighted, so that interactivity among the users is improved.
According to the display method of the virtual snap-in gift, when a client receives a virtual snap-in gift presentation event pushed by a server, a first user image of a gift giver, a second user image of a gift receiver and target virtual snap-in gift materials are obtained, a snap-in gesture image is generated according to the first user image and the second user image, the snap-in gesture image is combined with the target virtual snap-in gift materials to form a virtual snap-in gift, and the virtual snap-in gift is displayed on a virtual gift display interface, so that a user can watch the virtual snap-in gift combining the gift giver and the user image of the gift receiver through the client. That is, the user can personally customize the virtual gift, and the customized virtual snap gift includes the gesture of taking a photo of the user images of the giver and the receiver, and compared with the existing fixed single virtual gift, the virtual snap gift can improve the interactive interestingness between users, so that the users have more participation, the personalized effect of the virtual gift is realized, and the richness of the virtual gift is improved.
As shown in fig. 3, in some embodiments, step 230 specifically includes:
and step 310, determining the in-process gesture image according to the user information of the gift giver and the gift receiver and the gift display configuration of the target virtual in-process gift material.
And 320, synthesizing the snap gesture image and the target virtual snap gift material to form the virtual snap gift.
And 330, displaying the virtual snap gift on the virtual gift display interface.
In particular, the user information may include user gender, user identity, interaction index of gift giver and gift receiver. The gift display configuration includes at least one of a display position, a size ratio, and a display direction of the first user character and the second user character in the virtual-time gift, and a correspondence between user information and the display position, the size ratio, and/or the display direction of the characters.
That is, the display position, size ratio, and character display direction of the user character in the virtual photo-by-time gift can be determined according to the user information to determine the photo-by-time gesture image. Therefore, the display effect of the virtual shooting gift can be improved, and the virtual shooting gift is more reasonable and attractive.
For example, the size ratio of the user avatar of the gift giver and the gift receiver is determined according to the user gender. Specifically, if the gift-giver and the gift-receiver are both females or both males, the size ratio of the two user avatars is the same; if the gift-giver and the gift-receiver are heterogeneous, the size of the male user avatar presentation is larger than the size of the female user avatar presentation. That is, a scaling process for the user avatar is required. As shown in fig. 4 (a) and (b), the two user avatars of the same sex have the same size ratio, and of the two user avatars of different sex, the male user avatar is larger and the female user avatar is smaller. In this way, the user avatar of the female may appear small. In the schematic view of the effect of the virtual photo-taking gift shown in fig. 4, the background material and the photo frame material in the image are virtual photo-taking gift materials.
For example, the size ratio of the user avatar of the gift giver and the gift receiver is determined according to the user identity. In particular, the size of the user avatar presentation of the gift-giver may be set to be greater than the size of the user avatar presentation of the gift-receiver.
For example, the image display direction of the user avatar of the gift giver and the gift receiver is determined according to the user identity. Specifically, the character display direction of the user avatar of the gift-giver may be set to the left side and the character display direction of the user avatar of the gift-receiver to the right side. If the user avatar defaults to a left side face display, the user avatar of the gift receiver may be mirror-inverted so that its avatar display direction is a right side face display.
As another example, the display position of the user avatar is determined according to the interaction index of the gift-giver and the gift-receiver. Specifically, the user performs real-time chat on the voice real-time chat platform, and the interaction frequency between the users can be quantified through the interaction index (such as the affinity, the vermicelli grade and the like). The relative positions of the user avatars of the gift giver and the gift receiver can be determined according to the height of the interaction index, for example, two user avatars with high interaction index are closer and two user avatars with low interaction index are relatively far away.
The above examples are merely illustrative, and other correspondence between user information and gift display configuration may be adopted.
When the virtual snap-in gift is played and displayed in a video mode, the gift display configuration further comprises an insertion time point and a time length of the snap-in gesture image of the user image, so that the snap-in gesture image is displayed at the set time point.
In some embodiments, the acquiring the target virtual time gift material may specifically include: judging whether the target virtual shooting gift material has a local cache file or not; if yes, calling the local cache file; and if not, downloading from the server according to the download address of the target virtual snap gift material.
Specifically, after the user enters the voice room, the client side can acquire a gift configuration list from the server side, wherein the gift configuration list has a download address of a common virtual gift (such as a popular virtual gift, a holiday limiting virtual gift and the like), and the client side can automatically download and store the virtual gift in the background, so that when acquiring the target virtual snap gift material, the client side can search according to the gift ID, and if a local cache file exists, the client side can directly call the gift configuration list. In addition, the virtual gift used by the user can be locally stored with a cache file, and can also be directly called.
When the virtual snap-in gift is an animation video, the local cache file is directly called to play, and a snap-in gesture image is inserted at a set time point according to the corresponding gift display configuration so as to display the virtual snap-in gift.
And if the local cache file is not found, downloading the local cache file from the server according to the downloading address of the target virtual snap gift material.
In some embodiments, the method further comprises: and playing the virtual snap-in gift when the downloaded video time length of the target virtual snap-in gift material reaches the preset time length proportion of the total video time length or reaches the preset time length.
Specifically, when the target virtual photo-taking gift material needs to be downloaded, the target virtual photo-taking gift material can be downloaded and played at the same time, for example, when the downloaded video time length reaches 20% of the total playing time length, the playing is restarted. For another example, playback is resumed when the downloaded video has a duration of 1 s. Therefore, the virtual snap-in gift can be displayed as soon as possible, and the fluency of the dynamic effect of the virtual snap-in gift is ensured, so that the user experience is ensured.
In some embodiments, the method further comprises: when the virtual snap gift is played to the last frame, sending and displaying whether to store prompt information; and responding to a storage instruction of a user, and storing the last frame of image of the virtual photo-by-photo gift to the local.
Specifically, if the current client is the client of the gift giver, the popup window prompts prompt information of whether to store or not when the virtual snap gift is played to the last frame. The gift giver can choose whether to save or not to leave a souvenir, improving the user experience. The stored image is the last frame image of the virtual snap-in gift, and the image comprises the snap-in gesture images of the user images of the gift giver and the gift receiver and can also comprise the last frame image in the target virtual snap-in material.
If the user chooses to save, the last frame of image of the virtual photo-by-photo gift is saved to the local (e.g., local album).
In some embodiments, the method further comprises: and responding to a storage instruction of the user, and generating the dynamic state of the last frame image of the virtual photo-taking gift in the personal space of the user.
In particular, the voice real-time chat platform also provides services in the personal space of the user. The user can publish the dynamic state such as words, pictures, videos and the like in the personal space. When the user selects to save, a dynamic state of the last frame image of the virtual photo-taking gift is automatically generated in the personal space of the user, and the dynamic state can display the last frame image of the virtual photo-taking gift so as to improve the user experience.
In other embodiments, the display may be stopped for a preset length of time when the virtual snap gift is played to the last frame, so that the user may save the screenshot.
In some embodiments, the method further comprises: responding to a clicking event in a preset coordinate range in the virtual snap gift, and performing corresponding operation according to a preset route corresponding to the preset coordinate range; the preset coordinate range is a coordinate range of a user head portrait, a user virtual image or a user nickname; the preset route comprises one of the following: ejecting a business card of the gift giver or the gift receiver; jumping to a voice room or a live channel where the gift giver or the gift receiver is located; or, focusing on the gift-giver or the gift-receiver.
For example, when the user clicks on the user avatar, or user nickname, the business card of the gift giver or gift receiver pops up according to the configured route. In this way, the user can view personal information of the gift-giver or the gift-receiver, or access the user's personal space, etc.
As another example, when the user clicks on the user avatar, or user nickname, the voice room of the gift-giver and gift-receiver is jumped to according to the configured route. Thus, the user can directly enter the voice room where the gift giver and the gift receiver are located to conduct voice real-time chat and interaction.
As another example, when the user clicks on the user avatar, or user nickname, the gift-giver or gift-receiver is focused according to the configured route. Thus, the user can pay attention to the gift giver or the gift receiver automatically, and the user experience is improved.
Therefore, various rich user interactions can be increased, so that the user can not only see the animation of the virtual shooting gift, but also operate the animation, the interestingness and interactivity of the virtual shooting gift are increased, and the user has more participation.
Fig. 5 illustrates a schematic diagram of an interaction flow between a server and a client of the present invention. As shown in fig. 5, when a user of the first client clicks on the virtual-time gift gifting, the first client initiates a virtual-time gift gifting request to the server, and the server pushes the virtual-time gift gifting event to the first client and the second client. The first client and the second client receive the virtual-time gift presentation event, acquire user information (specifically including user ID, user nickname, user gender, user avatar, user identity, etc.) and gift information (gift ID), determine the target virtual-time gift material according to the gift ID, determine whether the gift ID has a locally cached video file, directly start playing if the gift ID has the locally cached video file, and request downloading to the server if the gift ID does not have the locally cached video file, and start downloading and playing, specifically, the locally cached video file or the downloaded video file carries a gift display configuration, where the gift display configuration includes a display position, a size proportion, an image display direction, a display time point, a display duration, etc. of the user avatar of the gift presenter and the gift receiver in the virtual-time gift, and a correspondence between the user information and the display position, the size proportion, the image display direction, etc. Therefore, according to the user information and the gift display configuration, the position coordinates, the size, the display direction and the like of the user virtual images are determined, so that the snap-in gesture images of the user virtual images of the gift giver and the gift receiver are determined, and the user virtual images of the gift giver and the gift receiver are displayed at the set playing time when the virtual snap-in gift is played. When the virtual photo-taking gift of the first client is played, a prompt message is popped up to inquire whether the gift giver stores the image of the virtual photo-taking gift. In the playing process of the virtual photo-taking gift, when the second client detects a click event in the preset coordinate range of the virtual photo-taking gift, corresponding operation can be executed according to a preset route, for example, a business card of a gift giver or a gift receiver is popped up; jump to the voice room or live channel where the gift giver or gift receiver is located; or, paying attention to the gift-giver or the gift-receiver.
It will be appreciated that the second client may be all clients within the same voice room, including in particular the client of the gift recipient (homeowner), the client of other audience users. In some scenarios, the second client may be a full-service real-time online client.
It should be understood that, the above embodiment is taken as an example of voice real-time chat to illustrate the method for displaying the virtual live gift, and the method can be applied to social application scenes such as game public chat, video live broadcast, voice live broadcast, forum chat and the like, and related settings can be adaptively adjusted according to specific application scenes.
The display device of the virtual photo-taking gift provided by the invention is described below, and the display device of the virtual photo-taking gift described below and the display method of the virtual photo-taking gift described above can be correspondingly referred to each other.
Fig. 6 illustrates a schematic structure of a display device for a virtual photo-taking gift. As shown in fig. 6, the display device for virtual photo gifts includes:
the receiving module 610 is configured to receive a virtual snap gift gifting event pushed by the server;
an obtaining module 620, configured to obtain a first user image of a gift giver, a second user image of a gift receiver, and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar;
The display module 630 is configured to display, on a virtual gift display interface, a virtual snap gift presented by the gift giver; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
In some embodiments, the display module comprises:
the determining submodule is used for determining the in-process gesture image according to the user information of the gift giver and the gift receiver and the gift display configuration of the target virtual in-process gift material;
the synthesis submodule is used for carrying out synthesis processing on the snap gesture image and the target virtual snap gift material to form the virtual snap gift;
and the display sub-module is used for displaying the virtual snap gift on the virtual gift display interface.
In some embodiments, the user information includes at least one of: user gender, user identity, interaction index of gift giver and gift receiver.
In some embodiments, the gift display configuration includes at least one of a display position, a size ratio, a presentation direction of the first user character and the second user character in the virtual time gift, and a correspondence of the user information to the display position, the size ratio, and/or the presentation direction of the character.
In some embodiments, the apparatus further comprises:
the processing module is used for responding to a click event in a preset coordinate range in the virtual snap gift and carrying out corresponding operation according to a preset route corresponding to the preset coordinate range;
the preset coordinate range comprises a coordinate range of a user head portrait, a user virtual image or a user nickname; the preset route comprises one of the following:
ejecting a business card of the gift giver or the gift receiver;
jumping to a voice room or a live channel where the gift giver or the gift receiver is located; or,
focusing on the gift-giver or the gift-receiver.
In some embodiments, the file format of the target virtual photo-taking gift material is a video format, and the virtual photo-taking gift is displayed in the form of video.
In some embodiments, the obtaining module is specifically configured to:
judging whether the target virtual shooting gift material has a local cache file or not;
if yes, calling the local cache file; and if not, downloading from the server according to the download address of the target virtual snap gift material.
In some embodiments, the apparatus further comprises:
and the playing module is used for playing the virtual snap-in gift when the downloaded video time length of the target virtual snap-in gift material reaches the preset time length proportion of the total video time length or reaches the preset time length.
Fig. 7 illustrates a physical schematic diagram of an electronic device, as shown in fig. 7, which may include: processor 710, communication interface (Communications Interface) 720, memory 730, and communication bus 740, wherein processor 710, communication interface 720, memory 730 communicate with each other via communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a method of presentation of a virtual photo gift, the method comprising: receiving a virtual snap gift giving event pushed by a server; acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar; displaying the virtual snap gift presented by the gift presenter on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
Further, the logic instructions in the memory 730 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute a method for displaying a virtual photo-taking gift provided by the above methods, and the method includes: receiving a virtual snap gift giving event pushed by a server; acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar; displaying the virtual snap gift presented by the gift presenter on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a method of displaying a virtual snap-in gift provided by the above methods, the method comprising: receiving a virtual snap gift giving event pushed by a server; acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar; displaying the virtual snap gift presented by the gift presenter on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (10)
1. The display method of the virtual photo-taking gift is characterized by being applied to a client and comprising the following steps of:
receiving a virtual snap gift giving event pushed by a server;
acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar;
displaying the virtual snap gift presented by the gift presenter on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
2. The method for displaying a virtual closed time gift according to claim 1, wherein displaying the virtual closed time gift presented by the gift giver at a virtual gift display interface comprises:
determining the simultaneous shooting attitude image according to user information of the gift giver and the gift receiver and gift display configuration of the target virtual simultaneous shooting gift material;
Synthesizing the snap gesture image and the target virtual snap gift material to form the virtual snap gift;
and displaying the virtual snap gift on the virtual gift display interface.
3. The method for displaying a virtual photo-taking gift of claim 2, wherein the user information includes at least one of: user gender, user identity, interaction index of gift giver and gift receiver.
4. The display method of a virtual time gift according to claim 2, wherein the gift display configuration includes at least one of a display position, a size ratio, a presentation direction of the first user character and the second user character in the virtual time gift, and a correspondence of the user information with the display position, the size ratio, and/or the presentation direction of the character.
5. The method for displaying a virtual snap-in gift according to claim 1, further comprising: responding to a clicking event in a preset coordinate range in the virtual snap gift, and performing corresponding operation according to a preset route corresponding to the preset coordinate range;
The preset coordinate range comprises a coordinate range of a user head portrait, a user virtual image or a user nickname; the preset route comprises one of the following:
ejecting a business card of the gift giver or the gift receiver;
jumping to a voice room or a live channel where the gift giver or the gift receiver is located; or,
focusing on the gift-giver or the gift-receiver.
6. The method for displaying a virtual photo-taking gift according to claim 1, wherein the file format of the target virtual photo-taking gift material is a video format, and the virtual photo-taking gift is displayed in a video form.
7. The method for displaying a virtual photo-taking gift according to claim 6, wherein said obtaining the target virtual photo-taking gift material comprises:
judging whether the target virtual shooting gift material has a local cache file or not;
if yes, calling the local cache file; and if not, downloading from the server according to the download address of the target virtual snap gift material.
8. The method for displaying a virtual snap-in gift of claim 7, further comprising:
And playing the virtual snap-in gift when the downloaded video time length of the target virtual snap-in gift material reaches the preset time length proportion of the total video time length or reaches the preset time length.
9. A display device for virtually photographing a gift, comprising:
the receiving module is used for receiving the virtual snap gift giving event pushed by the server side;
the acquisition module is used for acquiring a first user image of a gift giver, a second user image of a gift receiver and a target virtual-time gift material according to the virtual-time gift giver event; wherein the first user character and the second user character comprise at least one of the following: a user avatar, a user avatar;
the display module is used for displaying the virtual snap-in gift presented by the gift giver on a virtual gift display interface; the virtual snap gift comprises the target virtual snap gift material and a snap gesture image of the first user image and the second user image.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of presenting a virtual photo-taking gift as defined in any one of claims 1 to 8 when the program is executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310672252.8A CN116939235A (en) | 2023-06-08 | 2023-06-08 | Virtual-shooting gift display method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310672252.8A CN116939235A (en) | 2023-06-08 | 2023-06-08 | Virtual-shooting gift display method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116939235A true CN116939235A (en) | 2023-10-24 |
Family
ID=88385359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310672252.8A Pending CN116939235A (en) | 2023-06-08 | 2023-06-08 | Virtual-shooting gift display method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116939235A (en) |
-
2023
- 2023-06-08 CN CN202310672252.8A patent/CN116939235A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6742474B2 (en) | User interaction analysis module | |
US10839023B2 (en) | Avatar service system and method for animating avatar on a terminal on a network | |
US9047710B2 (en) | System and method for providing an avatar service in a mobile environment | |
US20230300292A1 (en) | Providing shared augmented reality environments within video calls | |
US20230164298A1 (en) | Generating and modifying video calling and extended-reality environment applications | |
CN108986192B (en) | Data processing method and device for live broadcast | |
CN115699715B (en) | Message system shared to chat | |
US10115149B1 (en) | Virtual world electronic commerce platform | |
CN108230428B (en) | E-book rendering method, electronic equipment and storage medium based on augmented reality | |
WO2013120851A1 (en) | Method for sharing emotions through the creation of three-dimensional avatars and their interaction through a cloud-based platform | |
CN110278140B (en) | Communication method and device | |
CN113301356A (en) | Method and device for controlling video display | |
CN114430494B (en) | Interface display method, device, equipment and storage medium | |
CN108076357B (en) | Media content pushing method, device and system | |
US12211121B2 (en) | Generating shared augmented reality scenes utilizing video textures from video streams of video call participants | |
US20230368444A1 (en) | Rendering customized video call interfaces during a video call | |
CN114173173A (en) | Barrage information display method and device, storage medium and electronic equipment | |
CN110944218B (en) | Multimedia information playing system, method, device, equipment and storage medium | |
CN118341096A (en) | Game matching method, game matching device, storage medium and electronic equipment | |
CN116939235A (en) | Virtual-shooting gift display method and device and electronic equipment | |
JP2024092562A (en) | PROGRAM, INFORMATION PROCESSING METHOD AND INFORMATION PROCESSING SYSTEM | |
CN116962749A (en) | Video synthesis method and device, storage medium and electronic equipment | |
CN119729136B (en) | Video processing method and device, storage medium, electronic device and program product | |
CN116156268B (en) | Virtual resource control method, device, electronic device and storage medium for live broadcast room | |
CN118524233B (en) | Live interaction method, device, terminal, storage medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |