Virtual character display method and apparatus, terminal, storage medium, and program product
By implementing the display method and device of virtual characters in the terminal, allowing the display of formation templates and character positions in the virtual environment, the problem of low efficiency in shaping and display of virtual characters in the prior art is solved, and more efficient and diversified are achieved virtual character display.
Patent Information
- Application Number
- PCT/CN2024/087929
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-21
- Filing Date
- 2024-04-16
- Publication Date
- 2025-02-06
AI Technical Summary
In the existing technology, players can only shape and display a single virtual character, which is inefficient and has a single display method.
By providing a method and device for displaying virtual characters, the terminal allows the terminal to display a formation template in a virtual environment, and the formation template includes at least two character positions, and the virtual character can display the corresponding character status at the target character position.
It improves the shaping efficiency and diversity of virtual characters, allows multiple virtual characters to display specific role states simultaneously, simplifies user operations.
Smart Images

Figure CN2024087929_06022025_PF_FP_ABST
Abstract
Description
Virtual character display method, device, terminal, storage medium and program product
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on June 21, 2023, with application number 2023107519259 and application name “Method, device, terminal, storage medium and program product for displaying virtual characters”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of human-computer interaction technology, and in particular to virtual character control technology. Background Art
[0003] Online role-playing games (RPGs) are a type of electronic game that allows players to play one or more virtual characters online and control their actions and behaviors. Players can also modify the characters' movements and appearances within the game.
[0004] In related art, players can use an action editor to edit the appearance of a single virtual character, changing the character's clothing, actions, etc., so that the virtual character presents the desired state. Moreover, after the player exits the action editor, the virtual character can retain the state edited by the player.
[0005] However, in the solutions provided by related technologies, players can only select one virtual character in their own account, shape the single virtual character in the action editor, and save it as a fixed image of the virtual character. The shaping efficiency of the virtual character is low, and the display method of the virtual character is too simple.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a method, device, terminal, storage medium and program product for displaying a virtual character, which helps to improve the efficiency of shaping the virtual character and can enrich the shaping and display methods of the virtual character.
[0008] The technical solution is as follows:
[0009] In one aspect, an embodiment of the present application provides a method for displaying a virtual character, which is executed by a terminal, and the method includes:
[0010] Displaying a formation selection interface, wherein the formation selection interface includes at least one formation template, wherein the formation template includes at least two character positions, wherein the character positions are used to carry virtual characters, and each character position has a corresponding position character state;
[0011] In response to an application operation of a target formation template in the formation selection interface, displaying the character positions included in the target formation template in a virtual environment;
[0012] When the virtual character is located at the target character position in the target formation template, the virtual character is controlled to display the target position character state corresponding to the target character position.
[0013] On the other hand, an embodiment of the present application provides a device for displaying a virtual character, the device comprising:
[0014] A display module is configured to display a formation selection interface, wherein the formation selection interface includes at least one formation template, wherein the formation template includes at least two character positions, wherein the character positions are configured to carry virtual characters, and each character position has a corresponding position character state;
[0015] The display module is further configured to display the character positions included in the target formation template in the virtual environment in response to an application operation on the target formation template in the formation selection interface;
[0016] The control module is used to control the virtual character to display the target position character state corresponding to the target position when the virtual character is located in the target position in the target formation template.
[0017] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the method for displaying a virtual character as described in the above aspects.
[0018] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the method for displaying a virtual character as described in the above aspects.
[0019] In another aspect, embodiments of the present application provide a computer program product or computer program, comprising computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual character display method provided in the above aspects.
[0020] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0021] In an embodiment of the present application, a terminal is capable of displaying a user-selected formation template in a virtual environment. The formation template includes at least two character positions. When a virtual character is located in a target character position in the formation template, the virtual character exhibits the target position character state corresponding to the target character position. Thus, by setting the position character state corresponding to the character position in the formation template, when the formation template is applied, the virtual character located in the character position in the formation template can exhibit the position character state corresponding to the character position in the virtual environment. That is, by controlling the virtual character to be in a specific character position in the formation template, the virtual character is quickly caused to exhibit the corresponding character state, thereby improving the efficiency of controlling the virtual character and eliminating the need for manual control and adjustment of the virtual character's character state, simplifying related user operations. Furthermore, since a formation template typically includes at least two character positions, it is no longer limited to controlling a single virtual character to exhibit a specific character state. At least two virtual characters can be simultaneously controlled to exhibit corresponding character states. In addition, since the character status presented by the virtual character is consistent with the position character status in the formation template, during the virtual character display process, at least two virtual characters can display interactive states according to the formation template, thereby enriching the display form of the virtual character and making the display method of the virtual character more diverse. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] FIG1 is a schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application;
[0023] FIG2 shows a flow chart of a method for displaying a virtual character provided by an exemplary embodiment of the present application;
[0024] FIG3 is a schematic diagram showing a process of displaying a virtual character according to an exemplary embodiment of the present application;
[0025] FIG4 shows a flowchart of a process for displaying a character's position in a virtual environment provided by an exemplary embodiment of the present application;
[0026] FIG5 is a schematic diagram showing an application process of a target formation template provided by an exemplary embodiment of the present application;
[0027] FIG6 shows a schematic diagram of a display position editing interface provided by an exemplary embodiment of the present application;
[0028] FIG7 is a schematic diagram showing some controls in a position editing interface provided by an exemplary embodiment of the present application;
[0029] FIG8 is a schematic diagram showing a display position editing interface provided by another exemplary embodiment of the present application;
[0030] FIG9 shows a schematic diagram of adjusting a character's position provided by an exemplary embodiment of the present application;
[0031] FIG10 shows a schematic diagram of adjusting the orientation of a character's position provided by an exemplary embodiment of the present application;
[0032] FIG11 is a flow chart showing a method for switching the body shape of a virtual character proposed in an exemplary embodiment of the present application;
[0033] FIG12 is a schematic diagram showing a candidate role list provided by an exemplary embodiment of the present application;
[0034] FIG13 shows a schematic diagram of controlling a virtual character to be positioned at a target character position provided by an exemplary embodiment of the present application;
[0035] FIG14 is a schematic diagram showing a formation template recycling process provided by an exemplary embodiment of the present application;
[0036] FIG15 shows a structural block diagram of a virtual character display device provided by an exemplary embodiment of the present application;
[0037] FIG16 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0039] First, a brief introduction to the terms involved in the embodiments of this application is given:
[0040] A virtual environment is a virtual environment displayed (or provided) when an application is running on a terminal. This virtual environment can be a simulation of the real world, a semi-simulated and semi-imaginary environment, or a purely imaginary environment. This application does not limit this to any of the following: a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment. The following embodiments illustrate a three-dimensional virtual environment.
[0041] A virtual character refers to an movable object in a virtual environment. The movable object can be at least one of a virtual person, a virtual animal, and an animated character. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character can be a three-dimensional virtual model. Each virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a portion of the space in the three-dimensional virtual environment. Optionally, the virtual character can be a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual character achieves different external images by wearing different skins. In some implementations, the virtual character can also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
[0042] Formation: refers to the positional arrangement between multiple different virtual characters in a virtual environment. There are at least two positions in a formation.
[0043] Position: refers to the position of a virtual character in the formation. The position in the formation can be used to carry the virtual character.
[0044] Optionally, different formations may contain different numbers of positions and positions of positions. In addition, generally, a position can only carry one virtual character. Of course, based on the needs of different virtual environments, the number of virtual characters that can be carried by different positions may vary, and this embodiment does not limit this.
[0045] Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment may include: a first terminal 110 , a server 120 , and a second terminal 130 .
[0046] An application 111 supporting a virtual environment is running on the first terminal 110. When the first terminal runs application 111, the user interface of application 111 is displayed on the screen of the first terminal 110. Application 111 can be an application such as a Multiplayer Online Battle Arena (MOBA) game or a Simulation Game (SLG). In this embodiment, an example of application 111 being a Multiplayer Online Role-Playing Game (MMORPG) is used. First terminal 110 is used by a first user 112. First user 112 uses first terminal 110 to control the activities of a first virtual character in the virtual environment. The first virtual character can be referred to as the primary virtual character of first user 112. The activities of the first virtual character include, but are not limited to, at least one of adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up items, shooting, attacking, throwing, and performing skills. Illustratively, the first virtual character is a first virtual person, such as a simulated or animated character.
[0047] An application 131 supporting a virtual environment runs on the second terminal 130. When the second terminal 130 runs application 131, the user interface of application 131 is displayed on the screen of the second terminal 130. Application 131 can be an application such as a MOBA game or a SLG game. In this embodiment, an MMORPG game is used as an example. Second terminal 130 is used by a second user 132. Second user 132 uses second terminal 130 to control a second virtual character in the virtual environment. This second virtual character can be referred to as the master virtual character of second user 132. Illustratively, the second virtual character is a second virtual person, such as a simulated or animated character.
[0048] Optionally, the first virtual character and the second virtual character are in the same virtual environment. Optionally, the first virtual character and the second virtual character may belong to the same camp, the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual character and the second virtual character may belong to different camps, different teams, different organizations, or have a hostile relationship.
[0049] Optionally, the application 111 installed on the first terminal 110 and the application 131 installed on the second terminal 130 are the same, or the applications installed on the two terminals are the same type of applications on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another of the multiple terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as an example. The first terminal 110 and the second terminal 130 can be the same or different device types, including at least one of a smartphone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer, and a desktop computer.
[0050] The first terminal 110 , the second terminal 130 and other terminals communicate with the server 120 through a wireless network or a wired network.
[0051] Server 120 includes at least one of a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. Server 120 provides backend services for applications that support virtual environments. Optionally, server 120 performs primary computing tasks, while terminals perform secondary computing tasks; alternatively, server 120 performs secondary computing tasks, while terminals perform primary computing tasks; alternatively, server 120 and terminals utilize a distributed computing architecture for collaborative computing.
[0052] In an illustrative example, the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-facing input / output interface (I / O interface) 125. The processor 122 is configured to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124. The user account database 123 is configured to store data of user accounts logged in on the first terminal 110, the second terminal 130, and other terminals, such as the user account's avatar, nickname, combat power index, and the service area where the user account is located. The battle service module 124 is configured to provide multiple battle rooms for users to engage in battles, such as 1v1 battles, 3v3 battles, 5v5 battles, etc. The user-facing I / O interface 125 is configured to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 via a wireless network or a wired network.
[0053] Please refer to FIG2 , which shows a flowchart of a method for displaying a virtual character provided by an exemplary embodiment of the present application. This embodiment is described by taking the method as being executed by the first terminal 110 or the second terminal 130 in the implementation environment shown in FIG1 , or other terminals in the implementation environment. The method includes the following steps:
[0054] Step 201: Display the formation selection interface.
[0055] Among them, the formation selection interface includes at least one formation template, the formation template includes at least two character positions, the character positions are used to carry virtual characters, and each character position has its own corresponding position character status.
[0056] The "position character state" refers to the state displayed by a virtual character when in that position. Different virtual characters in the same position display the same state. This state includes the virtual character's orientation, posture, and movement. Furthermore, when editing a formation template, the position character state of each position in the template can be edited individually, ensuring that each position has its own corresponding position character state.
[0057] A virtual character refers to a character controlled by a user in a virtual environment. The user can control the virtual character to position itself in a certain position within a formation within the virtual environment. A virtual environment refers to the virtual environment in which a virtual object resides during the execution of an application on a terminal. This virtual environment can be two-dimensional, three-dimensional, or otherwise. Optionally, in embodiments of the present application, the virtual environment is observed using a camera model.
[0058] Optionally, the camera model automatically follows the virtual character in the virtual world. That is, when the position of the virtual object in the virtual world changes, the camera model's viewing angle changes simultaneously with the virtual object's position in the virtual world, and the camera model always remains within a preset distance range of the virtual object in the virtual world. Optionally, during the automatic following process, the relative position of the camera model and the virtual object does not change.
[0059] A camera model refers to a three-dimensional model located around a virtual object in a virtual world. When a first-person perspective is used, the camera model can be located near or at the head of the virtual object. When a third-person perspective is used, the camera model can be located behind the virtual object and bound to the virtual object, or can be located at any position at a preset distance from the virtual object. Through this camera model, the virtual object in the virtual world can be observed from different angles. Optionally, when the third-person perspective is a first-person over-the-shoulder perspective, the camera model is located behind the virtual object (such as the head and shoulders of the virtual object). Optionally, in addition to the first-person perspective and the third-person perspective, the perspective also includes other perspectives, such as a bird's-eye view. When a bird's-eye view is used, the camera model can be located above the virtual object's head. The bird's-eye view is a perspective of observing the virtual world from an aerial perspective. Optionally, the camera model will not be actually displayed in the virtual world, that is, the camera model will not be displayed in the virtual world displayed in the user interface.
[0060] Optionally, the user can trigger an operation on the formation selection interface to display the formation selection interface on the upper layer of the virtual environment view. Optionally, the formation selection interface includes multiple formation templates, which may include default formation templates in the system and formation templates designed by the player controlling the virtual character.
[0061] Step 202 : In response to an application operation on a target formation template in a formation selection interface, displaying the character positions included in the target formation template in a virtual environment.
[0062] Optionally, the application operation may be a click operation, a drag operation, a sliding operation, etc. triggered by the user on the control corresponding to the target formation template in the formation selection interface. This application does not limit the specific operation method of the application operation.
[0063] Optionally, after triggering an application operation on a target formation template in the formation selection interface, the formation can be previewed in a virtual environment to demonstrate to the user the application effect of the target formation template in the virtual environment. Furthermore, after displaying the preview formation, the application position of the character formation included in the target formation template and the angle of application of the formation in the virtual environment can be changed in response to a movement operation or rotation operation, etc. Furthermore, based on the movement operation or rotation operation, the application effect of the target formation template after movement or rotation is displayed in real time in the virtual environment. After a movement operation or rotation operation is performed on a character formation in the target formation template, the relative positions and orientations of different character formations in the formation remain unchanged.
[0064] Optionally, the terminal displays the preset formation and confirms the application control in response to the application operation of the target formation template. In response to the triggering operation of the confirm application control, the character formations included in the target formation template are displayed in the virtual environment.
[0065] Step 203: When the virtual character is located at the target character position in the target formation template, the virtual character is controlled to display the target position character state corresponding to the target character position.
[0066] In the embodiment of the present application, multiple users can control multiple virtual characters to be located at different target character positions, or a single user can control multiple virtual characters to be located at different target character positions, which is not limited in this embodiment.
[0067] In response to the virtual character selection operation for the target character position, the terminal determines the virtual character selected by the user and located at the target character position, and enables the virtual character to present the target position character state corresponding to the target character position.
[0068] In an embodiment of the present application, the position role states corresponding to at least two role positions included in the formation template may be the same or different. The position role states corresponding to different role positions are determined when the formation template is generated.
[0069] In one possible implementation, when multiple virtual characters are located in the target character position and the virtual characters in the target character position display the target position character status corresponding to the target character position, the virtual camera model is controlled to take pictures of the multiple virtual characters, and the resulting image includes the multiple virtual characters displaying the corresponding target position character status.
[0070] Typically, when taking photos of multiple virtual characters in related technologies, users are required to manually control the movements, positions, orientations, and postures of each virtual character. However, in the multi-virtual character photography method provided in the above embodiment, once a virtual character enters a character formation, the corresponding position character status is automatically displayed. This simplifies the process of manually adjusting the virtual characters when taking photos of multiple virtual characters, effectively improving the efficiency of multi-virtual character photography.
[0071] Optionally, when controlling a virtual camera model to take a picture of a virtual character, the target character position in the virtual environment is controlled to be hidden, so that the captured image does not contain the target character position, but only includes the virtual environment and the virtual character presenting the corresponding formation character state, so as to achieve a better shooting effect.
[0072] Schematically, FIG3 shows a schematic diagram of a virtual character display process provided by an exemplary embodiment of the present application. A formation selection interface 301 displays a first formation template, a second formation template, and a third formation template. Assume that the third formation template includes three character positions. In response to a user applying a target formation template 302 (the third formation template) in the formation selection interface 301 (corresponding to a click operation in the figure), the terminal displays the first character position 303, the second character position 304, and the third character position 305 included in the target formation template in a virtual environment. When the user selects a virtual character 306 (the third character position 305) as the target character position, i.e., when the virtual character 306 is located in the third character position 305, the virtual character 306 is controlled to display the target position character state corresponding to the target position. In the figure, the target position character state is such that the virtual character's orientation is at a 45-degree angle to the formation centerline.
[0073] In summary, in an embodiment of the present application, a terminal can display a user-selected formation template in a virtual environment. The formation template includes at least two character positions. When a virtual character is located in a target character position in the formation template, the virtual character can exhibit the target position character state corresponding to the target character position. Thus, by setting the position character state corresponding to the character position in the formation template, when the formation template is applied, the virtual character located in the character position in the formation template can exhibit the position character state corresponding to the character position in the virtual environment. That is, by controlling the virtual character to be in a specific character position in the formation template, the virtual character can quickly exhibit the corresponding character state, thereby improving the efficiency of controlling the virtual character and eliminating the need for manual control and adjustment of the virtual character's character state, simplifying related user operations. Furthermore, since a formation template typically includes at least two character positions, it is no longer limited to controlling a single virtual character to exhibit a specific character state. At least two virtual characters can be simultaneously controlled to exhibit corresponding character states. In addition, since the character status presented by the virtual character is consistent with the position character status in the formation template, during the virtual character display process, at least two virtual characters can display interactive states according to the formation template, thereby enriching the display form of the virtual character and making the display method of the virtual character more diverse.
[0074] In an embodiment of the present application, after the virtual character is located in the target character position, the terminal controls the virtual character to display the target position character state corresponding to the target character position. Therefore, after the virtual character is located in the target character position, the terminal first obtains the target state parameters corresponding to the target character position based on the template identifier of the target formation template and the position identifier of the target character position.
[0075] In the embodiment of the present application, a formation template corresponds to the number of positions and the status parameters corresponding to each position in the formation. This data can be stored within the terminal or in a server that provides background support for an application that provides a virtual environment. In addition, different formation templates have different template identifiers in the storage space. The template identifier is a parameter that distinguishes different formation templates and is unique.
[0076] A formation template includes at least two character positions. Different character positions have different position identifiers, and their corresponding position statuses may differ. The position statuses are determined based on status parameters. Therefore, before the terminal controls the virtual character to display the position status corresponding to the target character position, it must first determine the currently applied formation template based on the template identifier of the target formation template and then obtain the corresponding target status parameters based on the position identifier of the target character position where the virtual character is located.
[0077] After obtaining the target state parameters, the virtual character is controlled to display the target position character state represented by the target state parameters.
[0078] The target state parameters include at least one of a target posture parameter, a target orientation parameter, and a target action parameter corresponding to the virtual character located at the target character position.
[0079] The target posture parameter is used to determine the posture of the virtual character in a static frame. After obtaining the target state parameter, the terminal controls the virtual character to display the target posture indicated by the target posture parameter based on the target posture parameter in the target state parameter.
[0080] The target orientation parameter is used to determine the orientation of the virtual character in the target character position. The orientation of the virtual character in the target character position should be consistent with the orientation of the target character position. The orientation can specifically be the relative orientation between the front of the target character position and the front of the target formation. For example, the front of the target character position is the front direction of the target formation template offset 90 degrees clockwise, then when the front of the target formation template in the virtual environment is due east, the orientation of the target character position in the virtual environment is due north. Optionally, the orientation indicated by the target orientation parameter is the relative orientation of the target character position in the target formation. When the target state parameter is obtained, the terminal adjusts the character orientation of the virtual character to the target orientation indicated by the target orientation parameter based on the target orientation parameter in the target state parameter, and the character orientation of the virtual character is consistent with the position orientation of the target character position.
[0081] The target action parameters are used to determine the dynamic actions performed by the virtual character in the target character position. After obtaining the target state parameters, the terminal controls the virtual character to perform the target action indicated by the target action parameters based on the target action parameters in the target state parameters.
[0082] In one possible implementation, the target state parameter may also indicate the start time for the virtual character in the target character position to execute the target action. Alternatively, the target state parameter may indicate that after all character positions in the target formation template are occupied by virtual characters, all virtual characters in the target formation template are triggered to simultaneously execute the target actions corresponding to their respective character positions, thereby controlling the virtual characters in each character position to simultaneously execute the corresponding target actions. Alternatively, the target state parameter may indicate that after all character positions in the target formation template are occupied by virtual characters, each virtual character in the target formation template is triggered to sequentially execute the target actions corresponding to their respective character positions in a certain order. Furthermore, the target actions indicated by the target state parameter may have a certain logical relationship between them. Based on this logical relationship, the virtual characters in each character position are controlled to sequentially execute the corresponding target actions, thereby creating an interactive effect between the virtual characters. For example, an interactive effect may include a first virtual character waving to a second virtual character, followed by the second virtual character also greeting the first virtual character.
[0083] In another possible implementation, after the virtual characters are controlled to begin performing a target action, the camera model can be used to record the virtual characters in the target formation template, thereby recording a video of the virtual characters interacting with each other. Furthermore, during the camera recording process, the character positions in the virtual environment can be hidden to achieve better video quality.
[0084] In this manner, based on the template identifier of the selected target formation template and the position identifier of the target character position, the target state parameters corresponding to the target character position are accurately obtained. Furthermore, the virtual character in the target character position is controlled to present a corresponding character state according to at least one of the target posture parameter, target orientation parameter, and target motion parameter in the target state parameters, thereby achieving refined and accurate control of the virtual character, allowing the virtual character to accurately present the desired character state. Furthermore, because the target formation template can simultaneously control at least two virtual characters to present corresponding character states, the at least two virtual characters can be more flexibly controlled to present corresponding character states as actually required, thereby demonstrating the effect of virtual character interaction.
[0085] In the embodiment of the present application, multiple formation templates can be used simultaneously in the same virtual environment, and the display effects of the multiple formation templates may be different. The following is an exemplary embodiment to illustrate the process of displaying the character formation in the virtual environment:
[0086] FIG4 shows a flowchart of a process for displaying a character's position in a virtual environment provided by an exemplary embodiment of the present application. The process includes:
[0087] Step 401: In response to a selection operation on a target formation template in a formation selection interface, a preview formation is displayed in a virtual environment.
[0088] The preview formation is used to allow the user to view the application effect of the target formation template in the virtual environment when the target formation template has not yet been applied to the virtual environment.
[0089] When displaying the preview formation, the terminal may adjust the position and orientation of the preview formation in the virtual environment in response to a user's control operation on the preview formation.
[0090] Step 402 : When the preview character positions included in the preview formation overlap with existing character positions in the virtual environment, in response to a formation position adjustment operation, adjust the display position of the preview formation in the virtual environment.
[0091] In embodiments of the present application, multiple formation templates may be applied simultaneously in a virtual environment, i.e., multiple character formations may be displayed simultaneously in the virtual environment. These multiple formation templates may be applied by the same terminal control application, or they may include formation templates applied by the terminal control application corresponding to a teammate's account in the same virtual environment. Optionally, within the same virtual environment, formation templates applied by the terminal control application corresponding to a non-teammate account may not be displayed, thereby preventing the character formations displayed in the virtual environment from affecting other users.
[0092] Optionally, the formation position adjustment operation can be a user dragging operation on the character formation included in the preview formation, and the relative position of the character formation in the formation template does not change during the dragging process. The dragging operation can control the direction and position of the formation template.
[0093] Optionally, in response to an application operation on the virtual environment, a preview formation and a wheel control are displayed in the virtual environment. The wheel control is used to trigger adjustment of the display position of the preview formation in the virtual environment. Furthermore, a joystick control is displayed below the wheel control. The joystick control is used to adjust the orientation of the preview formation. Specifically, in response to a push operation on the wheel control, the preview formation is controlled to translate in the direction indicated by the push operation; in response to a slide operation on the joystick control, the preview formation is controlled to rotate in the direction indicated by the slide operation.
[0094] It should be noted that the above two methods are both exemplary examples to illustrate the process of adjusting the display position of the preview formation in the virtual environment. In actual applications, those skilled in the art can set the formation position adjustment operation of the preview formation according to the specific application scenario, and this embodiment does not limit this.
[0095] Optionally, when the preview character positions included in the preview formation overlap with existing character positions in the virtual environment, the terminal can display a prompt message to remind the user that the existing character positions overlap with the character positions in the preset formation, prompting the user to trigger the formation position adjustment operation.
[0096] In an embodiment of the present application, if no existing character positions exist in the virtual environment, in response to a selection of a target formation template in the formation selection interface, after the preview formation is displayed in the virtual environment, the user can also perform a formation position adjustment operation to control the display position of the preview formation in the virtual environment. Furthermore, a confirmation control is displayed simultaneously with the display of the preview formation. In response to the user touching the confirmation control, the target character position in the target formation template is displayed at the display position of the preview character position in the preview formation in the virtual environment.
[0097] Step 403: When the preview character positions included in the preview formation do not overlap with existing character positions in the virtual environment, in response to the confirmation of the arrangement operation, the character positions included in the target formation template are displayed in the virtual environment.
[0098] The display effects of the character positions in the target formation template differ from those of the existing character positions. Furthermore, the preview character positions included in the preview formation differ from the existing character positions and the character positions in the target formation template. These differences in display effects may include differences in color, lines, shapes, animation effects, and other aspects, which are not limited in this embodiment.
[0099] The arrangement confirmation operation may be a touch operation on the arrangement confirmation control, or a long press operation or a double-click operation on the preview formation, etc. This embodiment does not limit the specific form of the arrangement confirmation operation.
[0100] In response to the confirmation operation, the terminal displays the character positions included in the target formation template at the positions included in the preview formation in the virtual environment. That is, the character positions in the target formation template and the character positions in the preview formation are displayed in the same positions in the virtual environment. Furthermore, the overall orientation of the target formation template displayed in the virtual environment is also the same as the overall orientation of the preview formation.
[0101] In this embodiment of the present application, the login terminal corresponding to a teammate's account will display the character positions in the formation template arranged by the login terminals corresponding to other accounts in the team in the virtual environment. Therefore, the application terminal of the formation template to which the existing character positions in the virtual environment belong may be the login terminal of the current account or the login terminal corresponding to a teammate's account.
[0102] In some embodiments, there is a first upper limit on the number of formation templates that can be applied by accounts in the same team in the virtual environment. If the number of formation templates applied by the user's team in the virtual environment has not reached the first upper limit, the terminal, in response to the confirmation of the deployment operation, displays the character positions included in the target formation template in the virtual environment. If the number of formation templates applied by the user's team in the virtual environment has reached the first upper limit, the terminal, in response to the confirmation of the deployment operation, displays a prompt message indicating that the team has reached the upper limit and that the formation deployment has failed.
[0103] In other embodiments, different accounts can control the number of formation templates that can be applied in the virtual environment, subject to a second upper limit. If the number of formation templates applied by the user in the current virtual environment has not reached the second upper limit, the terminal, in response to the confirmation of the arrangement operation, displays the character positions included in the target formation template in the virtual environment. If the number of formation templates applied by the user in the current virtual environment has reached the second upper limit, the terminal, in response to the confirmation of the arrangement operation, displays a prompt message, which is used to inform the user that the number of currently applied formation templates has reached the upper limit and the formation arrangement has failed.
[0104] Please refer to Figure 5, which shows a schematic diagram of the application process of a target formation template provided by an exemplary embodiment of the present application. A first character position 501, a second character position 502, and a third character position 503, included in the first formation template, are already displayed in the virtual environment. In response to an application operation (corresponding to a click operation in the figure) of the third formation template 504, a preview formation 505 is displayed in the virtual environment, including a first preview character position 5051, a second preview character position 5052, a third preview character position 5053, and a fourth preview character position 5054. The preview character positions in preview formation 505 are displayed differently from the existing character positions (corresponding to different lines in the figure). Furthermore, while preview formation 505 is displayed, a position adjustment control 506 is displayed to allow the user to adjust the display position of the preview formation. If the preview character positions included in the preview formation do not overlap with the existing character positions in the virtual environment, a confirmation placement control 507 is displayed.
[0105] In response to the confirm placement operation (corresponding to a click operation on confirm placement control 507 in the figure), the fourth character position 508, the fifth character position 509, the sixth character position 510, and the seventh character position 511 included in the target formation template are displayed in the virtual environment. Furthermore, the fourth character position 508, the fifth character position 509, the sixth character position 510, and the seventh character position 511 correspond to the first preview character position 5051, the second preview character position 5052, the third preview character position 5053, and the fourth preview character position 5054, respectively. The display effect of the character positions in the target formation template is different from the display effect of the existing character positions (corresponding to the different position filling conditions in the figure).
[0106] In an embodiment of the present application, in response to an operation to apply a target formation template, the terminal may first display a preview formation in a virtual environment. This allows the terminal to determine whether to adjust the target formation template's application position in the virtual environment by viewing the preview formation. For example, by checking whether the preview character positions in the preview formation overlap with existing character positions, the terminal can determine whether to adjust the target formation template's application position. This can achieve a better application effect and avoid the situation where character positions obscure each other. Furthermore, the display effect of the currently applied character position is different from that of the existing character positions, which helps users distinguish between character positions in different formations.
[0107] In the embodiments of the present application, the formation template can be a default system formation template of the application providing the virtual environment, or a user-designed formation template. In the embodiments of the present application, the application includes a formation editor that supports the user in designing the formation template. In the formation editor, the user can edit different character positions, such as their relative position and orientation within the formation template, as well as their corresponding position and character status.
[0108] First, the terminal displays the formation editing interface, which is used to edit the formation corresponding to the target formation template and the formation and character status corresponding to the character positions contained therein. The formation is the relative position of all formation positions.
[0109] When the formation editor needs to be enabled, the formation editing interface is displayed in response to a triggering operation on the formation editor.
[0110] Schematically, FIG6 shows a schematic diagram of a display position editing interface provided by an exemplary embodiment of the present application. In the figure, a first historical formation template, a second historical formation template, and a third historical formation template 602 are displayed in a first display interface 601, and in response to a click operation on the third historical template 602, a preview view 603 of the third historical template is displayed. In response to a click operation on the editing control 604, a jump is made to the display position editing interface 605. The position editing interface 605 contains three character positions, and the position identifiers of the three character positions are 1, 2, and 3 respectively, and the three character positions respectively carry a first example virtual character 606, a second example virtual character 607, and a third example virtual character 608. The character status of the example virtual character corresponds to the status parameters of the character position to which it belongs.
[0111] Optionally, in response to a triggering operation on the formation editor, an initial formation selection interface is displayed, which includes at least two initial formations. The initial formation can be a formation previously edited by the user or a system default formation. In response to a selection operation on a target initial formation, a formation editing interface is displayed, which displays candidate character positions included in the target initial formation and example virtual characters located in the candidate character positions.
[0112] In the formation editing interface, users can edit candidate character formations through the terminal as follows:
[0113] 1. In response to the selection operation of the candidate character position in the target formation template (i.e., the above-mentioned target initial formation), the terminal highlights the position identifier of the candidate character position in the formation editing interface.
[0114] Among them, the selection operation can be a click operation on the candidate character position, a click operation on the position logo of the candidate character position, a long press operation on the candidate character position, a sliding operation, etc., which is not limited in this embodiment.
[0115] 6 , in the formation editing interface, in response to the selection operation of the formation in which the third example virtual character is located in the target initial formation template, the formation identifier corresponding to the formation in which the third example virtual character 608 is located is highlighted (corresponding to the black fill in the figure).
[0116] In one possible implementation, in response to selecting a candidate character position, the formation viewing angle is adjusted based on the position of the candidate character position in the formation. After the formation viewing angle is adjusted, the example virtual character in the candidate character position is not obscured by example virtual characters in other character positions, and the display scale of the example virtual character in the candidate character position is increased.
[0117] When the distance between two character positions in a formation is close and the formation observation angle is inappropriate, occlusion may occur between the example virtual characters. Therefore, in order to ensure that when the character status of the occluded example virtual character is edited, it will not be affected by other example virtual characters, after selecting the candidate character position, the terminal can adjust the formation observation angle according to the position of the selected example virtual character (that is, the position of the candidate character position in the formation).
[0118] Furthermore, the display scale of the example virtual character in the selected candidate character position is adjusted so that the display scale of the example virtual character is larger than before the adjustment, thereby facilitating the user's observation of changes in the character status of the example virtual character in the candidate character position. It should be noted that changing the display scale does not materially affect the character status corresponding to the candidate character position; the display scale adjustment only takes effect after the candidate character position is selected.
[0119] In some embodiments, the user can manually change the formation observation angle to meet the user's observation needs at different perspectives.
[0120] In another possible implementation, the candidate character positions can be locked, and the character status corresponding to the locked candidate character position cannot be adjusted, which can avoid accidental touches when editing other character positions, resulting in changes in the character status of the candidate character position.
[0121] Schematically, as shown in Figure 7, the position editing interface also includes a lock control 701, a size switching control 702, an export control, and a delete control. In response to triggering the lock control 701, the current candidate character position (position 1) is locked. After locking, position 1 retains the current character status, and the terminal cannot control the corresponding character status of position 1 to change. In response to triggering the lock control 701 again, the current candidate character position (position 1) is unlocked, and position 1 can be edited normally after being unlocked.
[0122] 2. In response to a posture editing operation on a candidate character formation, the edited character posture is displayed through an example virtual character in the candidate character formation.
[0123] In one possible implementation, in response to a selection of a target character from a character list in a position editing interface, the terminal displays a character font corresponding to the selected target character through an example virtual character in a candidate character position. The character list may include system preset characters and the user's historically edited characters.
[0124] In another possible implementation, the terminal displays the edited character pose through the example virtual character in the candidate character array in response to a rotation operation on the skeleton points of the example virtual character in the candidate character array. The rotation operation can be a two-dimensional rotation operation or a three-dimensional rotation operation.
[0125] It should be noted that this embodiment only illustrates the process of gesture editing through the above two possible implementation methods, and does not limit the application scope of this embodiment.
[0126] 8 , a first example virtual character 802, a second example virtual character, and a third example virtual character are displayed in a formation editing interface 801. A first candidate character formation 803, to which first example virtual character 802 belongs, is selected. Furthermore, a character list is displayed in formation editing interface 801, with a first character control 804 selected. Therefore, the first example virtual character displays the first character corresponding to first character control 804.
[0127] 3. In response to the action editing operation on the candidate character formation, the edited character action is displayed through the example virtual character in the candidate character formation.
[0128] In some embodiments, the user can adjust the character movements of the example virtual character through formation editing, and the character movements can be dynamic movements.
[0129] Optionally, the system stores preset character actions, and the user can select a target action from the action list to edit the action of the candidate character position, causing the example virtual character in the candidate character position to perform the target action. Optionally, the user can edit multiple static posture frames for the candidate character position by setting static frame postures, and by combining the multiple posture frames in sequence and setting them to play in order, the action editing operation of the candidate character position can be completed. Among them, the posture editing method for the posture frame can refer to the posture editing operation process in the above embodiment, and this embodiment will not be repeated here.
[0130] 4. In response to the position adjustment operation on the candidate character formation, adjust the position of the candidate character formation in the formation corresponding to the target formation template.
[0131] In a possible implementation, the position adjustment operation may be a dragging operation on the candidate character formation. In response to the dragging operation on the candidate character formation, the candidate character formation is controlled to move in the dragging direction.
[0132] In another possible embodiment, a roulette wheel control is displayed in the formation editing interface, and in response to a push operation on the roulette wheel control, the candidate character formation is controlled to move in the direction of pushing the roulette wheel. Schematically, as shown in FIG9 , three candidate character formations are displayed in the formation editing interface 901, wherein the third candidate character formation 904 with a formation identifier of 3 is selected. After the candidate character formation is selected, a roulette wheel control 903 is displayed in the formation editing interface 901, and the roulette wheel control 903 is used to control the position of the candidate character formation in the formation. In response to a push operation on the roulette wheel control 903 to the right, the third candidate character formation 904 is adjusted to move to the right. Accordingly, the example virtual character 902 in the third candidate character formation 904 also moves to the right synchronously with the third candidate character formation 904.
[0133] 5. In response to the orientation adjustment operation on the candidate character formation, adjust the character orientation of the example virtual character in the candidate character formation.
[0134] In one possible embodiment, a joystick control is displayed in the formation editing interface. In response to a push operation on the joystick control, the candidate character formation is controlled to rotate in the direction of pushing the joystick, thereby adjusting the character orientation of the example virtual character in the candidate character formation.
[0135] As shown in Figure 10, a position editing interface 1001 displays three candidate character positions, with the third candidate character position 1004, identified as position 3, being selected. After the candidate character position is selected, a joystick control 1003 is displayed in the position editing interface. Joystick control 1003 is used to control the orientation of the virtual character in the candidate character position. In response to a leftward push on joystick control 1003, the example virtual character 1002 in the third candidate character position 1004 is rotated leftward, thereby adjusting the orientation of the example virtual character 1002.
[0136] 6. In response to the position number editing operation on the target formation template, adjust the number of character positions included in the target formation template in the position editing interface.
[0137] In the formation editing interface, users can increase the number of role positions in the target formation template or reduce the number of role positions in the target formation template according to design requirements.
[0138] Optionally, a candidate formation list is displayed on the formation editing screen. The candidate formation list contains multiple candidate formations. The number of positions and the arrangement of positions in the candidate formations may vary. For example, the candidate formation list may contain a 3-man formation, a 5-man formation, a 7-man formation, a 10-man formation, and so on.
[0139] Optionally, there is an upper limit on the number of positions included in a formation template. When the number of positions in the current target formation template reaches the upper limit, in response to the operation of increasing the number of positions in the target formation template, a quantity prompt message is displayed to prompt the user that the number of character positions in the current target formation template has reached the upper limit; when the number of positions in the current target formation template has not reached the upper limit, in response to the operation of increasing the number of positions in the target formation template, the number of character positions in the formation editing interface is increased.
[0140] It should be noted that, in the embodiment of the present application, the example virtual character displayed on the formation editing interface is only used as an exemplary display of the current formation editing situation, and the example virtual character will not be displayed during the application process.
[0141] In an embodiment of the present application, the user can edit the formation template through the formation editing interface. Specifically, the user can edit the formation, the number of character positions, the direction, posture and action of the virtual character in the character position, etc., so as to build a formation template that meets their own needs. In addition, through the formation template independently constructed by the user, a more diverse way of displaying virtual characters can be provided.
[0142] In the embodiment of the present application, because different virtual characters may have different body shapes, the body shape of the example virtual character in the formation editing interface may be different from the body shape of the virtual character in the character formation when the formation template is applied. For example, when a user creates an action in which a first virtual character touches the hair of a second virtual character, the user needs to edit the action or posture for the different character formations in the formation editing interface. During the editing process, the body shape of the example virtual character displayed in the formation editing interface may be different from the body shape of the virtual character in the character formation when the formation template is applied.
[0143] Therefore, in order to view the status of virtual characters of different sizes in the character formation during the editing of character postures or character actions in the formation editing interface, please refer to FIG11 , which shows a flowchart of a method for switching the size of a virtual character proposed in an exemplary embodiment of the present application. The method includes the following steps:
[0144] Step 1101: Display a formation editing interface. The formation editing interface is used to edit the formation corresponding to the target formation template and the formation and role status corresponding to the role formation contained therein.
[0145] The specific implementation of this step can refer to the implementation of displaying the position editing interface in the above embodiment, which will not be described in detail in this embodiment.
[0146] Step 1102: In response to the body type modification operation on the target character position in the target formation template, an example virtual character of the target body type is displayed in the formation editing interface.
[0147] In one possible implementation, after the target character position is selected in the position editing interface, in response to a size modification operation on the target character position, an example virtual character of the target size is displayed at the target character position in the position editing interface, where the target size is the size of the example virtual character.
[0148] Optionally, a body type modification control, such as body type modification control 702 in FIG. 7 , is displayed in the formation editing interface. In response to a triggering operation on the body type modification control, a candidate body type list is displayed, including at least two candidate body types. In response to a triggering operation on a target body type, an example avatar of the target body type is displayed in the formation editing interface.
[0149] Schematically, FIG12 shows a schematic diagram of a candidate body type list provided by an exemplary embodiment of the present application, which includes four candidate body types: me, adult male, adult female, and teenage female. "I" refers to the body type of the virtual character currently controlled by the account logged into the terminal, including the body type, appearance, clothing, etc. of the virtual character controlled by the account. In addition, adult male, adult female, and teenage female correspond to different body types. In addition, a prompt message "Only affects the creation preview effect, does not limit actual application" is displayed in the body type candidate list to prompt the user to perform body type modification operations in the formation editing interface. It is only used to display the character status display effect of virtual characters of different body types in the formation editing interface and is not equivalent to the actual application effect.
[0150] Step 1103: In response to the save operation on the target formation template, the target body shape is determined as the recommended character body shape for the target character formation position.
[0151] After modifying the example avatar's body type, in response to a save operation on the target formation template, the body type of the example avatar currently displayed in the target formation is determined as the recommended body type for the target formation. The recommended body type indicates that the formation will produce the best display effect when carrying a avatar with the recommended body type.
[0152] Optionally, in response to an editing operation on a character formation in the formation editing interface, the character status parameters of the character formation are adjusted; in response to a save operation on a target formation template, the character status parameters corresponding to the target character formation in the target formation template are saved.
[0153] In an embodiment of the present application, the body types of the example virtual characters in the character formation can be switched in the formation editing interface, allowing the user to view virtual characters of different body types displaying the character status of the character formation. This facilitates the user to edit the character formation based on the display effect to achieve a better virtual character display effect. Furthermore, based on the editing results of the character formation, corresponding recommended character body types are set for different character formations. When the formation template is applied, a virtual character matching the recommended character body type can be placed in the corresponding character formation, thereby improving the display effect of the virtual character.
[0154] After applying the target formation template, different character positions can be selected for different virtual characters. In one possible implementation, the user can be assisted in selecting a corresponding target character position for the virtual character based on the distance between the virtual character and the target character position.
[0155] When the distance between the virtual character and the target character position is less than a first distance threshold, a status display control is displayed. The status display control is used to trigger and control the virtual character to display the target position character state corresponding to the target character position. In response to the triggering operation of the status display control, the virtual character is controlled to move to the target character position.
[0156] Schematically, please refer to Figure 13, which shows a schematic diagram of controlling a virtual character to be located in a target character formation provided by an exemplary embodiment of the present application. The target formation template displayed in the virtual environment includes a first character formation 1301, a second character formation 1302, and a third character formation 1303. In addition, the virtual environment also includes a virtual character 1304. In the figure, the distance d between the virtual character 1304 and the third character formation 1303 is less than the first distance threshold. At this time, the status display control 1305 (corresponding to the posing control in the figure) is displayed. Subsequently, in response to a click operation on the status display control 1305, the virtual character is controlled to move to the third character formation 1303, and in the third character formation 1303, the virtual character is controlled to display the character state of the third character formation (corresponding to a 45-degree rotation to the left in the figure).
[0157] It should be noted that this embodiment only describes a method of controlling the virtual character to move to the target character position in one way. In addition, other methods such as triggering a click operation on the target character position may also be used, and this does not limit the scope of application of the embodiment of the present application.
[0158] In another possible implementation, after the virtual character is located at the target character position, a status separation control is displayed. In response to a triggering operation on the status separation control, the virtual character is controlled to separate from the target character position, and the character state corresponding to the target character position displayed by the virtual character is canceled.
[0159] In this way, through the above method, when the distance between the virtual character and the target character position is close, the virtual character can be quickly controlled to move to the target character position, and the position character status corresponding to the target character position can be displayed, thereby achieving efficient control of the virtual character.
[0160] In some embodiments, in response to a save operation on the formation template, the terminal determines the target body type as the recommended body type for the target character formation. Therefore, to achieve a better virtual character display effect, when the user selects a virtual character for the target character formation, the terminal matches the virtual character's body type with the recommended body type, allowing the user to select a more suitable virtual character for the target character formation.
[0161] In a possible implementation, when it is detected that the distance between the virtual character and the target character position is less than a first distance threshold, the terminal obtains the recommended character body shape corresponding to the target character position and the character body shape of the virtual character, and determines whether the recommended character body shape matches the character body shape.
[0162] Optionally, when the distance between the virtual character and the target character position is less than a first distance threshold and the character size of the virtual character matches the recommended character size corresponding to the target character position, the status display control is displayed.
[0163] Optionally, when the distance between the virtual character and the target character position is less than a first distance threshold, and the character size of the virtual character does not match the recommended character size corresponding to the target character position, a status display control and prompt information are displayed, and the prompt information is used to prompt that the character size of the virtual character does not match the recommended character size corresponding to the target character position.
[0164] In this embodiment of the present application, regardless of whether the virtual character's body type matches the recommended body type for the target character position, the user can trigger the status display control to cause the virtual character to move to the target virtual character and display the character status corresponding to the target character position. By displaying a prompt message, the user is guided to select a more suitable character position for the virtual character, thereby improving the display effect of the virtual character.
[0165] After the character positions in the target formation template are displayed in the virtual environment in response to the application operation, if the user who applied the target formation template no longer has the need to use the target formation template, the target formation template needs to be unapplied.
[0166] In one possible implementation, the virtual environment also displays a formation point corresponding to the target formation template. When the distance between the virtual character and the formation point is less than a second distance threshold, a formation recycle control is displayed. In response to triggering the formation recycle control, the terminal stops displaying the character positions included in the target formation template in the virtual environment.
[0167] The target formation template's corresponding eye can be used to indicate the target formation template's overall position and formation orientation in the virtual environment. When a virtual character approaches the eye, they may need to stop displaying the target formation template. The terminal then displays a formation retraction control, which guides the user to retract the formation.
[0168] For illustration, please refer to FIG. 14 , which illustrates a schematic diagram of a formation template recycling process provided by an exemplary embodiment of the present application. A first character position 1401, a second character position 1402, and a third character position 1403, included in a target formation template, are displayed in a virtual environment. Furthermore, the virtual environment also includes a virtual character 1404. In the figure, the distance d between virtual character 1404 and the formation center is less than a second distance threshold. At this point, a formation recycling control 1405 is displayed. Subsequently, in response to a click on formation recycling control 1405, the display of the character positions included in the target formation template in the virtual environment ceases.
[0169] In one possible implementation, after the target formation template is recycled, the virtual character originally displayed in the character formation still maintains the character state displayed when in the character formation, or, after the formation template is recycled, the virtual character originally displayed in the character formation stops maintaining the character state corresponding to the character formation.
[0170] In one possible implementation, a time threshold for displaying character positions is set. When the time for displaying the character positions in the target formation template in the virtual environment reaches the time threshold, the display of the character positions in the target formation template is automatically canceled.
[0171] Optionally, the character positions in the target formation template placed by the terminal control are visible to the virtual characters in the same team as the user, but are invisible to other virtual characters outside the team in the virtual environment. In addition, other virtual characters outside the team cannot be located in the character positions in the target formation template arranged by the terminal, and cannot control the character positions to cancel display.
[0172] In this embodiment of the present application, the terminal determines whether the user still needs to use the target formation template by detecting the presence of a virtual character near the formation eye. This allows for more accurate and intelligent judgment of user needs. Furthermore, since the formation eye is the center of the formation template, the user can determine the orientation and overall position of the target formation template by viewing the formation eye displayed in the virtual environment.
[0173] Please refer to FIG15 , which shows a block diagram of a virtual character display device provided by an exemplary embodiment of the present application. The device includes:
[0174] Display module 1501 is used to display a formation selection interface, wherein the formation selection interface includes at least one formation template, wherein the formation template includes at least two character positions, wherein the character positions are used to carry virtual characters, and each character position has a corresponding position character state;
[0175] The display module 1501 is further configured to display the character positions included in the target formation template in the virtual environment in response to an application operation on the target formation template in the formation selection interface;
[0176] The control module 1502 is configured to control the virtual character to display a target position character state corresponding to the target position when the virtual character is located in the target position in the target formation template.
[0177] Optionally, the control module 1502 is configured to:
[0178] Based on the template identifier of the target formation template and the position identifier of the target character position, obtaining a target state parameter corresponding to the target character position;
[0179] The virtual character is controlled to display the target position character state represented by the target state parameter.
[0180] Optionally, the control module 1502 is configured to:
[0181] Based on the target posture parameter in the target state parameter, controlling the virtual character to display a target posture;
[0182] Based on the target orientation parameter in the target state parameter, controlling the character orientation of the virtual character to be the target orientation;
[0183] Based on the target action parameters in the target state parameters, the virtual character is controlled to perform a target action.
[0184] Optional,
[0185] The display module 1501 is configured to display a status display control when the distance between the virtual character and the target character position is less than a first distance threshold, wherein the status display control is configured to trigger and control the virtual character to display the target position character state corresponding to the target character position;
[0186] The control module 1502 is configured to control the virtual character to move to the target character position in response to a triggering operation on the status display control.
[0187] Optionally, the display module 1501 is used to:
[0188] Displaying the status display control when the distance between the virtual character and the target character position is less than the first distance threshold and the character size of the virtual character matches the recommended character size corresponding to the target character position;
[0189] The display module 1501 is also used to display the status display control and prompt information when the distance between the virtual character and the target character position is less than the first distance threshold and the character size of the virtual character does not match the recommended character size corresponding to the target character position. The prompt information is used to prompt that the character size of the virtual character does not match the recommended character size corresponding to the target character position.
[0190] Optionally, the display module 1501 is further configured to:
[0191] Displaying a formation editing interface, wherein the formation editing interface is used to edit the formation corresponding to the target formation template and the formation and role status corresponding to the role positions contained therein;
[0192] In response to a body type modification operation on the target character position in the target formation template, displaying an example virtual character of the target body type in the formation editing interface;
[0193] The device further comprises:
[0194] A determination module is used to determine the target body shape as the recommended character body shape of the target character formation in response to a saving operation on the target formation template.
[0195] Optionally, the display module 1501 is used to:
[0196] In response to a selection operation on the target formation template in the formation selection interface, displaying a preview formation in the virtual environment;
[0197] When the preview character positions included in the preview formation do not overlap with the existing character positions in the virtual environment, in response to confirming the arrangement operation, the character positions included in the target formation template are displayed in the virtual environment, wherein the display effect of the character positions in the target formation template is different from the display effect of the existing character positions.
[0198] Optionally, the display module 1501 is used to:
[0199] In a case where the preview character positions included in the preview formation overlap with existing character positions in the virtual environment, the display position of the preview formation in the virtual environment is adjusted in response to a formation position adjustment operation.
[0200] Optionally, the virtual environment further displays a formation eye corresponding to the target formation template;
[0201] The display module 1501 is also used to display a formation recycling control when the distance between the virtual character and the formation eye is less than a second distance threshold; in response to a triggering operation of the formation recycling control, stop displaying the character position included in the target formation template in the virtual environment.
[0202] Optional,
[0203] The display module 1501 is further used to display a formation editing interface, wherein the formation editing interface is used to edit the formation corresponding to the target formation template and the formation role status corresponding to the role formation;
[0204] The control module 1502 is also used to, in response to a selection operation on a candidate character position in the target formation template, highlight the position identification of the candidate character position in the position editing interface; in response to a posture editing operation on the candidate character position, display the edited character posture through the example virtual character in the candidate character position; in response to an action editing operation on the candidate character position, display the edited character action through the example virtual character in the candidate character position; in response to a position adjustment operation on the candidate character position, adjust the position of the candidate character position in the formation corresponding to the target formation template; in response to an orientation adjustment operation on the candidate character position, adjust the character orientation of the example virtual character in the candidate character position; in response to an array quantity editing operation on the target formation template, adjust the number of the character positions included in the target formation template in the position editing interface.
[0205] Optional,
[0206] The control module 1502 is used to adjust the formation observation angle in response to the selection operation of the candidate character position based on the position of the candidate character position in the formation, wherein after the formation observation angle is adjusted, the example virtual character in the candidate character position is not blocked by the example virtual characters in other character positions, and the display ratio of the example virtual character in the candidate character position becomes larger.
[0207] In summary, in an embodiment of the present application, a terminal can display a user-selected formation template in a virtual environment. The formation template includes at least two character positions. When a virtual character is located in a target character position in the formation template, the virtual character can exhibit the target position character state corresponding to the target character position. Thus, by setting the position character state corresponding to the character position in the formation template, when the formation template is applied, the virtual character located in the character position in the formation template can exhibit the position character state corresponding to the character position in the virtual environment. That is, by controlling the virtual character to be in a specific character position in the formation template, the virtual character can quickly exhibit the corresponding character state, thereby improving the efficiency of controlling the virtual character and eliminating the need for manual control and adjustment of the virtual character's character state, simplifying related user operations. Furthermore, since a formation template typically includes at least two character positions, it is no longer limited to controlling a single virtual character to exhibit a specific character state. At least two virtual characters can be simultaneously controlled to exhibit corresponding character states. In addition, since the character status presented by the virtual character is consistent with the position character status in the formation template, during the virtual character display process, at least two virtual characters can display interactive states according to the formation template, thereby enriching the display form of the virtual character and making the display method of the virtual character more diverse.
[0208] It should be noted that the apparatus provided in the above embodiments is merely exemplified by the division of the above functional modules. In actual applications, the above functions can be distributed among different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The implementation process is detailed in the method embodiments and will not be repeated here.
[0209] Please refer to Figure 16, which shows a block diagram of a terminal 1600 according to an exemplary embodiment of the present application. Terminal 1600 may be a portable mobile terminal, such as a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, or a Moving Picture Experts Group Audio Layer IV (MP4) player. Terminal 1600 may also be referred to as user equipment, a portable terminal, or other similar names.
[0210] Typically, the terminal 1600 includes a processor 1601 and a memory 1602 .
[0211] The processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1601 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1601 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0212] Memory 1602 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1602 is used to store at least one instruction, which is executed by processor 1601 to implement the virtual character display method provided in the embodiments of the present application.
[0213] In some embodiments, the terminal 1600 may optionally further include: a peripheral device interface 1603 and at least one peripheral device.
[0214] The peripheral device interface 1603 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripheral device interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602, and the peripheral device interface 1603 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0215] Those skilled in the art will understand that the structure shown in FIG16 does not constitute a limitation on the terminal 1600 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0216] An embodiment of the present application further provides a computer-readable storage medium storing at least one program, which is loaded and executed by a processor to implement the virtual character display method described in the above embodiments.
[0217] According to one aspect of the present application, a computer program product is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual character display method provided in various optional implementations of the above aspects.
[0218] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0219] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for displaying a virtual character, executed by a terminal, the method comprising: Displaying a formation selection interface, wherein the formation selection interface includes at least one formation template, wherein the formation template includes at least two character positions, wherein the character positions are used to carry virtual characters, and each of the character positions has a corresponding position character state; In response to an application operation of a target formation template in the formation selection interface, displaying the character positions included in the target formation template in a virtual environment; When the virtual character is located at the target character position in the target formation template, the virtual character is controlled to display the target position character state corresponding to the target character position.
2. According to the method of claim 1, the step of controlling the virtual character to display the target position character state corresponding to the target character position comprises: Based on the template identifier of the target formation template and the position identifier of the target character position, obtaining a target state parameter corresponding to the target character position; The virtual character is controlled to display the target position character state represented by the target state parameter.
3. The method according to claim 2, wherein the controlling the virtual character to display the target position character state represented by the target state parameter comprises at least one of the following: Based on the target posture parameter in the target state parameter, controlling the virtual character to display the target posture; Based on the target orientation parameter in the target state parameter, controlling the character orientation of the virtual character to be the target orientation; Based on the target action parameters in the target state parameters, the virtual character is controlled to perform a target action.
4. The method according to any one of claims 1 to 3, before controlling the virtual character to display the target position character state corresponding to the target position character position when the virtual character is located in the target position character position in the target formation template, the method comprises: When the distance between the virtual character and the target character position is less than a first distance threshold, displaying a status display control, wherein the status display control is used to trigger and control the virtual character to display the target position character state corresponding to the target character position; In response to a triggering operation on the status display control, the virtual character is controlled to move to the target character position.
5. The method according to claim 4, wherein when the distance between the virtual character and the target character position is less than a first distance threshold, displaying a status display control comprises: When the distance between the virtual character and the target character position is less than the first distance threshold, and the character size of the virtual character matches the recommended character size corresponding to the target character position, displaying the status display control; The method further comprises: When the distance between the virtual character and the target character position is less than the first distance threshold, and the character size of the virtual character does not match the recommended character size corresponding to the target character position, the status display control and prompt information are displayed, and the prompt information is used to prompt that the character size of the virtual character does not match the recommended character size corresponding to the target character position.
6. The method according to any one of claims 1 to 5, further comprising: Displaying a formation editing interface, wherein the formation editing interface is used to edit the formation corresponding to the target formation template and the formation role status corresponding to the role formation contained therein; In response to a body shape modification operation on the target character position in the target formation template, displaying an example virtual character of the target body shape in the position editing interface; In response to a save operation on the target formation template, the target body shape is determined as a recommended character body shape for the target character formation.
7. The method according to any one of claims 1 to 6, wherein in response to an application operation of a target formation template in the formation selection interface, displaying the character positions included in the target formation template in a virtual environment comprises: In response to a selection operation on the target formation template in the formation selection interface, displaying a preview formation in the virtual environment; When there is no overlap between the preview character positions included in the preview formation and the existing character positions in the virtual environment, in response to confirming the arrangement operation, the character positions included in the target formation template are displayed in the virtual environment, wherein the display effect of the character positions in the target formation template is different from the display effect of the existing character positions.
8. The method according to claim 7, wherein in response to the application operation of the target formation template in the formation selection interface, displaying the character positions included in the target formation template in the virtual environment further comprises: In a case where the preview character positions included in the preview formation overlap with existing character positions in the virtual environment, in response to a formation position adjustment operation, a display position of the preview formation in the virtual environment is adjusted.
9. The method according to any one of claims 1 to 8, wherein the virtual environment further displays a formation eye corresponding to the target formation template; The method further comprises: When the distance between the virtual character and the formation eye is less than a second distance threshold, displaying a formation recycling control; In response to a triggering operation on the formation recycling control, the character positions included in the target formation template are stopped from being displayed in the virtual environment.
10. The method according to any one of claims 1 to 9, further comprising: Displaying a formation editing interface, wherein the formation editing interface is used to edit the formation corresponding to the target formation template and the formation role status corresponding to the role formation; In response to a selection operation on a candidate character position in the target formation template, highlighting a position identifier of the candidate character position in the position editing interface; In response to a posture editing operation on the candidate character formation, displaying the edited character posture through an example virtual character in the candidate character formation; In response to an action editing operation on the candidate character formation, displaying the edited character action through an example virtual character in the candidate character formation; In response to the position adjustment operation on the candidate character formation, adjusting the position of the candidate character formation in the formation corresponding to the target formation template; In response to the orientation adjustment operation on the candidate character array, adjusting the character orientation of the example virtual character in the candidate character array; In response to an operation to edit the number of positions of the target formation template, the number of the character positions included in the target formation template in the position editing interface is adjusted.
11. The method according to claim 10, wherein in response to the selection operation of the candidate character position in the target formation template, the position identifier of the candidate character position is highlighted in the position editing interface, comprising: In response to the selection operation of the candidate character position, the formation observation angle is adjusted based on the position of the candidate character position in the formation, wherein after the formation observation angle is adjusted, the example virtual character in the candidate character position is not blocked by the example virtual characters in other character positions, and the display ratio of the example virtual character in the candidate character position becomes larger.
12. A virtual character display device, the device comprising: A display module, used for displaying a formation selection interface, wherein the formation selection interface includes at least one formation template, wherein the formation template includes at least two character positions, wherein the character positions are used to carry virtual characters, and each character position has a corresponding position character state; The display module is further configured to display the character positions included in the target formation template in the virtual environment in response to an application operation on the target formation template in the formation selection interface; The control module is used to control the virtual character to display the target position character state corresponding to the target position when the virtual character is located in the target position of the target formation template.
13. A terminal comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for displaying a virtual character as claimed in any one of claims 1 to 11.
14. A computer-readable storage medium, wherein at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the method for displaying a virtual character according to any one of claims 1 to 11.
15. A computer program product, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, a processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the method for displaying a virtual character as described in any one of claims 1 to 11.
Citation Information
Cited By
Virtual character state setting method
US20240367047A1