CN115970296A - Virtual object display method and device, computer equipment and storage medium - Google Patents

Virtual object display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115970296A
CN115970296A CN202310012491.0A CN202310012491A CN115970296A CN 115970296 A CN115970296 A CN 115970296A CN 202310012491 A CN202310012491 A CN 202310012491A CN 115970296 A CN115970296 A CN 115970296A
Authority
CN
China
Prior art keywords
virtual object
action
resources
resource
target
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
Application number
CN202310012491.0A
Other languages
Chinese (zh)
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202310012491.0A priority Critical patent/CN115970296A/en
Publication of CN115970296A publication Critical patent/CN115970296A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides a virtual object display method, apparatus, computer device and storage medium, wherein the method comprises: responding to a first trigger operation, loading a first virtual object and image resources respectively corresponding to at least one second virtual object bound with the first virtual object, and action resources of the first virtual object; calling image resources corresponding to the first virtual object and the second virtual object respectively, displaying images of the first virtual object and the second virtual object, calling action resources of the first virtual object, and controlling actions of the first virtual object and the second virtual object.

Description

Virtual object display method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying a virtual object, a computer device, and a storage medium.
Background
In a game, virtual reality, augmented reality, and other scenes, a plurality of virtual objects are usually required to be displayed, and corresponding image resources and action resources are generally configured for the virtual objects in advance, and the action expression of the virtual objects is controlled based on the configured resources.
However, when such a scene is run on a terminal device such as a smart phone, and the like, because the software and hardware resources of the terminal device are limited, when a plurality of virtual objects are simultaneously presented, the situations such as stuttering and frame dropping are likely to occur because the resource amount of the virtual objects which need to be loaded and run is large. In order to reduce the consumption of terminal equipment resources, sometimes an animation mode is selected to represent the interactive representation of a plurality of virtual objects in the same picture, but the animation is generally designed in advance, does not have a model entity, and has a poor presented interactive effect.
Disclosure of Invention
The embodiment of the disclosure at least provides a virtual object display method, a virtual object display device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a virtual object display method, including:
responding to a first trigger operation, loading image resources corresponding to a first virtual object and at least one second virtual object bound with the first virtual object respectively, and action resources of the first virtual object;
calling image resources corresponding to the first virtual object and the second virtual object respectively, displaying images of the first virtual object and the second virtual object, calling action resources of the first virtual object, and controlling actions of the first virtual object and the second virtual object.
In an optional embodiment, the invoking an action resource of the first virtual object, controlling actions of the first virtual object and the second virtual object includes:
extracting target action resources respectively matched with the first virtual object and the second virtual object at the current time from the action resources corresponding to the first virtual object;
and controlling the first virtual object and the second virtual object to respectively execute corresponding target actions by calling target action resources respectively matched with the first virtual object and the second virtual object.
In an optional embodiment, after invoking the action resource of the first virtual object and controlling the actions of the first virtual object and the second virtual object, the method further includes:
in response to a second trigger operation, deleting the action resource of the first virtual object and loading the action resource of the second virtual object;
and calling an action resource of the second virtual object, and controlling the actions of the first virtual object and the second virtual object.
In an optional embodiment, after invoking the action resource of the first virtual object and controlling the actions of the first virtual object and the second virtual object, the method further includes:
in response to a third trigger operation, removing the binding relationship between the first virtual object and any one of the second virtual objects, and establishing the binding relationship between the second virtual object and a third virtual object; the third virtual object is a virtual object loaded with corresponding image resources and action resources;
and calling the action resource of the loaded third virtual object to control the action of the second virtual object.
In an optional embodiment, the method further comprises:
determining a target virtual object, responding to the target virtual object to execute a target action, and loading image resources and action resources of a related virtual object of the target virtual object;
and calling the image resource of the associated virtual object, displaying the image of the associated virtual object, calling the action resource of the associated virtual object, and controlling the action of the associated virtual object.
In an optional embodiment, after the target action is completely played, the method further includes:
and after a preset condition is met, deleting the image resource and the action resource of the associated virtual object and canceling the display of the image of the associated virtual object.
In an optional embodiment, in a case that the target action is used to trigger changing the second virtual object into the associated virtual object, the invoking a character resource of the associated virtual object, showing a character of the associated virtual object, and invoking an action resource of the associated virtual object, controlling an action of the associated virtual object includes:
replacing the avatar of the second virtual object with the avatar of the associated virtual object based on the avatar resources of the associated virtual object, and controlling the action of the associated virtual object based on the action resources of the associated virtual object.
In a second aspect, an embodiment of the present disclosure further provides a virtual object display apparatus, including:
the loading module is used for responding to a first trigger operation, loading image resources corresponding to a first virtual object and at least one second virtual object bound with the first virtual object respectively, and action resources of the first virtual object;
and the display module is used for calling image resources corresponding to the first virtual object and the second virtual object respectively, displaying images of the first virtual object and the second virtual object, calling action resources of the first virtual object, and controlling actions of the first virtual object and the second virtual object.
In an optional embodiment, when the action resource of the first virtual object is called to control the actions of the first virtual object and the second virtual object, the presentation module is configured to:
extracting target action resources respectively matched with the first virtual object and the second virtual object at the current time from the action resources corresponding to the first virtual object;
and controlling the first virtual object and the second virtual object to respectively execute corresponding target actions by calling target action resources respectively matched with the first virtual object and the second virtual object.
In an optional embodiment, after invoking the action resource of the first virtual object and controlling the actions of the first virtual object and the second virtual object, the presentation module is further configured to:
in response to a second trigger operation, deleting the action resource of the first virtual object and loading the action resource of the second virtual object;
and calling an action resource of the second virtual object to control the actions of the first virtual object and the second virtual object.
In an optional embodiment, after invoking the action resource of the first virtual object and controlling the actions of the first virtual object and the second virtual object, the presentation module is further configured to:
responding to a third trigger operation, removing the binding relationship between the first virtual object and any one second virtual object, and establishing the binding relationship between the second virtual object and a third virtual object; the third virtual object is a virtual object loaded with corresponding image resources and action resources;
and calling the loaded action resource of the third virtual object to control the action of the second virtual object.
In an alternative embodiment, the display module is further configured to:
determining a target virtual object, responding to the target virtual object to execute a target action, and loading image resources and action resources of a related virtual object of the target virtual object;
and calling the image resource of the associated virtual object, displaying the image of the associated virtual object, calling the action resource of the associated virtual object, and controlling the action of the associated virtual object.
In an optional implementation manner, after the target action is played, the presentation module is further configured to:
and after a preset condition is met, deleting the image resource and the action resource of the associated virtual object and canceling the display of the image of the associated virtual object.
In an optional embodiment, in a case that the target action is used to trigger changing the second virtual object into the associated virtual object, the presentation module, when invoking a character resource of the associated virtual object, presenting a character of the associated virtual object, and invoking an action resource of the associated virtual object, controls the action of the associated virtual object, is configured to:
replacing the avatar of the second virtual object with the avatar of the associated virtual object based on the avatar resources of the associated virtual object, and controlling the action of the associated virtual object based on the action resources of the associated virtual object.
In a third aspect, this disclosure also provides a computer device, a processor, and a memory, where the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the machine-readable instructions are executed by the processor to perform the steps in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, this disclosure also provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
For the description of the effect of the virtual object display apparatus, the computer device, and the computer-readable storage medium, reference is made to the description of the virtual object display method, which is not repeated herein.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the technical aspects of the disclosure.
The virtual object display method, the virtual object display device, the computer equipment and the storage medium load image resources corresponding to the first virtual object and the at least one second virtual object bound with the first virtual object respectively, so that the image resources can be called to display images of the first virtual object and the second virtual object. Meanwhile, the second virtual object bound with the first virtual object can share a set of action resources with the first virtual object, so that actions of the first virtual object and the second virtual object can be controlled simultaneously only by loading and calling the action resources of the first virtual object, and independent action resources do not need to be loaded and called for the second virtual object, so that storage resources, computing resources and the like of the terminal equipment can be saved. In addition, the whole interaction process can utilize independent image resources and a set of unified action resources of different virtual objects to realize flexible control of the different virtual objects, and compared with a designed video animation, the method has better interaction flexibility.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is to be understood that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art to which the disclosure pertains without the benefit of the inventive faculty, and that additional related drawings may be derived therefrom.
FIG. 1 illustrates a flow chart of a virtual object representation method provided by some embodiments of the present disclosure;
FIG. 2 illustrates one of the schematic diagrams of a virtual scene provided by some embodiments of the present disclosure;
fig. 3 illustrates a second schematic view of a virtual scene provided by some embodiments of the present disclosure;
FIG. 4 illustrates a schematic diagram of a virtual object presentation apparatus provided by some embodiments of the present disclosure;
fig. 5 illustrates a schematic diagram of a computer device provided by some embodiments of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of embodiments of the present disclosure, as generally described and illustrated herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the disclosure is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
Research shows that when a virtual scene is operated on terminal equipment such as a smart phone, and the like, due to limited software and hardware resources of the terminal equipment, when actions of more virtual objects are presented at the same time, due to larger resource amount of the virtual objects needing to be loaded and operated, the situations of blocking, frame dropping and the like are easy to occur. In order to reduce the consumption of terminal equipment resources, sometimes an animation mode is selected to represent the interactive representation of a plurality of virtual objects in the same picture, but the animation is generally designed in advance, does not have a model entity, and has a poor presented interactive effect.
Based on the research, the present disclosure provides a virtual object display method, which loads image resources corresponding to a first virtual object and at least one second virtual object bound to the first virtual object, so as to be able to call the image resources to display images of the first virtual object and the second virtual object. Meanwhile, the second virtual object bound with the first virtual object can share a set of action resources with the first virtual object, so that actions of the first virtual object and the second virtual object can be controlled simultaneously only by loading and calling the action resources of the first virtual object, and independent action resources do not need to be loaded and called for the second virtual object, thereby saving storage resources, computing resources and the like of the terminal equipment. In addition, the whole interaction process can utilize independent image resources and a set of unified action resources of different virtual objects to realize flexible control of the different virtual objects, and compared with a designed video animation, the method has better interaction flexibility.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, a detailed description is first given of a virtual object display method disclosed in the embodiments of the present disclosure, and an execution subject of the virtual object display method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability. In some possible implementations, the virtual object exposure method may be implemented by a processor calling computer readable instructions stored in a memory.
The following describes a virtual object display method provided by the embodiment of the present disclosure by taking an execution subject as a terminal device as an example.
Referring to fig. 1, a flowchart of a virtual object displaying method provided in the embodiment of the present disclosure is shown, where the method includes steps S101 to S102, where:
s101, responding to a first trigger operation, loading image resources corresponding to a first virtual object and at least one second virtual object bound with the first virtual object, and action resources of the first virtual object.
In this step, the terminal device may display a virtual scene, where the virtual scene may include a plurality of virtual objects, and when displaying the virtual objects, the resource files corresponding to the virtual objects need to be loaded to the memory in advance, and the loaded resource files may be called to display the virtual objects. The resource files of the virtual object can generally comprise image resources, action resources and other files, the image resources can comprise model resources, map resources and the like, and the image of the virtual object can be displayed by calling the image resources; the action resource may include a plurality of action resource files for controlling the avatar of the virtual object to perform actions such as running, walking, jumping, swinging, etc.
The image resources and the action resources of the virtual object can be three-dimensional, the image resources of the virtual object can include a three-dimensional virtual model, and the action can be realized through the movement of each skeleton in the virtual model. Compared with a two-dimensional video animation display mode, the three-dimensional virtual model is more real and vivid, and the visual expressive force effect is better.
In the embodiment of the present disclosure, the second virtual object may be bound to the first virtual object, and the bound virtual objects may share the same set of action resources. Generally, virtual objects with similar actions may be bound, for example, a first virtual object may be a separate subject such as an aircraft, pet, or character, and a second virtual object may be a pendant object attached or mounted near the first virtual object.
For example, some other small aircrafts may be displayed near the aircraft, the small aircrafts may move along with the aircraft, and the moving direction and the moving visual effect may be consistent with those of the aircraft, in which case, the small aircrafts may be bound with the aircraft, and the small aircrafts may serve as pendants of the aircraft and share a set of action resources with the aircraft; the trees and the grasses near the trees can play actions swaying with the wind, and can also share one set of action resources.
Virtual objects with the same or similar behavior models may also share the same set of action resources, e.g., characters displayed in the same area may move together, the characters may have different images, but the action resources may be shared.
The first trigger operation may be an operation of displaying a scene including the first virtual object and the second virtual object, or a virtual object of the user moves to a preset position in the virtual scene, at this time, the first virtual object and the second virtual object are not displayed in the virtual scene, and a resource file to be loaded may be loaded first, such as image resources of the first virtual object and the second virtual object, and an action resource of the first virtual object.
S102, image resources corresponding to the first virtual object and the second virtual object are called, images of the first virtual object and the second virtual object are displayed, action resources of the first virtual object are called, and actions of the first virtual object and the second virtual object are controlled.
In this step, since the image resources of the first virtual object and the second virtual object and the action resources of the first virtual object are loaded, the loaded image resources can be called when needed, the images of the first virtual object and the second virtual object are displayed, the action resources of the first virtual object are called, and the actions of the first virtual object and the second virtual object are controlled.
For example, when the user's angle-of-view camera is about to capture the areas where the first virtual object and the second virtual object are located, the first virtual object and the second virtual object may be displayed in the virtual scene, so that when the user's angle-of-view camera captures the areas where the first virtual object and the second virtual object are located, the first virtual object and the second virtual object are already displayed, and the user interface may directly display the first virtual object and the second virtual object captured by the angle-of-view camera.
Therefore, the image resources corresponding to the first virtual object and the at least one second virtual object bound with the first virtual object are loaded, so that the image resources can be called to display the images of the first virtual object and the second virtual object. Meanwhile, the second virtual object bound with the first virtual object can share a set of action resources with the first virtual object, so that actions of the first virtual object and the second virtual object can be controlled simultaneously only by loading and calling the action resources of the first virtual object, and independent action resources do not need to be loaded and called for the second virtual object, so that storage resources, computing resources and the like of the terminal equipment can be saved. In addition, the whole interaction process can utilize independent image resources and a set of unified action resources of different virtual objects to realize flexible control of the different virtual objects, and compared with a designed video animation, the method has better interaction flexibility.
Exemplarily, referring to fig. 2, the virtual scene provided in the embodiment of the present disclosure is shown in a schematic diagram. Fig. 2 shows a virtual object a, a virtual object B, and a virtual object C, where the virtual object a is an aircraft, the virtual object B is a small aircraft, the virtual object C is a virtual pet, the virtual object B can be bound to the virtual object a, the virtual object a is a first virtual object, the virtual object B is a second virtual object, the virtual object a and the virtual object B share an action resource of the virtual object a, the virtual object C uses its own action resource, the virtual pet C in fig. 2 can take the virtual object a, and the virtual object B flies along with the virtual object a.
In one possible embodiment, when invoking an action resource of a first virtual object to control actions of the first virtual object and a second virtual object, target action resources respectively matched with the first virtual object and the second virtual object at the current time may be extracted from the action resources corresponding to the first virtual object, and then, by invoking the target action resources respectively matched with the first virtual object and the second virtual object, the first virtual object and the second virtual object may be controlled to respectively execute corresponding target actions.
In this step, the first virtual object and the second virtual object may share a set of action resources, but the action resources may include a plurality of actions, and the first virtual object and the second virtual object may adopt different actions at the same time or the same action, and may be set according to actual conditions in specific implementation.
In some implementation scenarios, the first virtual object and the second virtual object may need different interaction logics, and the action required for the interaction may be changed, and if the action resource of the first virtual object includes all possible used actions, more data needs to be loaded, and the effect of reducing the usage amount of the computing resource cannot be achieved.
For example, in response to the second trigger operation, the loaded action resource of the first virtual object may be deleted from the memory, and the action resource of the second virtual object may be loaded, and then the action resource of the second virtual object may be invoked to control the actions of the first virtual object and the second virtual object.
In a specific implementation process, it may be necessary to change an action resource of the second virtual object, but it is not necessary to change an action resource of the first virtual object, at this time, if an action resource that the second virtual object needs to replace is an action resource of a loaded third virtual object, a binding relationship between the first virtual object and the second virtual object may be released in response to a third trigger operation, then a binding relationship between the second virtual object and the third virtual object is established, and then, the action resource of the loaded third virtual object may be called to control an action of the second virtual object.
The third virtual object may be a virtual object loaded with image resources and action resources, and the image resources and the action resources of the third virtual object may be loaded together with the first virtual object, or may be loaded separately, that is, the loading trigger conditions corresponding to the third virtual object and the first virtual object may be different or the same. For example, referring to fig. 2, the virtual object C in fig. 2 may be the third virtual object, the virtual object B may be unbound from the virtual object a and bound to the virtual object C, and an action resource of the virtual object C may be called to control the action of the virtual object B.
When a plurality of virtual objects cannot share the same set of action resources, unique action resources need to be configured for each virtual object, and if the action resources are loaded, more computing resources and storage resources are needed.
In the specific implementation process, although the actions of the virtual objects have a certain relevance, the actions are respectively deployed on virtual roles which do not have a relevance relationship, when the actions are controlled, only two virtual objects which are not related to each other are allowed to simultaneously perform corresponding actions, each virtual role needs to be simultaneously displayed, and the image resources and the action resources of the virtual objects also need to be loaded in advance.
Illustratively, a target virtual object may be determined from the displayed plurality of virtual objects, a target action is executed in response to the target virtual object, an avatar resource and an action resource of an associated virtual object of the target virtual object are loaded, then the avatar resource of the associated virtual object is called, an avatar of the associated virtual object is displayed, and the action resource of the associated virtual object is called, so as to control the action of the associated virtual object.
The image resources and animation resources of the target virtual object can be pre-loaded, the image of the target virtual object is displayed, the action of the target virtual object is controlled, when the target virtual object executes the preset target action, the image resources and action resources of the associated virtual object of the target virtual object can be loaded, before the target virtual object executes the target action resources, the target virtual object can be considered not to need to perform action interaction with the associated virtual object, the action resources and the image resources of the associated virtual object can not be loaded at first, and the loading is performed when needed.
After the preset conditions are met, the loaded image resources and action resources of the associated virtual objects can be deleted from the memory, and the display of the images of the associated virtual objects is cancelled.
In this step, the preset condition may be that the image of the associated virtual object is displayed for a certain time, or other preset conditions (for example, the life value of the associated virtual object is exhausted, the duration is exhausted, the virtual combat is finished, etc.) are met. After the preset conditions are met, the target virtual object does not need to perform action interaction with the associated virtual object any more, so that the corresponding image resource and action resource can be deleted from the memory to release the computing resource and the storage resource.
In some possible embodiments, the virtual character may be modified, and a virtual object sharing the action resource with other virtual objects may be changed into a virtual object independently using the action resource, for example, the target action may be used to trigger changing the second virtual object into an associated virtual object, and replacing the second virtual character bound to the first virtual object with the associated virtual object having the independent action resource and the avatar resource, in this case, the first virtual object may be determined as the target virtual object, and the target virtual object may also be another virtual object.
For example, the avatar of the second virtual object may be replaced with the avatar of the associated virtual object based on the avatar resources of the associated virtual object, and the action of the associated virtual object may be controlled based on the action resources of the associated virtual object.
After the corresponding preset condition is met, the associated virtual object may be converted back to the second virtual object.
Referring to fig. 3, fig. 3 is a second schematic view of a virtual scene provided in the embodiment of the present disclosure. Fig. 3 shows a virtual object a, a virtual object C, and a virtual object D, where the virtual object a may be the aircraft in fig. 2, that is, the first virtual object, the virtual object C is the virtual pet in fig. 2, and the virtual object D may be a deformed small aircraft. The virtual object a can be determined as a target virtual object, when the virtual object a executes a target action, the virtual object B in fig. 2 can be converted into a virtual object D, the virtual object D is an associated object of the target virtual object, before the conversion, the virtual object B and the virtual object a share a set of action resources, and after the conversion, the action of the virtual object D is controlled by using the independent action resources of the virtual object D.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, a virtual object display apparatus corresponding to the virtual object display method is also provided in the embodiments of the present disclosure, and because the principle of the apparatus in the embodiments of the present disclosure for solving the problem is similar to the virtual object display method described above in the embodiments of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 4, a schematic diagram of a virtual object display apparatus provided in the embodiment of the present disclosure is shown, where the apparatus includes:
a loading module 410, configured to, in response to a first trigger operation, load an avatar resource corresponding to a first virtual object and at least one second virtual object bound to the first virtual object, and an action resource of the first virtual object;
the display module 420 is configured to call avatar resources corresponding to the first virtual object and the second virtual object, respectively, display the avatars of the first virtual object and the second virtual object, and call an action resource of the first virtual object, so as to control actions of the first virtual object and the second virtual object.
In an optional embodiment, when the action resource of the first virtual object is called to control the actions of the first virtual object and the second virtual object, the presentation module 420 is configured to:
extracting target action resources respectively matched with the first virtual object and the second virtual object at the current time from the action resources corresponding to the first virtual object;
and controlling the first virtual object and the second virtual object to respectively execute corresponding target actions by calling target action resources respectively matched with the first virtual object and the second virtual object.
In an optional embodiment, after the action resource of the first virtual object is called to control the actions of the first virtual object and the second virtual object, the presentation module 420 is further configured to:
in response to a second trigger operation, deleting the action resource of the first virtual object and loading the action resource of the second virtual object;
and calling an action resource of the second virtual object to control the actions of the first virtual object and the second virtual object.
In an optional embodiment, after invoking the action resource of the first virtual object and controlling the actions of the first virtual object and the second virtual object, the presentation module 420 is further configured to:
responding to a third trigger operation, removing the binding relationship between the first virtual object and any one second virtual object, and establishing the binding relationship between the second virtual object and a third virtual object; the third virtual object is a virtual object loaded with corresponding image resources and action resources;
and calling the loaded action resource of the third virtual object to control the action of the second virtual object.
In an alternative embodiment, the display module 420 is further configured to:
determining a target virtual object, responding to the target virtual object to execute a target action, and loading image resources and action resources of a related virtual object of the target virtual object;
and calling the image resource of the associated virtual object, displaying the image of the associated virtual object, calling the action resource of the associated virtual object, and controlling the action of the associated virtual object.
In an optional embodiment, after the target action is played, the presentation module 420 is further configured to:
and deleting the image resources and the action resources of the associated virtual object and canceling the display of the image of the associated virtual object after the preset conditions are met.
In an optional embodiment, in the case that the target action is used to trigger the change of the second virtual object into the associated virtual object, the presentation module 420, when invoking the avatar resource of the associated virtual object, presenting the avatar of the associated virtual object, and invoking the action resource of the associated virtual object, controls the action of the associated virtual object, is configured to:
replacing the avatar of the second virtual object with the avatar of the associated virtual object based on the avatar resources of the associated virtual object, and controlling the action of the associated virtual object based on the action resources of the associated virtual object.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
An embodiment of the present disclosure further provides a computer device, as shown in fig. 5, which is a schematic structural diagram of the computer device provided in the embodiment of the present disclosure, and includes:
a processor 51 and a memory 52; the memory 52 stores machine-readable instructions executable by the processor 51, the processor 51 being configured to execute the machine-readable instructions stored in the memory 52, the processor 51 performing the following steps when the machine-readable instructions are executed by the processor 51:
responding to a first trigger operation, loading image resources corresponding to a first virtual object and at least one second virtual object bound with the first virtual object respectively, and action resources of the first virtual object;
and calling image resources corresponding to the first virtual object and the second virtual object respectively, displaying images of the first virtual object and the second virtual object, calling action resources of the first virtual object, and controlling actions of the first virtual object and the second virtual object.
In an alternative embodiment, the invoking of the action resource of the first virtual object in the instruction executed by the processor 51 controls the actions of the first virtual object and the second virtual object, including:
extracting target action resources respectively matched with the first virtual object and the second virtual object at the current time from the action resources corresponding to the first virtual object;
and controlling the first virtual object and the second virtual object to respectively execute corresponding target actions by calling target action resources respectively matched with the first virtual object and the second virtual object.
In an optional embodiment, the instructions executed by the processor 51 further include, after invoking the action resource of the first virtual object and controlling the actions of the first virtual object and the second virtual object:
in response to a second trigger operation, deleting the action resource of the first virtual object and loading the action resource of the second virtual object;
and calling an action resource of the second virtual object, and controlling the actions of the first virtual object and the second virtual object.
In an optional embodiment, the instructions executed by the processor 51 further include, after invoking the action resource of the first virtual object and controlling the actions of the first virtual object and the second virtual object:
responding to a third trigger operation, removing the binding relationship between the first virtual object and any one second virtual object, and establishing the binding relationship between the second virtual object and a third virtual object; the third virtual object is a virtual object loaded with corresponding image resources and action resources;
and calling the loaded action resource of the third virtual object to control the action of the second virtual object.
In an alternative embodiment, the instructions executed by the processor 51 further include:
determining a target virtual object, responding to the target virtual object to execute a target action, and loading image resources and action resources of a related virtual object of the target virtual object;
and calling the image resource of the associated virtual object, displaying the image of the associated virtual object, calling the action resource of the associated virtual object, and controlling the action of the associated virtual object.
In an optional implementation manner, the instructions executed by the processor 51 further include, after the target action is played, that:
and deleting the image resources and the action resources of the associated virtual object and canceling the display of the image of the associated virtual object after the preset conditions are met.
In an alternative embodiment, in the case that the target action is used to trigger the change of the second virtual object into the associated virtual object, the processor 51 executes an instruction to call a character resource of the associated virtual object, show a character of the associated virtual object, and call an action resource of the associated virtual object, so as to control the action of the associated virtual object, including:
replacing the avatar of the second virtual object with the avatar of the associated virtual object based on the avatar resources of the associated virtual object, and controlling the action of the associated virtual object based on the action resources of the associated virtual object.
The storage 52 includes a memory 521 and an external storage 522; the memory 521 is also referred to as an internal memory, and temporarily stores operation data in the processor 51 and data exchanged with an external memory 522 such as a hard disk, and the processor 51 exchanges data with the external memory 522 through the memory 521.
The specific execution process of the instruction may refer to the steps of the virtual object display method in the embodiments of the present disclosure, and details are not repeated here.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the virtual object display method in the foregoing method embodiments are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
An embodiment of the present disclosure further provides a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the virtual object displaying method in the foregoing method embodiment, which may be specifically referred to the foregoing method embodiment, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the system and the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the technical scope of the disclosure; such modifications, changes and substitutions do not depart from the spirit and scope of the embodiments disclosed herein, and they should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of claim 20.

