WO2023071808A1 - 基于虚拟场景的图形显示方法、装置、设备以及介质 - Google Patents

基于虚拟场景的图形显示方法、装置、设备以及介质 Download PDF

Info

Publication number
WO2023071808A1
WO2023071808A1 PCT/CN2022/124984 CN2022124984W WO2023071808A1 WO 2023071808 A1 WO2023071808 A1 WO 2023071808A1 CN 2022124984 W CN2022124984 W CN 2022124984W WO 2023071808 A1 WO2023071808 A1 WO 2023071808A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
graphic
restricted area
virtual object
virtual
Prior art date
Application number
PCT/CN2022/124984
Other languages
English (en)
French (fr)
Inventor
叶成豪
吴胜宇
韩帅
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to KR1020237033640A priority Critical patent/KR20230150874A/ko
Publication of WO2023071808A1 publication Critical patent/WO2023071808A1/zh
Priority to US18/350,556 priority patent/US20230351717A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling 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/537Controlling 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/5372Controlling 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/44Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment involving timing of operations, e.g. performing an action within a time slot
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • A63F13/525Changing parameters of virtual cameras
    • A63F13/5255Changing parameters of virtual cameras according to dedicated instructions from a player, e.g. using a secondary joystick to rotate the camera around a player's character
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling 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/537Controlling 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/5375Controlling 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling 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/537Controlling 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/5378Controlling 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/58Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1694Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a single or a set of motion sensors for pointer control or gesture input obtained by sensing movements of the portable computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/60Rotation of a whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/60Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/30Features 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/303Features 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/305Features 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2004Aligning objects, relative positioning of parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Definitions

  • the present application relates to the field of computer technology, and in particular to a graphic display method, device, device and medium based on a virtual scene.
  • Embodiments of the present application provide a virtual scene-based graphic display method, device, device, and medium, which can improve the efficiency of human-computer interaction. Described technical scheme is as follows:
  • a method for displaying graphics based on a virtual scene comprising:
  • the computer device displays a virtual scene, the virtual scene includes a restricted area, and the virtual scene displays a first virtual object, wherein the attribute value of the virtual object located in the restricted area does not change when no interactive behavior is received;
  • the computer device displays an area indicating graphic based on the restricted area, the target restricted area, and the first virtual object, and the area indicating graphic indicates the relative positional relationship between the first virtual object and the restricted area and the The relative positional relationship between the first virtual object and the target restricted area, where the target restricted area is the restricted area determined in the next area update.
  • a virtual scene-based graphic display device comprising:
  • a virtual scene display module configured to display a virtual scene, the virtual scene includes a restricted area, and the virtual scene displays a first virtual object, wherein the virtual object located in the restricted area does not receive an interactive action The attribute value does not change;
  • An area indication graphic display module configured to display an area indication graphic based on the restricted area, the target restricted area, and the first virtual object, and the area indication graphic indicates the relative position of the first virtual object and the restricted area relationship and the relative positional relationship between the first virtual object and the target restricted area, where the target restricted area is the restricted area determined for the next area update.
  • the area indication graphic display module is configured to generate an area combination graphic based on the restricted area and the target restricted area, and the area combined graphic indicates the restricted area and the target Restricting the relative positional relationship between areas; displaying the area indication graphic in the virtual scene based on the area combination graphic and the first virtual object.
  • the area indication graphic display module is configured to generate the area combination graphic based on the respective positions of the restricted area and the target restricted area in the virtual scene.
  • the area indication graphic display module is configured to, based on the center position and boundary position of the restricted area in the virtual map of the virtual scene, and the position of the target restricted area in the virtual The center position and the boundary position in the map are used to generate the combined graphics of the area.
  • the area indication graphic display module is configured to add the first virtual object to the area combination graphic based on the position and orientation of the first virtual object in the virtual scene.
  • the directed icon of the object is used to obtain the area indicating graphic; and the area indicating graphic is displayed.
  • the area indicates a graphic display module, configured to perform any of the following:
  • the effective directional icon If the first virtual object is located inside the restricted area, based on the distance and direction between the first virtual object and the central position of the restricted area, add the effective directional icon, adjusting the pointing of the directional icon to the orientation of the first virtual object to obtain the area indicating graphic;
  • the first virtual object In a case where the first virtual object is located outside the restricted area, based on a line between the first virtual object and a central position of the restricted area, determine a position of the restricted area in the area combination graph The candidate position closest to the first virtual object on the boundary, adding the directional icon to the candidate position, adjusting the orientation of the directional icon to the orientation of the first virtual object, and obtaining the Area indication graphics.
  • the area indicating graphic display module is configured to rotate the area indicating graphic and display the rotated area indicating graphic.
  • the area indication graphic includes a directional icon, the directional icon indicates the position and orientation of the first virtual object in the virtual scene, the area indicates a graphic display module, Used to do any of the following:
  • the area indication graphic includes an area combination graphic and a directional icon
  • the area combination graphic indicates the relative positional relationship between the restricted area and the target restricted area
  • the directional The icon indicates the position and orientation of the first virtual object in the virtual scene
  • the combined area graphics include a first area graphic corresponding to the restricted area and a second area graphic corresponding to the target restricted area
  • the The area indication graphic display module is used to display the first area graphic, the second area graphic and the directional icon in different colors.
  • the region indication graphic display module is configured to, based on the position of the restricted region in the virtual scene, the distance between the center position of the restricted region and the first virtual object The distance and the position of the target restricted area in the virtual scene are used to generate the combined area graph.
  • the device also includes:
  • An adjustment module configured to respond to any change in the position and orientation of the first virtual object in the virtual scene, based on the current position and orientation of the first virtual object in the virtual scene, Adjust the area indicator graphics.
  • the device also includes:
  • a countdown icon display module configured to display a countdown icon based on the area indication graphic, and the countdown icon indicates the remaining time for updating from the restricted area to the target restricted area.
  • the countdown icon display module is configured to perform any of the following:
  • the area indication graphic includes a directional icon
  • the countdown icon is displayed below the directional icon
  • the directional icon indicates the position and location of the first virtual object in the virtual scene. towards.
  • the target restriction area is located inside the restriction area, and the area of the target restriction area is smaller than the restriction area, or, the target restriction area overlaps with the restriction area.
  • the device further includes a distance display module, configured to perform any of the following:
  • the first virtual object is located inside the restricted area, displaying the distance between the first virtual object and the target restricted area in the area indication graphic;
  • the distance between the first virtual object and the restricted area and the distance between the first virtual object and the restricted area are displayed in the area indication graphic. The distance between target restricted areas.
  • the area indication graphic display module is further configured to cancel displaying the area indication graphic after a target duration.
  • a computer device in one aspect, includes one or more processors and one or more memories, at least one computer program is stored in the one or more memories, and the computer program is executed by the One or more processors are loaded and executed to implement the virtual scene-based graphics display method.
  • a computer-readable storage medium wherein at least one computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the virtual scene-based graphic display method.
  • a computer program product or computer program includes program code, the program code is stored in a computer-readable storage medium, and a processor of a computer device reads the program code from the computer-readable storage medium The program code, the processor executes the program code, so that the computer device executes the above-mentioned virtual scene-based graphic display method.
  • the computer device can display an area indication graphic in the virtual scene according to the current restricted area, the restricted area to be updated, and the first virtual object, and the area indicating graphic can indicate the first virtual object The relative positional relationship between the two restricted areas.
  • the user can know the relative position between the first virtual object and the two restricted areas by looking at the area indicating graphic, without checking the virtual map of the virtual scene, and the efficiency of human-computer interaction is high.
  • FIG. 1 is a schematic diagram of an implementation environment of a virtual scene-based graphic display method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of an interface including a virtual map provided by an embodiment of the present application
  • Fig. 3 is a schematic diagram of the orientation of a virtual object provided by the embodiment of the present application.
  • Fig. 4 is a schematic diagram of an interface provided by an embodiment of the present application.
  • Fig. 5 is a flowchart of a graphic display method based on a virtual scene provided by an embodiment of the present application
  • Fig. 6 is a flowchart of a graphic display method based on a virtual scene provided by an embodiment of the present application
  • Fig. 7 is a schematic diagram of generating a region combination graph provided by an embodiment of the present application.
  • Fig. 8 is a schematic diagram of a directional icon provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an area indication graphic provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a zoom area indication graphic provided by an embodiment of the present application.
  • Fig. 11 is a schematic diagram of an interface including an area indication graphic provided by an embodiment of the present application.
  • Fig. 12 is a schematic diagram of a rotating area indication graphic provided by an embodiment of the present application.
  • Fig. 13 is a schematic diagram of a zoom area indication graphic provided by an embodiment of the present application.
  • Fig. 14 is a schematic diagram of an interface including an area indication graphic provided by an embodiment of the present application.
  • Fig. 15 is a schematic diagram of a rotating area indication graphic provided by an embodiment of the present application.
  • Fig. 16 is a schematic diagram of a zoom area indication graphic provided by an embodiment of the present application.
  • Fig. 17 is a schematic diagram of an interface including an area indication graphic provided by an embodiment of the present application.
  • Fig. 18 is a schematic diagram of an elliptical area indication graphic provided by an embodiment of the present application.
  • FIG. 19 is a schematic diagram of a display position of a countdown icon provided by an embodiment of the present application.
  • Fig. 20 is a schematic diagram of a display position of a countdown icon provided by an embodiment of the present application.
  • Fig. 21 is a logical block diagram of a graphic display method based on a virtual scene provided by an embodiment of the present application.
  • Fig. 22 is a schematic structural diagram of a graphic display device based on a virtual scene provided by an embodiment of the present application.
  • FIG. 23 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • first and second are used to distinguish the same or similar items with basically the same function and function. It should be understood that “first”, “second” and “nth” There are no logical or timing dependencies, nor are there restrictions on quantity or order of execution.
  • the term "at least one" means one or more, and the meaning of "multiple” means two or more, for example, a plurality of images means two or more images.
  • Virtual scene it is a virtual scene displayed (or provided) when the application program is running on the terminal.
  • the virtual scene can be a simulation environment of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment.
  • the virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and the embodiment of the present application does not limit the dimensions of the virtual scene.
  • the virtual scene may include sky, land, ocean, etc.
  • the land may include environmental elements such as deserts and cities, and the user may control virtual objects to move in the virtual scene.
  • Virtual object refers to the movable object in the virtual scene.
  • the movable object may be a virtual character, a virtual animal, an animation character, etc., such as: a character, an animal, a plant, an oil drum, a wall, a stone, etc. displayed in a virtual scene.
  • the virtual object may be a virtual avatar representing the user in the virtual scene.
  • the virtual scene may include multiple virtual objects, and 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 user character controlled through operations on the client, or an artificial intelligence (Artificial Intelligence, AI) set in a virtual scene battle through training, or a non-user character set in a virtual scene Character (Non-Player Character, NPC).
  • AI Artificial Intelligence
  • NPC Non-Player Character
  • the virtual object is a virtual character competing in a virtual scene.
  • the number of virtual objects participating in the interaction in the virtual scene is preset, or dynamically determined according to the number of clients participating in the interaction.
  • the user can control the virtual object to fall freely in the sky of the virtual scene, glide or open the parachute to fall, etc., run, jump, crawl, bend forward, etc. on the land, and can also control The virtual object swims, floats or dives in the ocean.
  • the user can also control the virtual object to move in the virtual scene on a virtual vehicle.
  • the virtual vehicle can be a virtual car, a virtual aircraft, a virtual yacht, etc.
  • the above-mentioned scenario is used as an example for illustration, and this embodiment of the present application does not specifically limit it.
  • FIG. 1 is a schematic diagram of an implementation environment of a virtual scene-based graphic display method provided by an embodiment of the present application.
  • the implementation environment includes: a terminal 110 and a server 140 .
  • the terminal 110 is installed and runs an application program supporting virtual scene display.
  • the application is any one of a First-Person Shooting Game (First-Person Shooting Game, FPS), a third-person shooting game, a virtual reality application program, a three-dimensional map program, or a multiplayer gun battle survival game.
  • the terminal 110 is the terminal used by the first user.
  • the first user uses the terminal 110 to operate the controlled virtual object located in the virtual scene to carry out activities, such activities include but not limited to: adjusting body posture, crawling, walking, running, riding, jumping , Driving, Picking Up, Shooting, Attacking, Throwing.
  • the controlled virtual object is a first virtual character, such as a simulated character or an anime character.
  • the server 140 is an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, and middleware services , domain name service, security service, distribution network (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, the embodiment of the present application does not limit the number of servers and device types.
  • the server 140 provides background services for applications running on the terminal 110, and the terminal 110 is connected to the server 140 through a wireless network or a wired network.
  • the terminal is also the terminal 110 in the above-mentioned implementation environment
  • the server is also the above-mentioned server 140 .
  • the terminal displays a virtual scene including a first virtual object. Move and attack in the scene.
  • the virtual scene includes a restricted area, and the restricted area is used to limit the moving range of the virtual object.
  • the restricted area is also called a safe area.
  • the position of the safe area is updated every once in a while, for example, the safe area is reduced every once in a while, so that virtual objects gather in the safe area, increasing the probability of confrontation between virtual objects.
  • the terminal before updating the security area, the terminal often displays prompt information, which is used to remind the user that the security area will be updated, and the user can determine the location of the security area to be updated and the first location of the security area by viewing the virtual map of the virtual scene. The distance between the virtual object and the safe area. In this process, viewing the virtual map requires the user to perform corresponding operations, such as clicking on the virtual map to view controls.
  • the display of the virtual map will block the display of the virtual scene, and the first virtual object may be attacked by other virtual objects when the user views the virtual map.
  • the terminal displays a virtual map 201 , and the virtual map 201 blocks the display of a part of the virtual scene 200 .
  • the terminal can display an area indication graphic based on the restricted area, the target restricted area, and the first virtual object, and the area indication graphic indicates the restricted area, the target restricted area, and the first virtual object. The relative positional relationship between , where the target restricted area is also the restricted area to be updated.
  • the user can know the relative positional relationship between the first virtual object and the current restricted area, and the relative positional relationship between the first virtual object and the target display area to be updated by looking at the area indication graphic, without having to look at the virtual scene again.
  • the virtual map reduces the steps of operation, avoids the situation that the first virtual object is attacked while viewing the virtual map, and improves the user's game experience while improving the efficiency of human-computer interaction.
  • the above description is based on the terminal executing the virtual scene-based graphics display method provided by the embodiment of the present application as an example.
  • the graphical display method of the scene can also be executed by the server.
  • the server pushes the video stream to the terminal, and the terminal only needs to display it, which is not limited in this embodiment of the present application.
  • the virtual scene in this application is introduced below, see Figure 3.
  • game designers will refer to the way humans observe the real world.
  • the first virtual object 301 can observe the virtual scene in the area 302 , and the picture obtained by observing the area 302 from the perspective of the first virtual object 301 is the displayed virtual scene.
  • the user can adjust the position where the first virtual object 301 observes the virtual scene by adjusting the orientation of the first virtual object 301 .
  • the virtual scene includes controls for controlling the first virtual object to perform different actions.
  • a virtual joystick 402 a posture adjustment control 403 , a shooting control 404 and a prop switching control 405 are displayed on a virtual scene 401 , wherein the virtual joystick 402 is used to control the moving direction of the first virtual object.
  • the posture adjustment control 403 is used to adjust the posture of the first virtual object, such as controlling the virtual object to perform actions such as squatting or crawling.
  • the shooting control 404 is used to control the virtual props held by the first virtual object to fire virtual ammunition.
  • the item switching control 405 is used to switch the virtual item held by the virtual object.
  • a small map 406, or a virtual map is also displayed on the virtual scene 401, and the user can observe the positions of teammates and enemies in the virtual scene through the small map 406.
  • the graphic display method based on the virtual scene provided by the embodiment of the present application will be described below.
  • Terminal in the implementation environment shown, referring to Figure 5, the method includes:
  • the computer device displays a virtual scene, the virtual scene includes a restricted area, and the virtual scene displays a first virtual object, wherein the attribute value of the virtual object located in the restricted area does not change when no interaction behavior is received.
  • the restricted area is an area used to limit the activity range of the virtual object in the virtual scene, and when the virtual object is located in the restricted area, the attribute value will not change without receiving any interactive behavior. Correspondingly, when the virtual object is outside the restricted area, the value of the property is also decreased without receiving the interaction behavior.
  • the user can be urged to control the virtual object to enter the restricted area as soon as possible.
  • the restricted area in the virtual scene changes every once in a while, and the user needs to control the virtual object to enter the new restricted area.
  • the computer device Based on the restricted area, target restricted area, and the first virtual object, the computer device displays an area indication graphic, where the area indication graphic indicates the relative positional relationship between the first virtual object and the restricted area and the first virtual object and the first virtual object.
  • the relative positional relationship of the target restricted area, where the target restricted area is the restricted area determined for the next area update.
  • the restricted area is the current restricted area in the virtual scene
  • the target restricted area is the restricted area to be updated in the virtual scene
  • the terminal before refreshing the restricted area, the terminal often displays prompt information. After seeing the prompt information, the user can know the position of the restricted area to be refreshed by viewing the virtual map of the virtual scene. However, in this way, the user needs to open the virtual map first when determining the position of the new restricted area, resulting in low efficiency of human-computer interaction.
  • the computer device can display an area indicating graphic according to the current restricted area, the restricted area to be updated, and the first virtual object, and the area indicating graphic can indicate the first virtual object and the two restricted areas relative positional relationship between them.
  • the user can know the relative position between the first virtual object and the two restricted areas by looking at the area indicating graphic, without checking the virtual map of the virtual scene, and the efficiency of human-computer interaction is high.
  • the above steps 501-502 are a brief introduction to the graphic display method based on the virtual scene provided by the embodiment of the present application.
  • the following will combine some examples to describe the graphic display method based on the virtual scene provided by the embodiment of the present application in more detail.
  • It is a computer device.
  • the embodiment of the present application takes the computer device as a terminal as an example. Referring to FIG. 6, the method includes:
  • the terminal displays a virtual scene, the virtual scene includes a restricted area, and the virtual scene displays a first virtual object, where the attribute value of the virtual object located in the restricted area does not change when no interaction behavior is received.
  • the restricted area is a randomly generated area in the virtual scene, and the restricted area serves to limit the moving range of the virtual object.
  • the restricted area in the virtual scene is updated, and the updating method of the restricted area includes continuously shrinking the restricted area, and also includes adjusting the position of the restricted area, and there is overlap between the adjusted restricted areas.
  • the user can control virtual objects to move freely in the virtual scene, such as collecting virtual props and attacking other virtual objects in the virtual scene.
  • a restricted area begins to appear in the virtual scene, and the user controls the virtual object to go to the restricted area, so as to avoid a decrease in the attribute value of the virtual object without interaction.
  • the update method of the restricted area in the virtual scene is to continuously shrink the restricted area
  • the terminal when determining the restricted area for the first time, can randomly determine a position point in the virtual scene, take this position point as the center, and take the preset length as The radius determines the restricted area.
  • the terminal continuously reduces the radius of the restricted area, or randomly generates a target restricted area within the restricted area with an area smaller than the restricted area.
  • the interactive behavior includes the interactive behavior of other virtual objects in the virtual scene to the virtual object, and also includes the interactive behavior of the virtual object in the virtual scene, wherein the interactive behavior of other virtual objects to the virtual object includes other virtual
  • the object uses virtual guns to attack the virtual object, other virtual objects use virtual throwing objects to attack the virtual object, other virtual objects drive virtual vehicles to hit the virtual object, other virtual objects call virtual planes in the virtual scene to attack the virtual object, other virtual objects
  • the subject attacks the virtual object and the like using a virtual knife.
  • the interactive behavior of the virtual object in the virtual scene includes randomly dropping virtual explosives in the virtual scene to attack the virtual object, and the damage caused to the virtual object by the virtual object falling into the virtual water area of the virtual scene.
  • the virtual object when the attribute value is reduced to 0, the virtual object will be eliminated, and the user can no longer control the virtual object to play the game. Or, when the attribute value is reduced to 0, the virtual object will be in the state of "rescue", the user can control the virtual object to "crawl” in the virtual scene, and other users can control the virtual object to "rescue” the virtual object. rescue. If the "to be rescued" virtual object is not rescued by other virtual objects within a period of time, the virtual object will be eliminated.
  • the attribute value is the life value of the virtual object, that is, when the virtual object is located in the restricted area, the life value of the virtual object will not decrease if no interaction is received.
  • the virtual object's life value When the virtual object is outside the restricted area, the virtual object's life value will also decrease without receiving any interactive behavior.
  • the amount of life value reduction is positively related to the duration of the virtual object outside the restricted area. If the virtual object is always outside the restricted area, the virtual object's life value may be reduced to 0, resulting in the virtual object being eliminated.
  • the virtual scene is a game scene of a shooting game
  • the first virtual object is a virtual object controlled by the terminal
  • the user can control the first virtual object to move in the virtual scene and use virtual props through the terminal. , drive virtual vehicles, and perform other activities.
  • the terminal in response to the user starting a round of competitive battle, displays a virtual scene corresponding to this round of competitive battle, and displays the first virtual object in the virtual scene, wherein a round of competitive battle is also a round of shooting
  • the virtual scene displayed by the terminal is a part of the virtual scene
  • the first virtual object is displayed in the center of the virtual scene displayed by the terminal
  • the virtual scene displayed by the terminal will move with the movement of the first virtual object.
  • the virtual scene displayed by the terminal is also referred to as the field of view of the first virtual object.
  • the terminal can display the other virtual objects.
  • the terminal Based on the restricted area, target restricted area, and the first virtual object, the terminal displays an area indication graphic, where the area indication graphic indicates the relative positional relationship between the first virtual object, the restricted area, and the target restricted area, and the target restricted area.
  • the region is the restricted region determined for the next region update to occur.
  • the terminal displays the area indication graphic in the virtual scene.
  • the terminal displays a virtual scene interface
  • the virtual scene interface displays the virtual scene
  • the terminal displays the area indication graphic on the virtual scene interface, for example, the target area in the virtual scene interface displays the The area indicating graphic, or the terminal adds a layer on the virtual scene interface, and the area indicating graphic is displayed on the layer.
  • the restricted area is the current restricted area in the virtual scene, and the target restricted area is the restricted area to be updated.
  • the targeted restricted area is located inside the restricted area, and the area of the targeted restricted area is smaller than the restricted area. , or, the target restricted area overlaps with the restricted area.
  • the process of updating the restricted area by the terminal is also the process of shrinking the restricted area.
  • the restricted area is The first sphere in the virtual scene, the edge of the sphere is visible, and the user can know the position of the restricted area by looking at the edge.
  • the terminal can directly reduce the radius of the sphere to obtain a smaller sphere, and the smaller sphere is also the target restricted area.
  • the terminal randomly determines a sphere center in the sphere, and reduces the radius of the sphere, so as to obtain the target restricted area.
  • the process for the terminal to update the restricted area is to re-determine the first target restricted area around the restricted area, and the distance between the target restricted area and the restricted area There are overlapping parts to ensure that the virtual object can smoothly transfer from the restricted area to the target restricted area.
  • the area of the target restricted area is smaller than the restricted area, so as to increase the probability of contact between virtual objects and reduce game time.
  • the restricted area is called a current safe area, and the target restricted area is called a next safe area.
  • the terminal in response to the time difference from the update time of the area meeting the target condition, displays an area indication in the virtual scene based on the restricted area, the target restricted area, and the first virtual object in the virtual scene graphics.
  • the area update time is set by the technician according to the actual situation, for example, it is set to a fixed time, such as one minute or two minutes, or it is set to an unfixed time, for example, the time of the first area update is three minutes after the game starts, The time for the second area update is five minutes after the game starts, which is not limited in this embodiment of the present application.
  • the time difference from the update time of the area refers to the time difference between the current time point and the next time point of updating the area.
  • the time difference from the area update time meets the target condition means that the time difference from the area update time is less than or equal to the time difference threshold, and the time difference threshold is set by the technician according to the actual situation, for example, it is set to 5 minutes, 3 minutes, 1 minute, 30 seconds, 10 seconds or 0 seconds, which is not limited in this embodiment of the present application.
  • the terminal can display the area indication graphic before updating the target restricted area, which helps to attract the user's attention and improves the efficiency of human-computer interaction.
  • the terminal generates an area combination graphic based on the restricted area and the target restricted area, where the area combined graphic indicates a relative positional relationship between the restricted area and the target restricted area.
  • the terminal combines the graphic with the first virtual object based on the area, and displays the area indicating graphic in the virtual scene.
  • the terminal can first generate an area combination graphic based on the restricted area and the target restricted area, and use the area Graphics are combined to indicate the relative positional relationship between the restricted area and the target restricted area.
  • the position and orientation of the first virtual object in the virtual scene may change at any time, so the relative positional relationship between the first virtual object and the two restricted areas may also change at any time. Determining the region indicating graphics can improve the computing efficiency of the terminal.
  • the first part the terminal, generates an area combination graph based on the restricted area and the target restricted area.
  • the terminal generates the area combination graphic based on the respective positions of the restricted area and the target restricted area in the virtual scene.
  • the terminal can directly generate the area combination graphic based on the position of the restricted area and the position of the target restricted area , higher efficiency.
  • the terminal generates the area combination graphic based on the center position and border position of the restricted area in the virtual map of the virtual scene, and the center position and border position of the target restricted area in the virtual map.
  • the virtual map is a planar projection of the virtual scene, and the virtual map records boundaries of different regions in the virtual scene and names of different regions.
  • the terminal uses the form of coordinates to represent the center position of the restricted area and the target restricted area in the virtual map, and uses the form of a function to represent the position of the restricted area and the target restricted area in the virtual map border position.
  • the restricted area and the target restricted area are spheres in the virtual scene, the restricted area and the target restricted area appear as two circles on the virtual map, where the circles include both perfect circles and An ellipse, which is not limited in this embodiment of the present application.
  • the terminal obtains the center coordinates and boundary functions of the restricted area, and the center coordinates and boundary functions of the target restricted area, and generates a first area graph based on the center coordinates and boundary functions of the restricted area, the first area The graph represents this restricted area.
  • the terminal Based on the center coordinates and boundary functions of the target restricted area, the terminal generates a second area graphic in the same coordinate system as the first area graphic, the second area graphic represents the target restricted area, the first graphic area and the second
  • the combination of graphics areas is also the area combined graphics.
  • the terminal is used as an example to generate the first area graphic and the second area graphic respectively. In other possible implementation manners, the terminal can generate the first area graphic and the second area graphic at the same time. , which is not limited in this embodiment of the present application.
  • the terminal fills a maximum circle in a square with a preset size, the maximum circle represents the restricted area, and the circle is used as the first area graphic.
  • the terminal generates another circle in the square based on the position difference between the center position of the restricted area and the center position of the target restricted area, and the ratio between the radius of the restricted area and the radius of the target restricted area,
  • the circle represents the target restricted area, and the circle is also the second area figure, and the combination of these two circles is also the area combination figure, wherein the preset size is set by the technician according to the actual situation.
  • the embodiment of the application does not limit this.
  • the terminal acquires the center coordinates and boundary functions of the restricted area, and the center coordinates and boundary functions of the target restricted area from the virtual map.
  • the terminal generates a first area graphic on the virtual map based on the center coordinates and the boundary function of the restricted area.
  • the terminal generates a second area graphic on the virtual map based on the center coordinates and the boundary function of the target restricted area, and the combination of the first area graphic and the second area graphic is also the area combination graphic.
  • the terminal obtains the center coordinates and boundary functions of the restricted area 702 and the center coordinates and boundary functions of the target restricted area 703 through the virtual map 701 .
  • the terminal generates a first area graphic 704 on the virtual map 701 based on the center coordinates and the boundary function of the restricted area 702 .
  • the terminal generates a second area graphic 705 on the virtual map 701 based on the center coordinates and the boundary function of the target restricted area 703, and the combination of the first area graphic 704 and the second area graphic 705 is also the combined area graphic.
  • the terminal is based on the position of the restricted area in the virtual scene, the distance between the center position of the restricted area and the first virtual object, and the position of the target restricted area in the virtual scene , to generate the combined graph of the area.
  • the distance between the center position of the restricted area and the first virtual object is taken into consideration when generating the combined area graph, and the generated area combined graphic is more suitable for the first virtual object.
  • the terminal uses the center of the restricted area as the center of the circle and the distance between the center of the restricted area and the first virtual object as the radius to generate A first area graphic, where the first area graphic represents the distance between the restricted area and the first virtual object.
  • the terminal takes the center position of the target restricted area as the center and the radius of the target restricted area as the radius to generate a second area graphic, the second area graphic represents the target restricted area, the first area graphic and the second area graphic Combination is also the combination graphics of this area.
  • the second part displays the area indication graphic based on the area combination graphic and the first virtual object.
  • the terminal based on the position and orientation of the first virtual object in the virtual scene, the terminal adds the directional icon of the first virtual object to the area combination graphic to obtain the area indication graphic.
  • the terminal displays the area indication graphic in the virtual scene.
  • the directional icon indicates the position and direction of the first virtual object in the virtual scene.
  • the directional icon is also called "role coordinate icon (icon) with direction", as shown in FIG. 8
  • a directional icon 800 is provided.
  • the directional icon 800 includes a main body 801 and a sharp corner 802.
  • the direction of the sharp corner 802 indicates the orientation of the first virtual object, that is, when the orientation of the first virtual object changes In some cases, the direction of the sharp corner 802 will also change accordingly.
  • the terminal Based on the position and orientation of the first virtual object in the virtual scene, the terminal adds the directional icon of the first virtual object to the area combination graphic to obtain the area indication graphic.
  • the terminal when the first virtual object is located inside the restricted area, the terminal combines graphics in the area based on the distance and direction between the first virtual object and the center of the restricted area
  • the directional icon is added inside, and the orientation of the directional icon is adjusted to the orientation of the first virtual object to obtain the area indication graphic.
  • the terminal when the first virtual object is located in the restricted area, the terminal can add the directional icon on the area combination graphic based on the actual positional relationship between the first virtual object and the restricted area Therefore, the obtained area indication graphic can truly reflect the position of the first virtual object in the restricted area and the relative positional relationship between the first virtual object and the target restricted area.
  • the terminal determines whether the first virtual object is located inside the restricted area based on the coordinates of the first virtual object in the virtual scene, the central coordinates of the restricted area, and the radius of the restricted area, that is, first determines The distance between the coordinates of the first virtual object in the virtual scene and the center coordinates of the restricted area, and then compare the distance with the radius of the restricted area. If the distance is greater than the radius of the restricted area, it means that the first virtual object is located outside the restricted area; if the distance is less than or equal to the radius of the restricted area, it means that the first virtual object is located in the restricted area internal.
  • the terminal based on the distance between the first virtual object and the center of the restricted area and the relative direction between the first virtual object and the restricted area, Determine the position of the first virtual object in the restricted area, add the directional icon at the corresponding position inside the combined graphic of the area, adjust the direction of the directional icon to the orientation of the first virtual object, and obtain the area indicating graphic , wherein, the direction of the directional icon is the orientation of the first virtual object, for example, when the orientation of the first virtual object is the center position of the restricted area, the directional icon points to the first area graphic in the area combination graphic In the center of , the first area graphically represents the restricted area.
  • the virtual scene includes multiple terrain blocks
  • the terminal uses the first value to number the terrain blocks belonging to the restricted area, and uses the second value to number the terrain blocks outside the restricted area .
  • the terminal determines the number of the terrain block where the first virtual object is located, and if the number of the terrain block is the first value, the terminal determines that the first virtual object Located inside the restricted area, when the serial number of the terrain block is the second value, the terminal determines that the first virtual object is located outside the restricted area.
  • the terminal based on the distance between the first virtual object and the center of the restricted area and the relative direction between the first virtual object and the restricted area, Determine the position of the first virtual object in the restricted area, add the directional icon at the corresponding position inside the combined graphic of the area, adjust the direction of the directional icon to the orientation of the first virtual object, and obtain the area indicating graphic .
  • the terminal when the first virtual object is located inside the restricted area, the terminal adds a direction icon 901 to the area combination graphic 900 to obtain an area indication graphic 902 .
  • the terminal determines, based on the connection line between the first virtual object and the central position of the restricted area, Add the directional icon to the candidate position closest to the first virtual object on the boundary of the restricted area, adjust the direction of the directional icon to the orientation of the first virtual object, and obtain the area indication graphics.
  • the terminal when the first virtual object is outside the restricted area, the terminal can add the directional icon on the boundary of the restricted area in the area indicating graphic, so that even if the first virtual object is not in the restricted area
  • the relative positional relationship between the first virtual object and the two restricted areas can also be represented by the area indicating graphic.
  • the terminal determines whether the first virtual object is located inside the restricted area based on the coordinates of the first virtual object in the virtual scene, the central coordinates of the restricted area, and the radius of the restricted area. In the case that the first virtual object is located outside the restricted area, the terminal determines a candidate position in the combined area graph based on the connection line between the first virtual object and the central position of the restricted area, and the candidate position is the The intersection point of the connecting line with the boundary of the first area graph.
  • the terminal adds the directional icon to the candidate position, adjusts the orientation of the directional icon to the orientation of the first virtual object, and obtains the area indication graphic, wherein the orientation of the directional icon is the orientation of the first virtual object
  • the orientation of the directional icon is the orientation of the first virtual object
  • the directional icon points to the center of the first area graphic in the area combination graphic, and the first area graphic represents the restricted area.
  • the virtual scene includes multiple terrain blocks
  • the terminal can use the first value to number the terrain blocks belonging to the restricted area, and use the second value to number the terrain blocks outside the restricted area. serial number.
  • the terminal determines the number of the terrain block where the first virtual object is located, and if the number of the terrain block is the second value, the terminal determines that the first virtual object Located outside the restricted area, the terminal determines a candidate position in the combined area graph based on the connection line between the first virtual object and the central position of the restricted area, and the candidate position is the boundary between the connection line and the first area graph intersection point.
  • the terminal adds the directional icon to the candidate position, adjusts the orientation of the directional icon to the orientation of the first virtual object, and obtains the area indication graphic.
  • the terminal scales the area indication graphic, and displays the scaled area indication graphic in the virtual scene.
  • the scaling ratio of the terminal to the area indicating graphic is determined by the area of the area indicating graphic and the target area, the target area is also the area of the area indicating graphic after zooming, and the target area is set by the technician according to the actual situation , which is not limited in this embodiment of the present application.
  • the terminal scales the area indication graphic and then displays it in the virtual scene.
  • the scaled area indication graphic can be more adapted to the virtual scene, avoiding the situation that the area indication graphic is too large to block the virtual scene, and also It is possible to avoid the situation that the user cannot clearly see the small area indication graphic, so that the relative positional relationship between the first virtual object and the two restricted areas is indicated by the area indication graphic.
  • the terminal scales the area indicating graphic to obtain a scaled area indicating graphic, and the area of the scaled area indicating graphic is the target area.
  • the terminal displays the zoomed area indication graphic.
  • the terminal scales the area indication graphic 1001 to obtain a scaled area indication graphic 1002 , and the terminal displays the scaled area indication graphic 1002 in the virtual scene.
  • the boundary of the largest circle 10021 in the area indication graphic 1002 indicates the boundary of the restricted area
  • the boundary of the small circle 10022 indicates the boundary of the target restricted area
  • the directional icon 10023 indicates the position and orientation of the first virtual object.
  • the zoomed area indicates a position where the graphic is displayed at the upper center of the virtual scene.
  • the terminal displays the zoomed area indication graphic 1101 in the virtual scene 1102 .
  • This area indicates the position where the graphic appears on the upper center of the virtual scene at the time point when the restricted area is adjusted.
  • the area indication graphic is composed of three parts, and the three parts represent the position of the current restricted area, the position of the next restricted area (target restricted area), and the current position and orientation of the first virtual object.
  • the area indication graphic is generated by the difference of the center coordinates of the above three pieces of information in the virtual map, which matches the current position of the first virtual object.
  • the positional relationship and direction among the current restricted area, the next restricted area, and the current position of the first virtual object are consistent with those in the virtual map.
  • the area indicates that the three coordinates in the graphic are scaled proportionally on the basis that the positional relationship on the screen is consistent with the virtual map.
  • the area indication graphic can graphically prompt the user to adjust the direction of the restricted area, and the direction and distance that the first virtual object needs to move.
  • the directional icon in the area indicating graphic indicates the position and orientation of the first virtual object.
  • the directional icon is also a kind of dynamic image, which can provide real-time feedback along with the user's operation and help The user quickly locks the orientation.
  • the terminal rotates the area indication graphic, and displays the rotated area indication graphic.
  • the terminal rotates the area indicating graphic
  • it displays the rotated area indicating graphic in the virtual scene
  • the terminal rotates the area indicating graphic so that the area indicating graphic is more in line with the user's navigation. requirements, improving the efficiency of human-computer interaction.
  • Example 1 Based on the position of the directional icon on the area indicating graphic, the terminal rotates the area indicating graphic so that the directional icon is located at the bottom of the area indicating graphic, and displays the rotated area indicating graphic. After rotation, this area indicates that the relative positional relationship among the three in the graphics has not changed. For example, the rotated area indication graphic is displayed in the virtual scene.
  • the directional icon By rotating the directional icon to the bottom of the area indication graphic, it conforms to the display logic of common navigation, facilitates the user to determine the distance and direction between the first virtual object and the two restricted areas, and the efficiency of human-computer interaction is high.
  • the terminal rotates the area indicating graphic 1201, rotates the directional icon 1202 in the area indicating graphic 1201 to the bottom of the area indicating graphic 1201, and obtains the rotated area indicating graphic 1203, and the terminal rotates the The rotated area indication graphic 1203 is displayed in the virtual scene.
  • the terminal after obtaining the rotated area indication graphic, the terminal further scales the rotated area indication graphic to obtain the rotated and scaled area indication graphic, and displays the rotated and scaled area indication graphic on in the virtual scene.
  • the terminal scales the rotated area indicating graphic to obtain the rotated and scaled area indicating graphic, and the area of the rotated and scaled area indicating graphic is the target area.
  • the terminal displays the rotated and scaled area indication graphic in the virtual scene.
  • the terminal scales the rotated area indication graphic 1301 to obtain a rotated and scaled area indication graphic 1302 , and the terminal displays the rotated and scaled area indication graphic 1302 in the virtual scene.
  • the rotated and scaled area indicates the position where the graphic is displayed at the upper center of the virtual scene. Referring to FIG.
  • the terminal displays the rotated and scaled area indication graphic 1402 in the virtual scene 1401.
  • the area indication graphic 1402 it can be seen that no matter how the orientation of the first virtual object changes, in the area indication graphic 1402,
  • the directional icon is always located at the bottom of the area indicating graphic 1402 .
  • This area indicates the position where the graphic appears on the upper center of the virtual scene at the time point when the restricted area is adjusted.
  • the area indication graphic is composed of three parts, and the three parts represent the position of the current restricted area, the position of the next restricted area (target restricted area), and the current position and orientation of the first virtual object.
  • the area indication graphic is generated by the difference of the center coordinates of the above three pieces of information in the virtual map, which matches the current position of the first virtual object.
  • the positional relationship and direction among the current restricted area, the next restricted area, and the current position of the first virtual object are consistent with those in the virtual map.
  • the area indication graphic can graphically prompt the user to adjust the direction of the restricted area, and the direction and distance that the first virtual object needs to move.
  • the directional icon in the area indicating graphic indicates the position and orientation of the first virtual object.
  • the directional icon is also a dynamic image, which can be fed back in real time as the user operates, Help users quickly lock the orientation.
  • the directional icon in the area indication graphic indicates the position and orientation of the first virtual object, and the directional icon is always in the lower half of the vertical diameter of the outer circle of the area indication graphic.
  • Example 2 Based on the position and direction of the directional icon on the area indicating graphic, the terminal rotates the area indicating graphic so that the direction of the directional icon points to the target direction, and displays the rotated area indicating graphic. For example, the rotated area indication graphic is displayed in the virtual scene.
  • the target direction is straight up.
  • the terminal rotates the area indication graphic 1501, and rotates the orientation of the directional icon 1502 in the area indication graphic 1501 to point directly upwards to obtain the rotated area indication graphic 1503.
  • the terminal rotates the The area indicating graphic 1503 of is displayed in the virtual scene.
  • the terminal after obtaining the rotated area indication graphic, the terminal further scales the rotated area indication graphic to obtain the rotated and scaled area indication graphic, and displays the rotated and scaled area indication graphic on in the virtual scene.
  • the terminal scales the rotated area indicating graphic to obtain the rotated and scaled area indicating graphic, and the area of the rotated and scaled area indicating graphic is the target area.
  • the terminal displays the rotated and scaled area indication graphic in the virtual scene.
  • the terminal scales the rotated area indication graphic 1601 to obtain a rotated and scaled area indication graphic 1602 , and the terminal displays the rotated and scaled area indication graphic 1602 in the virtual scene.
  • the rotated and scaled area indicates the position where the graphic is displayed at the upper center of the virtual scene.
  • the terminal displays the rotated and scaled area indication graphic 1702 in the virtual scene 1701. In FIG. 17, it can be seen that no matter how the orientation of the first virtual object changes, in the area indication graphic 1702, Directed icons always point straight up.
  • This area indicates the position where the graphic appears on the upper center of the virtual scene at the time point when the restricted area is adjusted.
  • the area indication graphic is composed of three parts, and the three parts represent the position of the current restricted area, the position of the next restricted area (target restricted area), and the current position and orientation of the first virtual object.
  • the area indication graphic is generated by the difference of the center coordinates of the above three pieces of information in the virtual map, which matches the current position of the first virtual object.
  • the positional relationship and direction among the current restricted area, the next restricted area, and the current position of the first virtual object are consistent with those in the virtual map.
  • the directional icon always points to the top. Use this as a fixed reference system to correct the positions of the current restricted area and the next restricted area in the area indication graph.
  • the area indicating figure is taken as an example for illustration. In other possible implementation manners, the area indicating figure may also be in other shapes, such as an ellipse. The embodiment of the application does not limit this. Referring to FIG. 18 , the area indication graphic 1801 is oval.
  • the terminal displays the first area graphic, the second area graphic, and the Directed icon.
  • the first area graphic, the second area graphic and the directional icon are displayed in different colors in the virtual scene.
  • the terminal displays the graphics of the first area in blue, the graphics of the second area in gray, and the directional icons in yellow.
  • the terminal displays a countdown icon based on the area indication graphic, and the countdown icon indicates that the restricted area is updated to the target Remaining time in restricted area.
  • the time interval for each area update, which is set by the technician according to the actual situation. For example, if the time interval is set to 3 minutes, it means that the limit in the virtual scene will be updated every three minutes area, the countdown icon is used to display the remaining time for updating from the restricted area to the target restricted area.
  • the terminal can display the countdown icon to remind the user to reach the remaining time of the area update time, that is, remind the user to update the current restricted area to the remaining time of the target restricted area, which is convenient for the user to control the area in time.
  • the first virtual object moves to the target restricted area, and the efficiency of human-computer interaction is high.
  • Example 1 The terminal displays the countdown icon below the area indication graphic.
  • the terminal displays the countdown icon 1901 under the area indication graphic 1902 .
  • Example 2 When the area indication graphic includes a directional icon, the terminal displays the countdown icon below the directional icon, and the directional icon indicates the position and orientation of the first virtual object in the virtual scene.
  • the terminal displays the countdown icon 2001 below the directional icon 2002 .
  • the terminal after displaying the area indication graphic, or while displaying the area indication graphic, the terminal can further perform the following steps:
  • the terminal displays the distance between the first virtual object and the target restricted area in the area indication graphic.
  • the terminal provides the user with the distance between the first virtual object and the target restricted area, which helps the user know how far the current first virtual object is from the target restricted area, so as to remind the user Controlling the first virtual object to move to the target restricted area improves the efficiency of human-computer interaction.
  • the terminal displays the distance between the first virtual object and the restricted area and the distance between the first virtual object and the target restricted area in the area indication graphic. distance.
  • the terminal provides the user with the distance between the first virtual object and the restricted area and the distance between the first virtual object and the target restricted area, which helps the user understand the current first virtual object How far away from the restricted area or the target restricted area is used to remind the user to control the movement of the first virtual object to the restricted area or the target restricted area, which improves the efficiency of human-computer interaction.
  • the terminal adjusts the area indication graphic based on the current position and orientation of the first virtual object in the virtual scene.
  • the terminal in response to any change in the position and orientation of the first virtual object in the virtual scene, the terminal based on the current position and orientation of the first virtual object in the virtual scene , the restricted area and the target restricted area, and adjust the area indicating graphics.
  • the technical solution described in the above-mentioned embodiment belongs to the same invention as the method in which the terminal displays an area indication graphic in the virtual scene based on the restricted area, target restricted area, and the first virtual object in the virtual scene in step 602 above.
  • the idea and implementation process refer to the above description, and will not repeat them here.
  • the terminal can adjust the area indication graphic in time, and the user can know the difference between the first virtual object and the two restricted areas in real time through the area indication graphic adjusted in real time.
  • the relative positional relationship between them, the efficiency of human-computer interaction is higher.
  • the terminal cancels displaying the area indication graphic.
  • the target duration is set by technicians according to the actual situation, for example, it is set to 6 seconds, 8 seconds or 10 seconds, etc., which is not limited in this embodiment of the present application.
  • the terminal can cancel the display of the area indicating graphic after a period of time, thereby providing the user with more space to display the virtual scene.
  • the area indication graphic includes a close control, and in response to a click operation on the close control, the terminal cancels displaying the area indication graphic.
  • the user can control the terminal to cancel displaying the area indication graphic at any time according to needs, which provides the user with higher autonomy.
  • the calling control of the area indicating graphic is displayed in the virtual scene, and after the terminal cancels the display of the area indicating graphic, in response to a click operation on the calling control, the terminal redisplays the area indicating graphic.
  • the execution subject is used as an example for illustration.
  • the data processing part in the above steps 601-604 is performed by The cloud game server is implemented, and the terminal plays the role of receiving operations and displaying, which is not limited in this embodiment of the present application.
  • the method includes, when the preset trigger time node is reached, that is, When the time difference from the update time of the area meets the target condition, the terminal acquires key information, the key information includes the position of the current restricted area, the position of the target restricted area, and the position and orientation of the first virtual object.
  • the terminal judges whether the first virtual object is located in the current restricted area, and when the first virtual object is located in the current restricted area, based on the position of the current restricted area, the position of the target restricted area, and the current position of the first virtual object and Orientation, generating an area indication graphic; when the first virtual object is outside the current restricted area, based on the position of the current restricted area, the position of the target restricted area, the closest position to the first virtual object in the current restricted area and the first
  • the orientation of the virtual object generates an area indicating graphic, that is, the edge of the restricted area closest to the first virtual object is used to replace the position of the first virtual object to generate an area indicating graphic.
  • the terminal displays the area indicating graphic, and the area indicating graphic synchronizes the position and orientation of the first virtual object in real time. After the terminal is within the target duration, it cancels the display of the area indication graphic.
  • the terminal can display an area indication graphic in the virtual scene according to the current restricted area, the restricted area to be updated, and the first virtual object, and the area indication graphic can indicate the first virtual object and the first virtual object.
  • the relative positional relationship between two restricted areas The user can know the relative position between the first virtual object and the two restricted areas by looking at the area indicating graphic, without checking the virtual map of the virtual scene, and the efficiency of human-computer interaction is high.
  • FIG. 22 is a schematic structural diagram of a virtual scene-based graphic display device provided by an embodiment of the present application.
  • the device includes: a virtual scene display module 2201 and an area indication graphic display module 2202 .
  • the virtual scene display module 2201 is configured to display a virtual scene, the virtual scene includes a restricted area, and the virtual scene displays a first virtual object, wherein the virtual object located in the restricted area has an attribute value when no interactive behavior is received constant.
  • An area indication graphic display module 2202 configured to display an area indication graphic in the virtual scene based on the restricted area, target restricted area and the first virtual object, where the area indication graphic indicates the relative relationship between the first virtual object and the restricted area The positional relationship and the relative positional relationship between the first virtual object and the target restricted area, where the target restricted area is the restricted area determined for the next area update.
  • the area indication graphic display module 2202 is configured to generate an area combination graphic based on the restricted area and the target restricted area, and the area combined graphic indicates the distance between the restricted area and the target restricted area. Relative positional relationship: displaying the area indicating graphic based on the combined area graphic and the first virtual object.
  • the area indication graphic display module 2202 is configured to generate the area combination graphic based on the respective positions of the restricted area and the target restricted area in the virtual scene.
  • the area indication graphic display module 2202 is configured to use the center position and border position of the restricted area in the virtual map of the virtual scene, and the center of the target restricted area in the virtual map position and the boundary position to generate the combined graphics of the area.
  • the area indication graphic display module 2202 is configured to add the directional information of the first virtual object on the area combination graphic based on the position and orientation of the first virtual object in the virtual scene. icon to get the area indicating graphics; display the area indicating graphics.
  • the area indicates a graphic display module 2202, configured to perform any of the following:
  • the first virtual object is located inside the restricted area, based on the distance and direction between the first virtual object and the central position of the restricted area, add the directional icon inside the combined graphic of the area, and the limited area adjusting the direction of the icon to the direction of the first virtual object to obtain the area indicating graphic;
  • the first virtual object is located outside the restricted area, based on the connection line between the first virtual object and the central position of the restricted area, determine the boundary between the restricted area and the first virtual object in the area combination graph. Add the directional icon to the candidate position closest to the virtual object, adjust the direction of the directional icon to the direction of the first virtual object, and obtain the area indicating graphic.
  • the area indicating graphic display module 2202 is configured to rotate the area indicating graphic and display the rotated area indicating graphic.
  • the area indication graphic includes a directional icon
  • the directional icon indicates the position and orientation of the first virtual object in the virtual scene
  • the area indication graphic display module 2202 is configured to execute the following any of the above:
  • the area indicating graphic is rotated so that the directional icon is located at the bottom of the area indicating graphic, and the rotated area indicating graphic is displayed.
  • the area indicating graphic is rotated so that the direction of the directional icon points to the target direction, and the rotated area indicating graphic is displayed.
  • the area indication graphic includes an area combination graphic and a directional icon
  • the area combination graphic indicates the relative positional relationship between the restricted area and the target restricted area
  • the directional icon indicates the first The position and orientation of the virtual object in the virtual scene
  • the area combination graphic includes a first area graphic corresponding to the restricted area and a second area graphic corresponding to the target restricted area
  • the area indicates the graphic display module 2202, which is used for different Colors display the first area graphic, the second area graphic and the directional icon.
  • the area indication graphic display module 2202 is configured to, based on the position of the restricted area in the virtual scene, the distance between the center of the restricted area and the first virtual object, and the target The position of the restricted area in the virtual scene is used to generate the combined graphics of the area.
  • the device also includes:
  • An adjustment module configured to adjust the area indication based on the current position and orientation of the first virtual object in the virtual scene in response to any change in the position and orientation of the first virtual object in the virtual scene graphics.
  • the device also includes:
  • the countdown icon display module is configured to display a countdown icon based on the area indicating graphic, and the countdown icon indicates the remaining time for updating from the restricted area to the target restricted area.
  • the countdown icon display module is configured to perform any of the following:
  • the countdown icon is displayed below the area indicator graphic.
  • the area indication graphic includes a directional icon
  • the countdown icon is displayed below the directional icon
  • the directional icon indicates the position and orientation of the first virtual object in the virtual scene.
  • the target restricted area is located inside the restricted area, and the area of the targeted restricted area is smaller than the restricted area, or, the targeted restricted area and the restricted area have overlapping portions.
  • the device further includes a distance display module, configured to perform any of the following:
  • the distance between the first virtual object and the target restricted area is displayed in the area indication graphic.
  • the distance between the first virtual object and the restricted area and the distance between the first virtual object and the target restricted area are displayed in the area indication graphic.
  • the area indication graphic display module 2202 is further configured to cancel displaying the area indication graphic after a target duration.
  • the graphics display device based on the virtual scene provided by the above-mentioned embodiment displays graphics, it only uses the division of the above-mentioned functional modules as an example.
  • the above-mentioned functions can be assigned to different functions
  • Module completion means dividing the internal structure of the computer device into different functional modules to complete all or part of the functions described above.
  • the graphic display device based on the virtual scene provided by the above embodiment and the graphic display method based on the virtual scene belong to the same concept, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.
  • an area indicating graphic can be displayed in the virtual scene, and the area indicating graphic can indicate the first virtual object and the two virtual objects.
  • the relative positional relationship between the restricted areas The user can know the relative position between the first virtual object and the two restricted areas by looking at the area indicating graphic, without checking the virtual map of the virtual scene, and the efficiency of human-computer interaction is high.
  • An embodiment of the present application provides a computer device, the computer device includes one or more processors and one or more memories, at least one computer program is stored in the one or more memories, and the computer program is executed by the one or more A processor is loaded and executed to perform the following operations:
  • the virtual scene includes a restricted area, and the virtual scene displays a first virtual object, wherein the attribute value of the virtual object located in the restricted area remains unchanged when no interactive behavior is received;
  • the target restricted area and the first virtual object Based on the restricted area, the target restricted area and the first virtual object, display an area indicating graphic, where the area indicating graphic indicates the relative positional relationship between the first virtual object and the restricted area and the relationship between the first virtual object and the target restricted area Relative positional relationship, the target restricted area is the restricted area determined for the next area update.
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the graphic indicating the area is displayed.
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the region combination graph is generated.
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the combined area graph is generated.
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the computer program is loaded and executed by the one or more processors to implement any of the following operations:
  • the first virtual object is located inside the restricted area, based on the distance and direction between the first virtual object and the central position of the restricted area, add the directional icon inside the combined graphic of the area, and the limited area adjusting the direction of the icon to the direction of the first virtual object to obtain the area indicating graphic;
  • the first virtual object is located outside the restricted area
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the area indication graphic includes a directional icon, and the directional icon indicates the position and orientation of the first virtual object in the virtual scene, and the computer program is loaded by the one or more processors And execute to achieve any of the following operations:
  • the area indicating graphic is rotated so that the direction of the directional icon points to the target direction, and the rotated area indicating graphic is displayed.
  • the area indication graphic includes an area combination graphic and a directional icon
  • the area combination graphic indicates the relative positional relationship between the restricted area and the target restricted area
  • the directional icon indicates the first The position and orientation of the virtual object in the virtual scene
  • the combined area graphics include a first area graphic corresponding to the restricted area and a second area graphic corresponding to the target restricted area
  • the computer program is loaded by the one or more processors and execute to achieve something like this:
  • the first area graphic, the second area graphic and the directional icon are displayed in different colors.
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the combined area graph is generated.
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the area indicating graphic is adjusted based on the current position and orientation of the first virtual object in the virtual scene.
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • a countdown icon is displayed based on the area indication graphic, and the countdown icon indicates the remaining time for updating from the restricted area to the target restricted area.
  • the computer program is loaded and executed by the one or more processors to implement any of the following operations:
  • the area indication graphic includes a directional icon
  • the countdown icon is displayed below the directional icon
  • the directional icon indicates the position and orientation of the first virtual object in the virtual scene.
  • the target restricted area is located inside the restricted area, and the area of the targeted restricted area is smaller than the restricted area, or, the targeted restricted area and the restricted area have overlapping portions.
  • the computer program is loaded and executed by the one or more processors to implement any of the following operations:
  • the first virtual object is located inside the restricted area, displaying the distance between the first virtual object and the target restricted area in the area indication graphic;
  • the distance between the first virtual object and the restricted area and the distance between the first virtual object and the target restricted area are displayed in the area indication graphic .
  • the computer program is loaded and executed by the one or more processors to implement the following operations:
  • the display of the area indicator graphic is canceled.
  • the computer device may be implemented as a terminal, and the structure of the terminal is introduced below:
  • FIG. 23 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal 2300 may be: a smart phone, a tablet computer, a notebook computer or a desktop computer.
  • the terminal 2300 may also be called user equipment, portable terminal, laptop terminal, desktop terminal and other names.
  • the terminal 2300 includes: one or more processors 2301 and one or more memories 2302 .
  • the processor 2301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • Processor 2301 can adopt at least one hardware form in DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish.
  • Processor 2301 may also include a main processor and a coprocessor, and the main processor is a processor for processing data in a wake-up state, also called a CPU (Central Processing Unit, central processing unit); the coprocessor is Low-power processor for processing data in standby state.
  • CPU Central Processing Unit, central processing unit
  • the coprocessor is Low-power processor for processing data in standby state.
  • the processor 2301 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content to be displayed on the display screen.
  • the processor 2301 may also include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • Memory 2302 may include one or more computer-readable storage media, which may be non-transitory.
  • the memory 2302 may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
  • non-transitory computer-readable storage medium in the memory 2302 is used to store at least one computer program, and the at least one computer program is used to be executed by the processor 2301 to implement the methods provided by the method embodiments in this application. Graphic display method based on virtual scene.
  • the terminal 2300 may optionally further include: a peripheral device interface 2303 and at least one peripheral device.
  • the processor 2301, the memory 2302, and the peripheral device interface 2303 may be connected through buses or signal lines.
  • Each peripheral device can be connected to the peripheral device interface 2303 through a bus, a signal line or a circuit board.
  • the peripheral device includes: at least one of a radio frequency circuit 2304 or a display screen 2305 .
  • the peripheral device interface 2303 may be used to connect at least one peripheral device related to I/O (Input/Output, input/output) to the processor 2301 and the memory 2302 .
  • the processor 2301, memory 2302 and peripheral device interface 2303 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 2301, memory 2302 and peripheral device interface 2303 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 2304 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
  • the radio frequency circuit 2304 communicates with the communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 2304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 2304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.
  • the display screen 2305 is used to display a UI (User Interface, user interface).
  • the UI can include graphics, text, directional icons, video, and any combination thereof.
  • the display screen 2305 also has the ability to collect touch signals on or above the surface of the display screen 2305 .
  • the touch signal can be input to the processor 2301 as a control signal for processing.
  • the display screen 2305 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • terminal 2300 also includes one or more sensors 2306 .
  • the one or more sensors 2306 include but are not limited to: an acceleration sensor 2307 , a gyro sensor 2308 and a pressure sensor 2309 .
  • the acceleration sensor 2307 can detect the acceleration on the three coordinate axes of the coordinate system established by the terminal 2300 .
  • the gyro sensor 2308 can measure the body direction and rotation angle of the terminal 2300 , and the gyro sensor 2308 can cooperate with the acceleration sensor 2307 to collect 3D actions of the user on the terminal 2300 .
  • the pressure sensor 2309 may be disposed on the side frame of the terminal 2300 and/or the lower layer of the display screen 2305 .
  • the pressure sensor 2309 When the pressure sensor 2309 is installed on the side frame of the terminal 2300 , it can detect the user's grip signal on the terminal 2300 , and the processor 2301 performs right and left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 2309 .
  • the processor 2301 controls the operable controls on the UI interface according to the user's pressure operation on the display screen 2305.
  • FIG. 23 does not constitute a limitation to the terminal 2300, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
  • a computer-readable storage medium such as a memory including a computer program
  • the above computer program can be executed by a processor to implement the virtual scene-based graphics display method in the above embodiment.
  • the computer-readable storage medium can be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a read-only optical disc (Compact Disc Read-Only Memory, CD-ROM), Magnetic tapes, floppy disks, and optical data storage devices, etc.
  • a computer program product or computer program is also provided, the computer program product or computer program includes program code, the program code is stored in a computer-readable storage medium, and the processor of the computer device reads from the computer The program code is read by reading the storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned virtual scene-based graphic display method.
  • the computer programs involved in the embodiments of the present application can be deployed and executed on one computer device, or executed on multiple computer devices at one location, or distributed in multiple locations and communicated Executed on multiple computer devices interconnected by the network, multiple computer devices distributed in multiple locations and interconnected through a communication network can form a blockchain system.

Abstract

一种基于虚拟场景的图形显示方法、装置、设备以及介质,属于计算机技术领域。该方法包括:计算机设备显示虚拟场景,虚拟场景包括限制区域,虚拟场景显示有第一虚拟对象,其中,位于限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变(501);计算机设备基于限制区域、目标限制区域以及第一虚拟对象,显示区域指示图形,区域指示图形指示第一虚拟对象与限制区域的相对位置关系和第一虚拟对象与目标限制区域的相对位置关系,目标限制区域为下一次发生区域更新所确定的限制区域(502)。

Description

基于虚拟场景的图形显示方法、装置、设备以及介质
本申请要求于2021年10月29日提交、申请号为202111280250.1、发明名称为“基于虚拟场景的图形显示方法、装置、设备以及介质”的中国专利申请的优先权,以及于2021年12月31日提交、申请号为202111658265.7、发明名称为“基于虚拟场景的图形显示方法、装置、设备以及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别涉及一种基于虚拟场景的图形显示方法、装置、设备以及介质。
背景技术
随着多媒体技术的发展以及终端功能的多样化,在终端上能够进行的游戏种类越来越多。射击类游戏是一种比较盛行的游戏,在一些射击游戏中会随机刷新限制区域,当用户控制的虚拟对象在限制区域内时,只有该虚拟对象遭到攻击时,生命值才会下降;当该虚拟对象在限制区域外时,即使该虚拟对象没有遭到攻击,生命值也会下降,以促使用户控制该虚拟对象进入该限制区域。
发明内容
本申请实施例提供了一种基于虚拟场景的图形显示方法、装置、设备以及介质,能够提升人机交互的效率。所述技术方案如下:
一方面,提供了一种基于虚拟场景的图形显示方法,所述方法包括:
计算机设备显示虚拟场景,所述虚拟场景包括限制区域,所述虚拟场景显示有第一虚拟对象,其中,位于所述限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变;
所述计算机设备基于所述限制区域、目标限制区域以及所述第一虚拟对象,显示区域指示图形,所述区域指示图形指示所述第一虚拟对象与所述限制区域的相对位置关系和所述第一虚拟对象与所述目标限制区域的相对位置关系,所述目标限制区域为下一次发生区域更新所确定的限制区域。
一方面,提供了一种基于虚拟场景的图形显示装置,所述装置包括:
虚拟场景显示模块,用于显示虚拟场景,所述虚拟场景包括限制区域,所述虚拟场景显示有第一虚拟对象,其中,位于所述限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变;
区域指示图形显示模块,用于基于所述限制区域、目标限制区域以及所述第一虚拟对象,显示区域指示图形,所述区域指示图形指示所述第一虚拟对象与所述限制区域的相对位置关系和所述第一虚拟对象与所述目标限制区域的相对位置关系,所述目标限制区域为下一次发生区域更新所确定的限制区域。
在一种可能的实施方式中,所述区域指示图形显示模块,用于基于所述限制区域以及所述目标限制区域,生成区域组合图形,所述区域组合图形指示所述限制区域和所述目标限制区域之间的相对位置关系;基于所述区域组合图形和所述第一虚拟对象,在所述虚拟场景中显示所述区域指示图形。
在一种可能的实施方式中,所述区域指示图形显示模块,用于基于所述限制区域和所述目标限制区域分别在所述虚拟场景中的位置,生成所述区域组合图形。
在一种可能的实施方式中,所述区域指示图形显示模块,用于基于所述限制区域在所述虚拟场景的虚拟地图中的中心位置以及边界位置,以及所述目标限制区域在所述虚拟地图中 的中心位置以及边界位置,生成所述区域组合图形。
在一种可能的实施方式中,所述区域指示图形显示模块,用于基于所述第一虚拟对象在所述虚拟场景中的位置和朝向,在所述区域组合图形上添加所述第一虚拟对象的有向图标,得到所述区域指示图形;显示所述区域指示图形。
在一种可能的实施方式中,所述区域指示图形显示模块,用于执行下述任一项:
在所述第一虚拟对象位于所述限制区域内部的情况下,基于所述第一虚拟对象与所述限制区域的中心位置之间的距离和方向,在所述区域组合图形内部添加所述有向图标,将所述有向图标的指向调整为所述第一虚拟对象的朝向,得到所述区域指示图形;
在所述第一虚拟对象位于所述限制区域外部的情况下,基于所述第一虚拟对象与所述限制区域的中心位置之间的连线,确定所述区域组合图形中所述限制区域的边界上与所述第一虚拟对象距离最近的候选位置,将所述有向图标添加在所述候选位置,将所述有向图标的指向调整为所述第一虚拟对象的朝向,得到所述区域指示图形。
在一种可能的实施方式中,所述区域指示图形显示模块,用于旋转所述区域指示图形,显示旋转后的所述区域指示图形。
在一种可能的实施方式中,所述区域指示图形包括有向图标,所述有向图标指示所述第一虚拟对象在所述虚拟场景中的位置和朝向,所述区域指示图形显示模块,用于执行下述任一项:
基于所述有向图标在所述区域指示图形上的位置,旋转所述区域指示图形,以使所述有向图标位于所述区域指示图形的底部,显示旋转后的所述区域指示图形;
基于所述有向图标在所述区域指示图形上的位置和所指的方向,旋转所述区域指示图形,以使所述有向图标的方向指向目标方向,显示旋转后的所述区域指示图形。
在一种可能的实施方式中,所述区域指示图形包括区域组合图形和有向图标,所述区域组合图形指示所述限制区域和所述目标限制区域之间的相对位置关系,所述有向图标指示所述第一虚拟对象在所述虚拟场景中的位置和朝向,所述区域组合图形包括所述限制区域对应的第一区域图形和所述目标限制区域对应的第二区域图形,所述区域指示图形显示模块,用于以不同颜色显示所述第一区域图形、所述第二区域图形以及所述有向图标。
在一种可能的实施方式中,所述区域指示图形显示模块,用于基于所述限制区域在所述虚拟场景中的位置、所述限制区域的中心位置与所述第一虚拟对象之间的距离以及所述目标限制区域在所述虚拟场景中的位置,生成所述区域组合图形。
在一种可能的实施方式中,所述装置还包括:
调整模块,用于响应于所述第一虚拟对象在所述虚拟场景中的位置和朝向中的任一项发生变化,基于所述第一虚拟对象在所述虚拟场景中当前的位置和朝向,调整所述区域指示图形。
在一种可能的实施方式中,所述装置还包括:
倒计时图标显示模块,用于基于所述区域指示图形显示倒计时图标,所述倒计时图标指示由所述限制区域更新为所述目标限制区域的剩余时间。
在一种可能的实施方式中,所述倒计时图标显示模块,用于执行下述任一项:
将所述倒计时图标显示在所述区域指示图形的下方;
在所述区域指示图形包括有向图标的情况下,将所述倒计时图标显示在所述有向图标的下方,所述有向图标指示所述第一虚拟对象在所述虚拟场景中的位置和朝向。
在一种可能的实施方式中,所述目标限制区域位于所述限制区域内部,所述目标限制区域的面积小于所述限制区域,或者,所述目标限制区域与所述限制区域具有重合部分。
在一种可能的实施方式中,所述装置还包括距离显示模块,用于执行下述任一项:
在所述第一虚拟对象位于所述限制区域内部的情况下,在所述区域指示图形中显示所述第一虚拟对象与所述目标限制区域之间的距离;
在所述第一虚拟对象位于所述限制区域外部的情况下,在所述区域指示图形中显示所述 第一虚拟对象与所述限制区域之间的距离和所述第一虚拟对象与所述目标限制区域之间的距离。
在一种可能的实施方式中,所述区域指示图形显示模块,还用于在目标时长后,取消显示所述区域指示图形。
一方面,提供了一种计算机设备,所述计算机设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条计算机程序,所述计算机程序由所述一个或多个处理器加载并执行以实现所述基于虚拟场景的图形显示方法。
一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条计算机程序,所述计算机程序由处理器加载并执行以实现所述基于虚拟场景的图形显示方法。
一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括程序代码,该程序代码存储在计算机可读存储介质中,计算机设备的处理器从计算机可读存储介质读取该程序代码,处理器执行该程序代码,使得该计算机设备执行上述基于虚拟场景的图形显示方法。
通过本申请实施例提供的技术方案,计算机设备能够根据当前的限制区域、将要更新的限制区域以及第一虚拟对象,在该虚拟场景中显示区域指示图形,该区域指示图形能够指示第一虚拟对象与两个限制区域之间的相对位置关系。用户通过查看该区域指示图形就能够知晓第一虚拟对象与两个限制区域之间的相对位置,无需查看虚拟场景的虚拟地图,人机交互的效率较高。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种基于虚拟场景的图形显示方法的实施环境的示意图;
图2是本申请实施例提供的一种包括虚拟地图的界面示意图;
图3是本申请实施例提供的一种虚拟对象的朝向示意图;
图4是本申请实施例提供的一种界面示意图;
图5是本申请实施例提供的一种基于虚拟场景的图形显示方法的流程图;
图6是本申请实施例提供的一种基于虚拟场景的图形显示方法的流程图;
图7是本申请实施例提供的一种生成区域组合图形的示意图;
图8是本申请实施例提供的一种有向图标的示意图;
图9是本申请实施例提供的一种区域指示图形的示意图;
图10是本申请实施例提供的一种缩放区域指示图形的示意图;
图11是本申请实施例提供的一种包括区域指示图形的界面示意图;
图12是本申请实施例提供的一种旋转区域指示图形的示意图;
图13是本申请实施例提供的一种缩放区域指示图形的示意图;
图14是本申请实施例提供的一种包括区域指示图形的界面示意图;
图15是本申请实施例提供的一种旋转区域指示图形的示意图;
图16是本申请实施例提供的一种缩放区域指示图形的示意图;
图17是本申请实施例提供的一种包括区域指示图形的界面示意图;
图18是本申请实施例提供的一种椭圆形区域指示图形的示意图;
图19是本申请实施例提供的一种倒计时图标的显示位置的示意图;
图20是本申请实施例提供的一种倒计时图标的显示位置的示意图;
图21是本申请实施例提供的一种基于虚拟场景的图形显示方法的逻辑框图;
图22是本申请实施例提供的一种基于虚拟场景的图形显示装置结构示意图;
图23是本申请实施例提供的一种终端的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式做进一步地详细描述。
本申请中术语“第一”“第二”等字样用于对作用和功能基本相同的相同项或相似项进行区分,应理解,“第一”、“第二”、“第n”之间不具有逻辑或时序上的依赖关系,也不对数量和执行顺序进行限定。
本申请中术语“至少一个”是指一个或多个,“多个”的含义是指两个或两个以上,例如,多个图像是指两个或两个以上的图像。
虚拟场景:是应用程序在终端上运行时显示(或提供)的虚拟场景。该虚拟场景可以是对真实世界的仿真环境,也可以是半仿真半虚构的虚拟环境,还可以是纯虚构的虚拟环境。虚拟场景可以是二维虚拟场景、2.5维虚拟场景或者三维虚拟场景中的任意一种,本申请实施例对虚拟场景的维度不加以限定。例如,虚拟场景可以包括天空、陆地、海洋等,该陆地可以包括沙漠、城市等环境元素,用户可以控制虚拟对象在该虚拟场景中进行移动。
虚拟对象:是指在虚拟场景中的可活动对象。该可活动对象可以是虚拟人物、虚拟动物、动漫人物等,比如:在虚拟场景中显示的人物、动物、植物、油桶、墙壁、石块等。该虚拟对象可以是该虚拟场景中的一个虚拟的用于代表用户的虚拟形象。虚拟场景中可以包括多个虚拟对象,每个虚拟对象在虚拟场景中具有自身的形状和体积,占据虚拟场景中的一部分空间。
可选地,该虚拟对象是通过客户端上的操作进行控制的用户角色,或者是通过训练设置在虚拟场景对战中的人工智能(Artificial Intelligence,AI),或者是设置在虚拟场景中的非用户角色(Non-Player Character,NPC)。可选地,该虚拟对象是在虚拟场景中进行竞技的虚拟人物。可选地,该虚拟场景中参与互动的虚拟对象的数量是预先设置的,或者是根据加入互动的客户端的数量动态确定的。
以射击类游戏为例,用户能够控制虚拟对象在该虚拟场景的天空中自由下落、滑翔或者打开降落伞进行下落等,在陆地上中跑动、跳动、爬行、弯腰前行等,也可以控制虚拟对象在海洋中游泳、漂浮或者下潜等,当然,用户也可以控制虚拟对象乘坐虚拟载具在该虚拟场景中进行移动,例如,该虚拟载具可以是虚拟汽车、虚拟飞行器、虚拟游艇等,在此仅以上述场景进行举例说明,本申请实施例对此不作具体限定。
图1是本申请实施例提供的一种基于虚拟场景的图形显示方法的实施环境示意图,参见图1,该实施环境包括:终端110和服务器140。
终端110安装和运行有支持虚拟场景显示的应用程序。可选地,该应用程序是第一人称射击游戏(First-Person Shooting Game,FPS)、第三人称射击游戏、虚拟现实应用程序、三维地图程序或者多人枪战类生存游戏中的任意一种。终端110是第一用户使用的终端,第一用户使用终端110操作位于虚拟场景中的被控虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、攻击、投掷中的至少一种。示意性的,被控虚拟对象是第一虚拟人物,比如仿真人物角色或动漫人物角色。
服务器140是独立的物理服务器,或者是多个物理服务器构成的服务器集群或者分布式系统,或者是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,本申请实施例对服务器的数量和设备类型不加以限定。服务器140为终端110上运行的应用程序提供后台服务,终端110通过无线网络或有线网络与服务器140相连。
在介绍完本申请实施例的实施环境之后,下面对本申请实施例的应用场景进行介绍。在下述说明过程中,终端也即是上述实施环境中的终端110,服务器也即是上述服务器140。
本申请实施例提供的技术方案能够应用在射击类游戏的场景下,在射击类游戏中,终端显示虚拟场景,该虚拟场景包括第一虚拟对象,用户能够通过终端控制该第一虚拟对象在虚拟场景中进行移动和攻击。该虚拟场景包括限制区域,该限制区域用于限制虚拟对象的移动范围,第一虚拟对象在该限制区域中进行移动时,在没有遭到攻击的情况下,生命值不会降低。当第一虚拟对象位于限制区域外时,即使没有遭到攻击,第一虚拟对象的生命值也会持续降低,在一些实施例中,该限制区域也被称为安全区域。在射击类游戏中,每隔一段时间会更新安全区域的位置,比如,每隔一段时对安全区域进行缩小,以使得虚拟对象聚集在安全区域内,增加虚拟对象之间发生对抗的概率。相关技术中,在更新安全区域之前,终端往往会显示提示信息,该提示信息用于提示用户将要更新安全区域,用户能够通过查看虚拟场景的虚拟地图来确定将要更新的安全区域的位置以及第一虚拟对象与安全区域之间的距离,在这个过程中,查看虚拟地图需要用户执行对应的操作,比如点击虚拟地图查看控件。虚拟地图的显示会遮挡虚拟场景的显示,第一虚拟对象可能在用户查看虚拟地图时被其他虚拟对象攻击。如图2所示,用户点击虚拟地图查看控件之后,终端显示虚拟地图201,该虚拟地图201会遮挡部分虚拟场景200的显示。而采用本申请实施例提供的技术方案之后,终端能够基于限制区域、目标限制区域以及第一虚拟对象,显示区域指示图形,该区域指示图形指示限制区域、目标限制区域以及第一虚拟对象三者之间的相对位置关系,其中,目标限制区域也即是将要更新的限制区域。用户通过查看该区域指示图形就能够知晓第一虚拟对象与当前限制区域之间的相对位置关系,以及第一虚拟对象与将要更新的目标显示区域之间的相对位置关系,无需再查看虚拟场景的虚拟地图,从而减少了操作的步骤,避免了第一虚拟对象在查看虚拟地图期间被偷袭的情况,在提高人机交互效率的同时提高了用户的游戏体验。
需要说明的是,上述说明是以终端执行本申请实施例提供的基于虚拟场景的图形显示方法为例进行说明的,在上述射击类游戏为云游戏的情况下,本申请实施例提供的基于虚拟场景的图形显示方法也能够由服务器执行,服务器向终端推送视频流,终端进行显示即可,本申请实施例对此不做限定。
为了更加清楚的对本申请实施例提供的技术方案进行说明,下面对本申请中的虚拟场景进行介绍,参见图3,为了使得射击类游戏更加真实,游戏设计人员会参照人类观察现实世界的方式,来对虚拟场景的显示方式进行设计。第一虚拟对象301能够观察到区域302中的虚拟场景,以第一虚拟对象301的角度观察区域302得到的画面也即是显示的虚拟场景。用户能够通过调整第一虚拟对象301的朝向,来调整第一虚拟对象301观察虚拟场景的位置。
在一些实施例中,虚拟场景包括用于控制第一虚拟对象执行不同动作的控件。参见图4,虚拟场景401上显示有虚拟摇杆402、姿态调整控件403、射击控件404以及道具切换控件405,其中,虚拟摇杆402用于控制第一虚拟对象的移动方向。姿态调整控件403用于调整第一虚拟对象的姿态,比如控制虚拟对象执行下蹲或者匍匐等动作。射击控件404用于控制第一虚拟对象持有的虚拟道具发射虚拟弹药。道具切换控件405用于切换虚拟对象持有的虚拟道具。虚拟场景401上还显示有小地图406,或者叫虚拟地图,用户能够通过小地图406观察队友和敌人在虚拟场景中的位置。
在介绍完本申请实施例的实施环境、应用场景以及虚拟场景之后,下面对本申请实施例提供的基于虚拟场景的图形显示方法进行说明,执行主体为计算机设备,例如该计算机设备为上述图1所示的实施环境中的终端,参见图5,方法包括:
501、计算机设备显示虚拟场景,该虚拟场景包括限制区域,该虚拟场景显示有第一虚拟对象,其中,位于该限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变。
其中,限制区域为虚拟场景中用于限制虚拟对象活动范围的区域,当虚拟对象位于限制区域内时,在未接收到互动行为的情况下,属性值不会发生变化。相应地,当虚拟对象位于 限制区域外时,在未接收到互动行为的情况下,属性值也会减少。通过设置限制区域,能够促使用户控制虚拟对象尽快进入限制区域。虚拟场景中的限制区域每隔一段时间会发生变化,用户需要控制虚拟对象进入新的限制区域。
502、计算机设备基于该限制区域、目标限制区域以及该第一虚拟对象,显示区域指示图形,该区域指示图形指示该第一虚拟对象与该限制区域的相对位置关系和该第一虚拟对象与该目标限制区域的相对位置关系,该目标限制区域为下一次发生区域更新所确定的限制区域。
其中,该限制区域为虚拟场景中当前的限制区域,目标限制区域为虚拟场景中将要更新的限制区域。
相关技术中,在刷新限制区域之前,终端往往会显示提示信息,用户看到该提示信息之后,通过查看虚拟场景的虚拟地图能够得知将要刷新的限制区域的位置。但是,在这种方式下,用户确定新的限制区域的位置时需要先开启虚拟地图,导致人机交互的效率较低。
通过本申请实施例提供的技术方案,计算机设备能够根据当前的限制区域、将要更新的限制区域以及第一虚拟对象,显示区域指示图形,该区域指示图形能够指示第一虚拟对象与两个限制区域之间的相对位置关系。用户通过查看该区域指示图形就能够知晓第一虚拟对象与两个限制区域之间的相对位置,无需查看虚拟场景的虚拟地图,人机交互的效率较高。
上述步骤501-502是对本申请实施例提供的基于虚拟场景的图形显示方法的简单介绍,下面将结合一些例子,对本申请实施例提供的基于虚拟场景的图形显示方法进行更加详细的说明,执行主体为计算机设备,本申请实施例以计算机设备为终端为例,参见图6,方法包括:
601、终端显示虚拟场景,该虚拟场景包括限制区域,该虚拟场景显示有第一虚拟对象,其中,位于该限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变。
在一些实施例中,该限制区域为虚拟场景中随机生成的区域,该限制区域起到限制虚拟对象活动范围的作用。在一些实施例中,虚拟场景中的限制区域会发生更新,限制区域的更新方式包括不断缩小限制区域,还包括调整限制区域的位置,调整前后的限制区域之间有重合部分。在一些实施例中,游戏开始之后的一段时间内,虚拟场景中不存在限制区域,用户能够控制虚拟对象在虚拟场景中随意活动,比如在虚拟场景中收集虚拟道具和攻击其他虚拟对象。在一段时间之后,该虚拟场景中开始出现限制区域,用户控制虚拟对象前往限制区域,以避免在无互动的情况下虚拟对象的属性值下降。在虚拟场景中限制区域的更新方式为不断缩小限制区域的情况下,在首次确定限制区域时,终端能够在虚拟场景中随机确定一个位置点,以该位置点为中心,以预设的长度为半径确定限制区域。在后续更新该限制区域时,终端不断缩小该限制区域的半径,或者在该限制区域内随机生成一个面积小于该限制区域的目标限制区域。在一些实施例中,互动行为包括虚拟场景中其他虚拟对象对该虚拟对象的互动行为,还包括虚拟场景对该虚拟对象的互动行为,其中,其他虚拟对象对该虚拟对象的互动行为包括其他虚拟对象使用虚拟枪械攻击该虚拟对象、其他虚拟对象使用虚拟投掷物攻击该虚拟对象、其他虚拟对象驾驶虚拟载具撞击该虚拟对象、其他虚拟对象在虚拟场景中召唤虚拟飞机攻击该虚拟对象、其他虚拟对象使用虚拟刀具攻击该虚拟对象等。虚拟场景对该虚拟对象的互动行为包括虚拟场景中随机落下虚拟爆炸物攻击该虚拟对象、该虚拟对象落入该虚拟场景的虚拟水域对该虚拟对象造成的伤害。
在一些实施例中,属性值降低为0时,虚拟对象会被淘汰,用户无法再控制虚拟对象进行游戏。或者,属性值降低为0时,虚拟对象会处于“待救援”的状态,用户能够控制虚拟对象在虚拟场景中进行“爬行”,其他用户能够控制虚拟对象对该“待救援”的虚拟对象进行救援。若在一段时间内该“待救援”的虚拟对象没有被其他虚拟对象救援,那么该虚拟对象就会被淘汰。在一些实施例中,该属性值为虚拟对象的生命值,也即是,当虚拟对象位于限制区域内时,在没有接收到互动行为的情况下,虚拟对象的生命值不会发生减少。当虚拟对象位于限制区域外时,在没有接收到互动行为的情况下,虚拟对象的生命值也会发生减少,其中,生 命值减少的量与虚拟对象在限制区域外的时长正相关。若虚拟对象一直位于限制区域外,那么虚拟对象的生命值可能会降低为0,从而导致虚拟对象被淘汰。
在一些实施例中,该虚拟场景为射击类游戏的游戏场景,第一虚拟对象为终端控制的虚拟对象,用户能够通过终端来控制该第一虚拟对象在该虚拟场景中进行移动、使用虚拟道具、驾驶虚拟载具以及执行其他活动。
在一种可能的实施方式中,响应于用户开启一局竞技对战,终端显示本局竞技对战对应的虚拟场景,在虚拟场景中显示第一虚拟对象,其中,一局竞技对战也即是一局射击类游戏,终端显示的虚拟场景为虚拟场景的一个部分,第一虚拟对象被显示在终端显示的虚拟场景的中央,终端显示的虚拟场景会随着第一虚拟对象的移动而移动,在一些实施例中,终端显示的虚拟场景也被称为第一虚拟对象的视野范围。在这种情况下,在其他虚拟对象进入第一虚拟对象的视野范围的情况下,终端能够显示其他虚拟对象。
602、终端基于该限制区域、目标限制区域以及该第一虚拟对象,显示区域指示图形,该区域指示图形指示该第一虚拟对象与该限制区域和该目标限制区域的相对位置关系,该目标限制区域为下一次发生区域更新所确定的限制区域。
在一种可能的实施方式中,终端在虚拟场景中显示该区域指示图形。在另一种可能的实施方式中,终端显示虚拟场景界面,该虚拟场景界面显示有该虚拟场景,终端在该虚拟场景界面中显示该区域指示图形,例如在虚拟场景界面中的目标区域显示该区域指示图形,或者终端在虚拟场景界面上添加图层,在该图层中显示该区域指示图形。
其中,该限制区域为虚拟场景中当前的限制区域,目标限制区域为将要更新的限制区域,在一些实施例中,该目标限制区域位于该限制区域内部,该目标限制区域的面积小于该限制区域,或者,该目标限制区域与该限制区域具有重合部分。在该目标限制区域位于该限制区域内部,且该目标限制区域的面积小于该限制区域的情况下,终端更新该限制区域的过程也即是将该限制区域缩小的过程,比如,该限制区域为虚拟场景中的第一个球体,该球体的边缘可见,用户通过查看该边缘就能够知晓该限制区域的位置。终端在更新该限制区域时,既能够直接减小该球体的半径,得到一个体积更小的球体,该体积更小的球体也即是目标限制区域。或者,终端在该球体中随机确定一个球心,减小该球体的半径,以得到该目标限制区域。在该目标限制区域与该限制区域具有重合部分的情况下,终端更新该限制区域的过程也即是在该限制区域周围重新确定第一个目标限制区域,该目标限制区域与该限制区域之间的有重合部分,以保证虚拟对象能够顺利从该限制区域转移至目标限制区域,在一些实施例中,该目标限制区域的面积小于该限制区域,以提高虚拟对象之间发生接触的概率,降低游戏时长。在一些实施例中,该限制区域被称为当前安全区域,该目标限制区域被称为下一安全区域。
在一种可能的实施方式中,响应于距离区域更新时间的时间差符合目标条件,终端基于该虚拟场景中的该限制区域、目标限制区域以及该第一虚拟对象,在该虚拟场景中显示区域指示图形。
其中,区域更新时间由技术人员根据实际情况进行设置,比如设置为固定时长,比如一分钟或者两分钟,或者设置为不固定的时长,比如第一次区域更新的时间为游戏开始后三分钟,第二次区域更新的时间为游戏开始后五分钟,本申请实施例对此不做限定。其中,距离区域更新时间的时间差是指当前时间点与下一次更新区域的时间点之间的时间差。
在一些实施例中,距离区域更新时间的时间差符合目标条件是指,距离区域更新时间的时间差小于或等于时间差值阈值,该时间差值阈值由技术人员根据实际情况进行设置,比如设置为5分钟、3分钟、1分钟、30秒、10秒或者0秒,本申请实施例对此不做限定。
在这种实施方式下,终端能够在更新该目标限制区域之前,来显示区域指示图形,通过这种方式有助于吸引用户的注意力,提高了人机交互的效率。
在一种可能的实施方式中,终端基于该限制区域以及该目标限制区域,生成区域组合图形,该区域组合图形指示该限制区域和该目标限制区域之间的相对位置关系。终端基于该区 域组合图形和该第一虚拟对象,在该虚拟场景中显示该区域指示图形。
在这种实施方式下,由于该限制区域和该目标限制区域之间的相对位置关系不会发生变化,那么终端能够先基于该限制区域和该目标限制区域来生成一个区域组合图形,通过该区域组合图形来指示该限制区域和该目标限制区域之间的相对位置关系。而该第一虚拟对象在虚拟场景中的位置和朝向可能随时发生变化,那么该第一虚拟对象与两个限制区域之前的相对位置关系也可能随时发生变化,采用这种不变和变化的方式来确定区域指示图形,能够提高终端的运算效率。
为了对上述实施方式进行更加清楚的说明的,下面将分为两个部分对上述实施方式进行说明。
第一部分、终端基于该限制区域以及该目标限制区域,生成区域组合图形。
在一种可能的实施方式中,终端基于该限制区域和该目标限制区域分别在该虚拟场景中的位置,生成该区域组合图形。
在这种实施方式下,由于该限制区域和该目标限制区域之间的相对位置关系不会发生变化,那么终端能够基于该限制区域的位置和该目标限制区域的位置来直接生成该区域组合图形,效率较高。
举例来说,终端基于该限制区域在该虚拟场景的虚拟地图中的中心位置以及边界位置,以及该目标限制区域在该虚拟地图中的中心位置以及边界位置,生成该区域组合图形。
其中,该虚拟地图为该虚拟场景的平面投影图,该虚拟地图记载了虚拟场景中不同区域的分界线以及不同区域的名称。
在一些实施例中,终端采用坐标的形式来表示该限制区域和该目标限制区域在该虚拟地图中的中心位置,采用函数的形式来表示该限制区域和该目标限制区域在该虚拟地图中的边界位置。在该限制区域和该目标限制区域为虚拟场景中的球体的情况下,该限制区域和该目标限制区域在该虚拟地图上表现为两个圆形,这里的圆形既包括正圆,也包括椭圆,本申请实施例对此不做限定。在一些实施例中,终端获取该限制区域的中心坐标和边界函数,以及该目标限制区域的中心坐标和边界函数,基于该限制区域的中心坐标和边界函数生成第一区域图形,该第一区域图形表示该限制区域。终端基于该目标限制区域的中心坐标和边界函数,在与第一区域图形相同的坐标系下生成第二区域图形,该第二区域图形表示该目标限制区域,该第一图形区域和该第二图形区域的组合也即是该区域组合图形。当然,在上述说明过程中,是以终端分别生成第一区域图形和第二区域图形为例进行的,在其他可能的实施方式中,终端能够同时生成该第一区域图形和该第二区域图形,本申请实施例对此不做限定。
在一些实施例中,终端在预设尺寸的正方形中填充一个最大圆形,该最大圆形表示该限制区域,将该圆形作为该第一区域图形。终端基于该限制区域的中心位置与该目标限制区域的中心位置之间的位置差,以及该限制区域的半径和该目标限制区域的半径之间的比值,在该正方形中生成另一个圆形,该圆形表示该目标限制区域,该圆形也即是第二区域图形,这两个圆形的组合也即是区域组合图形,其中,该预设尺寸由技术人员根据实际情况进行设置,本申请实施例对此不做限定。
在一些实施例中,终端从虚拟地图中获取该限制区域的中心坐标和边界函数,以及该目标限制区域的中心坐标和边界函数。终端基于该限制区域的中心坐标和边界函数,在该虚拟地图上生成第一区域图形。终端基于该目标限制区域的中心坐标和边界函数,在该虚拟地图上生成第二区域图形,该第一区域图形和该第二区域图形的组合也即是该区域组合图形。
比如,参见图7,终端通过虚拟地图701获取该限制区域702的中心坐标和边界函数,以及该目标限制区域703的中心坐标和边界函数。终端基于该限制区域702的中心坐标和边界函数,在该虚拟地图701上生成第一区域图形704。终端基于该目标限制区域703的中心坐标和边界函数,在该虚拟地图701上生成第二区域图形705,该第一区域图形704和该第二区域图形705的组合也即是该区域组合图形。
在一种可能的实施方式中,终端基于该限制区域在该虚拟场景中的位置、该限制区域的 中心位置与该第一虚拟对象之间的距离以及该目标限制区域在该虚拟场景中的位置,生成该区域组合图形。
在这种实施方式下,生成区域组合图形时考虑了该限制区域的中心位置与该第一虚拟对象之间的距离,生成的区域组合图形也就更加是适配于该第一虚拟对象。
以该限制区域和该目标限制区域在虚拟地图上为圆形为例,终端以该限制区域的中心位置为圆心,以该限制区域的中心位置与该第一虚拟对象之间的距离为半径生成第一区域图形,该第一区域图形表示该限制区域和该第一虚拟对象之间的距离。终端以该目标限制区域的中心位置为圆心,以该目标限制区域的半径为半径生成第二区域图形,该第二区域图形表示该目标限制区域,该第一区域图形和该第二区域图形的组合也即是该区域组合图形。
第二部分、终端基于该区域组合图形和该第一虚拟对象,显示该区域指示图形。
在一种可能的实施方式中,终端基于该第一虚拟对象在该虚拟场景中的位置和朝向,在该区域组合图形上添加该第一虚拟对象的有向图标,得到该区域指示图形。终端在该虚拟场景中显示该区域指示图形。
其中,该有向图标指示该第一虚拟对象在虚拟场景中的位置和方向,在一些实施例中,该有向图标也被称为“带方向的角色坐标icon(图标)”,图8提供了一种有向图标800,该有向图标800包括主体801和尖角802,该尖角802的方向表示该第一虚拟对象的朝向,也即是在该第一虚拟对象的朝向发生变化的情况下,该尖角802的方向也会随之发生变化。
为了对上述实施方式进行更加清楚的说明,下面将再分为两个部分对上述实施方式进行说明。
(一)、终端基于该第一虚拟对象在该虚拟场景中的位置和朝向,在该区域组合图形上添加该第一虚拟对象的有向图标,得到该区域指示图形。
在一种可能的实施方式中,在该第一虚拟对象位于该限制区域内部的情况下,终端基于该第一虚拟对象与该限制区域的中心位置之间的距离和方向,在该区域组合图形内部添加该有向图标,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形。
在这种实施方式下,在该第一虚拟对象位于该限制区域内时,终端能够基于该第一虚拟对象与该限制区域之间的实际位置关系来在该区域组合图形上添加该有向图标,得到的区域指示图形也就能够真实地反映该第一虚拟对象在该限制区域内的位置,以及该第一虚拟对象与该目标限制区域之间的相对位置关系。
举例来说,终端基于该第一虚拟对象在该虚拟场景中的坐标、该限制区域的中心坐标以及该限制区域的半径,确定该第一虚拟对象是否位于该限制区域内部,也即是先确定第一虚拟对象在该虚拟场景中的坐标与该限制区域的中心坐标之间的距离,然后比较该距离与该限制区域的半径的大小。在该距离大于该限制区域的半径的情况下,表示该第一虚拟对象位于该限制区域外部;在该距离小于或等于该限制区域的半径的情况下,表示该第一虚拟对象位于该限制区域内部。在该第一虚拟对象位于该限制区域内部的情况下,终端基于该第一虚拟对象与该限制区域的中心位置之间的距离,以及该第一虚拟对象与该限制区域之间的相对方向,确定第一虚拟对象在限制区域中的位置,并在该区域组合图形内部对应的位置添加该有向图标,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形,其中,该有向图标的方向为该第一虚拟对象的朝向,例如在该第一虚拟对象的朝向为该限制区域的中心位置时,该有向图标指向该区域组合图形中第一区域图形的中心,该第一区域图形表示该限制区域。
在一些实施例中,虚拟场景包括多个地形块,终端采用第一数值对该多个地形块中属于该限制区域的地形块进行编号,采用第二数值对该限制区域以外的地形块进行编号。终端在确定该第一虚拟对象是否位于该限制区域时,确定该第一虚拟对象所处的地形块的编号,在该地形块的编号为第一数值的情况下,终端确定该第一虚拟对象位于该限制区域内部,在该地形块的编号为第二数值的情况下,终端确定该第一虚拟对象位于该限制区域外部。在该第一虚拟对象位于该限制区域内部的情况下,终端基于该第一虚拟对象与该限制区域的中心位 置之间的距离,以及该第一虚拟对象与该限制区域之间的相对方向,确定第一虚拟对象在限制区域中的位置,并在该区域组合图形内部对应的位置添加该有向图标,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形。
比如,参见图9,在该第一虚拟对象位于该限制区域内部的情况下,终端在区域组合图形900中添加有向图标901,得到区域指示图形902。
在一种可能的实施方式中,在该第一虚拟对象位于该限制区域外部的情况下,终端基于该第一虚拟对象与该限制区域的中心位置之间的连线,确定该区域组合图形中该限制区域的边界上与该第一虚拟对象距离最近的候选位置,将该有向图标添加在该候选位置,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形。
在这种实施方式下,在该第一虚拟对象位于该限制区域外时,终端能够将该有向图标添加在该区域指示图形中该限制区域的边界上,这样即使该第一虚拟对象不在该限制区域内时,也能够通过该区域指示图形来表示该第一虚拟对象与两个限制区域之间的相对位置关系。
举例来说,终端基于该第一虚拟对象在该虚拟场景中的坐标、该限制区域的中心坐标以及该限制区域的半径,确定该第一虚拟对象是否位于该限制区域内部。在该第一虚拟对象位于该限制区域外部的情况下,终端基于该第一虚拟对象与该限制区域的中心位置之间的连线,在该区域组合图形中确定候选位置,该候选位置为该连线与第一区域图形的边界的交点。终端将该有向图标添加在该候选位置上,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形,其中,该有向图标的方向为该第一虚拟对象的朝向,例如在该第一虚拟对象的朝向为该限制区域的中心位置时,该有向图标指向该区域组合图形中第一区域图形的中心,该第一区域图形表示该限制区域。
在一些实施例中,虚拟场景包括多个地形块,终端能够采用第一数值对该多个地形块中属于该限制区域的地形块进行编号,采用第二数值对该限制区域以外的地形块进行编号。终端在确定该第一虚拟对象是否位于该限制区域时,确定该第一虚拟对象所处的地形块的编号,在该地形块的编号为第二数值的情况下,终端确定该第一虚拟对象位于该限制区域外部,终端基于该第一虚拟对象与该限制区域的中心位置之间的连线,在该区域组合图形中确定候选位置,该候选位置为该连线与第一区域图形的边界的交点。终端将该有向图标添加在该候选位置上,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形。
(二)、终端显示该区域指示图形。
在一种可能的实施方式中,终端缩放该区域指示图形,在该虚拟场景中显示缩放后的该区域指示图形。
其中,终端对该区域指示图形的缩放比例由该区域指示图形的面积和目标面积来决定,该目标面积也即是缩放后的区域指示图形的面积,该目标面积由技术人员根据实际情况进行设置,本申请实施例对此不做限定。
这种实施方式下,终端将该区域指示图形进行缩放之后再显示在虚拟场景中,缩放后的区域指示图形能够与虚拟场景更加适配,避免区域指示图形过大导致遮挡虚拟场景的情况,也能够避免区域指示图形较小用户无法看清楚的情况,以便通过该区域指示图形来指示第一虚拟对象与两个限制区域之间的相对位置关系。
举例来说,终端基于该区域指示图形的面积和目标面积之间的比值,对该区域指示图形进行缩放,得到缩放后的区域指示图形,缩放后的区域指示图形的面积为该目标面积。终端显示该缩放后的区域指示图形。
比如,参见图10,终端对该区域指示图形1001进行缩放,得到缩放后的区域指示图形1002,终端将该缩放后的区域指示图形1002显示在虚拟场景中。区域指示图形1002中最大圆10021的边界表示该限制区域的边界,小圆10022的边界表示该目标限制区域的边界,有向图标10023表示第一虚拟对象的位置和朝向。在一些实施例中,该缩放后的区域指示图形显示在虚拟场景的中央偏上的位置。参见图11,终端将缩放后的区域指示图形1101显示在虚拟场景1102中。
结合之前的各个步骤,该实施方式还可以做如下描述:
1、该区域指示图形在调整限制区域的时间点出现在虚拟场景中央偏上的位置。
2、该区域指示图形由三个部分构成,三个部分分别表示当前限制区域位置、下一限制区域(目标限制区域)的位置、第一虚拟对象当前位置及朝向。
3、区域指示图形由以上三个信息在虚拟地图内的中心坐标的差值生成,与第一虚拟对象当前的位置符合。当前限制区域、下一限制区域和第一虚拟对象当前的位置这三者间的位置关系和方向与虚拟地图中一致。
4、该区域指示图形中的三个坐标在屏幕上的位置关系与虚拟地图保持一致的基础上进行等比缩放。
5、区域指示图形能够通过图形化的方式来提示用户限制区域调整的方向,及第一虚拟对象需要移动的方向及距离。
6、在该区域指示图形出现时,区域指示图形中的有向图标指示第一虚拟对象的位置和朝向,该有向图标也即是一种动态图像,能够随着用户的操作实时反馈,帮助用户快速锁定方位。
在一种可能的实施方式中,终端旋转该区域指示图形,显示旋转后的该区域指示图形。
在这种实施方式下,终端对该区域指示图形旋转之后,再将旋转后的区域指示图形显示在虚拟场景中,终端对该区域指示图形进行旋转能够使得该区域是指图形更加符合用户的导航需求,提高了人机交互的效率。
下面通过两个例子对上述实施方式进行说明。
例1、终端基于该有向图标在该区域指示图形上的位置,旋转该区域指示图形,以使该有向图标位于该区域指示图形的底部,显示旋转后的该区域指示图形。旋转之后,该区域指示图形中三者的相对位置关系没有发生变化。例如,在虚拟场景中显示旋转后的该区域指示图形。
通过将该有向图标旋转至该区域指示图形的底部,符合常用导航的显示逻辑,便于用户确定第一虚拟对象与两个限制区域之间的距离和方向,人机交互的效率较高。
比如,参见图12,终端对该区域指示图形1201进行旋转,将该区域指示图形1201中的有向图标1202旋转至该区域指示图形1201的底部,得到旋转后的区域指示图形1203,终端将该旋转后的区域指示图形1203显示在虚拟场景中。
在一些实施例中,在得到旋转后的区域指示图形之后,终端还对旋转后的区域指示图形进行缩放,得到旋转和缩放后的区域指示图形,将该旋转和缩放后的区域指示图形显示在虚拟场景中。
比如,终端基于该区域指示图形的面积和目标面积之间的比值,对该旋转后的区域指示图形进行缩放,得到旋转和缩放后的区域指示图形,旋转和缩放后的区域指示图形的面积为该目标面积。终端在虚拟场景中显示该旋转和缩放后的区域指示图形。参见图13,终端对该旋转后的区域指示图形1301进行缩放,得到旋转和缩放后的区域指示图形1302,终端将该旋转和缩放后的区域指示图形1302显示在虚拟场景中。在一些实施例中,该旋转和缩放后的区域指示图形显示在虚拟场景的中央偏上的位置。参见图14,终端将旋转和缩放后的区域指示图形1402显示在虚拟场景1401中,在图14中,可以看出,无论第一虚拟对象的朝向如何发生改变,在该区域指示图形1402中,有向图标始终位于该区域指示图形1402的底部。
结合之前的各个步骤,该实施方式还可以做如下描述:
1、该区域指示图形在调整限制区域的时间点出现在虚拟场景中央偏上的位置。
2、该区域指示图形由三个部分构成,三个部分分别表示当前限制区域位置、下一限制区域(目标限制区域)的位置、第一虚拟对象当前位置及朝向。
3、区域指示图形由以上三个信息在虚拟地图内的中心坐标的差值生成,与第一虚拟对象当前的位置符合。当前限制区域、下一限制区域、第一虚拟对象当前的位置三者间的位置关系和方向与虚拟地图中一致。
4、区域指示图形能够通过图形化的方式来提示用户限制区域调整的方向,及第一虚拟对象需要移动的方向及距离。
5、在该区域指示图形出现时,区域指示图形中的有向图标指示第一虚拟对象的位置和朝向,该有向图标也即是一种动态图像,能够将随着用户的操作实时反馈,帮助用户快速锁定方位。
6、区域指示图形中的有向图标指示第一虚拟对象的位置和朝向,该有向图标始终处于区域指示图形外圈的垂直直径的下半部分。
无论在虚拟地图中,三者之间的位置关系如何,转换为区域指示图形时,始终保持外侧限制区域的中心作为区域指示图形中心,第一虚拟对象的位置绕外侧圆心旋转移动至外侧限制区域垂直方向直径的下半部分,并根据此时第一虚拟对象的有向图标与限制区域中心的位置关系重新修正下一限制区域在区域指示图形中的正确位置。
例2、终端基于该有向图标在该区域指示图形上的位置和所指的方向,旋转该区域指示图形,以使该有向图标的方向指向目标方向,显示旋转后的该区域指示图形。例如,在虚拟场景中显示旋转后的该区域指示图形。
在一些实施例中,该目标方向为正上方。
通过固定有向图标的指向,便于用户快速确定第一虚拟对象的朝向,人机交互的效率较高。
比如,参见图15,终端对该区域指示图形1501进行旋转,将该区域指示图形1501中的有向图标1502的朝向旋转至指向正上方,得到旋转后的区域指示图形1503,终端将该旋转后的区域指示图形1503显示在虚拟场景中。
在一些实施例中,在得到旋转后的区域指示图形之后,终端还对旋转后的区域指示图形进行缩放,得到旋转和缩放后的区域指示图形,将该旋转和缩放后的区域指示图形显示在虚拟场景中。
比如,终端基于该区域指示图形的面积和目标面积之间的比值,对该旋转后的区域指示图形进行缩放,得到旋转和缩放后的区域指示图形,旋转和缩放后的区域指示图形的面积为该目标面积。终端在虚拟场景中显示该旋转和缩放后的区域指示图形。参见图16,终端对该旋转后的区域指示图形1601进行缩放,得到旋转和缩放后的区域指示图形1602,终端将该旋转和缩放后的区域指示图形1602显示在虚拟场景中。在一些实施例中,该旋转和缩放后的区域指示图形显示在虚拟场景的中央偏上的位置。参见图17,终端将旋转和缩放后的区域指示图形1702显示在虚拟场景1701中,在图17中,可以看出,无论第一虚拟对象的朝向如何发生改变,在该区域指示图形1702中,有向图标的指向始终指向正上方。
结合之前的各个步骤,该实施方式还可以做如下描述:
1、该区域指示图形在调整限制区域的时间点出现在虚拟场景中央偏上的位置。
2、该区域指示图形由三个部分构成,三个部分分别表示当前限制区域位置、下一限制区域(目标限制区域)的位置、第一虚拟对象当前位置及朝向。
3、区域指示图形由以上三个信息在虚拟地图内的中心坐标的差值生成,与第一虚拟对象当前的位置符合。当前限制区域、下一限制区域、第一虚拟对象当前的位置三者间的位置关系和方向与虚拟地图中一致。
4、该区域指示图形中,有向图标始终指向正上方。以此作为固定参考系对当前限制区域及下一限制区域位置在区域指示图形中的位置进行修正。
5、在该区域指示图形出现时,区域指示图形中限制区域的位置将随着玩家的视角转动而旋转。
需要说明的是,在上述说明过程中,是以区域指示图形为正圆形为例进行说明的,在其他可能的实施方式中,该区域指示图形还可以为其他形状,比如为椭圆形,本申请实施例对此不做限定。参见图18,区域指示图形1801为椭圆形。
在一种可能的实施方式中,在该区域指示图形包括第一区域图形、第二区域图形以及有 向图标的情况下,终端以不同颜色显示该第一区域图形、该第二区域图形以及该有向图标。例如,在虚拟场景中以不同颜色显示该第一区域图形、该第二区域图形以及该有向图标。
在这种实施方式下,通过以不同颜色来显示第一区域图形、第二区域图形以及该有向图标,便于用户进行区分,人机交互的效率较高。
举例来说,终端在该虚拟场景中以蓝色来显示第一区域图形,以灰色来显示第二区域图形,以黄色来显示有向图标。
在一种可能的实施方式中,在显示该区域指示图形之后,或者,在显示该区域指示图形的同时,终端基于该区域指示图形显示倒计时图标,该倒计时图标指示由该限制区域更新为该目标限制区域的剩余时间。其中,每次发生区域更新有一定的时间间隔,该时间间隔由技术人员根据实际情况进行设置,比如,将该时间间隔设置为3分钟,也就表示每隔三分钟会更新虚拟场景中的限制区域,该倒计时图标也即是用于显示由该限制区域更新为该目标限制区域的剩余时间。
在这种实施方式下,终端能够通过显示倒计时图标的方式来提醒用户达到该区域更新时间的剩余时间,也即是提醒用户当前限制区域更新为该目标限制区域的剩余时间,便于用户及时控制该第一虚拟对象向该目标限制区域进行移动,人机交互的效率较高。
下面通过两个例子对上述实施方式进行说明。
例1、终端将该倒计时图标显示在该区域指示图形的下方。
比如,参见图19,终端将倒计时图标1901显示在区域指示图形1902的下方。
例2、在该区域指示图形包括有向图标的情况下,终端将该倒计时图标显示在该有向图标的下方,该有向图标指示该第一虚拟对象在该虚拟场景中的位置和朝向。
比如,参见图20,终端将倒计时图标2001显示在有向图标2002的下方。
在一种可能的实施方式中,在显示该区域指示图形之后,或者,在显示该区域指示图形的同时,终端还能够执行下述步骤:
在该第一虚拟对象位于该限制区域内部的情况下,终端在该区域指示图形中显示该第一虚拟对象与该目标限制区域之间的距离。
在这种实施方式下,终端为用户提供了该第一虚拟对象与该目标限制区域之间的距离,有助于让用户了解当前第一虚拟对象距离目标限制区域还有多远,以提醒用户控制第一虚拟对象向该目标限制区域进行移动,提高了人机交互的效率。
在该第一虚拟对象位于该限制区域外部的情况下,终端在该区域指示图形中显示该第一虚拟对象与该限制区域之间的距离和该第一虚拟对象与该目标限制区域之间的距离。
在这种实施方式下,终端为用户提供了该第一虚拟对象与该限制区域之间的距离和该第一虚拟对象与该目标限制区域之前距离,有助于让用户了解当前第一虚拟对象距限制区域或目标限制区域还有多远,以提醒用户控制第一虚拟对象向该限制区域或该目标限制区域进行移动,提高了人机交互的效率。
603、响应于该第一虚拟对象在该虚拟场景中的位置和朝向中的任一项发生变化,终端基于该第一虚拟对象在该虚拟场景中当前的位置和朝向,调整该区域指示图形。
在一种可能的实施方式中,响应于该第一虚拟对象在该虚拟场景中的位置和朝向中的任一项发生变化,终端基于该第一虚拟对象在该虚拟场景中当前的位置和朝向、该限制区域以及该目标限制区域,调整该区域指示图形。
其中,上述实施方式描述的技术方案,与上述步骤602中终端基于该虚拟场景中的该限制区域、目标限制区域以及该第一虚拟对象,在该虚拟场景中显示区域指示图形的方式属于同一发明构思,实现过程参见上述描述,在此不再赘述。
通过步骤603,终端能够在第一虚拟对象的位置或朝向发生变化时,及时调整区域指示图形,用户通过该实时调整的区域指示图形,就能够实时知晓该第一虚拟对象与两个限制区域之间的相对位置关系,人机交互的效率较高。
604、终端在目标时长后,取消显示该区域指示图形。
其中,目标时长由技术人员根据实际情况进行设置,比如设置为6秒、8秒或者10秒等,本申请实施例对此不做限定。
通过步骤604,终端能够在一段时间之后取消该区域指示图形的显示,从而为用户提供更大的空间来显示该虚拟场景。
在一些实施例中,该区域指示图形包括关闭控件,响应于对该关闭控件的点击操作,终端取消显示该区域指示图形。在这种实施方式下,用户能够根据需要来随时控制终端取消显示该区域指示图形,为用户提供了更高的自主性。
在一些实施例中,该虚拟场景中显示有该区域指示图形的调用控件,在终端取消该区域指示图形的显示之后,响应于对该调用控件的点击操作,终端重新显示该区域指示图形。
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。
需要说明的是,在上述步骤601-604中,是以执行主体为终端为例进行说明的,在其他可能的实施方式中,在云游戏场景下,上述步骤601-604中的数据处理部分由云游戏服务器来执行,终端起到接收操作和显示的作用,本申请实施例对此不做限定。
下面将结合图21和上述各个可选的实施方式,对本申请实施例提供的基于虚拟场景的图形显示方法进行说明,参见图21,该方法包括,在达到预设触发时间节点时,也即是响应于距离区域更新时间的时间差符合目标条件时,终端获取关键信息,关键信息包括当前限制区域的位置、该目标限制区域的位置以及第一虚拟对象的位置和朝向。终端判断该第一虚拟对象是否位于当前限制区域内,在该第一虚拟对象位于当前限制区域内时,基于当前限制区域的位置、该目标限制区域的位置以及第一虚拟对象的当前的位置和朝向,生成区域指示图形;在该第一虚拟对象位于当前限制区域外时,基于当前限制区域的位置、该目标限制区域的位置以及当前限制区域中与该第一虚拟对象最近的位置和第一虚拟对象的朝向,生成区域指示图形,也即是采用离第一虚拟对象最近的该限制区域的边缘代替第一虚拟对象的位置,生成区域指示图形。终端显示该区域指示图形,该区域指示图形实时同步第一虚拟对象的位置和朝向。终端在目标时长后,取消显示该区域指示图形。
通过本申请实施例提供的技术方案,终端能够根据当前的限制区域、将要更新的限制区域以及第一虚拟对象,在该虚拟场景中显示区域指示图形,该区域指示图形能够指示第一虚拟对象与两个限制区域之间的相对位置关系。用户通过查看该区域指示图形就能够知晓第一虚拟对象与两个限制区域之间的相对位置,无需查看虚拟场景的虚拟地图,人机交互的效率较高。
图22是本申请实施例提供的一种基于虚拟场景的图形显示装置的结构示意图,参见图22,装置包括:虚拟场景显示模块2201以及区域指示图形显示模块2202。
虚拟场景显示模块2201,用于显示虚拟场景,该虚拟场景包括限制区域,该虚拟场景显示有第一虚拟对象,其中,位于该限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变。
区域指示图形显示模块2202,用于基于该限制区域、目标限制区域以及该第一虚拟对象,在该虚拟场景中显示区域指示图形,该区域指示图形指示该第一虚拟对象与该限制区域的相对位置关系和该第一虚拟对象与该目标限制区域的相对位置关系,该目标限制区域为下一次发生区域更新所确定的限制区域。
在一种可能的实施方式中,该区域指示图形显示模块2202,用于基于该限制区域以及该目标限制区域,生成区域组合图形,该区域组合图形指示该限制区域和该目标限制区域之间的相对位置关系;基于该区域组合图形和该第一虚拟对象,显示该区域指示图形。
在一种可能的实施方式中,该区域指示图形显示模块2202,用于基于该限制区域和该目标限制区域分别在该虚拟场景中的位置,生成该区域组合图形。
在一种可能的实施方式中,该区域指示图形显示模块2202,用于基于该限制区域在该虚 拟场景的虚拟地图中的中心位置以及边界位置,以及该目标限制区域在该虚拟地图中的中心位置以及边界位置,生成该区域组合图形。
在一种可能的实施方式中,该区域指示图形显示模块2202,用于基于该第一虚拟对象在该虚拟场景中的位置和朝向,在该区域组合图形上添加该第一虚拟对象的有向图标,得到该区域指示图形;显示该区域指示图形。
在一种可能的实施方式中,该区域指示图形显示模块2202,用于执行下述任一项:
在该第一虚拟对象位于该限制区域内部的情况下,基于该第一虚拟对象与该限制区域的中心位置之间的距离和方向,在该区域组合图形内部添加该有向图标,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形;
在该第一虚拟对象位于该限制区域外部的情况下,基于该第一虚拟对象与该限制区域的中心位置之间的连线,确定该区域组合图形中该限制区域的边界上与该第一虚拟对象距离最近的候选位置,将该有向图标添加在该候选位置,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形。
在一种可能的实施方式中,该区域指示图形显示模块2202,用于旋转该区域指示图形,显示旋转后的该区域指示图形。
在一种可能的实施方式中,该区域指示图形包括有向图标,该有向图标指示该第一虚拟对象在该虚拟场景中的位置和朝向,该区域指示图形显示模块2202,用于执行下述任一项:
基于该有向图标在该区域指示图形上的位置,旋转该区域指示图形,以使该有向图标位于该区域指示图形的底部,显示旋转后的该区域指示图形。
基于该有向图标在该区域指示图形上的位置和所指的方向,旋转该区域指示图形,以使该有向图标的方向指向目标方向,显示旋转后的该区域指示图形。
在一种可能的实施方式中,该区域指示图形包括区域组合图形和有向图标,该区域组合图形指示该限制区域和该目标限制区域之间的相对位置关系,该有向图标指示该第一虚拟对象在该虚拟场景中的位置和朝向,该区域组合图形包括该限制区域对应的第一区域图形和该目标限制区域对应的第二区域图形,该区域指示图形显示模块2202,用于以不同颜色显示该第一区域图形、该第二区域图形以及该有向图标。
在一种可能的实施方式中,该区域指示图形显示模块2202,用于基于该限制区域在该虚拟场景中的位置、该限制区域的中心位置与该第一虚拟对象之间的距离以及该目标限制区域在该虚拟场景中的位置,生成该区域组合图形。
在一种可能的实施方式中,该装置还包括:
调整模块,用于响应于该第一虚拟对象在该虚拟场景中的位置和朝向中的任一项发生变化,基于该第一虚拟对象在该虚拟场景中当前的位置和朝向,调整该区域指示图形。
在一种可能的实施方式中,该装置还包括:
倒计时图标显示模块,用于基于该区域指示图形显示倒计时图标,该倒计时图标指示由该限制区域更新为该目标限制区域的剩余时间。
在一种可能的实施方式中,该倒计时图标显示模块,用于执行下述任一项:
将该倒计时图标显示在该区域指示图形的下方。
在该区域指示图形包括有向图标的情况下,将该倒计时图标显示在该有向图标的下方,该有向图标指示该第一虚拟对象在该虚拟场景中的位置和朝向。
在一种可能的实施方式中,该目标限制区域位于该限制区域内部,该目标限制区域的面积小于该限制区域,或者,该目标限制区域与该限制区域具有重合部分。
在一种可能的实施方式中,该装置还包括距离显示模块,用于执行下述任一项:
在该第一虚拟对象位于该限制区域内部的情况下,在该区域指示图形中显示该第一虚拟对象与该目标限制区域之间的距离。
在该第一虚拟对象位于该限制区域外部的情况下,在该区域指示图形中显示该第一虚拟对象与该限制区域之间的距离和第一虚拟对象与该目标限制区域之间的距离。
在一种可能的实施方式中,该区域指示图形显示模块2202,还用于在目标时长后,取消显示该区域指示图形。
需要说明的是:上述实施例提供的基于虚拟场景的图形显示装置在显示图形时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将计算机设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的基于虚拟场景的图形显示装置与基于虚拟场景的图形显示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
通过本申请实施例提供的技术方案,能够根据当前的限制区域、将要更新的限制区域以及第一虚拟对象,在该虚拟场景中显示区域指示图形,该区域指示图形能够指示第一虚拟对象与两个限制区域之间的相对位置关系。用户通过查看该区域指示图形就能够知晓第一虚拟对象与两个限制区域之间的相对位置,无需查看虚拟场景的虚拟地图,人机交互的效率较高。
本申请实施例提供了一种计算机设备,该计算机设备包括一个或多个处理器和一个或多个存储器,该一个或多个存储器中存储有至少一条计算机程序,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
显示虚拟场景,该虚拟场景包括限制区域,该虚拟场景显示有第一虚拟对象,其中,位于该限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变;
基于该限制区域、目标限制区域以及该第一虚拟对象,显示区域指示图形,该区域指示图形指示该第一虚拟对象与该限制区域的相对位置关系和该第一虚拟对象与该目标限制区域的相对位置关系,该目标限制区域为下一次发生区域更新所确定的限制区域。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
基于该限制区域以及该目标限制区域,生成区域组合图形,该区域组合图形指示该限制区域和该目标限制区域之间的相对位置关系;
基于该区域组合图形和该第一虚拟对象,显示该区域指示图形。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
基于该限制区域和该目标限制区域分别在该虚拟场景中的位置,生成该区域组合图形。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
基于该限制区域在该虚拟场景的虚拟地图中的中心位置以及边界位置,以及该目标限制区域在该虚拟地图中的中心位置以及边界位置,生成该区域组合图形。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
基于该第一虚拟对象在该虚拟场景中的位置和朝向,在该区域组合图形上添加该第一虚拟对象的有向图标,得到该区域指示图形;
显示该区域指示图形。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作中的任一项:
在该第一虚拟对象位于该限制区域内部的情况下,基于该第一虚拟对象与该限制区域的中心位置之间的距离和方向,在该区域组合图形内部添加该有向图标,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形;
在该第一虚拟对象位于该限制区域外部的情况下,基于该第一虚拟对象与该限制区域的中心位置之间的连线,确定该区域组合图形上该限制区域的边界上与该第一虚拟对象距离最近的候选位置,将该有向图标添加在该候选位置,将该有向图标的指向调整为该第一虚拟对象的朝向,得到该区域指示图形。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
旋转该区域指示图形,显示旋转后的该区域指示图形。
在一种可能的实施方式中,该区域指示图形包括有向图标,该有向图标指示该第一虚拟对象在该虚拟场景中的位置和朝向,该计算机程序由该一个或多个处理器加载并执行以实现如下操作中的任一项:
基于该有向图标在该区域指示图形上的位置,旋转该区域指示图形,以使该有向图标位于该区域指示图形的底部,显示旋转后的该区域指示图形;
基于该有向图标在该区域指示图形上的位置和所指的方向,旋转该区域指示图形,以使该有向图标的方向指向目标方向,显示旋转后的该区域指示图形。
在一种可能的实施方式中,该区域指示图形包括区域组合图形和有向图标,该区域组合图形指示该限制区域和该目标限制区域之间的相对位置关系,该有向图标指示该第一虚拟对象在该虚拟场景中的位置和朝向,该区域组合图形包括该限制区域对应的第一区域图形和该目标限制区域对应的第二区域图形,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
以不同颜色显示该第一区域图形、该第二区域图形以及该有向图标。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
基于该限制区域在该虚拟场景中的位置、该限制区域的中心位置与该第一虚拟对象之间的距离以及该目标限制区域在该虚拟场景中的位置,生成该区域组合图形。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
响应于该第一虚拟对象在该虚拟场景中的位置和朝向中的任一项发生变化,基于该第一虚拟对象在该虚拟场景中当前的位置和朝向,调整该区域指示图形。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
基于该区域指示图形显示倒计时图标,该倒计时图标指示由该限制区域更新为该目标限制区域的剩余时间。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作中的任一项:
将该倒计时图标显示在该区域指示图形的下方;
在该区域指示图形包括有向图标的情况下,将该倒计时图标显示在该有向图标的下方,该有向图标指示该第一虚拟对象在该虚拟场景中的位置和朝向。
在一种可能的实施方式中,该目标限制区域位于该限制区域内部,该目标限制区域的面积小于该限制区域,或者,该目标限制区域与该限制区域具有重合部分。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作中的任一项:
在该第一虚拟对象位于该限制区域内部的情况下,在该区域指示图形中显示该第一虚拟对象与该目标限制区域之间的距离;
在该第一虚拟对象位于该限制区域外部的情况下,在该区域指示图形中显示该第一虚拟对象与该限制区域之间的距离和该第一虚拟对象与该目标限制区域之间的距离。
在一种可能的实施方式中,该计算机程序由该一个或多个处理器加载并执行以实现如下操作:
在目标时长后,取消显示该区域指示图形。
在示例性实施例中,该计算机设备可以实现为终端,下面对终端的结构进行介绍:
图23是本申请实施例提供的一种终端的结构示意图。该终端2300可以是:智能手机、平板电脑、笔记本电脑或台式电脑。终端2300还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。
通常,终端2300包括有:一个或多个处理器2301和一个或多个存储器2302。
处理器2301可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器2301可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器2301也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器2301可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器2301还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器2302可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器2302还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器2302中的非暂态的计算机可读存储介质用于存储至少一个计算机程序,该至少一个计算机程序用于被处理器2301所执行以实现本申请中方法实施例提供的基于虚拟场景的图形显示方法。
在一些实施例中,终端2300还可选包括有:外围设备接口2303和至少一个外围设备。处理器2301、存储器2302和外围设备接口2303之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口2303相连。具体地,外围设备包括:射频电路2304或显示屏2305中的至少一种。
外围设备接口2303可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器2301和存储器2302。在一些实施例中,处理器2301、存储器2302和外围设备接口2303被集成在同一芯片或电路板上;在一些其他实施例中,处理器2301、存储器2302和外围设备接口2303中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。
射频电路2304用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路2304通过电磁信号与通信网络以及其他通信设备进行通信。射频电路2304将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路2304包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。
显示屏2305用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、有向图标、视频及其它们的任意组合。当显示屏2305是触摸显示屏时,显示屏2305还具有采集在显示屏2305的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器2301进行处理。此时,显示屏2305还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。
在一些实施例中,终端2300还包括有一个或多个传感器2306。该一个或多个传感器2306包括但不限于:加速度传感器2307、陀螺仪传感器2308以及压力传感器2309。
加速度传感器2307可以检测以终端2300建立的坐标系的三个坐标轴上的加速度大小。
陀螺仪传感器2308可以终端2300的机体方向及转动角度,陀螺仪传感器2308可以与加速度传感器2307协同采集用户对终端2300的3D动作。
压力传感器2309可以设置在终端2300的侧边框和/或显示屏2305的下层。当压力传感器2309设置在终端2300的侧边框时,可以检测用户对终端2300的握持信号,由处理器2301根据压力传感器2309采集的握持信号进行左右手识别或快捷操作。当压力传感器2309设置在显示屏2305的下层时,由处理器2301根据用户对显示屏2305的压力操作,实现对UI界 面上的可操作性控件进行控制。
本领域技术人员可以理解,图23中示出的结构并不构成对终端2300的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括计算机程序的存储器,上述计算机程序可由处理器执行以完成上述实施例中的基于虚拟场景的图形显示方法。例如,该计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)、磁带、软盘和光数据存储设备等。
在示例性实施例中,还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括程序代码,该程序代码存储在计算机可读存储介质中,计算机设备的处理器从计算机可读存储介质读取该程序代码,处理器执行该程序代码,使得该计算机设备执行上述基于虚拟场景的图形显示方法。
在一些实施例中,本申请实施例所涉及的计算机程序可被部署在一个计算机设备上执行,或者在位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行,分布在多个地点且通过通信网络互连的多个计算机设备可以组成区块链系统。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
上述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种基于虚拟场景的图形显示方法,所述方法包括:
    计算机设备显示虚拟场景,所述虚拟场景包括限制区域,所述虚拟场景显示有第一虚拟对象,其中,位于所述限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变;
    所述计算机设备基于所述限制区域、目标限制区域以及所述第一虚拟对象,显示区域指示图形,所述区域指示图形指示所述第一虚拟对象与所述限制区域的相对位置关系和所述第一虚拟对象与所述目标限制区域的相对位置关系,所述目标限制区域为下一次发生区域更新所确定的限制区域。
  2. 根据权利要求1所述的方法,其中,所述计算机设备基于所述限制区域、目标限制区域以及所述第一虚拟对象,显示区域指示图形包括:
    所述计算机设备基于所述限制区域以及所述目标限制区域,生成区域组合图形,所述区域组合图形指示所述限制区域和所述目标限制区域之间的相对位置关系;
    所述计算机设备基于所述区域组合图形和所述第一虚拟对象,显示所述区域指示图形。
  3. 根据权利要求2所述的方法,其中,所述计算机设备基于所述限制区域以及所述目标限制区域,生成区域组合图形包括:
    所述计算机设备基于所述限制区域和所述目标限制区域分别在所述虚拟场景中的位置,生成所述区域组合图形。
  4. 根据权利要求3所述的方法,其中,所述计算机设备基于所述限制区域和所述目标限制区域分别在所述虚拟场景中的位置,生成所述区域组合图形包括:
    所述计算机设备基于所述限制区域在所述虚拟场景的虚拟地图中的中心位置以及边界位置,以及所述目标限制区域在所述虚拟地图中的中心位置以及边界位置,生成所述区域组合图形。
  5. 根据权利要求2所述的方法,其中,所述计算机设备基于所述区域组合图形和所述第一虚拟对象,显示所述区域指示图形包括:
    所述计算机设备基于所述第一虚拟对象在所述虚拟场景中的位置和朝向,在所述区域组合图形上添加所述第一虚拟对象的有向图标,得到所述区域指示图形;
    所述计算机设备显示所述区域指示图形。
  6. 根据权利要求5所述的方法,其中,所述计算机设备基于所述第一虚拟对象在所述虚拟场景中的位置和朝向,在所述区域组合图形上添加所述第一虚拟对象的有向图标,得到所述区域指示图形包括下述任一项:
    所述计算机设备在所述第一虚拟对象位于所述限制区域内部的情况下,基于所述第一虚拟对象与所述限制区域的中心位置之间的距离和方向,在所述区域组合图形内部添加所述有向图标,将所述有向图标的指向调整为所述第一虚拟对象的朝向,得到所述区域指示图形;
    所述计算机设备在所述第一虚拟对象位于所述限制区域外部的情况下,基于所述第一虚拟对象与所述限制区域的中心位置之间的连线,确定所述区域组合图形上所述限制区域的边界上与所述第一虚拟对象距离最近的候选位置,将所述有向图标添加在所述候选位置,将所述有向图标的指向调整为所述第一虚拟对象的朝向,得到所述区域指示图形。
  7. 根据权利要求1所述的方法,其中,所述计算机设备显示所述区域指示图形包括:
    所述计算机设备旋转所述区域指示图形,显示旋转后的所述区域指示图形。
  8. 根据权利要求7所述的方法,其中,所述区域指示图形包括有向图标,所述有向图标指示所述第一虚拟对象在所述虚拟场景中的位置和朝向,所述计算机设备旋转所述区域指示图形,显示旋转后的所述区域指示图形包括下述任一项:
    所述计算机设备基于所述有向图标在所述区域指示图形上的位置,旋转所述区域指示图形,以使所述有向图标位于所述区域指示图形的底部,显示旋转后的所述区域指示图形;
    所述计算机设备基于所述有向图标在所述区域指示图形上的位置和所指的方向,旋转所述区域指示图形,以使所述有向图标的方向指向目标方向,显示旋转后的所述区域指示图形。
  9. 根据权利要求1所述的方法,其中,所述区域指示图形包括区域组合图形和有向图标,所述区域组合图形指示所述限制区域和所述目标限制区域之间的相对位置关系,所述有向图标指示所述第一虚拟对象在所述虚拟场景中的位置和朝向,所述区域组合图形包括所述限制区域对应的第一区域图形和所述目标限制区域对应的第二区域图形,所述计算机设备显示所述区域指示图形包括:
    所述计算机设备以不同颜色显示所述第一区域图形、所述第二区域图形以及所述有向图标。
  10. 根据权利要求2所述的方法,其中,所述计算机设备基于所述限制区域以及所述目标限制区域,生成区域组合图形包括:
    所述计算机设备基于所述限制区域在所述虚拟场景中的位置、所述限制区域的中心位置与所述第一虚拟对象之间的距离以及所述目标限制区域在所述虚拟场景中的位置,生成所述区域组合图形。
  11. 根据权利要求1-10任一项所述的方法,其中,所述计算机设备显示所述区域指示图形之后,所述方法还包括:
    所述计算机设备响应于所述第一虚拟对象在所述虚拟场景中的位置和朝向中的任一项发生变化,基于所述第一虚拟对象在所述虚拟场景中当前的位置和朝向,调整所述区域指示图形。
  12. 根据权利要求1-10任一项所述的方法,其中,所述方法还包括:
    所述计算机设备基于所述区域指示图形显示倒计时图标,所述倒计时图标指示由所述限制区域更新为所述目标限制区域的剩余时间。
  13. 根据权利要求12所述的方法,其中,所述计算机设备基于所述区域指示图形显示倒计时图标包括下述任一项:
    所述计算机设备将所述倒计时图标显示在所述区域指示图形的下方;
    所述计算机设备在所述区域指示图形包括有向图标的情况下,将所述倒计时图标显示在所述有向图标的下方,所述有向图标指示所述第一虚拟对象在所述虚拟场景中的位置和朝向。
  14. 根据权利要求1-10任一项所述的方法,其中,所述目标限制区域位于所述限制区域内部,所述目标限制区域的面积小于所述限制区域,或者,所述目标限制区域与所述限制区域具有重合部分。
  15. 根据权利要求1-10任一项所述的方法,其中,所述方法还包括下述任一项:
    所述计算机设备在所述第一虚拟对象位于所述限制区域内部的情况下,在所述区域指示 图形中显示所述第一虚拟对象与所述目标限制区域之间的距离;
    所述计算机设备在所述第一虚拟对象位于所述限制区域外部的情况下,在所述区域指示图形中显示所述第一虚拟对象与所述限制区域之间的距离和所述第一虚拟对象与所述目标限制区域之间的距离。
  16. 根据权利要求1-10任一项所述的方法,其中,所述计算机设备显示所述区域指示图形之后,所述方法还包括:
    所述计算机设备在目标时长后,取消显示所述区域指示图形。
  17. 一种基于虚拟场景的图形显示装置,所述装置包括:
    虚拟场景显示模块,用于显示虚拟场景,所述虚拟场景包括限制区域,所述虚拟场景显示有第一虚拟对象,其中,位于所述限制区域中的虚拟对象在未接收到互动行为的情况下属性值不变;
    区域指示图形显示模块,用于基于所述限制区域、目标限制区域以及所述第一虚拟对象,显示区域指示图形,所述区域指示图形指示所述第一虚拟对象与所述限制区域的相对位置关系和所述第一虚拟对象与所述目标限制区域的相对位置关系,所述目标限制区域为下一次发生区域更新所确定的限制区域。
  18. 一种计算机设备,所述计算机设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条计算机程序,所述计算机程序由所述一个或多个处理器加载并执行以实现如权利要求1至权利要求16任一项所述的基于虚拟场景的图形显示方法。
  19. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条计算机程序,所述计算机程序由处理器加载并执行以实现如权利要求1至权利要求16任一项所述的基于虚拟场景的图形显示方法。
  20. 一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现权利要求1至权利要求16任一项所述的基于虚拟场景的图形显示方法。
