WO2023207419A1 - Method and apparatus for displaying virtual object, and device and storage medium - Google Patents
Method and apparatus for displaying virtual object, and device and storage medium Download PDFInfo
- Publication number
- WO2023207419A1 WO2023207419A1 PCT/CN2023/082433 CN2023082433W WO2023207419A1 WO 2023207419 A1 WO2023207419 A1 WO 2023207419A1 CN 2023082433 W CN2023082433 W CN 2023082433W WO 2023207419 A1 WO2023207419 A1 WO 2023207419A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- virtual object
- floor
- virtual
- building
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/533—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/537—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
- A63F13/5372—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for tagging characters, objects or locations in the game scene, e.g. displaying a circle under the character controlled by the player
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/537—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
- A63F13/5375—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for graphically or textually suggesting an action, e.g. by displaying an arrow indicating a turn in a driving game
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/537—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
- A63F13/5378—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for displaying an additional top view, e.g. radar screens or maps
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/85—Providing additional services to players
- A63F13/87—Communicating with other players during game play, e.g. by e-mail or chat
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/303—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
- A63F2300/305—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display for providing a graphical or textual hint to the player
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/303—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
- A63F2300/307—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display for displaying an additional window with a view from the top of the game field, e.g. radar screen
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/308—Details of the user interface
Definitions
- Embodiments of the present application relate to the field of computer technology, and in particular to a virtual object display method, device, equipment and storage medium.
- Embodiments of the present application provide a virtual object display method, device, equipment and storage medium, which can improve the display effect and thereby improve the efficiency of human-computer interaction.
- the technical solutions are as follows:
- a virtual object display method is provided, the method is executed by a terminal device, the method includes:
- the target virtual object When the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building, the floor thumbnail of the virtual building is displayed.
- the target virtual object is a virtual object controlled by the local device, and the lifting state is through The state of moving on a lifting device;
- an indication mark of at least one virtual object located within the spatial range is displayed, and the indication mark indicates the floor corresponding to the height at which the virtual object is located.
- a virtual object display device includes:
- the display module is used to display the floor thumbnail of the virtual building when the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building.
- the target virtual object is a virtual object controlled by the local device, so
- the lifting state is a state of moving by riding on the lifting device;
- the display module is further configured to display an indication mark of at least one virtual object located within the spatial range in the floor thumbnail, where the indication mark indicates the floor corresponding to the height of the virtual object.
- a terminal device includes a processor and a memory. At least one computer program is stored in the memory. The at least one computer program is loaded and executed by the processor, so that the The terminal device implements the operations performed by the virtual object display method described in the above aspect.
- a non-volatile computer-readable storage medium is provided, at least one computer program is stored in the non-volatile computer-readable storage medium, and the at least one computer program is loaded and executed by a processor, To enable the computer to implement the operations performed by the virtual object display method described in the above aspect.
- a computer program product including a computer program that, when executed by a processor, causes the computer to implement operations performed by the virtual object display method described in the above aspect.
- a computer program includes computer instructions, which are loaded and executed by a processor, so that the computer implements the operations performed by the virtual object display method described in the above aspect.
- the floor thumbnail of the virtual building corresponding to the space range where the virtual object is currently located is displayed, and the floor thumbnail is displayed in the space range.
- the indication mark of the virtual object within the space range is used to indicate the vertical position of the virtual object within the space range, which enriches the displayed content, displays the location distribution of the virtual objects within the space range, and breaks the empty Due to the limitations of the virtual object position display method, a new solution for displaying the virtual object position is implemented, which improves the display effect of the virtual object position and is conducive to improving the user's flexibility in performing operations related to the virtual object position, thus improving the human-machine Interaction efficiency.
- Figure 1 is a schematic structural diagram of an implementation environment provided by an embodiment of the present application.
- Figure 2 is a flow chart of a virtual object display method provided by an embodiment of the present application.
- Figure 3 is a flow chart of another virtual object display method provided by an embodiment of the present application.
- Figure 4 is a schematic diagram of a virtual scene screen provided by an embodiment of the present application.
- Figure 5 is a schematic diagram of another virtual scene screen provided by an embodiment of the present application.
- Figure 6 is a schematic diagram of another virtual scene screen provided by an embodiment of the present application.
- Figure 7 is a schematic diagram of yet another virtual scene screen provided by an embodiment of the present application.
- Figure 8 is a flow chart of yet another virtual object display method provided by an embodiment of the present application.
- Figure 9 is a schematic structural diagram of a virtual object display device provided by an embodiment of the present application.
- Figure 10 is a schematic structural diagram of another virtual object display device provided by an embodiment of the present application.
- Figure 11 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- the plurality of virtual objects includes 3 virtual objects, and each refers to each of the 3 virtual objects. Any one refers to any one of the 3 virtual objects, which can be the third virtual object.
- Virtual scene It is a virtual scene displayed (or provided) when the application is running on the terminal device.
- the virtual scene is a simulation environment of the real world, or a half-simulation and half-fictional virtual environment, or a purely fictitious virtual environment.
- the virtual scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene, which is not limited in this application.
- the virtual scene includes the sky, land, ocean, etc.
- the land includes environmental elements such as deserts and cities, and the user can control virtual objects to move in the virtual scene.
- the virtual scene also includes virtual items, such as virtual projectiles, virtual buildings, virtual vehicles, virtual weapons and other props that virtual objects in the virtual scene use to arm themselves or fight with other virtual objects.
- the virtual scene can also be used to simulate real environments under different weather conditions, such as sunny days, rainy days, foggy days or dark nights. A variety of scene elements enhance the diversity and authenticity of virtual scenes.
- a virtual scene may also be referred to as a virtual environment.
- Virtual object refers to a virtual character that can move in a virtual scene.
- the movable object is a virtual character, a virtual animal, an animation character, etc.
- the virtual object is a virtual avatar representing the user in the virtual scene.
- the virtual scene includes multiple virtual objects. Each virtual object has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.
- the virtual object is a character controlled by operating on the client, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player set in a virtual scene battle. Character (Non-Player Character, NPC).
- the virtual object is a virtual character competing in a virtual scene.
- the number of virtual objects in the virtual scene battle is preset or dynamically determined based on the number of clients joining the battle, which is not limited in the embodiments of the present application.
- the user can control virtual objects to move in the virtual scene.
- the user controls Control virtual objects to freely fall, glide, or open a parachute to fall in the sky of the virtual scene, run, jump, crawl, bend forward, etc. on land, or control virtual objects to swim, float, or dive in the ocean etc., or control the virtual object to move in the virtual scene on a virtual vehicle.
- the user can also control virtual objects to enter and leave the virtual building in the virtual scene, control the virtual objects to ride on the lifting device to transfer floors in the virtual building, and discover and pick up virtual props in the virtual scene (for example, virtual throwing objects, virtual weapons and other props), thereby using the picked up virtual props to fight with other virtual objects.
- the virtual props are virtual clothing, virtual helmets, virtual body armors, virtual medical supplies, virtual cold weapons or virtual hot weapons, or other virtual objects. Virtual props left behind after an object is eliminated.
- the above scenario is only used as an example here, and the embodiment of the present application does not specifically limit this.
- Lifting device refers to virtual props that can be used by virtual objects in virtual scenes.
- Virtual objects can move on the lifting device.
- the lifting device is a virtual elevator, and the virtual elevator is located in a virtual building.
- the virtual object rides the virtual elevator to realize floor transfer in the virtual building.
- the lifting device is a virtual zipline.
- the virtual zipline is outside the wall of the virtual building.
- the virtual object can climb the virtual zipline to move vertically, thereby being able to enter any floor of the virtual building. It should be noted that the embodiment of the present application does not limit the type of the lifting device.
- the virtual object display method provided by the embodiment of the present application is executed by the terminal device.
- the terminal device is a smartphone, tablet computer, notebook computer, desktop computer or vehicle-mounted terminal, but is not limited thereto.
- Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
- the implementation environment includes at least one terminal device 101 (one is taken as an example in Figure 1) and a server 102.
- the terminal device 101 and the server 102 are connected through a wireless or wired network.
- the terminal device 101 is installed with a target application provided by the server 102.
- the target application supports displaying virtual scenes.
- the target application is a role-playing game (Role-Playing Game, RPG) or a multiplayer online tactical competitive game (Multiplayer Online). Battle Arena Games (MOBA), any of the multiplayer competitive survival games.
- the terminal device 101 is a terminal device used by any user. The user uses the terminal device 101 to control virtual objects located in the virtual scene to perform activities. The activities include crawling, walking, running, jumping, driving, picking up, shooting, attacking, At least one of throwing or riding.
- different users use different terminal devices to control virtual objects, and the virtual objects controlled by different terminal devices are located in the same virtual scene. At this time, different virtual objects can interact in the virtual scene. .
- Figure 2 is a flow chart of a virtual object display method provided by an embodiment of the present application, which is executed by a terminal device. As shown in Figure 2, the method includes:
- the terminal device displays a floor thumbnail of the virtual building when the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building.
- the target virtual object is a virtual object controlled by the local device, and the lifting state is The state of moving by riding on a lifting device.
- the virtual object when the virtual object moves by riding the lifting device, the virtual object is in the lifting state.
- the virtual object When the virtual object is in the lifting state and the virtual object is within the space range corresponding to any virtual building, the virtual object is in the lifting state.
- the virtual object can transfer floors in the virtual building through the lifting device.
- the user By displaying the floor thumbnail of the virtual building for the user to view, the user can learn the floor structure of the virtual building so that according to the floor structure of the virtual building, Control the virtual object to transfer floors in the virtual building. Under the guidance of the floor structure, the floor that needs to be transferred can be quickly located and the floor transfer is performed, which is beneficial to improving the efficiency and accuracy of floor transfer.
- the lifting device is used for moving virtual objects, and the virtual objects can move vertically or horizontally when riding on the lifting device.
- the lifting device is any form of virtual device.
- the lifting device is a virtual zipline, a virtual staircase, a virtual elevator, etc.
- the floor thumbnail is a schematic floor structure diagram of the virtual building, used to represent the floors included in the virtual building.
- the virtual building includes 10 floors, and the schematic diagram of the 10 floors is displayed in the floor thumbnail.
- the virtual building is any virtual building in the virtual scene, for example, the virtual building is a virtual building.
- Each virtual building in the virtual scene has a corresponding spatial range, which at least includes the virtual building.
- the space range occupied by the building, or the space range also includes part of the space range outside the space range occupied by the virtual building.
- the virtual building is a square virtual building, and the space range corresponding to the virtual building includes the The space range occupied by the virtual building and the space range within 5 meters outside each wall, that is, the space range of the virtual building includes the space occupied by the virtual building and part of the space outside the space occupied by the virtual building.
- the terminal device displays an indication mark of at least one virtual object located within the space range in the floor thumbnail, and the indication mark indicates the floor corresponding to the height of the virtual object.
- the virtual scene may also contain other virtual objects, and other virtual objects may also be located within the spatial range corresponding to the virtual building.
- the floor thumbnail is displayed, an indication mark of the virtual object located within the spatial range corresponding to the virtual building will be displayed in the floor thumbnail to indicate the location of the virtual object located within the spatial range in the virtual building.
- the virtual objects displaying the indicator in the floor thumbnail may only include other virtual objects except the target virtual object, or may include both the target virtual object and other virtual objects.
- the indicator of the target virtual object and the indicator of other virtual objects can be displayed in the floor thumbnail through the same display style.
- the indication mark of the target virtual object and the indication marks of other virtual objects can also be displayed through different display styles.
- the floor thumbnail of the virtual building corresponding to the space range where the virtual object is currently located is displayed, and the floor thumbnail is displayed in the space range.
- the indication mark of the virtual object within the space range is used to indicate the vertical position of the virtual object within the space range, which enriches the displayed content, displays the location distribution of the virtual objects within the space range, and breaks the It overcomes the limitations of the virtual object position display method and implements a new solution for displaying the virtual object position, which improves the display effect of the virtual object position and is conducive to improving the user's flexibility in performing operations related to the virtual object position, thereby improving human performance. computer interaction efficiency.
- the virtual object is controlled to ride on the lifting device through the displayed riding options, so as to realize the solution of first riding on the lifting device and then displaying the floor thumbnail.
- This process is detailed in the following embodiment.
- Figure 3 is a flow chart of a virtual object display method provided by an embodiment of the present application. It is applied in a terminal device. As shown in Figure 3, the method includes:
- the terminal device displays the ride options.
- the lifting device has a rideable range
- the rideable range is the range within which riding on the lifting device is allowed.
- the virtual object can be controlled to ride on the lifting device. Therefore, when the target virtual object enters the rideable range of the lifting device, the terminal device displays the riding option so that the virtual object can be controlled through the riding option. Ride the lift.
- the riding option is used to trigger an instruction for the target virtual object to ride on the lifting device.
- the riding option is any type of option.
- the riding option is a riding button or a slider.
- the ride option is a rope-up button. Once the virtual object 401 enters the rideable range of the virtual zipline 402 , the rope-up button 403 is displayed.
- the rideable range is a range of any shape.
- the rideable range is a circular area with the position of the lifting device as the center and any numerical value as the radius, or it is a circular area with the position of the lifting device as the vertex and with the radius of Any value is the radius of the sector area.
- the rideable range of the lifting device is: a circular area with the position of the lifting device as the center and a radius of 5 meters.
- the position of the lifting device may refer to the center of the corresponding horizontal position of the lifting device on the ground.
- the rideable range refers to a cylindrical space range with the horizontal position of the lifting device as the center, the preset value as the radius, and the maximum height of the lifting device as the height.
- the default value is any value.
- the spatial range determined based on the horizontal position of the lifting device, the preset value and the lifting device is a three-dimensional cylindrical space range. In this way, the virtual object can not only enter the rideable space of the lifting device when moving on the ground range, you can also enter the rideable range of the lifting device when moving above the ground. For example, when a virtual object moves on the floor of a virtual building, it enters the rideable range of the lifting device.
- the rideable range of the virtual zipline is: with the corresponding horizontal position of the virtual zipline on the ground as the center, a radius of 5 meters, and a height equal to the height of the virtual zipline.
- the virtual object moves on the ground. Once it moves into the cylindrical space range of the virtual zipline, it means that the virtual object enters the rideable range of the virtual zipline, and the ride options are displayed.
- the virtual object moves in the third floor of the virtual building. Once it enters the cylindrical space range of the virtual zipline, it means that the virtual object enters the rideable range of the virtual zipline, and the ride options are displayed.
- the terminal device controls the target virtual object to ride on the lifting device in response to the triggering operation of the riding option.
- the ride option is used to trigger and control the target virtual object to ride on the lifting device corresponding to the rideable range where it is currently located.
- the terminal device detects the triggering operation of the ride option, it controls the virtual object to ride on the lift device where it is currently located.
- the lifting device corresponding to the riding range realizes a one-button way to control the virtual object to ride on the lifting device. It does not require the user to manually control the movement of the virtual object and then ride on the lifting device, which improves the convenience of user operation.
- step 302 includes: in response to the triggering operation of the riding option, the terminal device plays an animation of the target virtual object riding on the lifting device, so as to play out the process of the target virtual object riding on the lifting device.
- the animation is completed, it means that the target virtual object successfully rides on the lifting device.
- the animation includes a scene of the target virtual object performing the target action.
- the target action is the action that the target virtual object needs to perform when riding the lifting device.
- the target action is the action of jumping and grabbing the zipline, which is shown in the played animation.
- the target virtual object jumps and grabs the zip line.
- different animations are played when the virtual object rides on different lifting devices, and the terminal device responds to the triggering operation of the ride option, determines the animation that matches the lifting device, and plays the animation that matches the lifting device.
- the target actions required to be performed by the virtual object riding on different lifting devices are different.
- the lifting device is a virtual zipline, and the target action required to be performed by the virtual zipline on the virtual object is for the virtual object to jump and grab the rope. action;
- the lifting device is a virtual elevator, and the target action required by the virtual object to take the virtual elevator is the action of the virtual object walking and entering the virtual elevator. Therefore, in response to the trigger operation of the ride option, it is necessary to determine the animation that matches the lift device to ensure that the played animation matches the lift device, realizing a solution for playing different animations when riding on different lift devices, enriching the display content to ensure the display effect.
- the terminal device displays a floor thumbnail of the virtual building.
- the target virtual object after controlling the target virtual object to ride on the lifting device, the target virtual object can move by riding on the lifting device. At this time, the target virtual object is in a lifting state, and when the virtual object is in a lifting state and the virtual object When the object is in the spatial range corresponding to any virtual building, the virtual object can transfer floors in the virtual building through the lifting device, and the floor thumbnails of the virtual building are displayed for the user to view, so that the user can learn about the virtual building.
- the floor structure of the building is used to control the floor transfer of virtual objects in the virtual building according to the floor structure of the virtual building. Under the guidance of the floor structure, the floor that needs to be transferred can be quickly located and the floor transfer is performed, which is beneficial to improving the efficiency and accuracy of floor transfer.
- the floor thumbnail can be displayed in any way, for example, by HUD (Head-Up Display), that is, in the interface displayed by the terminal device, the information is displayed with a head-up display. way to display floor thumbnails.
- HUD Head-Up Display
- the floor thumbnail is displayed directly in front of the target virtual object's line of sight, allowing the target virtual object to see the floor thumbnail without lowering or turning its head. It is helpful to improve the efficiency of the target virtual object to view the floor thumbnails, and the display effect of the floor thumbnails is better.
- the floor thumbnail is displayed at the center position of the target virtual object, or at other locations, which is not limited in this application.
- the center position of the target virtual object may refer to the position where the virtual prop held by the target virtual object is aimed.
- the floor thumbnail is displayed in a translucent manner or in an opaque manner, which is not limited in this application.
- the transparency of the floor thumbnail can be the system default transparency or the transparency set by the user.
- step 303 includes: when the target virtual object is in a lifting state, the terminal device determines the space based on the position of the target virtual object and the spatial range corresponding to at least one virtual building in the virtual scene.
- a virtual building whose space range includes the position of the target virtual object is displayed, and a floor thumbnail of the virtual building is displayed based on the determined floor information of the virtual building.
- the floor information indicates the floors contained in the virtual building.
- the floor information includes the number of floors of the virtual building, and the number of floors is used to represent the number of floors included in the virtual building.
- the process of displaying floor thumbnails based on the floor information includes: based on the number of floors included in the floor information, displaying floor graphics for the number of floors in the floor thumbnails. That is, based on the number of floors, a floor thumbnail of the virtual building is displayed, and the floor thumbnail includes a floor graphic of the number of floors.
- Each floor graphic corresponds to a floor in the virtual building, that is, each floor graphic represents a floor in the virtual building, and the floor graphics of the number of floors displayed in the floor thumbnail represent the floor conditions of the virtual building.
- the floor information includes the number of floors of the virtual building and the terrain identification of each floor.
- the terrain identification indicates whether the corresponding floor can be entered.
- the process of displaying floor thumbnails based on the floor information includes: based on the floor information.
- the number of floors included and the terrain identification of each floor are displayed in the floor thumbnail, and the floor graphics of the number of floors are displayed.
- the display style of each floor graphics matches the terrain identification of the corresponding floor. That is to say, based on the number of floors and the terrain identification of each floor, the floor thumbnail of the virtual building is displayed.
- the floor thumbnail includes the floor graphics of the number of floors, and the display style of each floor graphic is consistent with the terrain identification of the corresponding floor. match.
- the floor graphic is a rectangle.
- the terrain marking indicates that the corresponding floor can be entered
- the floor graphic matching the terrain mark is displayed in a blank rectangular style; when the terrain mark indicates that the corresponding floor is inaccessible, the floor graphic matching the terrain mark is displayed.
- the graphic is displayed in the style of a rectangle containing diagonal lines.
- the terrain identification includes a first identification or a second identification. The first identification indicates that the corresponding floor can be entered, and the second identification indicates that the corresponding floor is inaccessible.
- the floor information of a virtual building includes the number of floors and the terrain identification of each floor.
- the number of floors is 10.
- the floor thumbnail contains 10 floor graphics, and the floor graphics corresponding to the first 5 floors are displayed in the style of a rectangle containing diagonal lines, and the floor graphics corresponding to the last 5 floors are displayed in the style of a blank rectangle.
- the arrangement order of the floor graphics in the floor thumbnail is the same as the arrangement order of the floors in the virtual building.
- the first floor graphic in the floor thumbnail corresponds to the first floor in the virtual building
- the second floor graphic in the floor thumbnail corresponds to the second floor in the virtual building.
- the terminal device displays an indication mark of at least one virtual object located within the space range in the floor thumbnail, and the indication mark indicates the floor corresponding to the height of the virtual object.
- an indication mark of at least one virtual object located within the space range corresponding to the virtual building is displayed to indicate that the floor thumbnail is located in the space range. The location of the virtual object in the virtual building.
- the indicator mark can be expressed in any form.
- the indicator mark can be expressed in the form of a circle or a graphic representation of other shapes.
- the indicator marks of different virtual objects are represented by graphics of different colors, or the indicator marks of different virtual objects are represented by graphics of different shapes, or the indicator marks of virtual objects are displayed according to camps, which is not limited in this application.
- the floor thumbnail displays the indication mark of the friendly virtual object. That is, step 304 includes: in the floor thumbnail, displaying the indicator of the friendly virtual object located within the space range. Indicates that the friendly virtual object and the target virtual object belong to the same camp.
- virtual objects in the virtual scene can interact with friendly virtual objects belonging to the same camp. Therefore, when the virtual object is in a lifting state and is located within the space corresponding to any virtual building, The vertical position of the friendly virtual object located within the space corresponding to the virtual building is displayed, so that the user can view the position of the friendly virtual object in the virtual building, and it is convenient for the user to control the target virtual object to interact with the friendly virtual object. , thereby improving user experience.
- the embodiment of the present application only takes as an example that at least one virtual object located within the spatial range includes a friendly virtual object of the target virtual object.
- the virtual object in the virtual scene The virtual object can also interact with virtual objects belonging to different camps, then the at least one virtual object also includes other virtual objects.
- the at least one virtual object includes the target virtual object and a friendly virtual object of the virtual object; or the at least one virtual object includes the target virtual object and an enemy virtual object of the virtual object; or the at least one virtual object The object includes an enemy virtual object of the target virtual object; or, the at least one virtual object includes the target virtual object and a friendly virtual object and an enemy virtual object of the target virtual object, which is not limited in this application.
- the height of the virtual object and the floor information of the virtual building are used to determine the floor where the virtual object is located, that is, the process of determining the floor corresponding to the height of the virtual object includes: When the virtual object is located within the spatial range corresponding to the virtual building, the floor corresponding to the height of the virtual object is determined based on the height of the virtual object, the number of floors of the virtual building and the height of the virtual building.
- the height of the virtual object is the height of the position of the virtual object.
- obtain the position information of the virtual object and determine the height of the virtual object based on the position information.
- the height interval corresponding to each floor of the virtual building can be determined.
- the height interval corresponding to each floor can be determined. The floor corresponding to the height of the virtual object.
- the height interval to which the height belongs is determined as the floor corresponding to the determined height interval as the floor where the virtual object is located.
- the floor thumbnail also displays combat special effects. That is, the method also includes: in the floor thumbnail, display the combat special effects of the combat virtual object, and the combat virtual object is located on the virtual Virtual objects within the space corresponding to the building and in a combat state.
- the combat virtual object is the virtual object corresponding to any indicator displayed in the floor thumbnail.
- virtual objects in the virtual scene can compete with each other. Once the virtual object corresponding to the indication mark displayed in the floor thumbnail enters the battle state, the battle special effects will be displayed in the floor thumbnail. Indicating that the virtual object is in a combat state enriches the content contained in the floor thumbnail so that the user can know the combat status of the virtual object located in the space corresponding to the virtual building, thereby improving the display effect and user experience.
- the combat state includes an attacking state or an attacked state.
- different combat special effects are displayed in the floor thumbnail.
- the firing special effects of the combat virtual object are displayed in the floor thumbnail; or, when the combat virtual object is in the attack state, the injury special effects of the combat virtual object are displayed in the floor thumbnail.
- the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator of the combat virtual object and the combat special effects are displayed in the same floor graphics.
- the embodiment of the present application does not limit the relationship between the indicator signs displayed in the same floor graphic and the positions of the battle special effects.
- the battle special effects are displayed in the upper right corner area of the indicator mark, or the battle special effects are displayed in the right area of the indicator mark, or the battle special effects are displayed around the indicator mark, etc.
- the floor thumbnail uses multiple floor graphics to represent the floors contained in the virtual building.
- the floor graphics corresponding to the floor in the floor thumbnail are , the indicator mark of the battle virtual object is displayed.
- the battle special effects will be displayed in the floor graphics displaying the indicator mark of the battle virtual object to indicate that the battle virtual object is on this floor. Battle.
- a target application provided by the server is installed on the terminal device.
- the terminal device creates a virtual scene through the target application, controls the target virtual object to move in the virtual scene, and when the target virtual object enters any lifting device in the virtual scene
- the rideable range is within the rideable range
- the ride option is displayed, and in response to the trigger operation of the ride option, the target virtual object is controlled to ride on the lifting device.
- the application displays floor thumbnails based on this target.
- the terminal device obtains virtual data from the server through the target application.
- the battle information of the virtual object indicates the battle status of the virtual object. Based on the battle information of the virtual object, the battle special effects of the virtual object are displayed in the floor thumbnail.
- This server is used to serve the target application.
- the location information and battle information of each virtual object are stored in the server.
- the terminal device obtains the location information of the virtual object from the server to determine the virtual object located within the spatial range corresponding to the virtual building.
- the object after determining the virtual object located within the space range and the floor corresponding to the height of the virtual object within the space range, obtains the battle information of the virtual object located within the space range from the server. Based on the battle information, that is It can be obtained whether the virtual objects located within the space are in a battle state. Once it is determined that any virtual object is in a battle state, the battle special effects of the virtual object will be displayed.
- the position information includes coordinates in a three-dimensional coordinate system in the virtual scene, the coordinates of the X-axis and the Y-axis in the position information are used to indicate the horizontal position, and the coordinates of the Z-axis in the position information indicate where the virtual object is located. high.
- the virtual object can also be controlled to leave the lifting device to achieve floor transfer. That is, after step 304, the method also includes: in response to the instruction to leave the lifting device, control the target virtual object to leave the lifting device. Lift the device and enter the floor corresponding to the current height of the target virtual object; cancel the display of the floor thumbnail.
- the target virtual object rides on the lifting device to realize floor transfer in the virtual building.
- the target virtual object can move vertically on the lifting device to adjust the target virtual object.
- the target virtual object receives an instruction to leave the lifting device, the target virtual object is controlled to leave the lifting device and enter the floor corresponding to the height it is located at, thus realizing the plan of using the lifting device to transfer floors in the virtual building. It improves the convenience of location transfer and improves user experience.
- the floor thumbnail can be canceled without displaying the floor thumbnail.
- the detachment option is displayed, in response to the triggering operation of the detachment option, an instruction to detach from the lifting device is obtained, and then in response to the instruction to detach from the lifting device, the target virtual object is controlled to detach.
- the lifting device and enters the floor corresponding to the current height of the target virtual object; cancels the display of the floor thumbnail.
- the disengagement option is any type of option, for example, the disengagement option is a button or a slider. This detachment option is used to control the target virtual object to detach from the lifting device it is currently riding on.
- the terminal device displays a virtual scene thumbnail
- the virtual scene thumbnail displays the horizontal position of the at least one virtual object in the virtual scene.
- the virtual scene thumbnail is a plan view formed by reducing the size of the top view of the map of the virtual scene, and can indicate to the user the horizontal position of the virtual object in the virtual scene.
- the floor thumbnails are displayed, but also the virtual scene thumbnails are displayed.
- the vertical position of the virtual objects is displayed in the floor thumbnails.
- the scene thumbnail shows the horizontal position of the virtual object in the virtual scene, that is, a solution for displaying the three-dimensional position of the virtual object is implemented.
- the floor thumbnail of the virtual building corresponding to the space range where the virtual object is currently located is displayed, and the floor thumbnail is displayed in the space range.
- the indication mark of the virtual object within the space range is used to indicate the vertical position of the virtual object within the space range, which enriches the displayed content, displays the location distribution of the virtual objects within the space range, and breaks the It overcomes the limitations of the virtual object position display method and implements a new solution for displaying the virtual object position, which improves the display effect of the virtual object position and is conducive to improving the user's flexibility in performing operations related to the virtual object position, thereby improving human performance. computer interaction efficiency.
- the riding options are immediately displayed, and the virtual object is controlled to ride on the lifting device through the riding options, realizing a one-click
- the method of controlling the virtual object to ride on the lifting device eliminates the need for the user to manually control the movement of the virtual object and then ride on the lifting device, which improves the convenience of operation.
- animation is used to present the process of virtual objects riding on the lifting device, which improves the display effect.
- different patterns are used in the floor thumbnails to indicate whether the floors in the virtual building can be entered, which enriches the content displayed in the floor thumbnails so that users can know whether each floor in the virtual building can be entered, thereby improving the user experience.
- the vertical position of the friendly virtual object located within the spatial range corresponding to the virtual building is displayed so that the user can view the friendly object.
- the position of the virtual object in the virtual building is convenient for the user to control the target virtual object to interact with the friendly virtual object, thereby improving the user experience.
- the battle special effects are displayed in the floor thumbnail, which enriches the content contained in the floor thumbnail so that the user can know the battle situation of the virtual object located in the space corresponding to the virtual building, thereby improving
- the display effect also improves the user experience.
- the target virtual object After receiving the instruction for the target virtual object to detach from the lifting device, the target virtual object is controlled to detach from the lifting device and enter the floor corresponding to the height, realizing the plan of using the lifting device to transfer floors in the virtual building, improving the efficiency of position transfer. Convenience improves user experience.
- the method of controlling the target virtual object to ride on the lifting device includes: when the target virtual object enters the rideable range of the lifting device and the automatic riding function of the target virtual object has been turned on, controlling the target virtual object Subject rides the lift.
- the virtual object has an automatic riding function.
- the automatic riding function of the virtual object is turned on, once the virtual object enters the rideable range of any lifting device, the target virtual object is immediately controlled to ride on the lifting device without Then manually control the virtual object to ride on the lifting device, thereby improving the convenience of control.
- the process of turning on the automatic riding function of the virtual object includes: when the target virtual object enters the rideable range of any lifting device, displaying the automatic riding option; in response to the triggering operation of the automatic riding option, turning on the target virtual object automatic ride function.
- the target virtual object in addition to turning on the automatic riding function of the target virtual object, is also controlled to ride on the lifting device corresponding to the rideable range where it is currently located.
- the Auto Ride option is used to turn on the Auto Ride function.
- an automatic riding option will be displayed.
- the automatic riding option is shown as the automatic riding option 404 in Figure 4, so that the user can pass the
- the automatic riding option conveniently turns on the automatic riding function of the target virtual object, and controls the lifting device corresponding to the rideable range where the target virtual object is currently riding. After that, once the target virtual object enters the rideable range of any lifting device , the target virtual object can be automatically controlled to ride on the lifting device.
- the floor thumbnail is displayed according to the above steps 303-304.
- the virtual object has an automatic riding function.
- the automatic riding function of the virtual object is turned on, once the virtual object enters the rideable range of any lifting device, the target virtual object is immediately controlled to ride on the lifting device without Then manually control the virtual object to ride on the lifting device, thereby improving the convenience of control.
- the above solution for displaying automatic riding options can be combined with the above embodiment shown in FIG. 3 .
- the automatic ride option and the ride option are displayed, and in response to detecting the trigger operation on the ride option, the floor thumbnail is displayed according to the above steps 302-304; in response to Detect the triggering operation of the automatic riding option, control the target virtual object to ride on the lifting device corresponding to the current rideable range, and turn on the automatic riding function of the target virtual object, and then display the floor thumbnail according to the above steps 303-304.
- a direction mark can also be displayed in the ride options.
- the direction mark is used to indicate the current direction of riding the lifting device through the ride option. Movement direction.
- the riding options are immediately displayed and the direction mark is displayed in the riding options to indicate that the virtual object will ride on the lifting device according to its current state. Which direction to move for users to view, thus enriching the displayed content and improving user experience.
- the direction indicator includes a first direction indicator or a second direction indicator, the first direction indicator indicates an ascending direction, and the second direction indicator indicates a descending direction.
- the direction indicator displayed in the ride options is determined based on the viewing angle of the virtual object. That is, the process of determining the direction indicator includes: when the target virtual object enters the rideable range of the lifting device When , based on the sight angle of the target virtual object, a direction mark matching the sight angle is displayed in the ride option. That is to say, when the target virtual object enters the rideable range of the lifting device, the ride option is displayed based on the sight angle of the target virtual object, and the ride option displays a direction mark that matches the sight angle.
- the sight angle is the angle between the virtual object's sight direction and the horizontal direction.
- the line of sight angle includes an elevation angle or a depression angle, the line of sight direction is above the horizontal direction, and the angle between the line of sight direction and the horizontal direction is the elevation angle, the line of sight direction is below the horizontal direction, and the angle between the line of sight direction and the horizontal direction is an elevation angle.
- the angle between is the depression angle.
- the sight angle of the target virtual object is an elevation angle
- an ascending sign is displayed in the ride option
- the sight angle of the target virtual object is a depression angle
- a descending sign is displayed in the ride option.
- the direction mark displayed in the ride options can also be adjusted.
- the process of adjusting the direction mark includes: adjusting the sight angle of the target virtual object; in the ride options, displaying and adjusting The rear sight angle matches the direction mark.
- a way of displaying a direction indicator that matches the adjusted sight angle in the ride option is to adjust the direction indicator displayed in the ride option to a direction indicator that matches the adjusted sight angle.
- the ride option when the target virtual object is within the rideable range of the lifting device, the ride option is always displayed, and the direction indicator displayed in the ride option always matches the sight angle of the target virtual object, That is, when the target virtual object is within the rideable range of the lifting device, the direction mark displayed in the ride option will change as the sight angle of the target virtual object changes.
- the sight angle of the target virtual object is adjusted by adjusting the sight direction of the target virtual object.
- the line of sight angle is the angle between the line of sight direction of the target virtual object and the horizontal direction
- adjusting the line of sight direction of the target virtual object can adjust the line of sight angle of the target virtual object.
- the sight angle of the target virtual object is the elevation angle
- an ascending sign is displayed in the ride option.
- the sight direction of the target virtual object is adjusted so that the sight angle of the target virtual object also changes.
- a descent mark is displayed in the ride option.
- the virtual object is also controlled to move in the direction indicated by the direction mark, that is, the method It also includes: controlling the target virtual object to move along the direction indicated by the direction mark after controlling the target virtual object to ride on the lifting device.
- the virtual object After controlling the virtual object to ride on the lifting device, the virtual object will be controlled to move in the direction indicated by the direction mark, thus realizing the automatic movement of the virtual object.
- the user no longer needs to control the movement of the virtual object, which improves the convenience of control.
- the displayed riding options when the target virtual object enters the rideable range of the lift device, the displayed riding options include a direction mark to indicate which direction the virtual object will move when riding the lift device according to its current state. For users to view, thus enriching the displayed content and improving user experience.
- the direction mark displayed in the ride option will change as the sight angle of the target virtual object changes, so that the displayed direction mark is always in line with the current position of the target virtual object.
- the angle of sight is matched to ensure the accuracy of the displayed direction mark, thereby ensuring the display effect.
- the indicator can also be displayed in the floor thumbnail in a variety of different ways, that is, the ways of displaying the indicator include the following two.
- the floor thumbnail includes at least two floor graphics, then the indication mark of the first virtual object is displayed in the first floor graphics.
- the first floor graphic is any one of at least two floor graphics included in the floor thumbnail, and the floor corresponding to the height of the first virtual object is the floor corresponding to the first floor graphic.
- the floor thumbnail includes that the virtual building includes at least two floor graphics, each floor graphics corresponding to a floor of the virtual building, that is, the floor thumbnail displays multiple floor graphics used to represent the floor building. .
- an indication mark of the virtual object is displayed in the corresponding floor graphic to indicate the virtual object. The floor location where the virtual object is located, so that the user can know the virtual object located within the spatial range corresponding to the virtual building and the floor where the virtual object is located by viewing the thumbnail of the floor.
- the indicator is used to indicate the starting floor, current floor and moving direction of the virtual object.
- the starting floor is the floor corresponding to the height at which the virtual object starts riding the lifting device
- the current floor is the floor corresponding to the height at which the virtual object is currently located
- the moving direction is the level of the virtual object in the virtual building.
- the direction of movement within the corresponding spatial range which is the vertical direction, including the ascending direction or the descending direction.
- the indication mark of the virtual object is displayed in the thumbnail of the floor, indicating the starting floor, current floor and moving direction of the virtual object, so as to reflect that the virtual object is in a riding state and is moving vertically, thus enriching the floor
- the content displayed in thumbnails improves the display effect.
- the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator includes an indicator arrow, and the tail of the indicator arrow is located corresponding to the starting floor.
- the head of the indicator arrow is located in the floor graphic corresponding to the current floor, and the direction of the indicator arrow is the moving direction.
- the floor thumbnail 405 includes 6 floor graphics, each floor graphics is represented by a rectangle, taking the order from bottom to top as an example, the display style of the 5th floor graphics is different from the other 5 floor graphics.
- the fifth floor graphic indicates that the fifth floor is inaccessible.
- the tail of the indicator arrow 406 is located in the first floor graphic, indicating that the starting floor of the virtual object is the first floor.
- the head of the indicator arrow 406 is located in the second floor graphic, indicating the current height corresponding to the current height of the virtual object.
- the floor is the 2nd floor.
- the position and movement state of the virtual object are indicated in the form of indicator arrows, making it more intuitive. Displays the position and movement status of virtual objects, thus improving the display effect.
- the length of the indicator arrow changes with the number of floors moved. That is, if the virtual object starts from the starting floor and moves upward layer by layer, the indicator arrow displayed in the floor thumbnail will gradually become longer.
- the two ways of displaying indicator marks provided by the embodiments of the present application can be combined.
- the indicator mark of a friendly virtual object or an enemy virtual object of the target virtual object can be displayed in the first way, and the indicator mark of the target virtual object can be displayed in the second way. way to display the indicator mark of the target virtual object; or, for at least one virtual object located within the space range, display the indicator mark of the virtual object that is not in the lifting state in the first way, and display the indicator mark of the virtual object in the lifting state in the second way.
- the indication mark of the virtual object is not limited in this application.
- the indicator displayed in the floor thumbnail can indicate the starting floor, current floor and moving direction of the virtual object to reflect the The virtual object is in a riding state and moving vertically, thus enriching the content displayed in the floor thumbnail and improving the display effect.
- the starting floor, current floor and movement direction of the virtual object are indicated in the form of indicator arrows, making it more intuitive to display the position and movement status of the virtual object, thereby improving the display effect.
- the target virtual object when the target virtual object is in a lifting state, at least one of the moving direction and moving speed of the virtual object can be adjusted.
- the method further includes: adjusting a line of sight angle of the target virtual object; and adjusting at least one of a moving direction and a moving speed of the target virtual object based on the adjusted line of sight angle.
- the viewing angle determines at least one of the moving direction and the moving speed of the target virtual object riding on the lifting device. After the target virtual object rides on the lifting device, the sight direction of the target virtual object is adjusted to change the sight angle between the sight direction and the horizontal direction, and at least one of the moving direction and the moving speed of the virtual object is adjusted by changing the sight angle. .
- the corresponding relationship between the sight angle and the movement direction is stored in the terminal device. Based on the adjusted sight angle, The moving direction corresponding to the adjusted sight angle can be found in the correspondence relationship between the sight angle and the moving direction, and the moving direction of the target virtual object can be adjusted to the found moving direction.
- the corresponding relationship between the sight angle and the moving speed is stored in the terminal device. Based on the adjusted sight angle, the moving speed corresponding to the adjusted sight angle can be found in the corresponding relationship between the sight angle and the moving speed, and the target can be The virtual object's movement speed is adjusted to the found movement speed.
- the terminal device stores the corresponding relationship between the visual angle and the moving direction and the corresponding relationship between the visual angle and the moving speed. Based on the adjusted visual angle, it is possible to search and adjust the corresponding relationship between the visual angle and the moving direction.
- the movement direction corresponding to the sight angle, and the movement speed corresponding to the adjusted sight angle can be found in the correspondence between the sight angle and the movement speed, and the movement direction of the target virtual object is adjusted to the found movement direction, and the target virtual object is The movement speed is adjusted to the found movement speed.
- the sight angle includes an elevation angle or a depression angle
- the moving direction matching the elevation angle is the ascending direction
- the moving direction matching the depression angle is the descending direction.
- the sight angle range is 90 degrees to -90 degrees
- the sight angle range corresponding to the elevation angle is 90 degrees to 0 degrees
- the sight angle range corresponding to the depression angle is 0 degrees to -90 degrees
- the moving speed is positive to the sight angle.
- this application also provides a flow chart of a virtual object display method.
- the lifting device is a virtual zipline, and the virtual object is controlled to ride on the lifting device through the ride option.
- Figures 4 to 7 show schematic diagrams of virtual scene screens, and Figure 8 shows a flow chart of a virtual object display method. Referring to Figure 8, the method includes:
- the terminal device displays the rope-up button 403 and the automatic rope-up button 404.
- the direction mark displayed on the rope-up button 403 indicates the ascending direction.
- the embodiment of the present application takes the riding option as the cable-up button 403 and the automatic riding option as the automatic cable-up button 404 as an example.
- This application takes the example of controlling the virtual zipline 402 on the target virtual object 401 by clicking the cable up button 403 as an example.
- the user clicks the automatic cable up button 404, and the terminal device plays the target virtual An animation of the virtual zipline 402 on the object 401, and the automatic riding function of the target virtual object 401 is turned on.
- the terminal device detects the virtual building to which the spatial range of the target virtual object 401 belongs, and obtains the floor information of the virtual building.
- the terminal device obtains the location information and combat information of the friendly virtual object of the target virtual object 401, and determines the floor and combat status of the friendly virtual object located in the space corresponding to the virtual building.
- friendly virtual objects may also be called teammates.
- the terminal device displays a floor thumbnail 405 and a search button 407.
- the floor thumbnail 405 displays the indicator arrow 406 of the target virtual object 401, the indicator mark 408 of the friendly virtual object, and the battle special effect 409 of the friendly virtual object.
- the target virtual object 401 is displayed climbing the virtual zipline 402 and moving upward.
- the indicator arrow 406 will gradually become longer, as shown in Figures 5 and 6.
- the indicator displayed in Figure 5 The current floor indicated by the arrow 406 is the second floor, and the current floor indicated by the indicator arrow 406 shown in FIG. 6 is the fourth floor.
- the embodiment of the present application is explained by taking the escape option as the drop button 407 as an example.
- the terminal device controls the target virtual object 401, enters the floor corresponding to the current height of the target virtual object 401, and cancels the display of the floor thumbnail 405, as shown in Figure 7.
- Figure 9 is a schematic structural diagram of a virtual object display device provided by an embodiment of the present application. As shown in Figure 9, the device includes:
- the display module 901 is used to display the floor thumbnail of the virtual building when the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building.
- the target virtual object is a virtual object controlled by the local device, and the lifting state is passed The state of moving on a lifting device;
- the display module 901 is also configured to display an indication mark of at least one virtual object located within the spatial range in the floor thumbnail, where the indication mark indicates the floor corresponding to the height of the virtual object.
- the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building;
- the display module 901 is used to display the indication mark of the first virtual object in the first floor graphic
- the floor corresponding to the height of the first virtual object is the floor corresponding to the first floor graphic.
- the indicator is used to indicate the starting floor, current floor and moving direction of the virtual object; where the starting floor is the floor corresponding to the height when the virtual object starts riding the lifting device, and the current floor is the virtual object's starting floor. The floor corresponding to the current height of the object.
- the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator includes an indicator arrow, and the tail of the indicator arrow is located at the floor graphic corresponding to the starting floor. , the head of the indicator arrow is located in the floor graphic corresponding to the current floor, and the direction of the indicator arrow is the moving direction.
- the display module 901 is also used to display the battle special effects of the battle virtual object in the floor thumbnail, and the battle virtual object is a virtual object in a battle state.
- the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator mark of the virtual object for combat and the combat special effects are displayed in the same floor graphics.
- the combat state includes an attacking state and an attacked state.
- the display module 901 is used to display the firing special effects of the combating virtual object in the floor thumbnail when the combating virtual object is in the attacking state; during the combat, When the virtual object is under attack, the damage effects of the virtual object will be displayed in the floor thumbnail.
- the device also includes:
- the control module 902 is used to control the target virtual object to detach from the lifting device in response to an instruction to detach from the lifting device, and enter the floor corresponding to the current height of the target virtual object;
- the display module 901 is used to cancel the display of floor thumbnails.
- the display module 901 is also used to display the escape option when the target virtual object rides on the lifting device;
- the control module 902 is also configured to obtain an instruction to disengage from the lifting device in response to the triggering operation of the disengagement option.
- the device also includes:
- the display module 901 is used to display the riding options when the target virtual object enters the riding range of the lifting device;
- the control module 902 is configured to control the target virtual object to ride on the lifting device in response to a triggering operation on the ride option.
- control module 902 is configured to play an animation of the target virtual object riding the lifting device in response to the triggering operation of the ride option.
- the animation includes a picture of the target virtual object performing a target action, and the target action is the target virtual object. The action required for the subject to ride on the lift.
- a direction mark is displayed in the ride option, and the control module 902 is also used to control the target virtual object to move in the direction indicated by the direction mark.
- the display module 901 is configured to display ride options based on the sight angle of the target virtual object when the target virtual object enters the rideable range of the lifting device.
- the ride options display the ride options that match the sight angle.
- Directional sign is configured to display ride options based on the sight angle of the target virtual object when the target virtual object enters the rideable range of the lifting device.
- the device also includes:
- Adjustment module 903 is used to adjust the sight angle of the target virtual object
- the display module 901 adjusts the direction mark displayed in the ride option to a direction mark that matches the adjusted sight angle.
- the device also includes:
- the control module 902 is used to control the target virtual object to ride on the lifting device when the target virtual object enters the rideable range of the lifting device and the automatic riding function of the target virtual object is turned on.
- the device also includes:
- the display module 901 is also used to display the automatic riding option when the target virtual object enters the riding range of any lifting device;
- the control module 902 is also configured to enable the automatic riding function of the target virtual object in response to the triggering operation of the automatic riding option.
- the device also includes:
- the adjustment module 903 is used to adjust the line of sight angle of the target virtual object; and adjust at least one of the moving direction and moving speed of the target virtual object based on the adjusted line of sight angle.
- the device also includes:
- the determination module 904 is used to determine the floor corresponding to the height of the virtual object based on the height of the virtual object, the number of floors of the virtual building, and the height of the virtual building when the virtual object is located within the spatial range.
- the determination module 904 is used to determine the ratio of the height of the virtual building to the number of floors of the virtual building as the height of each floor; determine the height corresponding to each floor based on the height of each floor. Interval; determine the height interval to which the height of the virtual object belongs, and determine the floor corresponding to the determined height interval as the floor corresponding to the height of the virtual object.
- the display module 901 is configured to display indication marks of friendly virtual objects located within the spatial range in the floor thumbnail, and the friendly virtual objects and the target virtual object belong to the same camp.
- the display module 901 is configured to, when the target virtual object is in a lifting state, determine whether the spatial range includes the target virtual object based on the position of the target virtual object and the spatial range corresponding to at least one virtual building in the virtual scene.
- the floor information includes the number of floors
- the display module 901 is configured to display floor thumbnails of the virtual building based on the number of floors, where the floor thumbnails include floor graphics of the number of floors.
- the floor information also includes the terrain identification of each floor.
- the display module 901 is configured to display a floor thumbnail of the virtual building based on the number of floors and the terrain identification of each floor.
- the floor thumbnail includes the floor. A number of floor graphics, and the display style of each floor graphics matches the terrain identification of the corresponding floor.
- the virtual object display device provided in the above embodiments is only illustrated by taking the division of the above functional modules.
- the above function allocation can be completed by different functional modules according to needs, that is, the terminal equipment
- the internal structure is divided into different functional modules to complete all or part of the functions described above.
- the virtual object display device provided by the above embodiments and the virtual object display method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments and will not be described again here.
- Embodiments of the present application also provide a terminal device.
- the terminal device includes a processor and a memory. At least one computer program is stored in the memory. The at least one computer program is loaded and executed by the processor, so that the terminal device implements the above embodiments.
- the virtual object displays the operations performed by the methods.
- Figure 11 shows a structural block diagram of a terminal device 1100 provided by an exemplary embodiment of the present application.
- the terminal device 1100 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc.
- the terminal device 1100 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, and other names.
- the terminal device 1100 includes: a processor 1101 and a memory 1102.
- the processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
- the processor 1101 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array).
- DSP Digital Signal Processing, digital signal processing
- FPGA Field-Programmable Gate Array, field programmable gate array
- PLA Programmable Logic Array, programmable logic array
- the processor 1101 can also include a main processor and a co-processor.
- the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode.
- the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content to be displayed on the display screen.
- the processor 1101 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
- AI Artificial Intelligence, artificial intelligence
- Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one computer program, and the at least one computer program is used to be executed by the processor 1101 to enable the terminal device 1100 to implement the application in the present application.
- the method embodiment provides a virtual object display method.
- the terminal device 1100 optionally further includes a display screen 1105.
- the display screen 1105 is used to display UI (User Interface, user interface).
- the UI can include graphics, text, icons, videos, and any combination thereof.
- display screen 1105 is a touch display screen
- display screen 1105 also has the ability to collect touch signals on or above the surface of display screen 1105 .
- the touch signal can be input to the processor 1101 as a control signal for processing.
- the display screen 1105 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
- the display screen 1105 may be a flexible display screen, disposed on a curved surface or a folding surface of the terminal device 1100. Even, the display screen 1105 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen.
- the display screen 1105 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials. For example, floor thumbnails, indication marks of virtual objects, etc. are displayed through the display screen 1105 .
- FIG. 11 does not constitute a limitation on the terminal device 1100, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
- Embodiments of the present application also provide a non-volatile computer-readable storage medium.
- the non-volatile computer-readable storage medium stores at least one computer program.
- the at least one computer program is loaded and executed by the processor to The computer is allowed to implement the operations performed by the virtual object display method of the above embodiment.
- Embodiments of the present application also provide a computer program product, including a computer program that, when executed by a processor, causes the computer to implement operations performed by the virtual object display method described above.
- An embodiment of the present application also provides a computer program.
- the computer program includes computer instructions, which are loaded and executed by a processor, so that the computer implements the operations performed by the virtual object display method of the above embodiment.
- the program can be stored in a non-volatile computer-readable storage medium.
- the storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Radar, Positioning & Navigation (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本申请要求于2022年04月29日提交的申请号为202210473843.8、发明名称为“虚拟对象显示方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210473843.8 and the invention title "Virtual Object Display Method, Device, Equipment and Storage Medium" submitted on April 29, 2022, the entire content of which is incorporated into this application by reference. middle.
本申请实施例涉及计算机技术领域,特别涉及一种虚拟对象显示方法、装置、设备及存储介质。Embodiments of the present application relate to the field of computer technology, and in particular to a virtual object display method, device, equipment and storage medium.
在电子游戏中,显示虚拟对象的方式是影响人机交互效率的重要因素,如何显示虚拟对象至关重要。相关技术中,通常会在虚拟场景的界面中显示虚拟对象的三维模型,或者在虚拟场景的缩略地图中显示虚拟对象的标识。但是,目前的这些显示方式仍然存在局限性。In video games, the way virtual objects are displayed is an important factor affecting the efficiency of human-computer interaction. How to display virtual objects is crucial. In the related technology, a three-dimensional model of the virtual object is usually displayed in the interface of the virtual scene, or the identification of the virtual object is displayed in a thumbnail map of the virtual scene. However, these current display methods still have limitations.
发明内容Contents of the invention
本申请实施例提供了一种虚拟对象显示方法、装置、设备及存储介质,能够提升显示效果,进而提高人机交互效率。所述技术方案如下:Embodiments of the present application provide a virtual object display method, device, equipment and storage medium, which can improve the display effect and thereby improve the efficiency of human-computer interaction. The technical solutions are as follows:
一方面,提供了一种虚拟对象显示方法,所述方法由终端设备执行,所述方法包括:On the one hand, a virtual object display method is provided, the method is executed by a terminal device, the method includes:
在目标虚拟对象处于升降状态且位于虚拟建筑对应的空间范围内的情况下,显示所述虚拟建筑的楼层缩略图,所述目标虚拟对象为本端设备控制的虚拟对象,所述升降状态为通过乘坐升降装置进行移动的状态;When the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building, the floor thumbnail of the virtual building is displayed. The target virtual object is a virtual object controlled by the local device, and the lifting state is through The state of moving on a lifting device;
在所述楼层缩略图中,显示位于所述空间范围内的至少一个虚拟对象的指示标识,所述指示标识指示所述虚拟对象所处的高度对应的楼层。In the floor thumbnail, an indication mark of at least one virtual object located within the spatial range is displayed, and the indication mark indicates the floor corresponding to the height at which the virtual object is located.
另一方面,提供了一种虚拟对象显示装置,所述装置包括:On the other hand, a virtual object display device is provided, and the device includes:
显示模块,用于在目标虚拟对象处于升降状态且位于虚拟建筑对应的空间范围内的情况下,显示所述虚拟建筑的楼层缩略图,所述目标虚拟对象为本端设备控制的虚拟对象,所述升降状态为通过乘坐升降装置进行移动的状态;The display module is used to display the floor thumbnail of the virtual building when the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building. The target virtual object is a virtual object controlled by the local device, so The lifting state is a state of moving by riding on the lifting device;
所述显示模块,还用于在所述楼层缩略图中,显示位于所述空间范围内的至少一个虚拟对象的指示标识,所述指示标识指示所述虚拟对象所处的高度对应的楼层。The display module is further configured to display an indication mark of at least one virtual object located within the spatial range in the floor thumbnail, where the indication mark indicates the floor corresponding to the height of the virtual object.
另一方面,提供了一种终端设备,所述终端设备包括处理器和存储器,所述存储器中存储有至少一条计算机程序,所述至少一条计算机程序由所述处理器加载并执行,以使所述终端设备实现如上述方面所述的虚拟对象显示方法所执行的操作。On the other hand, a terminal device is provided. The terminal device includes a processor and a memory. At least one computer program is stored in the memory. The at least one computer program is loaded and executed by the processor, so that the The terminal device implements the operations performed by the virtual object display method described in the above aspect.
另一方面,提供了一种非易失性计算机可读存储介质,所述非易失性计算机可读存储介质中存储有至少一条计算机程序,所述至少一条计算机程序由处理器加载并执行,以使计算机实现如上述方面所述的虚拟对象显示方法所执行的操作。On the other hand, a non-volatile computer-readable storage medium is provided, at least one computer program is stored in the non-volatile computer-readable storage medium, and the at least one computer program is loaded and executed by a processor, To enable the computer to implement the operations performed by the virtual object display method described in the above aspect.
再一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,使计算机实现如上述方面所述的虚拟对象显示方法所执行的操作。In yet another aspect, a computer program product is provided, including a computer program that, when executed by a processor, causes the computer to implement operations performed by the virtual object display method described in the above aspect.
再一方面,提供了一种计算机程序,所述计算机程序包括计算机指令,所述计算机指令由处理器加载并执行,以使计算机实现如上述方面所述的虚拟对象显示方法所执行的操作。In yet another aspect, a computer program is provided. The computer program includes computer instructions, which are loaded and executed by a processor, so that the computer implements the operations performed by the virtual object display method described in the above aspect.
本申请实施例提供的方案中,在虚拟对象乘坐升降装置进行移动时,会显示该虚拟对象当前所处的空间范围对应的虚拟建筑的楼层缩略图,并在楼层缩略图中显示位于该空间范围内的虚拟对象的指示标识,以指示位于该空间范围内的虚拟对象在该虚拟建筑的垂直方向的位置,丰富了显示的内容,显示出位于该空间范围内的虚拟对象的位置分布情况,打破了虚 拟对象位置显示方式的局限性,实现了一种显示虚拟对象位置的新方案,提升了虚拟对象位置的显示效果,有利于提高用户执行与虚拟对象位置相关的操作的灵活性,进而提高人机交互效率。In the solution provided by the embodiment of the present application, when the virtual object moves on the lifting device, the floor thumbnail of the virtual building corresponding to the space range where the virtual object is currently located is displayed, and the floor thumbnail is displayed in the space range. The indication mark of the virtual object within the space range is used to indicate the vertical position of the virtual object within the space range, which enriches the displayed content, displays the location distribution of the virtual objects within the space range, and breaks the empty Due to the limitations of the virtual object position display method, a new solution for displaying the virtual object position is implemented, which improves the display effect of the virtual object position and is conducive to improving the user's flexibility in performing operations related to the virtual object position, thus improving the human-machine Interaction efficiency.
图1是本申请实施例提供的一种实施环境的结构示意图;Figure 1 is a schematic structural diagram of an implementation environment provided by an embodiment of the present application;
图2是本申请实施例提供的一种虚拟对象显示方法的流程图;Figure 2 is a flow chart of a virtual object display method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种虚拟对象显示方法的流程图;Figure 3 is a flow chart of another virtual object display method provided by an embodiment of the present application;
图4是本申请实施例提供的一种虚拟场景画面的示意图;Figure 4 is a schematic diagram of a virtual scene screen provided by an embodiment of the present application;
图5是本申请实施例提供的另一种虚拟场景画面的示意图;Figure 5 is a schematic diagram of another virtual scene screen provided by an embodiment of the present application;
图6是本申请实施例提供的又一种虚拟场景画面的示意图;Figure 6 is a schematic diagram of another virtual scene screen provided by an embodiment of the present application;
图7是本申请实施例提供的再一种虚拟场景画面的示意图;Figure 7 is a schematic diagram of yet another virtual scene screen provided by an embodiment of the present application;
图8是本申请实施例提供的再一种虚拟对象显示方法的流程图;Figure 8 is a flow chart of yet another virtual object display method provided by an embodiment of the present application;
图9是本申请实施例提供的一种虚拟对象显示装置的结构示意图;Figure 9 is a schematic structural diagram of a virtual object display device provided by an embodiment of the present application;
图10是本申请实施例提供的另一种虚拟对象显示装置的结构示意图;Figure 10 is a schematic structural diagram of another virtual object display device provided by an embodiment of the present application;
图11是本申请实施例提供的一种终端设备的结构示意图。Figure 11 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
本申请所使用的术语“至少一个”、“至少两个”、“多个”、“每个”、“任一”,至少一个包括一个、两个或两个以上,至少两个包括两个或两个以上,多个包括两个或两个以上,而每个是指对应的多个中的每一个,任一是指多个中的任意一个。举例来说,多个虚拟对象包括3个虚拟对象,而每个是指这3个虚拟对象中的每一个虚拟对象,任一是指这3个虚拟对象中的任意一个虚拟对象,能够是第一个虚拟对象,或者是第二个虚拟对象,或者是第三个虚拟对象。The terms "at least one", "at least two", "multiple", "each" and "any" used in this application, at least one includes one, two or more than two, and at least two includes two Or two or more, plural includes two or more, and each refers to each of the corresponding plurality, and any one refers to any one of the plurality. For example, the plurality of virtual objects includes 3 virtual objects, and each refers to each of the 3 virtual objects. Any one refers to any one of the 3 virtual objects, which can be the third virtual object. A virtual object, or a second virtual object, or a third virtual object.
为了便于理解本申请实施例,先对本申请实施例涉及到的一些名词进行解释:In order to facilitate understanding of the embodiments of this application, some terms involved in the embodiments of this application are first explained:
虚拟场景:是应用程序在终端设备上运行时显示(或提供)的虚拟场景。该虚拟场景是对真实世界的仿真环境,或者是半仿真半虚构的虚拟环境,或者是纯虚构的虚拟环境。虚拟场景是二维虚拟场景、2.5维虚拟场景或三维虚拟场景中的任意一种,本申请对此不加以限定。例如,虚拟场景包括天空、陆地、海洋等,该陆地包括沙漠、城市等环境元素,用户能够控制虚拟对象在该虚拟场景中进行移动。当然,在该虚拟场景中还包括虚拟物品,例如,虚拟投掷物、虚拟建筑、虚拟载具、虚拟场景中的虚拟对象用于武装自己或与其他虚拟对象进行战斗所需的虚拟兵器等道具,该虚拟场景还能够用于模拟不同天气下的真实环境,例如,晴天、雨天、雾天或黑夜等天气。各种各样的场景元素增强了虚拟场景的多样性和真实性。在一些实施例中,虚拟场景还可以称为虚拟环境。Virtual scene: It is a virtual scene displayed (or provided) when the application is running on the terminal device. The virtual scene is a simulation environment of the real world, or a half-simulation and half-fictional virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene, which is not limited in this application. For example, the virtual scene includes the sky, land, ocean, etc. The land includes environmental elements such as deserts and cities, and the user can control virtual objects to move in the virtual scene. Of course, the virtual scene also includes virtual items, such as virtual projectiles, virtual buildings, virtual vehicles, virtual weapons and other props that virtual objects in the virtual scene use to arm themselves or fight with other virtual objects. The virtual scene can also be used to simulate real environments under different weather conditions, such as sunny days, rainy days, foggy days or dark nights. A variety of scene elements enhance the diversity and authenticity of virtual scenes. In some embodiments, a virtual scene may also be referred to as a virtual environment.
虚拟对象:是指在虚拟场景中可活动的虚拟角色,该可活动对象是虚拟人物、虚拟动物、动漫人物等。该虚拟对象是该虚拟场景中的一个虚拟的用于代表用户的虚拟形象。虚拟场景中包括多个虚拟对象,每个虚拟对象在虚拟场景中具有自身的形状和体积,占据虚拟场景中的一部分空间。可选地,该虚拟对象是通过在客户端上操作进行控制的角色,或者是通过训练设置在虚拟环境对战中的人工智能(Artificial Intelligence,AI),或者是设置在虚拟场景对战中的非玩家角色(Non-Player Character,NPC)。可选地,该虚拟对象是在虚拟场景中进行竞技的虚拟人物。可选地,该虚拟场景对战中的虚拟对象的数量是预设设置的,或者是根据加入对战的客户端的数量动态确定的,本申请实施例对此不作限定。Virtual object: refers to a virtual character that can move in a virtual scene. The movable object is a virtual character, a virtual animal, an animation character, etc. The virtual object is a virtual avatar representing the user in the virtual scene. The virtual scene includes multiple virtual objects. Each virtual object has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. Optionally, the virtual object is a character controlled by operating on the client, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player set in a virtual scene battle. Character (Non-Player Character, NPC). Optionally, the virtual object is a virtual character competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is preset or dynamically determined based on the number of clients joining the battle, which is not limited in the embodiments of the present application.
可选地,用户能够控制虚拟对象在该虚拟场景中进行移动,以射击类游戏为例,用户控 制虚拟对象在该虚拟场景的天空中自由下落、滑翔或者打开降落伞进行下落等,在陆地上跑动、跳动、爬行、弯腰前行等,或者控制虚拟对象在海洋中游泳、漂浮或者下潜等,或者控制虚拟对象乘坐虚拟载具在该虚拟场景中进行移动。用户还能够控制虚拟对象在该虚拟场景中进出虚拟建筑,还能够控制虚拟对象乘坐升降装置在虚拟建筑中进行楼层转移,发现并拾取该虚拟场景中的虚拟道具(例如,虚拟投掷物、虚拟兵器等道具),从而通过拾取的虚拟道具与其他虚拟对象进行战斗,例如,该虚拟道具是虚拟衣物、虚拟头盔、虚拟防弹衣、虚拟医疗品、虚拟冷兵器或虚拟热兵器等,或者是其他虚拟对象被淘汰后遗留的虚拟道具。在此仅以上述场景进行举例说明,本申请实施例对此不作具体限定。Optionally, the user can control virtual objects to move in the virtual scene. Taking shooting games as an example, the user controls Control virtual objects to freely fall, glide, or open a parachute to fall in the sky of the virtual scene, run, jump, crawl, bend forward, etc. on land, or control virtual objects to swim, float, or dive in the ocean etc., or control the virtual object to move in the virtual scene on a virtual vehicle. The user can also control virtual objects to enter and leave the virtual building in the virtual scene, control the virtual objects to ride on the lifting device to transfer floors in the virtual building, and discover and pick up virtual props in the virtual scene (for example, virtual throwing objects, virtual weapons and other props), thereby using the picked up virtual props to fight with other virtual objects. For example, the virtual props are virtual clothing, virtual helmets, virtual body armors, virtual medical supplies, virtual cold weapons or virtual hot weapons, or other virtual objects. Virtual props left behind after an object is eliminated. The above scenario is only used as an example here, and the embodiment of the present application does not specifically limit this.
升降装置:是指虚拟场景中的虚拟对象可使用的虚拟道具,虚拟对象可以乘坐该升降装置进行移动。例如,该升降装置为虚拟电梯,该虚拟电梯位于虚拟建筑中,虚拟对象乘坐该虚拟电梯,能够实现在该虚拟建筑中进行楼层转移。再例如,该升降装置为虚拟滑索,该虚拟滑索在虚拟建筑的墙体外侧,虚拟对象可以攀爬该虚拟滑索进行垂直方向移动,从而能够进入虚拟建筑任意的楼层。需要说明的是,本申请实施例对升降装置的类型不作限定。Lifting device: refers to virtual props that can be used by virtual objects in virtual scenes. Virtual objects can move on the lifting device. For example, the lifting device is a virtual elevator, and the virtual elevator is located in a virtual building. The virtual object rides the virtual elevator to realize floor transfer in the virtual building. For another example, the lifting device is a virtual zipline. The virtual zipline is outside the wall of the virtual building. The virtual object can climb the virtual zipline to move vertically, thereby being able to enter any floor of the virtual building. It should be noted that the embodiment of the present application does not limit the type of the lifting device.
本申请实施例提供的虚拟对象显示方法,由终端设备执行。可选地,该终端设备是智能手机、平板电脑、笔记本电脑、台式计算机或车载终端等,但并不局限于此。The virtual object display method provided by the embodiment of the present application is executed by the terminal device. Optionally, the terminal device is a smartphone, tablet computer, notebook computer, desktop computer or vehicle-mounted terminal, but is not limited thereto.
图1是本申请实施例提供的一种实施环境的示意图。参见图1,该实施环境包括至少一个终端设备101(图1中以1个为例)和服务器102,终端设备101和服务器102之间通过无线或者有线网络连接。Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to Figure 1, the implementation environment includes at least one terminal device 101 (one is taken as an example in Figure 1) and a server 102. The terminal device 101 and the server 102 are connected through a wireless or wired network.
终端设备101上安装有由服务器102提供服务的目标应用,该目标应用支持显示虚拟场景,例如该目标应用为角色扮演类游戏(Role-Playing Game,RPG)、多人在线战术竞技游戏(Multiplayer Online Battle Arena Games,MOBA)、多人竞技类生存游戏中的任意一种。该终端设备101是任一用户使用的终端设备,该用户使用该终端设备101控制位于虚拟场景中的虚拟对象进行活动,该活动包括爬行、步行、奔跑、跳跃、驾驶、拾取、射击、攻击、投掷或乘坐中的至少一种。The terminal device 101 is installed with a target application provided by the server 102. The target application supports displaying virtual scenes. For example, the target application is a role-playing game (Role-Playing Game, RPG) or a multiplayer online tactical competitive game (Multiplayer Online). Battle Arena Games (MOBA), any of the multiplayer competitive survival games. The terminal device 101 is a terminal device used by any user. The user uses the terminal device 101 to control virtual objects located in the virtual scene to perform activities. The activities include crawling, walking, running, jumping, driving, picking up, shooting, attacking, At least one of throwing or riding.
在一种可能实现方式中,不同的用户分别使用不同的终端设备控制虚拟对象,且不同的终端设备控制的虚拟对象位于同一虚拟场景中,此时,不同的虚拟对象能够在虚拟场景中进行互动。In one possible implementation, different users use different terminal devices to control virtual objects, and the virtual objects controlled by different terminal devices are located in the same virtual scene. At this time, different virtual objects can interact in the virtual scene. .
图2是本申请实施例提供的一种虚拟对象显示方法的流程图,由终端设备执行,如图2所示,该方法包括:Figure 2 is a flow chart of a virtual object display method provided by an embodiment of the present application, which is executed by a terminal device. As shown in Figure 2, the method includes:
201、终端设备在目标虚拟对象处于升降状态且位于虚拟建筑对应的空间范围内的情况下,显示该虚拟建筑的楼层缩略图,该目标虚拟对象为本端设备控制的虚拟对象,该升降状态为通过乘坐升降装置进行移动的状态。201. The terminal device displays a floor thumbnail of the virtual building when the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building. The target virtual object is a virtual object controlled by the local device, and the lifting state is The state of moving by riding on a lifting device.
在本申请实施例中,虚拟对象通过乘坐升降装置进行移动时,此时该虚拟对象处于升降状态,而在虚拟对象处于升降状态且虚拟对象在任一虚拟建筑对应的空间范围内的情况下,该虚拟对象能够通过乘坐的升降装置在该虚拟建筑中进行楼层转移,通过显示虚拟建筑的楼层缩略图,以供用户查看,以使用户能够获知虚拟建筑的楼层结构,以便按照虚拟建筑的楼层结构,控制虚拟对象在该虚拟建筑中进行楼层转移。在楼层结构的指引下,能够快速定位需要转移至的楼层并进行楼层转移,有利于提高楼层转移的效率和准确性。In the embodiment of the present application, when the virtual object moves by riding the lifting device, the virtual object is in the lifting state. When the virtual object is in the lifting state and the virtual object is within the space range corresponding to any virtual building, the virtual object is in the lifting state. The virtual object can transfer floors in the virtual building through the lifting device. By displaying the floor thumbnail of the virtual building for the user to view, the user can learn the floor structure of the virtual building so that according to the floor structure of the virtual building, Control the virtual object to transfer floors in the virtual building. Under the guidance of the floor structure, the floor that needs to be transferred can be quickly located and the floor transfer is performed, which is beneficial to improving the efficiency and accuracy of floor transfer.
该升降装置用于供虚拟对象进行移动,虚拟对象乘坐该升降装置时能够进行垂直方向移动或水平方向移动。该升降装置为任意形式的虚拟装置,例如,该升降装置为虚拟滑索、虚拟楼梯或虚拟电梯等。该楼层缩略图即为虚拟建筑的楼层结构示意图,用于表示该虚拟建筑所包含的楼层,例如,该虚拟建筑包括10层,在该楼层缩略图中显示出10个楼层的示意图。The lifting device is used for moving virtual objects, and the virtual objects can move vertically or horizontally when riding on the lifting device. The lifting device is any form of virtual device. For example, the lifting device is a virtual zipline, a virtual staircase, a virtual elevator, etc. The floor thumbnail is a schematic floor structure diagram of the virtual building, used to represent the floors included in the virtual building. For example, the virtual building includes 10 floors, and the schematic diagram of the 10 floors is displayed in the floor thumbnail.
在本申请实施例中,该虚拟建筑为虚拟场景中任意的虚拟建筑,例如,该虚拟建筑为虚拟楼房。虚拟场景中的虚拟建筑均具有一个对应的空间范围,该空间范围至少包括该虚拟建 筑所占用的空间范围,或者,该空间范围还包括该虚拟建筑所占用的空间范围之外的部分空间范围,例如,该虚拟建筑为一个方形的虚拟楼房,该虚拟楼房对应的空间范围包括该虚拟楼房所占用的空间范围以及每个墙体之外5米内的空间范围,即该虚拟楼房的空间范围包括虚拟楼房所占用的空间以及虚拟楼房所占用的空间之外的部分空间。In this embodiment of the present application, the virtual building is any virtual building in the virtual scene, for example, the virtual building is a virtual building. Each virtual building in the virtual scene has a corresponding spatial range, which at least includes the virtual building. The space range occupied by the building, or the space range also includes part of the space range outside the space range occupied by the virtual building. For example, the virtual building is a square virtual building, and the space range corresponding to the virtual building includes the The space range occupied by the virtual building and the space range within 5 meters outside each wall, that is, the space range of the virtual building includes the space occupied by the virtual building and part of the space outside the space occupied by the virtual building.
202、终端设备在该楼层缩略图中,显示位于该空间范围内的至少一个虚拟对象的指示标识,该指示标识指示该虚拟对象所处的高度对应的楼层。202. The terminal device displays an indication mark of at least one virtual object located within the space range in the floor thumbnail, and the indication mark indicates the floor corresponding to the height of the virtual object.
在本申请实施例中,虚拟场景中除了包含该目标虚拟对象外,还可能包含其他的虚拟对象,且其他的虚拟对象也可能位于该虚拟建筑对应的空间范围内。在显示楼层缩略图时,会在该楼层缩略图中显示位于该虚拟建筑对应的空间范围内的虚拟对象的指示标识,以指示位于该空间范围内的虚拟对象在该虚拟建筑物中的位置。In this embodiment of the present application, in addition to the target virtual object, the virtual scene may also contain other virtual objects, and other virtual objects may also be located within the spatial range corresponding to the virtual building. When the floor thumbnail is displayed, an indication mark of the virtual object located within the spatial range corresponding to the virtual building will be displayed in the floor thumbnail to indicate the location of the virtual object located within the spatial range in the virtual building.
示例性地,在楼层缩略图中显示指示标识的虚拟对象可以仅包括除目标虚拟对象外的其他虚拟对象,也可以既包括目标虚拟对象又包括其他虚拟对象。对于在楼层缩略图中显示指示标识的虚拟对象既包括目标虚拟对象又包括其他虚拟对象的情况,在楼层缩略图中可以通过相同的显示样式显示目标虚拟对象的指示标识和其他虚拟对象的指示标识,也可以通过不同的显示样式显示目标虚拟对象的指示标识和其他虚拟对象的指示标识。For example, the virtual objects displaying the indicator in the floor thumbnail may only include other virtual objects except the target virtual object, or may include both the target virtual object and other virtual objects. For the situation where the virtual object displaying the indicator in the floor thumbnail includes both the target virtual object and other virtual objects, the indicator of the target virtual object and the indicator of other virtual objects can be displayed in the floor thumbnail through the same display style. , the indication mark of the target virtual object and the indication marks of other virtual objects can also be displayed through different display styles.
本申请实施例提供的方案中,在虚拟对象乘坐升降装置进行移动时,会显示该虚拟对象当前所处的空间范围对应的虚拟建筑的楼层缩略图,并在楼层缩略图中显示位于该空间范围内的虚拟对象的指示标识,以指示位于该空间范围内的虚拟对象在该虚拟建筑的垂直方向的位置,丰富了显示的内容,显示出位于该空间范围内的虚拟对象的位置分布情况,打破了虚拟对象位置显示方式的局限性,实现了一种显示虚拟对象位置的新方案,提升了虚拟对象位置的显示效果,有利于提高用户执行与虚拟对象位置相关的操作的灵活性,进而提高人机交互效率。In the solution provided by the embodiment of the present application, when the virtual object moves on the lifting device, the floor thumbnail of the virtual building corresponding to the space range where the virtual object is currently located is displayed, and the floor thumbnail is displayed in the space range. The indication mark of the virtual object within the space range is used to indicate the vertical position of the virtual object within the space range, which enriches the displayed content, displays the location distribution of the virtual objects within the space range, and breaks the It overcomes the limitations of the virtual object position display method and implements a new solution for displaying the virtual object position, which improves the display effect of the virtual object position and is conducive to improving the user's flexibility in performing operations related to the virtual object position, thereby improving human performance. computer interaction efficiency.
在图2所示实施例的基础上,还通过显示的乘坐选项,控制虚拟对象乘坐升降装置,以实现先乘坐升降装置再显示楼层缩略图的方案,该过程详见下述实施例。On the basis of the embodiment shown in Figure 2, the virtual object is controlled to ride on the lifting device through the displayed riding options, so as to realize the solution of first riding on the lifting device and then displaying the floor thumbnail. This process is detailed in the following embodiment.
图3是本申请实施例提供的一种虚拟对象显示方法的流程图,应用于终端设备中,如图3所示,该方法包括:Figure 3 is a flow chart of a virtual object display method provided by an embodiment of the present application. It is applied in a terminal device. As shown in Figure 3, the method includes:
301、终端设备在目标虚拟对象进入升降装置的可乘坐范围时,显示乘坐选项。301. When the target virtual object enters the rideable range of the lifting device, the terminal device displays the ride options.
在本申请实施例中,升降装置具有可乘坐范围,该可乘坐范围即为允许乘坐该升降装置的范围。在虚拟对象进入升降装置的可乘坐范围时,能控制虚拟对象乘坐该升降装置,因此,终端设备在目标虚拟对象进入升降装置的可乘坐范围时,显示乘坐选项,以便通过该乘坐选项控制虚拟对象乘坐升降装置。In the embodiment of the present application, the lifting device has a rideable range, and the rideable range is the range within which riding on the lifting device is allowed. When the virtual object enters the rideable range of the lifting device, the virtual object can be controlled to ride on the lifting device. Therefore, when the target virtual object enters the rideable range of the lifting device, the terminal device displays the riding option so that the virtual object can be controlled through the riding option. Ride the lift.
该乘坐选项用于触发目标虚拟对象乘坐升降装置的指令,该乘坐选项为任意类型的选项,例如,该乘坐选项为乘坐按钮或滑动条等。如图4所示,以该升降装置为虚拟滑索为例,该乘坐选项为上索按钮,一旦虚拟对象401进入该虚拟滑索402的可乘坐范围时,显示上索按钮403。The riding option is used to trigger an instruction for the target virtual object to ride on the lifting device. The riding option is any type of option. For example, the riding option is a riding button or a slider. As shown in FIG. 4 , taking the lifting device as a virtual zipline as an example, the ride option is a rope-up button. Once the virtual object 401 enters the rideable range of the virtual zipline 402 , the rope-up button 403 is displayed.
该可乘坐范围是任意形状的范围,例如,该可乘坐范围为以该升降装置的位置为中心、以任意数值为半径的圆形区域范围,或者,为以该升降装置的位置为顶点、以任意数值为半径的扇形区域范围。例如,该升降装置的可乘坐范围为:以该升降装置的位置为中心、半径为5米的圆形区域范围。示例性地,升降装置的位置可以是指升降装置在地面上对应的水平位置的中心。The rideable range is a range of any shape. For example, the rideable range is a circular area with the position of the lifting device as the center and any numerical value as the radius, or it is a circular area with the position of the lifting device as the vertex and with the radius of Any value is the radius of the sector area. For example, the rideable range of the lifting device is: a circular area with the position of the lifting device as the center and a radius of 5 meters. For example, the position of the lifting device may refer to the center of the corresponding horizontal position of the lifting device on the ground.
在一种可能实现方式中,该可乘坐范围是指以该升降装置的水平位置为中心、预设数值为半径、该升降装置的最大高度为高度的圆柱形空间范围。In one possible implementation, the rideable range refers to a cylindrical space range with the horizontal position of the lifting device as the center, the preset value as the radius, and the maximum height of the lifting device as the height.
该预设数值为任意数值。在本申请实施例中,基于升降装置的水平位置、预设数值及升降装置确定的空间范围,是一个三维圆柱形空间范围,这样,虚拟对象不仅可以在地面上移动时进入升降装置的可乘坐范围,也可以在高于地面的位置移动时进入升降装置的可乘坐范 围,如虚拟对象在虚拟建筑的楼层中移动时进入该升降装置的可乘坐范围。The default value is any value. In the embodiment of the present application, the spatial range determined based on the horizontal position of the lifting device, the preset value and the lifting device is a three-dimensional cylindrical space range. In this way, the virtual object can not only enter the rideable space of the lifting device when moving on the ground range, you can also enter the rideable range of the lifting device when moving above the ground. For example, when a virtual object moves on the floor of a virtual building, it enters the rideable range of the lifting device.
例如,以该升降装置为虚拟滑索为例,该虚拟滑索的可乘坐范围为:以该虚拟滑索在地面上对应的水平位置为中心、半径为5米、高度等于该虚拟滑索的长度的圆柱形空间范围。虚拟对象在地面上移动,一旦移动进入虚拟滑索的圆柱形空间范围,则表示该虚拟对象进入该虚拟滑索的可乘坐范围,则显示乘坐选项。或者,虚拟对象在虚拟建筑中第3个楼层中移动,一旦进入虚拟滑索的圆柱形空间范围,表示该虚拟对象进入该虚拟滑索的可乘坐范围,则显示乘坐选项。For example, assuming that the lifting device is a virtual zipline, the rideable range of the virtual zipline is: with the corresponding horizontal position of the virtual zipline on the ground as the center, a radius of 5 meters, and a height equal to the height of the virtual zipline. The length of a cylindrical space. The virtual object moves on the ground. Once it moves into the cylindrical space range of the virtual zipline, it means that the virtual object enters the rideable range of the virtual zipline, and the ride options are displayed. Alternatively, the virtual object moves in the third floor of the virtual building. Once it enters the cylindrical space range of the virtual zipline, it means that the virtual object enters the rideable range of the virtual zipline, and the ride options are displayed.
302、终端设备响应于对该乘坐选项的触发操作,控制该目标虚拟对象乘坐该升降装置。302. The terminal device controls the target virtual object to ride on the lifting device in response to the triggering operation of the riding option.
在本申请实施例中,乘坐选项用于触发控制目标虚拟对象乘坐当前所处的可乘坐范围所对应的升降装置,终端设备检测到对该乘坐选项的触发操作,则控制虚拟对象乘坐当前所处的可乘坐范围所对应的升降装置,即实现了一种一键控制虚拟对象乘坐升降装置的方式,无需用户再手动控制虚拟对象移动继而乘坐该升降装置,提升了用户操作的便捷性。In the embodiment of the present application, the ride option is used to trigger and control the target virtual object to ride on the lifting device corresponding to the rideable range where it is currently located. When the terminal device detects the triggering operation of the ride option, it controls the virtual object to ride on the lift device where it is currently located. The lifting device corresponding to the riding range realizes a one-button way to control the virtual object to ride on the lifting device. It does not require the user to manually control the movement of the virtual object and then ride on the lifting device, which improves the convenience of user operation.
在一种可能实现方式中,该步骤302包括:终端设备响应于对该乘坐选项的触发操作,播放目标虚拟对象乘坐该升降装置的动画,以播放出目标虚拟对象乘坐该升降装置的过程,在该动画播放完成时,表示该目标虚拟对象成功乘坐该升降装置。In one possible implementation, step 302 includes: in response to the triggering operation of the riding option, the terminal device plays an animation of the target virtual object riding on the lifting device, so as to play out the process of the target virtual object riding on the lifting device. When the animation is completed, it means that the target virtual object successfully rides on the lifting device.
可选地,该动画包括目标虚拟对象执行目标动作的画面。其中,该目标动作为目标虚拟对象乘坐升降装置时所需执行的动作,例如,以升降装置为虚拟滑索为例,该目标动作为跳跃并抓住滑索的动作,即播放的动画中显示目标虚拟对象跳跃并抓住滑索的画面。Optionally, the animation includes a scene of the target virtual object performing the target action. Among them, the target action is the action that the target virtual object needs to perform when riding the lifting device. For example, taking the lifting device as a virtual zipline as an example, the target action is the action of jumping and grabbing the zipline, which is shown in the played animation. The target virtual object jumps and grabs the zip line.
可选地,虚拟对象乘坐不同的升降装置时播放不同的动画,则终端设备响应于对该乘坐选项的触发操作,确定与该升降装置匹配的动画,播放与该升降装置匹配的动画。Optionally, different animations are played when the virtual object rides on different lifting devices, and the terminal device responds to the triggering operation of the ride option, determines the animation that matches the lifting device, and plays the animation that matches the lifting device.
在本申请实施例中,虚拟对象乘坐不同的升降装置所需执行的目标动作不同,例如,升降装置为虚拟滑索,虚拟对象上虚拟滑索所需执行的目标动作为虚拟对象跳跃并抓绳索的动作;升降装置为虚拟电梯,虚拟对象乘坐虚拟电梯所需执行的目标动作为虚拟对象行走并进入虚拟电梯的动作。因此,响应于对该乘坐选项的触发操作,需要确定与该升降装置匹配的动画,以保证播放的动画与该升降装置匹配,实现了乘坐不同的升降装置时播放不同的动画的方案,丰富了显示的内容,从而保证显示效果。In the embodiment of the present application, the target actions required to be performed by the virtual object riding on different lifting devices are different. For example, the lifting device is a virtual zipline, and the target action required to be performed by the virtual zipline on the virtual object is for the virtual object to jump and grab the rope. action; the lifting device is a virtual elevator, and the target action required by the virtual object to take the virtual elevator is the action of the virtual object walking and entering the virtual elevator. Therefore, in response to the trigger operation of the ride option, it is necessary to determine the animation that matches the lift device to ensure that the played animation matches the lift device, realizing a solution for playing different animations when riding on different lift devices, enriching the display content to ensure the display effect.
303、终端设备在目标虚拟对象处于升降状态且位于虚拟建筑对应的空间范围内的情况下,显示该虚拟建筑的楼层缩略图。303. When the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building, the terminal device displays a floor thumbnail of the virtual building.
在本申请实施例中,控制目标虚拟对象乘坐升降装置后,该目标虚拟对象即可通过乘坐该升降装置进行移动,此时,该目标虚拟对象处于升降状态,而在虚拟对象处于升降状态且虚拟对象在任一虚拟建筑对应的空间范围时,该虚拟对象能够通过乘坐的升降装置在该虚拟建筑中进行楼层转移,则通过显示虚拟建筑的楼层缩略图,以供用户查看,以使用户能够获知虚拟建筑的楼层结构,以便按照虚拟建筑的楼层结构,控制虚拟对象在该虚拟建筑中进行楼层转移。在楼层结构的指引下,能够快速定位需要转移至的楼层并进行楼层转移,有利于提高楼层转移的效率和准确性。In the embodiment of the present application, after controlling the target virtual object to ride on the lifting device, the target virtual object can move by riding on the lifting device. At this time, the target virtual object is in a lifting state, and when the virtual object is in a lifting state and the virtual object When the object is in the spatial range corresponding to any virtual building, the virtual object can transfer floors in the virtual building through the lifting device, and the floor thumbnails of the virtual building are displayed for the user to view, so that the user can learn about the virtual building. The floor structure of the building is used to control the floor transfer of virtual objects in the virtual building according to the floor structure of the virtual building. Under the guidance of the floor structure, the floor that needs to be transferred can be quickly located and the floor transfer is performed, which is beneficial to improving the efficiency and accuracy of floor transfer.
示例性地,该楼层缩略图能够通过任意的方式显示,例如,通过HUD(Head-Up Display,抬头显示)的方式来显示该楼层缩略图,即在终端设备显示的界面中以抬头显示信息的方式来显示楼层缩略图。在以抬头显示信息的方式显示楼层缩略图的情况下,楼层缩略图显示在目标虚拟对象的视线正前方,能够使目标虚拟对象在不低头、不转头的情况下就看到楼层缩略图,有利于提高目标虚拟对象查看楼层缩略图的效率,楼层缩略图的显示效果较好。For example, the floor thumbnail can be displayed in any way, for example, by HUD (Head-Up Display), that is, in the interface displayed by the terminal device, the information is displayed with a head-up display. way to display floor thumbnails. When the floor thumbnail is displayed in a heads-up display, the floor thumbnail is displayed directly in front of the target virtual object's line of sight, allowing the target virtual object to see the floor thumbnail without lowering or turning its head. It is helpful to improve the efficiency of the target virtual object to view the floor thumbnails, and the display effect of the floor thumbnails is better.
可选地,该楼层缩略图显示于目标虚拟对象的准心位置,或者其他位置,本申请对此不做限定。目标虚拟对象的准心位置可以是指目标虚拟对象持有的虚拟道具瞄准的位置。Optionally, the floor thumbnail is displayed at the center position of the target virtual object, or at other locations, which is not limited in this application. The center position of the target virtual object may refer to the position where the virtual prop held by the target virtual object is aimed.
可选地,该楼层缩略图以半透明的方式显示,或者以不透明的方式显示,本申请对此不做限定。楼层缩略图的透明度可以为系统默认的透明度,也可以为用户自行设置的透明度。Optionally, the floor thumbnail is displayed in a translucent manner or in an opaque manner, which is not limited in this application. The transparency of the floor thumbnail can be the system default transparency or the transparency set by the user.
在一种可能实现方式中,该步骤303包括:终端设备在目标虚拟对象处于升降状态的情况下,基于目标虚拟对象的位置及虚拟场景中的至少一个虚拟建筑对应的空间范围,确定空 间范围包含该目标虚拟对象的位置的虚拟建筑,基于确定的虚拟建筑的楼层信息,显示该虚拟建筑的楼层缩略图。其中,该楼层信息指示虚拟建筑包含的楼层情况。In one possible implementation, step 303 includes: when the target virtual object is in a lifting state, the terminal device determines the space based on the position of the target virtual object and the spatial range corresponding to at least one virtual building in the virtual scene. A virtual building whose space range includes the position of the target virtual object is displayed, and a floor thumbnail of the virtual building is displayed based on the determined floor information of the virtual building. The floor information indicates the floors contained in the virtual building.
可选地,该楼层信息包括虚拟建筑的楼层数量,该楼层数量用于表示虚拟建筑所包含的楼层的数量。则基于楼层信息显示楼层缩略图的过程,包括:基于该楼层信息所包含的楼层数量,在楼层缩略图中显示该楼层数量的楼层图形。也就是说,基于楼层数量,显示虚拟建筑的楼层缩略图,该楼层缩略图包括楼层数量的楼层图形。Optionally, the floor information includes the number of floors of the virtual building, and the number of floors is used to represent the number of floors included in the virtual building. The process of displaying floor thumbnails based on the floor information includes: based on the number of floors included in the floor information, displaying floor graphics for the number of floors in the floor thumbnails. That is, based on the number of floors, a floor thumbnail of the virtual building is displayed, and the floor thumbnail includes a floor graphic of the number of floors.
每个楼层图形与虚拟建筑中的一个楼层对应,即每个楼层图形表示虚拟建筑中的一个楼层,以楼层缩略图中显示的、该楼层数量的楼层图形来表示虚拟建筑的楼层情况。Each floor graphic corresponds to a floor in the virtual building, that is, each floor graphic represents a floor in the virtual building, and the floor graphics of the number of floors displayed in the floor thumbnail represent the floor conditions of the virtual building.
可选地,该楼层信息包括虚拟建筑的楼层数量以及每个楼层的地形标识,该地形标识指示对应的楼层是否可以进入,则基于楼层信息显示楼层缩略图的过程,包括:基于该楼层信息所包含的楼层数量及每个楼层的地形标识,在楼层缩略图中显示该楼层数量的楼层图形,每个楼层图形的显示样式与对应的楼层的地形标识相匹配。也就是说,基于楼层数量和每个楼层的地形标识,显示虚拟建筑的楼层缩略图,该楼层缩略图包括楼层数量的楼层图形,且每个楼层图形的显示样式与对应的楼层的地形标识相匹配。Optionally, the floor information includes the number of floors of the virtual building and the terrain identification of each floor. The terrain identification indicates whether the corresponding floor can be entered. The process of displaying floor thumbnails based on the floor information includes: based on the floor information. The number of floors included and the terrain identification of each floor are displayed in the floor thumbnail, and the floor graphics of the number of floors are displayed. The display style of each floor graphics matches the terrain identification of the corresponding floor. That is to say, based on the number of floors and the terrain identification of each floor, the floor thumbnail of the virtual building is displayed. The floor thumbnail includes the floor graphics of the number of floors, and the display style of each floor graphic is consistent with the terrain identification of the corresponding floor. match.
与不同的地形标识匹配的楼层图形的显示样式不同,以使楼层缩略图中区分显示楼层是否可以进入。例如,楼层图形为矩形,在地形标识指示对应的楼层可以进入时,与该地形标识匹配的楼层图形以空白矩形样式显示;在地形标识指示对应的楼层不可以进入时,与该地形标识匹配楼层图形以包含斜线的矩形的样式显示。可选地,地形标识包括第一标识或第二标识,第一标识指示对应的楼层可以进入,第二标识指示对应的楼层不可进入。通过在楼层缩略图中显示与每个楼层的地形标识匹配的楼层图形,以指示不同楼层是否可以进入,丰富了楼层缩略图中显示的内容,以使用户能够获知虚拟建筑中各个楼层的是否可以进入,从而提升了用户体验。The display styles of floor graphics matching different terrain identifiers are different, so that the floor thumbnails can distinguish whether the floor can be entered or not. For example, the floor graphic is a rectangle. When the terrain mark indicates that the corresponding floor can be entered, the floor graphic matching the terrain mark is displayed in a blank rectangular style; when the terrain mark indicates that the corresponding floor is inaccessible, the floor graphic matching the terrain mark is displayed. The graphic is displayed in the style of a rectangle containing diagonal lines. Optionally, the terrain identification includes a first identification or a second identification. The first identification indicates that the corresponding floor can be entered, and the second identification indicates that the corresponding floor is inaccessible. By displaying floor graphics that match the terrain identification of each floor in the floor thumbnails to indicate whether different floors can be entered, the content displayed in the floor thumbnails is enriched to enable users to know whether each floor in the virtual building is accessible. access, thus improving the user experience.
例如,虚拟建筑的楼层信息包括楼层数量及每个楼层的地形标识,该楼层数量为10,在10个楼层中,前5个楼层不可进入,后5个楼层可以进入,则基于该楼层信息显示的楼层缩略图包含10个楼层图形,且与前5个楼层对应的楼层图形以包含斜线的矩形的样式显示,与后5个楼层对应的楼层图形以空白矩形的样式显示。For example, the floor information of a virtual building includes the number of floors and the terrain identification of each floor. The number of floors is 10. Among the 10 floors, the first 5 floors are inaccessible and the last 5 floors are accessible, then the floor information is displayed based on this The floor thumbnail contains 10 floor graphics, and the floor graphics corresponding to the first 5 floors are displayed in the style of a rectangle containing diagonal lines, and the floor graphics corresponding to the last 5 floors are displayed in the style of a blank rectangle.
可选地,楼层缩略图中的楼层图形的排列顺序,与虚拟建筑中的楼层排列顺序相同。例如,楼层缩略图中的第1个楼层图形与虚拟建筑中的第1个楼层对应,楼层缩略图中的第2个楼层图形与虚拟建筑中的第2个楼层对应。Optionally, the arrangement order of the floor graphics in the floor thumbnail is the same as the arrangement order of the floors in the virtual building. For example, the first floor graphic in the floor thumbnail corresponds to the first floor in the virtual building, and the second floor graphic in the floor thumbnail corresponds to the second floor in the virtual building.
304、终端设备在该楼层缩略图中,显示位于该空间范围内的至少一个虚拟对象的指示标识,该指示标识指示该虚拟对象所处的高度对应的楼层。304. The terminal device displays an indication mark of at least one virtual object located within the space range in the floor thumbnail, and the indication mark indicates the floor corresponding to the height of the virtual object.
在本申请实施例中,在显示虚拟建筑的楼层缩略图的同时,在该楼层缩略图中,显示位于该虚拟建筑对应的空间范围内的至少一个虚拟对象的指示标识,以指示位于该空间范围内的虚拟对象在该虚拟建筑物中的位置。In the embodiment of the present application, while displaying the floor thumbnail of the virtual building, in the floor thumbnail, an indication mark of at least one virtual object located within the space range corresponding to the virtual building is displayed to indicate that the floor thumbnail is located in the space range. The location of the virtual object in the virtual building.
指示标识能够以任意的形式表示,例如,该指示标识以圆圈的形式表示或者以其他形状的图形表示。可选地,不同虚拟对象的指示标识以不同颜色的图形表示,或者不同虚拟对象的指示标识以不同形状的图形表示,或者虚拟对象的指示标识按照阵营区分显示,本申请对此不做限定。The indicator mark can be expressed in any form. For example, the indicator mark can be expressed in the form of a circle or a graphic representation of other shapes. Optionally, the indicator marks of different virtual objects are represented by graphics of different colors, or the indicator marks of different virtual objects are represented by graphics of different shapes, or the indicator marks of virtual objects are displayed according to camps, which is not limited in this application.
在一种可能实现方式中,楼层缩略图中显示有友方虚拟对象的指示标识,也即是,该步骤304包括:在该楼层缩略图中,显示位于该空间范围内的友方虚拟对象的指示标识,该友方虚拟对象与目标虚拟对象属于同一阵营。In one possible implementation, the floor thumbnail displays the indication mark of the friendly virtual object. That is, step 304 includes: in the floor thumbnail, displaying the indicator of the friendly virtual object located within the space range. Indicates that the friendly virtual object and the target virtual object belong to the same camp.
在本申请实施例中,虚拟场景中的虚拟对象能够与属于同一阵营的友方虚拟对象进行互动,因此,在虚拟对象处于升降状态且位于任一虚拟建筑对应的空间范围内的情况下,将位于该虚拟建筑对应的空间范围内的友方虚拟对象的垂直方向的位置显示出来,以便用户查看友方虚拟对象在该虚拟建筑中的位置,便于用户控制目标虚拟对象与友方虚拟对象进行互动,从而提升了用户体验。 In the embodiment of the present application, virtual objects in the virtual scene can interact with friendly virtual objects belonging to the same camp. Therefore, when the virtual object is in a lifting state and is located within the space corresponding to any virtual building, The vertical position of the friendly virtual object located within the space corresponding to the virtual building is displayed, so that the user can view the position of the friendly virtual object in the virtual building, and it is convenient for the user to control the target virtual object to interact with the friendly virtual object. , thereby improving user experience.
需要说明的是,本申请实施例仅是以位于该空间范围内的至少一个虚拟对象包括该目标虚拟对象的友方虚拟对象为例进行说明的,而在另一实施例中,虚拟场景中的虚拟对象还能够与属于不同阵营的虚拟对象进行互动,则该至少一个虚拟对象还包括其他虚拟对象。例如,该至少一个虚拟对象包括该目标虚拟对象以及该虚拟对象的友方虚拟对象;或者,该至少一个虚拟对象包括该目标虚拟对象以及该虚拟对象的敌方虚拟对象;或者,该至少一个虚拟对象包括该目标虚拟对象的敌方虚拟对象;或者,该至少一个虚拟对象包括该目标虚拟对象以及该目标虚拟对象的友方虚拟对象和敌方虚拟对象,本申请对此不做限定。It should be noted that the embodiment of the present application only takes as an example that at least one virtual object located within the spatial range includes a friendly virtual object of the target virtual object. In another embodiment, the virtual object in the virtual scene The virtual object can also interact with virtual objects belonging to different camps, then the at least one virtual object also includes other virtual objects. For example, the at least one virtual object includes the target virtual object and a friendly virtual object of the virtual object; or the at least one virtual object includes the target virtual object and an enemy virtual object of the virtual object; or the at least one virtual object The object includes an enemy virtual object of the target virtual object; or, the at least one virtual object includes the target virtual object and a friendly virtual object and an enemy virtual object of the target virtual object, which is not limited in this application.
在一种可能实现方式中,利用虚拟对象所处的高度以及虚拟建筑的楼层信息来确定虚拟对象所处的楼层,也即是,确定虚拟对象所处的高度对应的楼层的过程,包括:在虚拟对象位于虚拟建筑对应的空间范围内的情况下,基于该虚拟对象所处的高度、该虚拟建筑的楼层数量和该虚拟建筑的高度,确定该虚拟对象所处的高度对应的楼层。In one possible implementation, the height of the virtual object and the floor information of the virtual building are used to determine the floor where the virtual object is located, that is, the process of determining the floor corresponding to the height of the virtual object includes: When the virtual object is located within the spatial range corresponding to the virtual building, the floor corresponding to the height of the virtual object is determined based on the height of the virtual object, the number of floors of the virtual building and the height of the virtual building.
虚拟对象所处的高度即为该虚拟对象的位置的高度。可选地,获取虚拟对象的位置信息,基于该位置信息确定该虚拟对象所处的高度。在确定虚拟建筑的楼层数量及虚拟建筑的高度,即可确定出虚拟建筑每个楼层对应的高度区间,将该虚拟对象所处的高度与每个楼层对应的高度区间进行对比,即可确定出虚拟对象所处的高度对应的楼层。The height of the virtual object is the height of the position of the virtual object. Optionally, obtain the position information of the virtual object, and determine the height of the virtual object based on the position information. After determining the number of floors of the virtual building and the height of the virtual building, the height interval corresponding to each floor of the virtual building can be determined. By comparing the height of the virtual object with the height interval corresponding to each floor, the height interval corresponding to each floor can be determined. The floor corresponding to the height of the virtual object.
可选地,将该虚拟建筑的高度与该虚拟建筑的楼层数量的比值,确定为每个楼层的高度,基于该每个楼层的高度确定每个楼层对应的高度区间,确定虚拟对象所处的高度所属的高度区间,将确定的高度区间对应的楼层,确定为该虚拟对象所处的楼层。Optionally, determine the ratio of the height of the virtual building to the number of floors of the virtual building as the height of each floor, determine the height interval corresponding to each floor based on the height of each floor, and determine where the virtual object is located. The height interval to which the height belongs is determined as the floor corresponding to the determined height interval as the floor where the virtual object is located.
例如,在确定每个楼层的高度后,以每个楼层的高度为10为例,则[0,10)为第1个楼层对应的区间,[10,20)为第2个楼层对应的区间,以此类推。For example, after determining the height of each floor, taking the height of each floor as 10 as an example, then [0,10) is the interval corresponding to the first floor, and [10,20) is the interval corresponding to the second floor. , and so on.
在一种可能实现方式中,楼层缩略图中还显示有对战特效,也即是,该方法还包括:在该楼层缩略图中,显示对战虚拟对象的对战特效,该对战虚拟对象为位于该虚拟建筑对应的空间范围内的、且处于对战状态的虚拟对象。In one possible implementation, the floor thumbnail also displays combat special effects. That is, the method also includes: in the floor thumbnail, display the combat special effects of the combat virtual object, and the combat virtual object is located on the virtual Virtual objects within the space corresponding to the building and in a combat state.
对战虚拟对象为楼层缩略图中所显示的任一指示标识对应的虚拟对象。在本申请实施例中,虚拟场景中的虚拟对象之间能够进行对战,在楼层缩略图中显示的指示标识所对应的虚拟对象一旦进入对战状态,则在该楼层缩略图中显示对战特效,以指示该虚拟对象处于对战状态,丰富了楼层缩略图所包含的内容,以使用户获知位于虚拟建筑对应的空间范围的虚拟对象的对战情况,从而提升了显示效果,也提升了用户体验。The combat virtual object is the virtual object corresponding to any indicator displayed in the floor thumbnail. In the embodiment of the present application, virtual objects in the virtual scene can compete with each other. Once the virtual object corresponding to the indication mark displayed in the floor thumbnail enters the battle state, the battle special effects will be displayed in the floor thumbnail. Indicating that the virtual object is in a combat state enriches the content contained in the floor thumbnail so that the user can know the combat status of the virtual object located in the space corresponding to the virtual building, thereby improving the display effect and user experience.
可选地,对战状态包括攻击状态或被攻击状态,虚拟对象处于不同的对战状态时,在楼层缩略图中显示不同的对战特效。例如,对战虚拟对象处于攻击状态时,在楼层缩略图中显示对战虚拟对象的开火特效;或者,对战虚拟对象处于被攻击状态时,在楼层缩略图中显示对战虚拟对象的受伤特效。Optionally, the combat state includes an attacking state or an attacked state. When the virtual object is in different combat states, different combat special effects are displayed in the floor thumbnail. For example, when the combat virtual object is in the attacking state, the firing special effects of the combat virtual object are displayed in the floor thumbnail; or, when the combat virtual object is in the attack state, the injury special effects of the combat virtual object are displayed in the floor thumbnail.
可选地,该楼层缩略图包括至少两个楼层图形,每个楼层图形与虚拟建筑中的一个楼层对应;该对战虚拟对象的指示标识和对战特效显示于同一个楼层图形中。本申请实施例对显示于同一个楼层图形中的指示标识和对战特效的位置之间的关系不加以限定。示例性地,对战特效显示在指示标识的右上角区域,或者,对战特效显示在指示标识的右侧区域,再或者,对战特效显示在指示标识的四周等。Optionally, the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator of the combat virtual object and the combat special effects are displayed in the same floor graphics. The embodiment of the present application does not limit the relationship between the indicator signs displayed in the same floor graphic and the positions of the battle special effects. For example, the battle special effects are displayed in the upper right corner area of the indicator mark, or the battle special effects are displayed in the right area of the indicator mark, or the battle special effects are displayed around the indicator mark, etc.
在本申请实施例中,楼层缩略图以多个楼层图形来表示虚拟建筑所包含的楼层,对战虚拟对象所处的高度对应任一楼层时,在该楼层缩略图中与该楼层对应的楼层图形中,显示该对战虚拟对象的指示标识,一旦该对战虚拟对象处于对战状态,则会在显示对战虚拟对象的指示标识的楼层图形中,显示对战特效,以表示该对战虚拟对象在该楼层中进行对战。In the embodiment of the present application, the floor thumbnail uses multiple floor graphics to represent the floors contained in the virtual building. When the height of the virtual object corresponds to any floor, the floor graphics corresponding to the floor in the floor thumbnail are , the indicator mark of the battle virtual object is displayed. Once the battle virtual object is in the battle state, the battle special effects will be displayed in the floor graphics displaying the indicator mark of the battle virtual object to indicate that the battle virtual object is on this floor. Battle.
可选地,终端设备上安装由服务器提供服务的目标应用,终端设备通过该目标应用创建虚拟场景,在虚拟场景中控制目标虚拟对象进行移动,在目标虚拟对象进入虚拟场景中的任一升降装置的可乘坐范围时,显示乘坐选项,响应于对该乘坐选项的触发操作,控制该目标虚拟对象乘坐该升降装置,在目标虚拟对象处于升降状态且位于虚拟建筑对应的空间范围内的情况下,基于该目标应用显示楼层缩略图。终端设备通过该目标应用,从服务器中获取虚 拟对象的对战信息,该对战信息指示该虚拟对象的对战状态,基于该虚拟对象的对战信息,在楼层缩略图中显示虚拟对象的对战特效。Optionally, a target application provided by the server is installed on the terminal device. The terminal device creates a virtual scene through the target application, controls the target virtual object to move in the virtual scene, and when the target virtual object enters any lifting device in the virtual scene When the rideable range is within the rideable range, the ride option is displayed, and in response to the trigger operation of the ride option, the target virtual object is controlled to ride on the lifting device. When the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building, The application displays floor thumbnails based on this target. The terminal device obtains virtual data from the server through the target application. The battle information of the virtual object indicates the battle status of the virtual object. Based on the battle information of the virtual object, the battle special effects of the virtual object are displayed in the floor thumbnail.
该服务器用于为该目标应用提供服务。在本申请实施例中,服务器中存储有每个虚拟对象的位置信息以及对战信息,则终端设备从该服务器中获取虚拟对象的位置信息,即可确定位于该虚拟建筑对应的空间范围内的虚拟对象,在确定位于该空间范围内的虚拟对象以及空间范围内的虚拟对象所处高度对应的楼层后,并从服务器中获取位于该空间范围内的虚拟对象的对战信息,基于该对战信息,即可获取位于该空间范围内的虚拟对象是否处于对战状态,一旦确定任一虚拟对象处于对战状态,显示该虚拟对象的对战特效。可选地,该位置信息包括虚拟场景中的三维坐标系下的坐标,该位置信息中X轴和Y轴的坐标用于指示水平位置,该位置信息中Z轴的坐标指示虚拟对象所处的高度。This server is used to serve the target application. In this embodiment of the present application, the location information and battle information of each virtual object are stored in the server. Then the terminal device obtains the location information of the virtual object from the server to determine the virtual object located within the spatial range corresponding to the virtual building. The object, after determining the virtual object located within the space range and the floor corresponding to the height of the virtual object within the space range, obtains the battle information of the virtual object located within the space range from the server. Based on the battle information, that is It can be obtained whether the virtual objects located within the space are in a battle state. Once it is determined that any virtual object is in a battle state, the battle special effects of the virtual object will be displayed. Optionally, the position information includes coordinates in a three-dimensional coordinate system in the virtual scene, the coordinates of the X-axis and the Y-axis in the position information are used to indicate the horizontal position, and the coordinates of the Z-axis in the position information indicate where the virtual object is located. high.
在一种可能实现方式中,还能够控制虚拟对象脱离升降装置以实现楼层转移,也即是在步骤304之后,该方法还包括:响应于脱离该升降装置的指令,控制该目标虚拟对象脱离该升降装置,并进入与该目标虚拟对象当前所处的高度对应的楼层;取消显示该楼层缩略图。In a possible implementation, the virtual object can also be controlled to leave the lifting device to achieve floor transfer. That is, after step 304, the method also includes: in response to the instruction to leave the lifting device, control the target virtual object to leave the lifting device. Lift the device and enter the floor corresponding to the current height of the target virtual object; cancel the display of the floor thumbnail.
在本申请实施例中,目标虚拟对象乘坐该升降装置能够实现在虚拟建筑中进行楼层转移,在目标虚拟对象乘坐升降装置时,能够在该升降装置上进行垂直方向移动,以调整该目标虚拟对象所处的高度,一旦接收到该目标虚拟对象脱离升降装置的指令,控制目标虚拟对象脱离升降装置并进入所处高度对应的楼层,实现了利用升降装置在该虚拟建筑中进行楼层转移的方案,提升了位置转移的便捷性,提升了用户体验。并且,在脱离虚拟装置的情况下,无需再进行显示该楼层缩略图,即可取消显示该楼层缩略图。In the embodiment of the present application, the target virtual object rides on the lifting device to realize floor transfer in the virtual building. When the target virtual object rides on the lifting device, the target virtual object can move vertically on the lifting device to adjust the target virtual object. Once the target virtual object receives an instruction to leave the lifting device, the target virtual object is controlled to leave the lifting device and enter the floor corresponding to the height it is located at, thus realizing the plan of using the lifting device to transfer floors in the virtual building. It improves the convenience of location transfer and improves user experience. Moreover, when leaving the virtual device, the floor thumbnail can be canceled without displaying the floor thumbnail.
可选地,在目标虚拟对象乘坐该升降装置时,显示脱离选项,响应于对该脱离选项的触发操作,获取脱离升降装置的指令,然后响应于脱离升降装置的指令,控制该目标虚拟对象脱离该升降装置,并进入与该目标虚拟对象当前所处高度对应的楼层;取消显示该楼层缩略图。该脱离选项为任意类型的选项,例如,该脱离选项为按钮或滑动条等。该脱离选项用于控制目标虚拟对象脱离当前乘坐的升降装置。Optionally, when the target virtual object rides on the lifting device, the detachment option is displayed, in response to the triggering operation of the detachment option, an instruction to detach from the lifting device is obtained, and then in response to the instruction to detach from the lifting device, the target virtual object is controlled to detach. The lifting device, and enters the floor corresponding to the current height of the target virtual object; cancels the display of the floor thumbnail. The disengagement option is any type of option, for example, the disengagement option is a button or a slider. This detachment option is used to control the target virtual object to detach from the lifting device it is currently riding on.
在一种可能实现方式中,终端设备显示虚拟场景缩略图,该虚拟场景缩略图中显示有该至少一个虚拟对象在虚拟场景中的水平位置。虚拟场景缩略图是将虚拟场景的地图的俯视图进行尺寸缩小后形成的平面图,能够为用户指示虚拟对象在虚拟场景中所处的水平位置。In a possible implementation manner, the terminal device displays a virtual scene thumbnail, and the virtual scene thumbnail displays the horizontal position of the at least one virtual object in the virtual scene. The virtual scene thumbnail is a plan view formed by reducing the size of the top view of the map of the virtual scene, and can indicate to the user the horizontal position of the virtual object in the virtual scene.
在本申请实施例中,不仅显示了楼层缩略图,也显示了虚拟场景缩略图,对于位于虚拟建筑对应的空间范围内的虚拟对象,楼层缩略图中显示了虚拟对象的垂直方向的位置,虚拟场景缩略图显示了虚拟对象在虚拟场景中的水平位置,即实现了一种显示虚拟对象的三维位置的方案。In the embodiment of the present application, not only the floor thumbnails are displayed, but also the virtual scene thumbnails are displayed. For virtual objects located within the spatial range corresponding to the virtual building, the vertical position of the virtual objects is displayed in the floor thumbnails. The scene thumbnail shows the horizontal position of the virtual object in the virtual scene, that is, a solution for displaying the three-dimensional position of the virtual object is implemented.
本申请实施例提供的方案中,在虚拟对象乘坐升降装置进行移动时,会显示该虚拟对象当前所处的空间范围对应的虚拟建筑的楼层缩略图,并在楼层缩略图中显示位于该空间范围内的虚拟对象的指示标识,以指示位于该空间范围内的虚拟对象在该虚拟建筑的垂直方向的位置,丰富了显示的内容,显示出位于该空间范围内的虚拟对象的位置分布情况,打破了虚拟对象位置显示方式的局限性,实现了一种显示虚拟对象位置的新方案,提升了虚拟对象位置的显示效果,有利于提高用户执行与虚拟对象位置相关的操作的灵活性,进而提高人机交互效率。In the solution provided by the embodiment of the present application, when the virtual object moves on the lifting device, the floor thumbnail of the virtual building corresponding to the space range where the virtual object is currently located is displayed, and the floor thumbnail is displayed in the space range. The indication mark of the virtual object within the space range is used to indicate the vertical position of the virtual object within the space range, which enriches the displayed content, displays the location distribution of the virtual objects within the space range, and breaks the It overcomes the limitations of the virtual object position display method and implements a new solution for displaying the virtual object position, which improves the display effect of the virtual object position and is conducive to improving the user's flexibility in performing operations related to the virtual object position, thereby improving human performance. computer interaction efficiency.
并且,本申请实施例提供的方案,一旦检测到虚拟对象进入任一升降装置的可乘坐范围内,立即显示乘坐选项,并通过乘坐选项来控制虚拟对象乘坐该升降装置,实现了一种一键控制虚拟对象乘坐升降装置的方式,无需用户再手动控制虚拟对象移动继而乘坐该升降装置,提升了操作的便捷性。Moreover, according to the solution provided by the embodiment of the present application, once a virtual object is detected to enter the riding range of any lifting device, the riding options are immediately displayed, and the virtual object is controlled to ride on the lifting device through the riding options, realizing a one-click The method of controlling the virtual object to ride on the lifting device eliminates the need for the user to manually control the movement of the virtual object and then ride on the lifting device, which improves the convenience of operation.
并且,采用播放动画的方式来呈现虚拟对象乘坐升降装置的过程,提升了显示效果。Moreover, animation is used to present the process of virtual objects riding on the lifting device, which improves the display effect.
并且,在楼层缩略图中以不同的图案来表示虚拟建筑中的楼层是否可以进入,丰富了楼层缩略图中显示的内容,以使用户能够获知虚拟建筑中各个楼层的是否可以进入,从而提升了用户体验。 In addition, different patterns are used in the floor thumbnails to indicate whether the floors in the virtual building can be entered, which enriches the content displayed in the floor thumbnails so that users can know whether each floor in the virtual building can be entered, thereby improving the user experience.
并且,在虚拟对象处于升降状态且位于任一虚拟建筑对应的空间范围内的情况下,将位于该虚拟建筑对应的空间范围内的友方虚拟对象的垂直方向的位置显示出来,以便用户查看友方虚拟对象在该虚拟建筑中的位置,便于用户控制目标虚拟对象与友方虚拟对象进行互动,从而提升了用户体验。Moreover, when the virtual object is in a lifting state and is located within the spatial range corresponding to any virtual building, the vertical position of the friendly virtual object located within the spatial range corresponding to the virtual building is displayed so that the user can view the friendly object. The position of the virtual object in the virtual building is convenient for the user to control the target virtual object to interact with the friendly virtual object, thereby improving the user experience.
此外,在虚拟对象处于对战状态时,在楼层缩略图中显示对战特效,丰富了楼层缩略图所包含的内容,以使用户获知位于虚拟建筑对应的空间范围的虚拟对象的对战情况,从而提升了显示效果,也提升了用户体验。In addition, when the virtual object is in the battle state, the battle special effects are displayed in the floor thumbnail, which enriches the content contained in the floor thumbnail so that the user can know the battle situation of the virtual object located in the space corresponding to the virtual building, thereby improving The display effect also improves the user experience.
在收到目标虚拟对象脱离升降装置的指令后,控制目标虚拟对象脱离升降装置并进入所处高度对应的楼层,实现了利用升降装置在该虚拟建筑中进行楼层转移的方案,提升了位置转移的便捷性,提升了用户体验。After receiving the instruction for the target virtual object to detach from the lifting device, the target virtual object is controlled to detach from the lifting device and enter the floor corresponding to the height, realizing the plan of using the lifting device to transfer floors in the virtual building, improving the efficiency of position transfer. Convenience improves user experience.
需要说明的是,上述图3所示的实施例是以通过触发乘坐选项的方式来控制虚拟对象乘坐升降装置,而在另一实施例中,无需执行上述步骤301-302,而是采取其他方式,控制目标虚拟对象乘坐升降装置。It should be noted that the above-mentioned embodiment shown in Figure 3 controls the virtual object to ride on the lifting device by triggering the ride option. In another embodiment, there is no need to perform the above steps 301-302, but other methods are adopted. , control the target virtual object to ride on the lifting device.
在一种可能实现方式中,控制目标虚拟对象乘坐升降装置的方式包括:在目标虚拟对象进入升降装置的可乘坐范围、且已开启该目标虚拟对象的自动乘坐功能的情况下,控制该目标虚拟对象乘坐该升降装置。In one possible implementation, the method of controlling the target virtual object to ride on the lifting device includes: when the target virtual object enters the rideable range of the lifting device and the automatic riding function of the target virtual object has been turned on, controlling the target virtual object Subject rides the lift.
在本申请实施例,虚拟对象具有自动乘坐功能,在虚拟对象的自动乘坐功能开启的情况下,一旦虚拟对象进入任一升降装置的可乘坐范围,立即控制目标虚拟对象乘坐该升降装置,而无需再手动控制该虚拟对象乘坐升降装置,从而提升控制的便捷性。In the embodiment of the present application, the virtual object has an automatic riding function. When the automatic riding function of the virtual object is turned on, once the virtual object enters the rideable range of any lifting device, the target virtual object is immediately controlled to ride on the lifting device without Then manually control the virtual object to ride on the lifting device, thereby improving the convenience of control.
可选地,开启虚拟对象的自动乘坐功能的过程,包括:在目标虚拟对象进入任一升降装置的可乘坐范围时,显示自动乘坐选项;响应于对自动乘坐选项的触发操作,开启目标虚拟对象的自动乘坐功能。示例性地,响应于对自动乘坐选项的触发操作,除了开启目标虚拟对象的自动乘坐功能外,还控制目标虚拟对象乘坐当前所处可乘坐范围对应的升降装置。Optionally, the process of turning on the automatic riding function of the virtual object includes: when the target virtual object enters the rideable range of any lifting device, displaying the automatic riding option; in response to the triggering operation of the automatic riding option, turning on the target virtual object automatic ride function. For example, in response to the triggering operation of the automatic riding option, in addition to turning on the automatic riding function of the target virtual object, the target virtual object is also controlled to ride on the lifting device corresponding to the rideable range where it is currently located.
自动乘坐选项用于开启自动乘坐功能。在本申请实施例中,在目标虚拟对象进入任一虚拟装置的可乘坐范围时,会显示一个自动乘坐选项,该自动乘坐选项如图4中的自动乘坐选项404所示,以使用户通过该自动乘坐选项便捷地开启该目标虚拟对象的自动乘坐功能,并且控制目标虚拟对象本次乘坐当前所处的可乘坐范围对应的升降装置,之后,一旦目标虚拟对象进入任一升降装置的可乘坐范围时,则可自动控制目标虚拟对象乘坐该升降装置。The Auto Ride option is used to turn on the Auto Ride function. In the embodiment of the present application, when the target virtual object enters the riding range of any virtual device, an automatic riding option will be displayed. The automatic riding option is shown as the automatic riding option 404 in Figure 4, so that the user can pass the The automatic riding option conveniently turns on the automatic riding function of the target virtual object, and controls the lifting device corresponding to the rideable range where the target virtual object is currently riding. After that, once the target virtual object enters the rideable range of any lifting device , the target virtual object can be automatically controlled to ride on the lifting device.
例如,在该目标虚拟对象乘坐该升降装置后,在该目标虚拟对象位于任一虚拟建筑对应的空间范围时,按照上述步骤303-304显示楼层缩略图。For example, after the target virtual object rides on the lifting device, when the target virtual object is located in the space range corresponding to any virtual building, the floor thumbnail is displayed according to the above steps 303-304.
在本申请实施例,虚拟对象具有自动乘坐功能,在虚拟对象的自动乘坐功能开启的情况下,一旦虚拟对象进入任一升降装置的可乘坐范围,立即控制目标虚拟对象乘坐该升降装置,而无需再手动控制该虚拟对象乘坐升降装置,从而提升控制的便捷性。In the embodiment of the present application, the virtual object has an automatic riding function. When the automatic riding function of the virtual object is turned on, once the virtual object enters the rideable range of any lifting device, the target virtual object is immediately controlled to ride on the lifting device without Then manually control the virtual object to ride on the lifting device, thereby improving the convenience of control.
需要说明的是,上述显示自动乘坐选项的方案与上述图3所示的实施例能够结合。例如,在目标虚拟对象进入任一升降装置的可乘坐范围时,显示自动乘坐选项以及乘坐选项,响应于检测到对乘坐选项的触发操作,按照上述步骤302-304来显示楼层缩略图;响应于检测到对自动乘坐选项的触发操作,控制目标虚拟对象乘坐当前所处可乘坐范围对应的升降装置,并开启目标虚拟对象的自动乘坐功能,之后按照上述步骤303-304显示楼层缩略图。It should be noted that the above solution for displaying automatic riding options can be combined with the above embodiment shown in FIG. 3 . For example, when the target virtual object enters the rideable range of any lifting device, the automatic ride option and the ride option are displayed, and in response to detecting the trigger operation on the ride option, the floor thumbnail is displayed according to the above steps 302-304; in response to Detect the triggering operation of the automatic riding option, control the target virtual object to ride on the lifting device corresponding to the current rideable range, and turn on the automatic riding function of the target virtual object, and then display the floor thumbnail according to the above steps 303-304.
可选地,在上述图3所示的实施例的基础上,在显示乘坐选项时,乘坐选项中还能显示有方向标识,该方向标识用于指示当前通过该乘坐选项来乘坐升降装置时的移动方向。Optionally, based on the embodiment shown in FIG. 3 above, when displaying the ride options, a direction mark can also be displayed in the ride options. The direction mark is used to indicate the current direction of riding the lifting device through the ride option. Movement direction.
在本申请实施例中,一旦虚拟对象进入虚拟场景中任一升降装置的可乘坐范围时,立即显示乘坐选项并在乘坐选项中显示方向标识,以指示按照虚拟对象当前的状态乘坐升降装置时会向哪个方向移动,以供用户查看,从而丰富了显示的内容,从而提升用户体验。In the embodiment of the present application, once the virtual object enters the riding range of any lifting device in the virtual scene, the riding options are immediately displayed and the direction mark is displayed in the riding options to indicate that the virtual object will ride on the lifting device according to its current state. Which direction to move for users to view, thus enriching the displayed content and improving user experience.
可选地,该方向标识包括第一方向标识或第二方向标识,该第一方向标识指示上升方向,第二方向标识指示下降方向。 Optionally, the direction indicator includes a first direction indicator or a second direction indicator, the first direction indicator indicates an ascending direction, and the second direction indicator indicates a descending direction.
可选地,在显示乘坐选项时,基于虚拟对象的视角角度来确定乘坐选项中显示的方向标识,也即是,确定方向标识的过程包括:在该目标虚拟对象进入该升降装置的可乘坐范围时,基于该目标虚拟对象的视线角度,在该乘坐选项中显示与该视线角度匹配的方向标识。也就是说,在目标虚拟对象进入该升降装置的可乘坐范围时,基于目标虚拟对象的视线角度,显示乘坐选项,该乘坐选项中显示有与视线角度匹配的方向标识。Optionally, when the ride options are displayed, the direction indicator displayed in the ride options is determined based on the viewing angle of the virtual object. That is, the process of determining the direction indicator includes: when the target virtual object enters the rideable range of the lifting device When , based on the sight angle of the target virtual object, a direction mark matching the sight angle is displayed in the ride option. That is to say, when the target virtual object enters the rideable range of the lifting device, the ride option is displayed based on the sight angle of the target virtual object, and the ride option displays a direction mark that matches the sight angle.
视线角度为虚拟对象的视线方向与水平方向之间的角度。可选地,该视线角度包括仰角或俯角,该视线方向在水平方向之上、且与该水平方向之间的夹角为仰角,该视线方向在水平方向之下、且与该水平方向之间的夹角为俯角。可选地,在目标虚拟对象的视线角度为仰角时,在该乘坐选项中显示上升标识,在该目标虚拟对象的视线角度为俯角时,在该乘坐选项中显示下降标识。The sight angle is the angle between the virtual object's sight direction and the horizontal direction. Optionally, the line of sight angle includes an elevation angle or a depression angle, the line of sight direction is above the horizontal direction, and the angle between the line of sight direction and the horizontal direction is the elevation angle, the line of sight direction is below the horizontal direction, and the angle between the line of sight direction and the horizontal direction is an elevation angle. The angle between is the depression angle. Optionally, when the sight angle of the target virtual object is an elevation angle, an ascending sign is displayed in the ride option, and when the sight angle of the target virtual object is a depression angle, a descending sign is displayed in the ride option.
可选地,在显示乘坐选项的过程中,还能够调整乘坐选项中显示的方向标识,则调整方向标识的过程,包括:调整该目标虚拟对象的视线角度;在该乘坐选项中,显示与调整后的视线角度匹配的方向标识。示例性地,在乘坐选项中显示与调整后的视线角度匹配的方向标识的方式为:将乘坐选项中显示的方向标识调整为与调整后的视线角度匹配的方向标识。Optionally, during the process of displaying the ride options, the direction mark displayed in the ride options can also be adjusted. The process of adjusting the direction mark includes: adjusting the sight angle of the target virtual object; in the ride options, displaying and adjusting The rear sight angle matches the direction mark. Exemplarily, a way of displaying a direction indicator that matches the adjusted sight angle in the ride option is to adjust the direction indicator displayed in the ride option to a direction indicator that matches the adjusted sight angle.
在本申请实施例中,在目标虚拟对象处于升降装置的可乘坐范围内的情况下,始终显示该乘坐选项,并且在该乘坐选项中显示的方向标识始终与目标虚拟对象的视线角度相匹配,即在目标虚拟对象处于升降装置的可乘坐范围内的情况下,在乘坐选项中显示的方向标识会随着目标虚拟对象的视线角度变化而变化。In the embodiment of the present application, when the target virtual object is within the rideable range of the lifting device, the ride option is always displayed, and the direction indicator displayed in the ride option always matches the sight angle of the target virtual object, That is, when the target virtual object is within the rideable range of the lifting device, the direction mark displayed in the ride option will change as the sight angle of the target virtual object changes.
可选地,采取调整目标虚拟对象的视线方向的方式,调整该目标虚拟对象的视线角度。在本申请实施例中,由于视线角度为目标虚拟对象的视线方向与水平方向之间的角度,则调整目标虚拟对象的视线方向即可调整该目标虚拟对象的视线角度。Optionally, the sight angle of the target virtual object is adjusted by adjusting the sight direction of the target virtual object. In the embodiment of the present application, since the line of sight angle is the angle between the line of sight direction of the target virtual object and the horizontal direction, adjusting the line of sight direction of the target virtual object can adjust the line of sight angle of the target virtual object.
例如,在目标虚拟对象进入升降装置的可乘坐范围时,该目标虚拟对象的视线角度为仰角,则在该乘坐选项中显示上升标识,在该目标虚拟对象处于该可乘坐范围内的过程中,调整该目标虚拟对象的视线方向,使得该目标虚拟对象的视线角度也发生变化,当目标虚拟对象的视线角度变为俯角时,在该乘坐选项中显示下降标识。For example, when the target virtual object enters the rideable range of the lifting device, and the sight angle of the target virtual object is the elevation angle, an ascending sign is displayed in the ride option. While the target virtual object is within the rideable range, The sight direction of the target virtual object is adjusted so that the sight angle of the target virtual object also changes. When the sight angle of the target virtual object changes to a depression angle, a descent mark is displayed in the ride option.
可选地,在乘坐选项中显示有方向标识的基础上,通过该乘坐选项控制虚拟对象乘坐升降装置时,还会控制虚拟对象沿着该方向标识所指示的方向移动,也即是,该方法还包括:在控制目标虚拟对象乘坐升降装置后,控制该目标虚拟对象沿着该方向标识所指示的方向移动。Optionally, on the basis that the direction mark is displayed in the ride option, when the virtual object is controlled to ride on the lifting device through the ride option, the virtual object is also controlled to move in the direction indicated by the direction mark, that is, the method It also includes: controlling the target virtual object to move along the direction indicated by the direction mark after controlling the target virtual object to ride on the lifting device.
在控制虚拟对象乘坐升降装置后,会控制虚拟对象沿着该方向标识所指示的方向移动,从而实现了虚拟对象自动移动的方案,无需再由用户控制虚拟对象移动,提升了控制便捷性。After controlling the virtual object to ride on the lifting device, the virtual object will be controlled to move in the direction indicated by the direction mark, thus realizing the automatic movement of the virtual object. The user no longer needs to control the movement of the virtual object, which improves the convenience of control.
本申请实施例提供的方案中,在目标虚拟对象进入升降装置的可乘坐范围时,显示的乘坐选项中显示有方向标识,以指示按照虚拟对象当前的状态乘坐升降装置时会向哪个方向移动,以供用户查看,从而丰富了显示的内容,从而提升用户体验。In the solution provided by the embodiment of the present application, when the target virtual object enters the rideable range of the lift device, the displayed riding options include a direction mark to indicate which direction the virtual object will move when riding the lift device according to its current state. For users to view, thus enriching the displayed content and improving user experience.
并且,在目标虚拟对象处于升降装置的可乘坐范围内的情况下,在乘坐选项中显示的方向标识会随着目标虚拟对象的视线角度变化而变化,使得显示的方向标识始终与目标虚拟对象当前的视线角度相匹配,从而保证显示的方向标识的准确性,从而保证了显示效果。Moreover, when the target virtual object is within the rideable range of the lifting device, the direction mark displayed in the ride option will change as the sight angle of the target virtual object changes, so that the displayed direction mark is always in line with the current position of the target virtual object. The angle of sight is matched to ensure the accuracy of the displayed direction mark, thereby ensuring the display effect.
需要说明的是,在上述图3所示的实施例的基础上,指示标识还能够以多种不同的方式显示于楼层缩略图中,即显示指示标识的方式包括以下两种。It should be noted that, based on the above embodiment shown in FIG. 3 , the indicator can also be displayed in the floor thumbnail in a variety of different ways, that is, the ways of displaying the indicator include the following two.
第一种方式:楼层缩略图包括至少两个楼层图形,则在第一楼层图形中,显示第一虚拟对象的指示标识。The first method: the floor thumbnail includes at least two floor graphics, then the indication mark of the first virtual object is displayed in the first floor graphics.
该第一楼层图形为楼层缩略图包含的至少两个楼层图形中的任一个,该第一虚拟对象所处的高度对应的楼层为该第一楼层图形对应的楼层。在本申请实施例中,楼层缩略图包括虚拟建筑包括至少两个楼层图形,每个楼层图形与虚拟建筑的一个楼层对应,即该楼层缩略图中显示了用于表示楼层建筑的多个楼层图形。并且,按照位于该虚拟建筑对应的空间范围内的至少一个虚拟对象所处的楼层,在对应的楼层图形中显示虚拟对象的指示标识,以指示虚 拟对象所处的楼层位置,以便用户通过查看该楼层缩略图,即可获知位于该虚拟建筑对应的空间范围内的虚拟对象以及虚拟对象所处的楼层。The first floor graphic is any one of at least two floor graphics included in the floor thumbnail, and the floor corresponding to the height of the first virtual object is the floor corresponding to the first floor graphic. In this embodiment of the present application, the floor thumbnail includes that the virtual building includes at least two floor graphics, each floor graphics corresponding to a floor of the virtual building, that is, the floor thumbnail displays multiple floor graphics used to represent the floor building. . Moreover, according to the floor where at least one virtual object is located within the space range corresponding to the virtual building, an indication mark of the virtual object is displayed in the corresponding floor graphic to indicate the virtual object. The floor location where the virtual object is located, so that the user can know the virtual object located within the spatial range corresponding to the virtual building and the floor where the virtual object is located by viewing the thumbnail of the floor.
第二种方式:该指示标识用于指示该虚拟对象的起始楼层、当前楼层和移动方向。Second method: The indicator is used to indicate the starting floor, current floor and moving direction of the virtual object.
其中,该起始楼层为该虚拟对象开始乘坐该升降装置时所处的高度对应的楼层,该当前楼层为该虚拟对象当前所处的高度对应的楼层,该移动方向为该虚拟对象在虚拟建筑对应的空间范围内的移动方向,该移动方向为垂直方向,包括上升方向或下降方向。Among them, the starting floor is the floor corresponding to the height at which the virtual object starts riding the lifting device, the current floor is the floor corresponding to the height at which the virtual object is currently located, and the moving direction is the level of the virtual object in the virtual building. The direction of movement within the corresponding spatial range, which is the vertical direction, including the ascending direction or the descending direction.
在本申请实施例中,对于位于虚拟建筑对应的空间范围内的任一虚拟对象,如果该虚拟对象处于乘坐状态,则该虚拟对象会在虚拟建筑对应的空间范围内进行垂直方向移动,因此,在该楼层缩略图中显示该虚拟对象的指示标识,指示该虚拟对象的起始楼层、当前楼层以及移动方向,以体现出该虚拟对象正处于乘坐状态且正在进行垂直方向移动,从而丰富了楼层缩略图中显示的内容,提升了显示效果。In this embodiment of the present application, for any virtual object located within the spatial range corresponding to the virtual building, if the virtual object is in a riding state, the virtual object will move vertically within the spatial range corresponding to the virtual building. Therefore, The indication mark of the virtual object is displayed in the thumbnail of the floor, indicating the starting floor, current floor and moving direction of the virtual object, so as to reflect that the virtual object is in a riding state and is moving vertically, thus enriching the floor The content displayed in thumbnails improves the display effect.
在一种可能实现方式中,该楼层缩略图包括至少两个楼层图形,每个楼层图形与虚拟建筑中的一个楼层对应;该指示标识包括指示箭头,该指示箭头的尾部位于该起始楼层对应的楼层图形中,该指示箭头的头部位于该当前楼层对应的楼层图形中,该指示箭头的方向为该移动方向。In a possible implementation, the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator includes an indicator arrow, and the tail of the indicator arrow is located corresponding to the starting floor. In the floor graphic, the head of the indicator arrow is located in the floor graphic corresponding to the current floor, and the direction of the indicator arrow is the moving direction.
如图5所示,该楼层缩略图405包括6个楼层图形,每个楼层图形以矩形表示,以从下到上的顺序为例,第5个楼层图形与其他5个楼层图形的显示样式不同,该第5个楼层图形表示第5个楼层不可进入。指示箭头406的尾部位于第1个楼层图形中,表示虚拟对象的起始楼层为第1个楼层,指示箭头406的头部位于第2个楼层图形中,表示虚拟对象当前所处高度对应的当前楼层为第2个楼层。As shown in Figure 5, the floor thumbnail 405 includes 6 floor graphics, each floor graphics is represented by a rectangle, taking the order from bottom to top as an example, the display style of the 5th floor graphics is different from the other 5 floor graphics. , the fifth floor graphic indicates that the fifth floor is inaccessible. The tail of the indicator arrow 406 is located in the first floor graphic, indicating that the starting floor of the virtual object is the first floor. The head of the indicator arrow 406 is located in the second floor graphic, indicating the current height corresponding to the current height of the virtual object. The floor is the 2nd floor.
在本申请实施例中,对于位于虚拟建筑对应的空间范围内的任一虚拟对象,如果该虚拟对象处于乘坐状态,则以指示箭头的形式来指示虚拟对象的位置以及移动状态,使得更直观的显示出虚拟对象的位置以及移动状态,从而提升了显示效果。In the embodiment of the present application, for any virtual object located within the spatial range corresponding to the virtual building, if the virtual object is in a riding state, the position and movement state of the virtual object are indicated in the form of indicator arrows, making it more intuitive. Displays the position and movement status of virtual objects, thus improving the display effect.
可选地,在虚拟对象进行垂直方向移动的过程中,指示箭头的长度会随着移动的楼层数量变化。即虚拟对象从起始楼层开始,逐层向上移动,则楼层缩略图中显示的指示箭头会逐渐变长。Optionally, during the vertical movement of the virtual object, the length of the indicator arrow changes with the number of floors moved. That is, if the virtual object starts from the starting floor and moves upward layer by layer, the indicator arrow displayed in the floor thumbnail will gradually become longer.
需要说明的是,本申请实施例提供的两种显示指示标识的方式能够结合,例如,以第一种方式显示目标虚拟对象的友方虚拟对象或敌方虚拟对象的指示标识,以第二种方式显示目标虚拟对象的指示标识;或者,对于位于该空间范围内的至少一个虚拟对象,以第一种方式显示未处于升降状态的虚拟对象的指示标识,以第二种方式显示处于升降状态的虚拟对象的指示标识,本申请对此不作限定。It should be noted that the two ways of displaying indicator marks provided by the embodiments of the present application can be combined. For example, the indicator mark of a friendly virtual object or an enemy virtual object of the target virtual object can be displayed in the first way, and the indicator mark of the target virtual object can be displayed in the second way. way to display the indicator mark of the target virtual object; or, for at least one virtual object located within the space range, display the indicator mark of the virtual object that is not in the lifting state in the first way, and display the indicator mark of the virtual object in the lifting state in the second way. The indication mark of the virtual object is not limited in this application.
在本申请实施例提供的方案中,在虚拟对象处于升降状态的情况下,在楼层缩略图中显示的指示标识,能够指示该虚拟对象的起始楼层、当前楼层以及移动方向,以体现出该虚拟对象正处于乘坐状态且正在进行垂直方向移动,从而丰富了楼层缩略图中显示的内容,提升了显示效果。In the solution provided by the embodiment of the present application, when the virtual object is in a lifting state, the indicator displayed in the floor thumbnail can indicate the starting floor, current floor and moving direction of the virtual object to reflect the The virtual object is in a riding state and moving vertically, thus enriching the content displayed in the floor thumbnail and improving the display effect.
并且,以指示箭头的形式来指示虚拟对象的起始楼层、当前楼层和移动方向,使得更直观的显示出虚拟对象的位置以及移动状态,从而提升了显示效果。Moreover, the starting floor, current floor and movement direction of the virtual object are indicated in the form of indicator arrows, making it more intuitive to display the position and movement status of the virtual object, thereby improving the display effect.
可选地,在上述图3所示的实施例的基础上,在目标虚拟对象处于升降状态的情况下,还能调整虚拟对象的移动方向和移动速度中的至少一项。Optionally, based on the above embodiment shown in FIG. 3 , when the target virtual object is in a lifting state, at least one of the moving direction and moving speed of the virtual object can be adjusted.
在一种可能实现方式中,该方法还包括:调整该目标虚拟对象的视线角度;基于调整后的视线角度,调整目标虚拟对象的移动方向和移动速度中的至少一项。In a possible implementation, the method further includes: adjusting a line of sight angle of the target virtual object; and adjusting at least one of a moving direction and a moving speed of the target virtual object based on the adjusted line of sight angle.
在本申请实施例中,视角角度决定了该目标虚拟对象乘坐该升降装置的移动方向和移动速度中的至少一项。在目标虚拟对象乘坐升降装置后,调整该目标虚拟对象的视线方向,从而改变视线方向与水平方向之间的视线角度,通过改变视线角度来调整虚拟对象的移动方向和移动速度中的至少一项。In the embodiment of the present application, the viewing angle determines at least one of the moving direction and the moving speed of the target virtual object riding on the lifting device. After the target virtual object rides on the lifting device, the sight direction of the target virtual object is adjusted to change the sight angle between the sight direction and the horizontal direction, and at least one of the moving direction and the moving speed of the virtual object is adjusted by changing the sight angle. .
示例性地,终端设备中存储有视线角度与移动方向的对应关系,基于调整后的视线角度, 能够在视线角度与移动方向的对应关系中查找与调整后的视线角度对应的移动方向,将目标虚拟对象的移动方向调整为查找到的移动方向。For example, the corresponding relationship between the sight angle and the movement direction is stored in the terminal device. Based on the adjusted sight angle, The moving direction corresponding to the adjusted sight angle can be found in the correspondence relationship between the sight angle and the moving direction, and the moving direction of the target virtual object can be adjusted to the found moving direction.
示例性地,终端设备中存储有视线角度与移动速度的对应关系,基于调整后的视线角度,能够在视线角度与移动速度的对应关系中查找与调整后的视线角度对应的移动速度,将目标虚拟对象的移动速度调整为查找到的移动速度。For example, the corresponding relationship between the sight angle and the moving speed is stored in the terminal device. Based on the adjusted sight angle, the moving speed corresponding to the adjusted sight angle can be found in the corresponding relationship between the sight angle and the moving speed, and the target can be The virtual object's movement speed is adjusted to the found movement speed.
示例性地,终端设备中存储有视线角度与移动方向的对应关系以及视线角度与移动速度的对应关系,基于调整后的视线角度,能够在视线角度与移动方向的对应关系中查找与调整后的视线角度对应的移动方向,以及能够在视线角度与移动速度的对应关系中查找与调整后的视线角度对应的移动速度,将目标虚拟对象的移动方向调整为查找到的移动方向,将目标虚拟对象的移动速度调整为查找到的移动速度。For example, the terminal device stores the corresponding relationship between the visual angle and the moving direction and the corresponding relationship between the visual angle and the moving speed. Based on the adjusted visual angle, it is possible to search and adjust the corresponding relationship between the visual angle and the moving direction. The movement direction corresponding to the sight angle, and the movement speed corresponding to the adjusted sight angle can be found in the correspondence between the sight angle and the movement speed, and the movement direction of the target virtual object is adjusted to the found movement direction, and the target virtual object is The movement speed is adjusted to the found movement speed.
可选地,视线角度包括仰角或俯角,与仰角匹配的移动方向为上升方向,与俯角匹配的移动方向为下降方向。在目标虚拟对象处于升降状态的情况下,调整该目标虚拟对象的视角角度由仰角变为俯角,则调整该目标虚拟对象的移动方向由上升方向变为下降方向;或者,调整该目标虚拟对象的视角角度由俯角变为仰角,则调整该目标虚拟对象的移动方向由下降方向变为上升方向。Optionally, the sight angle includes an elevation angle or a depression angle, the moving direction matching the elevation angle is the ascending direction, and the moving direction matching the depression angle is the descending direction. When the target virtual object is in a rising and falling state, adjust the viewing angle of the target virtual object from an elevation angle to a depression angle, and then adjust the moving direction of the target virtual object from an ascending direction to a descending direction; or, adjust the When the viewing angle changes from a depression angle to an elevation angle, the moving direction of the target virtual object is adjusted from a downward direction to an upward direction.
可选地,视线角度的范围为90度至-90度,仰角对应的视线角度范围为90度至0度,俯角对应的视线角度范围为0度至-90度,移动速度与该视线角度呈正相关关系,视线角度越大,移动速度越大,视线角度越小,移动速度越小。Optionally, the sight angle range is 90 degrees to -90 degrees, the sight angle range corresponding to the elevation angle is 90 degrees to 0 degrees, the sight angle range corresponding to the depression angle is 0 degrees to -90 degrees, and the moving speed is positive to the sight angle. There is a correlation: the larger the sight angle, the greater the movement speed; the smaller the sight angle, the smaller the movement speed.
本申请实施例提供的方案中,在虚拟对象乘坐升降装置的过程中,能采取调整虚拟对象的视线角度的方式来调整移动方向和移动速度中的至少一项,丰富了虚拟场景的多样性,且这种操控方式简单,便于用户操控,从而提升了用户体验。In the solution provided by the embodiment of the present application, when the virtual object rides on the lifting device, at least one of the moving direction and the moving speed can be adjusted by adjusting the sight angle of the virtual object, which enriches the diversity of the virtual scene. Moreover, this control method is simple and convenient for users to control, thus improving the user experience.
基于上述所示的实施例,本申请还提供了一种虚拟对象显示方法的流程图。如图4至图8所示,以该升降装置为虚拟滑索、且通过乘坐选项来控制虚拟对象乘坐升降装置为例。图4至图7示出了虚拟场景画面的示意图,图8示出了虚拟对象显示方法的流程图。参见图8,该方法包括:Based on the embodiments shown above, this application also provides a flow chart of a virtual object display method. As shown in FIGS. 4 to 8 , the lifting device is a virtual zipline, and the virtual object is controlled to ride on the lifting device through the ride option. Figures 4 to 7 show schematic diagrams of virtual scene screens, and Figure 8 shows a flow chart of a virtual object display method. Referring to Figure 8, the method includes:
801、终端设备在目标虚拟对象401进入虚拟滑索402的可乘坐范围时,显示上索按钮403及自动上索按钮404,该上索按钮403显示的方向标识指示上升方向。本申请实施例是以乘坐选项为上索按钮403、自动乘坐选项为自动上索按钮404为例进行说明的。801. When the target virtual object 401 enters the rideable range of the virtual zipline 402, the terminal device displays the rope-up button 403 and the automatic rope-up button 404. The direction mark displayed on the rope-up button 403 indicates the ascending direction. The embodiment of the present application takes the riding option as the cable-up button 403 and the automatic riding option as the automatic cable-up button 404 as an example.
802、用户点击该上索按钮403,终端设备播放该目标虚拟对象401上虚拟滑索402的动画。802. The user clicks the up cable button 403, and the terminal device plays the animation of the virtual zip line 402 on the target virtual object 401.
本申请是以通过点击上索按钮403为例控制目标虚拟对象401上虚拟滑索402为例进行说明的,而在另一实施例中,用户点击自动上索按钮404,终端设备播放该目标虚拟对象401上虚拟滑索402的动画,并开启目标虚拟对象401的自动乘坐功能。This application takes the example of controlling the virtual zipline 402 on the target virtual object 401 by clicking the cable up button 403 as an example. In another embodiment, the user clicks the automatic cable up button 404, and the terminal device plays the target virtual An animation of the virtual zipline 402 on the object 401, and the automatic riding function of the target virtual object 401 is turned on.
803、终端设备检测目标虚拟对象401所处的空间范围所属的虚拟建筑,获取该虚拟建筑的楼层信息。803. The terminal device detects the virtual building to which the spatial range of the target virtual object 401 belongs, and obtains the floor information of the virtual building.
804、终端设备获取该目标虚拟对象401的友方虚拟对象的位置信息及对战信息,确定位于该虚拟建筑对应的空间范围内的友方虚拟对象所处的楼层及对战状态。在一些实施例中,友方虚拟对象还可以称为队友。804. The terminal device obtains the location information and combat information of the friendly virtual object of the target virtual object 401, and determines the floor and combat status of the friendly virtual object located in the space corresponding to the virtual building. In some embodiments, friendly virtual objects may also be called teammates.
805、终端设备显示楼层缩略图405以及下索按钮407,该楼层缩略图405中显示目标虚拟对象401的指示箭头406、友方虚拟对象的指示标识408以及友方虚拟对象的对战特效409。并且,显示目标虚拟对象401攀爬虚拟滑索402向上移动,在目标虚拟对象401向上移动过程中,该指示箭头406会逐渐变长,如图5和图6所示,图5中显示的指示箭头406所指示的当前楼层为第2个楼层,图6中显示的指示箭头406所指示的当前楼层为第4个楼层。本申请实施例是以脱离选项为下索按钮407为例进行说明的。805. The terminal device displays a floor thumbnail 405 and a search button 407. The floor thumbnail 405 displays the indicator arrow 406 of the target virtual object 401, the indicator mark 408 of the friendly virtual object, and the battle special effect 409 of the friendly virtual object. Moreover, the target virtual object 401 is displayed climbing the virtual zipline 402 and moving upward. During the upward movement of the target virtual object 401, the indicator arrow 406 will gradually become longer, as shown in Figures 5 and 6. The indicator displayed in Figure 5 The current floor indicated by the arrow 406 is the second floor, and the current floor indicated by the indicator arrow 406 shown in FIG. 6 is the fourth floor. The embodiment of the present application is explained by taking the escape option as the drop button 407 as an example.
806、用户点击下索按钮407,显示目标虚拟对象401脱离虚拟滑索402,播放目标虚拟 对象401下虚拟滑索402的动画。806. The user clicks the cable button 407, the target virtual object 401 is displayed and separated from the virtual zipline 402, and the target virtual object is played. Animation of virtual zipline 402 under object 401.
807、终端设备控制目标虚拟对象401,进入与该目标虚拟对象401当前所处的高度对应的楼层,取消显示该楼层缩略图405,如图7所示。807. The terminal device controls the target virtual object 401, enters the floor corresponding to the current height of the target virtual object 401, and cancels the display of the floor thumbnail 405, as shown in Figure 7.
图9是本申请实施例提供的一种虚拟对象显示装置的结构示意图,如图9所示,该装置包括:Figure 9 is a schematic structural diagram of a virtual object display device provided by an embodiment of the present application. As shown in Figure 9, the device includes:
显示模块901,用于在目标虚拟对象处于升降状态且位于虚拟建筑对应的空间范围内的情况下,显示虚拟建筑的楼层缩略图,目标虚拟对象为本端设备控制的虚拟对象,升降状态为通过乘坐升降装置进行移动的状态;The display module 901 is used to display the floor thumbnail of the virtual building when the target virtual object is in a lifting state and is located within the space range corresponding to the virtual building. The target virtual object is a virtual object controlled by the local device, and the lifting state is passed The state of moving on a lifting device;
显示模块901,还用于在楼层缩略图中,显示位于空间范围内的至少一个虚拟对象的指示标识,指示标识指示虚拟对象所处的高度对应的楼层。The display module 901 is also configured to display an indication mark of at least one virtual object located within the spatial range in the floor thumbnail, where the indication mark indicates the floor corresponding to the height of the virtual object.
在一种可能实现方式中,楼层缩略图包括至少两个楼层图形,每个楼层图形与虚拟建筑中的一个楼层对应;In one possible implementation, the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building;
显示模块901,用于在第一楼层图形中,显示第一虚拟对象的指示标识;The display module 901 is used to display the indication mark of the first virtual object in the first floor graphic;
其中,第一虚拟对象所处的高度对应的楼层为第一楼层图形对应的楼层。Wherein, the floor corresponding to the height of the first virtual object is the floor corresponding to the first floor graphic.
在另一种可能实现方式中,指示标识用于指示虚拟对象的起始楼层、当前楼层和移动方向;其中,起始楼层为虚拟对象开始乘坐升降装置时的高度对应的楼层,当前楼层为虚拟对象当前所处的高度对应的楼层。In another possible implementation, the indicator is used to indicate the starting floor, current floor and moving direction of the virtual object; where the starting floor is the floor corresponding to the height when the virtual object starts riding the lifting device, and the current floor is the virtual object's starting floor. The floor corresponding to the current height of the object.
在另一种可能实现方式中,楼层缩略图包括至少两个楼层图形,每个楼层图形与虚拟建筑中的一个楼层对应;指示标识包括指示箭头,指示箭头的尾部位于起始楼层对应的楼层图形中,指示箭头的头部位于当前楼层对应的楼层图形中,指示箭头的方向为移动方向。In another possible implementation, the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator includes an indicator arrow, and the tail of the indicator arrow is located at the floor graphic corresponding to the starting floor. , the head of the indicator arrow is located in the floor graphic corresponding to the current floor, and the direction of the indicator arrow is the moving direction.
在另一种可能实现方式中,显示模块901,还用于在楼层缩略图中,显示对战虚拟对象的对战特效,对战虚拟对象为处于对战状态的虚拟对象。In another possible implementation, the display module 901 is also used to display the battle special effects of the battle virtual object in the floor thumbnail, and the battle virtual object is a virtual object in a battle state.
在另一种可能实现方式中,楼层缩略图包括至少两个楼层图形,每个楼层图形与虚拟建筑中的一个楼层对应;对战虚拟对象的指示标识和对战特效显示于同一个楼层图形中。In another possible implementation, the floor thumbnail includes at least two floor graphics, each floor graphics corresponding to a floor in the virtual building; the indicator mark of the virtual object for combat and the combat special effects are displayed in the same floor graphics.
在另一种可能实现方式中,对战状态包括攻击状态和被攻击状态,显示模块901,用于在对战虚拟对象处于攻击状态时,在楼层缩略图中,显示对战虚拟对象的开火特效;在对战虚拟对象处于被攻击状态时,在楼层缩略图中,显示对战虚拟对象的受伤特效。In another possible implementation, the combat state includes an attacking state and an attacked state. The display module 901 is used to display the firing special effects of the combating virtual object in the floor thumbnail when the combating virtual object is in the attacking state; during the combat, When the virtual object is under attack, the damage effects of the virtual object will be displayed in the floor thumbnail.
在另一种可能实现方式中,如图10所示,装置还包括:In another possible implementation, as shown in Figure 10, the device also includes:
控制模块902,用于响应于脱离升降装置的指令,控制目标虚拟对象脱离升降装置,并进入与目标虚拟对象当前所处的高度对应的楼层;The control module 902 is used to control the target virtual object to detach from the lifting device in response to an instruction to detach from the lifting device, and enter the floor corresponding to the current height of the target virtual object;
显示模块901,用于取消显示楼层缩略图。The display module 901 is used to cancel the display of floor thumbnails.
在另一种可能实现方式中,显示模块901,还用于在目标虚拟对象乘坐升降装置时,显示脱离选项;In another possible implementation, the display module 901 is also used to display the escape option when the target virtual object rides on the lifting device;
控制模块902,还用于响应于对脱离选项的触发操作,获取脱离升降装置的指令。The control module 902 is also configured to obtain an instruction to disengage from the lifting device in response to the triggering operation of the disengagement option.
在另一种可能实现方式中,如图10所示,装置还包括:In another possible implementation, as shown in Figure 10, the device also includes:
显示模块901,用于在目标虚拟对象进入升降装置的可乘坐范围时,显示乘坐选项;The display module 901 is used to display the riding options when the target virtual object enters the riding range of the lifting device;
控制模块902,用于响应于对乘坐选项的触发操作,控制目标虚拟对象乘坐升降装置。The control module 902 is configured to control the target virtual object to ride on the lifting device in response to a triggering operation on the ride option.
在另一种可能实现方式中,控制模块902,用于响应于对乘坐选项的触发操作,播放目标虚拟对象乘坐升降装置的动画,动画包括目标虚拟对象执行目标动作的画面,目标动作为目标虚拟对象乘坐升降装置时所需执行的动作。In another possible implementation, the control module 902 is configured to play an animation of the target virtual object riding the lifting device in response to the triggering operation of the ride option. The animation includes a picture of the target virtual object performing a target action, and the target action is the target virtual object. The action required for the subject to ride on the lift.
在另一种可能实现方式中,乘坐选项中显示有方向标识,控制模块902,还用于控制目标虚拟对象沿着方向标识所指示的方向移动。In another possible implementation, a direction mark is displayed in the ride option, and the control module 902 is also used to control the target virtual object to move in the direction indicated by the direction mark.
在另一种可能实现方式中,显示模块901,用于在目标虚拟对象进入升降装置的可乘坐范围时,基于目标虚拟对象的视线角度,显示乘坐选项,乘坐选项中显示有与视线角度匹配的方向标识。 In another possible implementation, the display module 901 is configured to display ride options based on the sight angle of the target virtual object when the target virtual object enters the rideable range of the lifting device. The ride options display the ride options that match the sight angle. Directional sign.
在另一种可能实现方式中,如图10所示,装置还包括:In another possible implementation, as shown in Figure 10, the device also includes:
调整模块903,用于调整目标虚拟对象的视线角度;Adjustment module 903 is used to adjust the sight angle of the target virtual object;
显示模块901,将乘坐选项中显示的方向标识调整为与调整后的视线角度匹配的方向标识。The display module 901 adjusts the direction mark displayed in the ride option to a direction mark that matches the adjusted sight angle.
在另一种可能实现方式中,如图10所示,装置还包括:In another possible implementation, as shown in Figure 10, the device also includes:
控制模块902,用于在目标虚拟对象进入升降装置的可乘坐范围、且已开启目标虚拟对象的自动乘坐功能的情况下,控制目标虚拟对象乘坐升降装置。The control module 902 is used to control the target virtual object to ride on the lifting device when the target virtual object enters the rideable range of the lifting device and the automatic riding function of the target virtual object is turned on.
在另一种可能实现方式中,如图10所示,装置还包括:In another possible implementation, as shown in Figure 10, the device also includes:
显示模块901,还用于在目标虚拟对象进入任一升降装置的可乘坐范围时,显示自动乘坐选项;The display module 901 is also used to display the automatic riding option when the target virtual object enters the riding range of any lifting device;
控制模块902,还用于响应于对自动乘坐选项的触发操作,开启目标虚拟对象的自动乘坐功能。The control module 902 is also configured to enable the automatic riding function of the target virtual object in response to the triggering operation of the automatic riding option.
在另一种可能实现方式中,如图10所示,装置还包括:In another possible implementation, as shown in Figure 10, the device also includes:
调整模块903,用于调整目标虚拟对象的视线角度;基于调整后的视线角度,调整目标虚拟对象的移动方向和移动速度中的至少一项。The adjustment module 903 is used to adjust the line of sight angle of the target virtual object; and adjust at least one of the moving direction and moving speed of the target virtual object based on the adjusted line of sight angle.
在另一种可能实现方式中,如图10所示,装置还包括:In another possible implementation, as shown in Figure 10, the device also includes:
确定模块904,用于在虚拟对象位于空间范围内的情况下,基于虚拟对象所处的高度、虚拟建筑的楼层数量和虚拟建筑的高度,确定虚拟对象所处的高度对应的楼层。The determination module 904 is used to determine the floor corresponding to the height of the virtual object based on the height of the virtual object, the number of floors of the virtual building, and the height of the virtual building when the virtual object is located within the spatial range.
在另一种可能实现方式中,确定模块904,用于将虚拟建筑的高度与虚拟建筑的楼层数量的比值,确定为每个楼层的高度;基于每个楼层的高度确定每个楼层对应的高度区间;确定虚拟对象所处的高度所属的高度区间,将确定的高度区间对应的楼层,确定为虚拟对象所处的高度对应的楼层。In another possible implementation, the determination module 904 is used to determine the ratio of the height of the virtual building to the number of floors of the virtual building as the height of each floor; determine the height corresponding to each floor based on the height of each floor. Interval; determine the height interval to which the height of the virtual object belongs, and determine the floor corresponding to the determined height interval as the floor corresponding to the height of the virtual object.
在另一种可能实现方式中,显示模块901,用于在楼层缩略图中,显示位于空间范围内的友方虚拟对象的指示标识,友方虚拟对象与目标虚拟对象属于同一阵营。In another possible implementation, the display module 901 is configured to display indication marks of friendly virtual objects located within the spatial range in the floor thumbnail, and the friendly virtual objects and the target virtual object belong to the same camp.
在另一种可能实现方式中,显示模块901,用于在目标虚拟对象处于升降状态的情况下,基于目标虚拟对象的位置及虚拟场景中的至少一个虚拟建筑对应的空间范围,确定空间范围包含目标虚拟对象的位置的虚拟建筑;基于确定的虚拟建筑的楼层信息,显示虚拟建筑的楼层缩略图。In another possible implementation, the display module 901 is configured to, when the target virtual object is in a lifting state, determine whether the spatial range includes the target virtual object based on the position of the target virtual object and the spatial range corresponding to at least one virtual building in the virtual scene. The virtual building at the location of the target virtual object; based on the determined floor information of the virtual building, display a floor thumbnail of the virtual building.
在另一种可能实现方式中,楼层信息包括楼层数量,显示模块901,用于基于楼层数量,显示虚拟建筑的楼层缩略图,楼层缩略图包括楼层数量的楼层图形。In another possible implementation, the floor information includes the number of floors, and the display module 901 is configured to display floor thumbnails of the virtual building based on the number of floors, where the floor thumbnails include floor graphics of the number of floors.
在另一种可能实现方式中,楼层信息还包括每个楼层的地形标识,显示模块901,用于基于楼层数量和每个楼层的地形标识,显示虚拟建筑的楼层缩略图,楼层缩略图包括楼层数量的楼层图形,且每个楼层图形的显示样式与对应的楼层的地形标识相匹配。In another possible implementation, the floor information also includes the terrain identification of each floor. The display module 901 is configured to display a floor thumbnail of the virtual building based on the number of floors and the terrain identification of each floor. The floor thumbnail includes the floor. A number of floor graphics, and the display style of each floor graphics matches the terrain identification of the corresponding floor.
需要说明的是:上述实施例提供的虚拟对象显示装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的虚拟对象显示装置与虚拟对象显示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the virtual object display device provided in the above embodiments is only illustrated by taking the division of the above functional modules. In actual applications, the above function allocation can be completed by different functional modules according to needs, that is, the terminal equipment The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the virtual object display device provided by the above embodiments and the virtual object display method embodiments belong to the same concept. The specific implementation process can be found in the method embodiments and will not be described again here.
本申请实施例还提供了一种终端设备,该终端设备包括处理器和存储器,存储器中存储有至少一条计算机程序,该至少一条计算机程序由处理器加载并执行,以使终端设备实现上述实施例的虚拟对象显示方法所执行的操作。图11示出了本申请一个示例性实施例提供的终端设备1100的结构框图。该终端设备1100可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表、智能语音交互设备、智能家电及车载终端等。终端设备1100还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。Embodiments of the present application also provide a terminal device. The terminal device includes a processor and a memory. At least one computer program is stored in the memory. The at least one computer program is loaded and executed by the processor, so that the terminal device implements the above embodiments. The virtual object displays the operations performed by the methods. Figure 11 shows a structural block diagram of a terminal device 1100 provided by an exemplary embodiment of the present application. The terminal device 1100 can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc. The terminal device 1100 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, and other names.
终端设备1100包括有:处理器1101和存储器1102。 The terminal device 1100 includes: a processor 1101 and a memory 1102.
处理器1101可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1101可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1101也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1101可以集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1101还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array). accomplish. The processor 1101 can also include a main processor and a co-processor. The main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content to be displayed on the display screen. In some embodiments, the processor 1101 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
存储器1102可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1102还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1102中的非暂态的计算机可读存储介质用于存储至少一个计算机程序,该至少一个计算机程序用于被处理器1101所执行,以使终端设备1100实现本申请中方法实施例提供的虚拟对象显示方法。Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one computer program, and the at least one computer program is used to be executed by the processor 1101 to enable the terminal device 1100 to implement the application in the present application. The method embodiment provides a virtual object display method.
在一些实施例中,终端设备1100还可选包括有:显示屏1105。In some embodiments, the terminal device 1100 optionally further includes a display screen 1105.
显示屏1105用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏1105是触摸显示屏时,显示屏1105还具有采集在显示屏1105的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1101进行处理。此时,显示屏1105还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1105可以为一个,设置在终端设备1100的前面板;在另一些实施例中,显示屏1105可以为至少两个,分别设置在终端设备1100的不同表面或呈折叠设计;在另一些实施例中,显示屏1105可以是柔性显示屏,设置在终端设备1100的弯曲表面上或折叠面上。甚至,显示屏1105还可以设置成非矩形的不规则图形,也即异形屏。显示屏1105可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。示例性地,楼层缩略图、虚拟对象的指示标识等通过显示屏1105显示。The display screen 1105 is used to display UI (User Interface, user interface). The UI can include graphics, text, icons, videos, and any combination thereof. When display screen 1105 is a touch display screen, display screen 1105 also has the ability to collect touch signals on or above the surface of display screen 1105 . The touch signal can be input to the processor 1101 as a control signal for processing. At this time, the display screen 1105 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 1105, which is disposed on the front panel of the terminal device 1100; in other embodiments, there may be at least two display screens 1105, which are disposed on different surfaces of the terminal device 1100 or folded. Design; in other embodiments, the display screen 1105 may be a flexible display screen, disposed on a curved surface or a folding surface of the terminal device 1100. Even, the display screen 1105 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1105 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials. For example, floor thumbnails, indication marks of virtual objects, etc. are displayed through the display screen 1105 .
本领域技术人员可以理解,图11中示出的结构并不构成对终端设备1100的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 11 does not constitute a limitation on the terminal device 1100, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
本申请实施例还提供了一种非易失性计算机可读存储介质,该非易失性计算机可读存储介质中存储有至少一条计算机程序,该至少一条计算机程序由处理器加载并执行,以使计算机实现上述实施例的虚拟对象显示方法所执行的操作。Embodiments of the present application also provide a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores at least one computer program. The at least one computer program is loaded and executed by the processor to The computer is allowed to implement the operations performed by the virtual object display method of the above embodiment.
本申请实施例还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,使计算机实现如上述方面所述的虚拟对象显示方法所执行的操作。Embodiments of the present application also provide a computer program product, including a computer program that, when executed by a processor, causes the computer to implement operations performed by the virtual object display method described above.
本申请实施例还提供了一种计算机程序,该计算机程序包括计算机指令,该计算机指令由处理器加载并执行,以使计算机实现上述实施例的虚拟对象显示方法所执行的操作。An embodiment of the present application also provides a computer program. The computer program includes computer instructions, which are loaded and executed by a processor, so that the computer implements the operations performed by the virtual object display method of the above embodiment.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述程序可以存储于一种非易失性计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. The program can be stored in a non-volatile computer-readable storage medium. , the storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述仅为本申请实施例的可选实施例,并不用以限制本申请实施例,凡在本申请实施例的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above are only optional embodiments of the embodiments of the present application and are not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the embodiments of the present application shall be included in within the protection scope of this application.
Claims (28)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210473843.8A CN116999806A (en) | 2022-04-29 | 2022-04-29 | Virtual object display method, device, equipment and storage medium |
| CN202210473843.8 | 2022-04-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023207419A1 true WO2023207419A1 (en) | 2023-11-02 |
Family
ID=88517278
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/082433 Ceased WO2023207419A1 (en) | 2022-04-29 | 2023-03-20 | Method and apparatus for displaying virtual object, and device and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116999806A (en) |
| WO (1) | WO2023207419A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120393418A (en) * | 2025-04-27 | 2025-08-01 | 点点互动(北京)科技有限公司 | Virtual object interaction method, device, equipment and computer-readable storage medium |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108689264A (en) * | 2017-03-31 | 2018-10-23 | 奥的斯电梯公司 | Animation for indicating lift car movement |
| CN110711388A (en) * | 2019-11-08 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Virtual object control method, device and storage medium |
| US20200175760A1 (en) * | 2017-08-23 | 2020-06-04 | Tencent Technology(Shenzhen) Company Limited | Information interaction method based on virtual space scene, computer equipment and computer-readable storage medium |
| WO2020152859A1 (en) * | 2019-01-25 | 2020-07-30 | 三菱電機株式会社 | In-car display for elevator |
| CN111760288A (en) * | 2020-06-10 | 2020-10-13 | 网易(杭州)网络有限公司 | Method, device, terminal and storage medium for displaying orientation in virtual three-dimensional scene |
| CN113144602A (en) * | 2021-05-25 | 2021-07-23 | 网易(杭州)网络有限公司 | Position indication method, position indication device, electronic equipment and storage medium |
| CN113476843A (en) * | 2021-06-23 | 2021-10-08 | 网易(杭州)网络有限公司 | Display method and device of multilayer map |
| CN113680065A (en) * | 2021-08-19 | 2021-11-23 | 网易(杭州)网络有限公司 | A map processing method and device in a game |
-
2022
- 2022-04-29 CN CN202210473843.8A patent/CN116999806A/en active Pending
-
2023
- 2023-03-20 WO PCT/CN2023/082433 patent/WO2023207419A1/en not_active Ceased
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108689264A (en) * | 2017-03-31 | 2018-10-23 | 奥的斯电梯公司 | Animation for indicating lift car movement |
| US20200175760A1 (en) * | 2017-08-23 | 2020-06-04 | Tencent Technology(Shenzhen) Company Limited | Information interaction method based on virtual space scene, computer equipment and computer-readable storage medium |
| WO2020152859A1 (en) * | 2019-01-25 | 2020-07-30 | 三菱電機株式会社 | In-car display for elevator |
| CN110711388A (en) * | 2019-11-08 | 2020-01-21 | 腾讯科技(深圳)有限公司 | Virtual object control method, device and storage medium |
| CN111760288A (en) * | 2020-06-10 | 2020-10-13 | 网易(杭州)网络有限公司 | Method, device, terminal and storage medium for displaying orientation in virtual three-dimensional scene |
| CN113144602A (en) * | 2021-05-25 | 2021-07-23 | 网易(杭州)网络有限公司 | Position indication method, position indication device, electronic equipment and storage medium |
| CN113476843A (en) * | 2021-06-23 | 2021-10-08 | 网易(杭州)网络有限公司 | Display method and device of multilayer map |
| CN113680065A (en) * | 2021-08-19 | 2021-11-23 | 网易(杭州)网络有限公司 | A map processing method and device in a game |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120393418A (en) * | 2025-04-27 | 2025-08-01 | 点点互动(北京)科技有限公司 | Virtual object interaction method, device, equipment and computer-readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116999806A (en) | 2023-11-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20230241501A1 (en) | Display method and apparatus for virtual prop, electronic device and storage medium | |
| KR102758488B1 (en) | Method and device for controlling virtual objects, terminals and storage media | |
| JP2022527662A (en) | Virtual object control methods, devices, equipment and computer programs | |
| US12165254B2 (en) | Method and apparatus for displaying virtual environment picture, device, and storage medium | |
| CN112138385B (en) | Virtual shooting prop aiming method and device, electronic equipment and storage medium | |
| CN114344899B (en) | Coordinate axis display method, device, terminal and medium applied to virtual environment | |
| US20230271087A1 (en) | Method and apparatus for controlling virtual character, device, and storage medium | |
| JP2025530915A (en) | Game control method, device, electronic device and storage medium | |
| WO2023061133A1 (en) | Virtual scene display method and apparatus, device, and storage medium | |
| US20240091644A1 (en) | Virtual object control method and apparatus, device, and medium | |
| WO2023207419A1 (en) | Method and apparatus for displaying virtual object, and device and storage medium | |
| WO2023071808A1 (en) | Virtual scene-based graphic display method and apparatus, device, and medium | |
| US20240325912A1 (en) | Method and apparatus for controlling virtual object, device, and medium | |
| CN114177616B (en) | Virtual item release method, device, equipment and medium | |
| KR20240121831A (en) | Guiding method, device, apparatus and medium in a three-dimensional virtual environment | |
| CN119951131B (en) | Information display method, device and equipment for virtual roles and readable storage medium | |
| JP2019103815A (en) | Game program, method and information processing apparatus | |
| WO2023207478A1 (en) | Information display method and apparatus based on virtual zipline, and device and medium | |
| CN118662893A (en) | Game interaction method and device, electronic equipment and storage medium | |
| CN120919621A (en) | Methods, devices, equipment, media, and products for object control in virtual scenarios | |
| CN120815330A (en) | Interaction method and device based on virtual objects | |
| CN121130412A (en) | Prop effect display method, device, terminal and storage medium | |
| WO2024244671A1 (en) | Virtual object appearance control method and apparatus, device, medium, and program product | |
| WO2025236887A1 (en) | Method and apparatus for using virtual throwable item, device, storage medium, and product | |
| HK40022247B (en) | Method, device, terminal, and storage medium for displaying interface information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23794854 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.03.2025) |