Claims (10)

1. A virtual object display method is characterized by comprising the following steps:
responding to a first trigger operation, loading image resources corresponding to a first virtual object and at least one second virtual object bound with the first virtual object respectively, and action resources of the first virtual object;
calling image resources corresponding to the first virtual object and the second virtual object respectively, displaying images of the first virtual object and the second virtual object, calling action resources of the first virtual object, and controlling actions of the first virtual object and the second virtual object.
2. The method of claim 1, wherein the invoking the action resource of the first virtual object controls the actions of the first virtual object and the second virtual object, comprising:
extracting target action resources respectively matched with the first virtual object and the second virtual object at the current time from the action resources corresponding to the first virtual object;
and controlling the first virtual object and the second virtual object to respectively execute corresponding target actions by calling target action resources respectively matched with the first virtual object and the second virtual object.
3. The method of claim 1, wherein after invoking the action resource of the first virtual object, controlling the actions of the first virtual object and the second virtual object, the method further comprises:
responding to a second trigger operation, deleting the action resource of the first virtual object, and loading the action resource of the second virtual object;
and calling an action resource of the second virtual object, and controlling the actions of the first virtual object and the second virtual object.
4. The method of claim 1, wherein after invoking the action resource of the first virtual object, controlling the actions of the first virtual object and the second virtual object, the method further comprises:
responding to a third trigger operation, removing the binding relationship between the first virtual object and any one second virtual object, and establishing the binding relationship between the second virtual object and a third virtual object; the third virtual object is a virtual object loaded with corresponding image resources and action resources;
and calling the loaded action resource of the third virtual object to control the action of the second virtual object.
5. The method of claim 1, further comprising:
determining a target virtual object, responding to the target virtual object to execute a target action, and loading image resources and action resources of a related virtual object of the target virtual object;
and calling the image resource of the associated virtual object, displaying the image of the associated virtual object, calling the action resource of the associated virtual object, and controlling the action of the associated virtual object.
6. The method of claim 5, wherein after the target action is played, the method further comprises:
and after a preset condition is met, deleting the image resource and the action resource of the associated virtual object and canceling the display of the image of the associated virtual object.
7. The method according to claim 5, wherein in case that the target action is used to trigger changing the second virtual object into the associated virtual object, the invoking a character resource of the associated virtual object, showing a character of the associated virtual object, and invoking an action resource of the associated virtual object, controlling the action of the associated virtual object, comprises:
replacing the avatar of the second virtual object with the avatar of the associated virtual object based on the avatar resources of the associated virtual object, and controlling the action of the associated virtual object based on the action resources of the associated virtual object.
8. A virtual object presentation apparatus, comprising:
the loading module is used for responding to a first trigger operation, loading image resources corresponding to a first virtual object and at least one second virtual object bound with the first virtual object respectively, and action resources of the first virtual object;
and the display module is used for calling image resources corresponding to the first virtual object and the second virtual object respectively, displaying images of the first virtual object and the second virtual object, calling action resources of the first virtual object, and controlling actions of the first virtual object and the second virtual object.
9. A computer device, comprising: a processor, a memory storing machine-readable instructions executable by the processor, the processor for executing the machine-readable instructions stored in the memory, the processor performing the steps of the virtual object representation method according to any one of claims 1 to 7 when the machine-readable instructions are executed by the processor.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when executed by a computer device, performs the steps of the virtual object representation method according to any one of claims 1 to 7.
CN202310012491.0A 2023-01-05 2023-01-05 Virtual object display method and device, computer equipment and storage medium Pending CN115970296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310012491.0A CN115970296A (en) 2023-01-05 2023-01-05 Virtual object display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310012491.0A CN115970296A (en) 2023-01-05 2023-01-05 Virtual object display method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115970296A true CN115970296A (en) 2023-04-18