PCT/CN2022/124984 2021-10-29 2022-10-12 基于虚拟场景的图形显示方法、装置、设备以及介质 WO2023071808A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020237033640A KR20230150874A (ko) 2021-10-29 2022-10-12 가상 시나리오에 기반한 그래픽 디스플레이 방법, 장치, 기기 및 매체
US18/350,556 US20230351717A1 (en) 2021-10-29 2023-07-11 Graphic display method and apparatus based on virtual scene, device and medium

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202111280250 2021-10-29
CN202111280250.1 2021-10-29
CN202111658265.7 2021-12-31
CN202111658265.7A CN114042315B (zh) 2021-10-29 2021-12-31 基于虚拟场景的图形显示方法、装置、设备以及介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/350,556 Continuation US20230351717A1 (en) 2021-10-29 2023-07-11 Graphic display method and apparatus based on virtual scene, device and medium

Publications (1)

Publication Number Publication Date
WO2023071808A1 true WO2023071808A1 (zh) 2023-05-04

Family

ID=80213687

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124984 WO2023071808A1 (zh) 2021-10-29 2022-10-12 基于虚拟场景的图形显示方法、装置、设备以及介质

Country Status (4)

Country Link
US (1) US20230351717A1 (zh)
KR (1) KR20230150874A (zh)
CN (1) CN114042315B (zh)
WO (1) WO2023071808A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114042315B (zh) * 2021-10-29 2023-06-16 腾讯科技(深圳)有限公司 基于虚拟场景的图形显示方法、装置、设备以及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108619721A (zh) * 2018-04-27 2018-10-09 腾讯科技(深圳)有限公司 虚拟场景中的距离信息显示方法、装置及计算机设备
CN110448905A (zh) * 2019-08-16 2019-11-15 腾讯科技(深圳)有限公司 虚拟环境中的虚拟对象控制方法、装置、设备及存储介质
US20210146258A1 (en) * 2019-03-19 2021-05-20 modl.ai ApS Experience based game development and methods for use therewith
CN112870701A (zh) * 2021-03-16 2021-06-01 网易(杭州)网络有限公司 虚拟角色的控制方法和装置
CN113101657A (zh) * 2021-05-14 2021-07-13 网易(杭州)网络有限公司 游戏界面元素的控制方法、装置、计算机设备和存储介质
CN113262475A (zh) * 2021-06-07 2021-08-17 网易(杭州)网络有限公司 游戏中的虚拟道具使用方法、装置、设备及存储介质
CN114042315A (zh) * 2021-10-29 2022-02-15 腾讯科技(深圳)有限公司 基于虚拟场景的图形显示方法、装置、设备以及介质

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004012896A1 (de) * 2004-03-16 2005-10-06 Siemens Ag Verfahren zur Darstellung von Grafikobjekten und Kommunikationsgerät
US20120157210A1 (en) * 2010-12-15 2012-06-21 At&T Intellectual Property I Lp Geogame for mobile device
CN107992281A (zh) * 2017-10-27 2018-05-04 网易(杭州)网络有限公司 补偿声音信息的视觉显示方法及装置、存储介质、设备
CN108710525B (zh) * 2018-05-18 2022-02-18 腾讯科技(深圳)有限公司 虚拟场景中的地图展示方法、装置、设备及存储介质
CN109675308A (zh) * 2019-01-10 2019-04-26 网易(杭州)网络有限公司 游戏中的显示控制方法、装置、存储介质、处理器及终端
CN110711382B (zh) * 2019-10-21 2020-12-01 腾讯科技(深圳)有限公司 虚拟操作对象的控制方法、装置、存储介质及电子装置
CN111414080B (zh) * 2020-03-19 2022-03-08 腾讯科技(深圳)有限公司 虚拟对象的位置显示方法、装置、设备及存储介质
CN111672125B (zh) * 2020-06-10 2022-03-01 腾讯科技(深圳)有限公司 一种虚拟对象交互的方法以及相关装置
CN112121422B (zh) * 2020-09-30 2023-01-10 腾讯科技(深圳)有限公司 界面显示方法、装置、设备及存储介质
CN112121430B (zh) * 2020-09-30 2023-01-06 腾讯科技(深圳)有限公司 虚拟场景中的信息展示方法、装置、设备及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108619721A (zh) * 2018-04-27 2018-10-09 腾讯科技(深圳)有限公司 虚拟场景中的距离信息显示方法、装置及计算机设备
US20210146258A1 (en) * 2019-03-19 2021-05-20 modl.ai ApS Experience based game development and methods for use therewith
CN110448905A (zh) * 2019-08-16 2019-11-15 腾讯科技(深圳)有限公司 虚拟环境中的虚拟对象控制方法、装置、设备及存储介质
CN112870701A (zh) * 2021-03-16 2021-06-01 网易(杭州)网络有限公司 虚拟角色的控制方法和装置
CN113101657A (zh) * 2021-05-14 2021-07-13 网易(杭州)网络有限公司 游戏界面元素的控制方法、装置、计算机设备和存储介质
CN113262475A (zh) * 2021-06-07 2021-08-17 网易(杭州)网络有限公司 游戏中的虚拟道具使用方法、装置、设备及存储介质
CN114042315A (zh) * 2021-10-29 2022-02-15 腾讯科技(深圳)有限公司 基于虚拟场景的图形显示方法、装置、设备以及介质