Family

ID=85962869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310012491.0A Pending CN115970296A (en) 2023-01-05 2023-01-05 Virtual object display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115970296A (en)

Similar Documents

Publication Publication Date Title
CN108619720B (en) Animation playing method and device, storage medium and electronic device
CN112402960B (en) State switching method, device, equipment and storage medium in virtual scene
CN111638793A (en) Aircraft display method and device, electronic equipment and storage medium
CN112076473B (en) Control method and device of virtual prop, electronic equipment and storage medium
US20230050933A1 (en) Two-dimensional figure display method and apparatus for virtual object, device, and storage medium
TWI831074B (en) Information processing methods, devices, equipments, computer-readable storage mediums, and computer program products in virtual scene
CN113559510B (en) Virtual skill control method, device, equipment and computer readable storage medium
WO2023160054A1 (en) Image rendering method and apparatus, electronic device, computer-readable storage medium, and computer program product
CN114067042A (en) Image rendering method, device, equipment, storage medium and program product
CN112669194B (en) Animation processing method, device, equipment and storage medium in virtual scene
CN111652987A (en) Method and device for generating AR group photo image
CN114344903A (en) Method, terminal and storage medium for controlling virtual object to pick up virtual item
CN112927332A (en) Skeletal animation updating method, device, equipment and storage medium
CN110930484B (en) Animation configuration method and device, storage medium and electronic device
CN113144603B (en) Switching method, device and equipment for calling objects in virtual scene and storage medium
CN114359458A (en) Image rendering method, device, equipment, storage medium and program product
CN115970296A (en) Virtual object display method and device, computer equipment and storage medium
CN111309421A (en) Interface resource loading method and device, terminal and storage medium
CN114042313A (en) Rendering display method and device, computer equipment and storage medium
CN114210057B (en) Method, device, equipment, medium and program product for picking up and processing virtual prop
CN115671734B (en) Virtual object control method and device, electronic equipment and storage medium
CN114219924B (en) Adaptive display method, device, equipment, medium and program product for virtual scene
WO2021143262A1 (en) Map element adding method, device, terminal, and storage medium
WO2023165198A1 (en) Image rendering method and apparatus, electronic device, computer-readable storage medium, and computer program product
WO2024032176A1 (en) Virtual item processing method and apparatus, electronic device, 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