Also Published As

Publication number Publication date
CN114042315A (zh) 2022-02-15
CN114042315B (zh) 2023-06-16
KR20230150874A (ko) 2023-10-31
US20230351717A1 (en) 2023-11-02

Similar Documents

Publication Publication Date Title
US20220032191A1 (en) Virtual object control method and apparatus, device, and medium
JP7383135B2 (ja) 仮想対象の制御方法及びその装置、機器、並びにコンピュータープログラム
WO2021184806A1 (zh) 互动道具显示方法、装置、终端及存储介质
CN111414080B (zh) 虚拟对象的位置显示方法、装置、设备及存储介质
CN111013142B (zh) 互动效果显示方法、装置、计算机设备及存储介质
US20230033874A1 (en) Virtual object control method and apparatus, terminal, and storage medium
CN109529356B (zh) 对战结果确定方法、装置及存储介质
US20220032183A1 (en) Virtual object control method and apparatus, terminal, and storage medium
US11847734B2 (en) Method and apparatus for displaying virtual environment picture, device, and storage medium
CN111399639B (zh) 虚拟环境中运动状态的控制方法、装置、设备及可读介质
US20230241501A1 (en) Display method and apparatus for virtual prop, electronic device and storage medium
CN111338534A (zh) 虚拟对象的对局方法、装置、设备及介质
CN111596838B (zh) 业务处理方法、装置、计算机设备及计算机可读存储介质
WO2023020254A1 (zh) 用户界面的显示方法、装置、设备及存储介质
US20230321541A1 (en) Displaying visual field picture based on interaction zone on a virtual map
JP2024509064A (ja) 位置マークの表示方法及び装置、機器並びにコンピュータプログラム
JP2022552752A (ja) 仮想環境の画面表示方法及び装置、並びにコンピュータ装置及びプログラム
JP2023164787A (ja) 仮想環境の画面表示方法、装置、機器及びコンピュータプログラム
WO2023071808A1 (zh) 基于虚拟场景的图形显示方法、装置、设备以及介质
WO2023010690A1 (zh) 虚拟对象释放技能的方法、装置、设备、介质及程序产品
CN113680060B (zh) 虚拟画面显示方法、装置、设备、介质及计算机程序产品
US20230271087A1 (en) Method and apparatus for controlling virtual character, device, and storage medium
JPWO2021143259A5 (zh)
CN112221135A (zh) 画面显示方法、装置、设备以及存储介质
EP3984608A1 (en) Method and apparatus for controlling virtual object, and terminal and storage medium

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: 22885687

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20237033640

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 11202307380V

Country of ref document: SG