WO2020029817A1 - 虚拟环境中的配件选择方法、装置、设备及可读存储介质 - Google Patents

虚拟环境中的配件选择方法、装置、设备及可读存储介质 Download PDF

Info

Publication number
WO2020029817A1
WO2020029817A1 PCT/CN2019/098017 CN2019098017W WO2020029817A1 WO 2020029817 A1 WO2020029817 A1 WO 2020029817A1 CN 2019098017 W CN2019098017 W CN 2019098017W WO 2020029817 A1 WO2020029817 A1 WO 2020029817A1
Authority
WO
WIPO (PCT)
Prior art keywords
accessory
virtual
virtual environment
firearm
display
Prior art date
Application number
PCT/CN2019/098017
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 JP2021510520A priority Critical patent/JP7155405B2/ja
Publication of WO2020029817A1 publication Critical patent/WO2020029817A1/zh
Priority to US17/017,538 priority patent/US11517819B2/en
Priority to JP2022160366A priority patent/JP7471369B2/ja
Priority to US17/978,911 priority patent/US20230055575A1/en

Links

Images

Classifications

    • 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/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • 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
    • 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/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • 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
    • 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
    • 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
    • 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
    • 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/0482Interaction with lists of selectable items, e.g. menus
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • 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
    • 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/308Details of the user interface
    • 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
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]

Definitions

  • Embodiments of the present application relate to the field of virtual environments, and in particular, to a method, an apparatus, a device, and a readable storage medium for selecting accessories in a virtual environment.
  • virtual reality applications such as: virtual reality applications, Third-Personal Shooting Game (TPS), First-person shooting game (FPS), multiplayer online tactical game (FPS) In Multiplayer Online Battle Arena Games (MOBA)
  • TPS Third-Personal Shooting Game
  • FPS First-person shooting game
  • FPS multiplayer online tactical game
  • MOBA Multiplayer Online Battle Arena Games
  • virtual guns include slots, and each slot is used to assemble different gun accessories.
  • the M416 automatic rifle is usually provided with a muzzle slot, a grip slot, a magazine slot, and a buttstock slot.
  • the sight slot where the sight slot can be equipped with any one of a red dot sight, a holographic sight, a 2 times sight, a 4 times sight, and an 8 times sight, and the sight slot can be It is divided into the main slot and the auxiliary slot.
  • Players can observe the virtual environment according to the scopes equipped on the main slot of the virtual firearms. You can also switch the scope on the auxiliary slot to the main slot through the switch control on the user interface. Position to observe the virtual environment through the switched sights.
  • the embodiments of the present application provide a method, an apparatus, a device, and a readable storage medium for selecting accessories in a virtual environment, which can solve the problem of low human-computer interaction efficiency when a user changes a sight.
  • the technical solution is as follows:
  • a method for selecting accessories in a virtual environment is provided, which is applied to a terminal.
  • the method includes:
  • a first virtual environment interface is displayed.
  • the first virtual environment interface includes a screen where a virtual object observes the virtual environment, and an accessory switching control is superimposed and displayed on the screen.
  • the virtual object is held in the virtual environment.
  • a candidate accessory area is displayed on a peripheral partial area of the accessory switching control.
  • the candidate accessory area displays n gun accessories that belong to the same accessory type, and the gun accessories are the virtual object already N is a positive integer that is obtained for assembling the accessory to the slot corresponding to the accessory type on the virtual firearm;
  • the second virtual environment interface including a screen where the virtual object observes the virtual environment, the virtual object holding the virtual firearm, the virtual firearm
  • the target slot is equipped with the target firearm accessory.
  • an accessory selection device in a virtual environment is provided and applied to a terminal.
  • the device includes:
  • a display module configured to display a first virtual environment interface, where the first virtual environment interface includes a screen where a virtual object observes the virtual environment, and an accessory switching control is superimposed and displayed on the screen, and the virtual object is displayed in the virtual environment. Holding virtual firearms in a virtual environment;
  • a receiving module configured to receive a trigger operation on the accessory switching control
  • the display module is further configured to display a candidate accessory area on a peripheral partial area of the accessory switching control according to the trigger operation, where n candidate firearm accessories belonging to a same accessory type are displayed in the candidate accessory area.
  • Firearm accessories are accessories that have been obtained by the virtual object for assembling to the slot corresponding to the accessory type on the virtual firearm, n is a positive integer;
  • the receiving module is further used for selecting operations on target firearm accessories among the n firearm accessories;
  • the display module is further configured to display a second virtual environment interface according to the selection operation.
  • the second virtual environment interface includes a screen where the virtual object observes the virtual environment, and the virtual object holds the virtual environment.
  • a virtual firearm, the target slot of the virtual firearm is equipped with the target firearm accessory.
  • a terminal in another aspect, characterized in that the terminal includes a processor and a memory, and the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, all The at least one piece of program, the code set or the instruction set is loaded and executed by the processor to implement the accessory selection method in the virtual environment as described in the embodiment of the present application.
  • a computer-readable storage medium stores at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, or the code.
  • the set or instruction set is loaded and executed by the processor to implement the accessory selection method in the virtual environment as described in the embodiment of the present application.
  • a computer program product is provided, and when the computer program product runs on a computer, the computer is caused to execute a method for selecting accessories in a virtual environment as described in the embodiment of the present application.
  • a candidate accessory area is displayed on the peripheral side of the accessory display control, and the candidate accessory area is displayed to belong to the same accessory type.
  • users can choose any one of the n firearm accessories to assemble to the target slot, without having to open the backpack to select the selected accessories.
  • the operation steps in the entire switching process are simple, and the user can Human-computer interaction is more efficient.
  • FIG. 1 is a structural block diagram of an electronic device according to an exemplary embodiment of the present application.
  • FIG. 2 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application.
  • FIG. 3 is a schematic diagram of a terminal interface in related technology provided by an exemplary embodiment of the present application.
  • FIG. 4 is a schematic diagram of a terminal interface in a related art provided by another exemplary embodiment of the present application.
  • FIG. 5 is a flowchart of a method for selecting accessories in a virtual environment provided by an exemplary embodiment of the present application
  • FIG. 6 is a schematic diagram of a terminal interface provided by an exemplary embodiment of the present application.
  • FIG. 7 is a schematic interface diagram of a terminal provided by another exemplary embodiment of the present application.
  • FIG. 8 is a schematic interface diagram of a terminal provided by another exemplary embodiment of the present application.
  • FIG. 9 is a schematic interface diagram of a terminal provided by another exemplary embodiment of the present application.
  • FIG. 10 is a flowchart of a method for selecting accessories in a virtual environment according to another exemplary embodiment of the present application.
  • FIG. 11 is a schematic interface diagram of a terminal provided by another exemplary embodiment of the present application.
  • FIG. 12 is a schematic interface diagram of a terminal provided by another exemplary embodiment of the present application.
  • FIG. 13 is a flowchart of a method for selecting accessories in a virtual environment according to another exemplary embodiment of the present application.
  • FIG. 14 is a flowchart of a method for selecting accessories in a virtual environment according to another exemplary embodiment of the present application.
  • 15 is a flowchart of a method for selecting accessories in a virtual environment according to another exemplary embodiment of the present application.
  • 16 is a structural block diagram of an accessory selection device in a virtual environment provided by an exemplary embodiment of the present application.
  • FIG. 17 is a structural block diagram of an accessory selection device in a virtual environment provided by another exemplary embodiment of the present application.
  • FIG. 18 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • Virtual environment refers to the virtual environment displayed (or provided) by the application when it is run on the terminal.
  • the virtual environment can be a real-world simulation environment, a semi-simulation semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment.
  • the virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment.
  • the following embodiments take the virtual environment as a three-dimensional virtual environment as an example, but it is not limited thereto.
  • the virtual environment is also used for a virtual environment battle between at least two virtual characters.
  • the virtual environment is further used for at least two virtual characters to use virtual guns for battle.
  • the virtual environment is also used to battle between at least two virtual characters using virtual firearms within a target area, and the target area will be continuously reduced as time passes in the virtual environment.
  • Virtual object refers to a movable object in a virtual environment.
  • the movable object is at least one of a virtual character, a virtual animal, and an anime character.
  • the virtual environment is a three-dimensional virtual environment
  • the virtual object is a three-dimensional stereo model created based on the animation bone technology.
  • Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a part of the space in the three-dimensional virtual environment.
  • Virtual firearm refers to a virtual weapon that attacks by firing bullets in a virtual environment.
  • a virtual object can pick up a virtual firearm in the virtual environment and attack it by picking up the virtual firearm.
  • each virtual firearm can be provided with at least one slot, and each slot is used for assembling at least one firearm accessory.
  • the M416 automatic rifle is usually provided with a muzzle slot, a grip slot and a magazine slot.
  • Position, butt slot and sight slot among which the red spot sight, holographic sight, 2x sight (abbreviation: 2x lens), 4x sight (abbreviation: 4) Either a magnifying lens) or an 8x scope (abbreviation: 8x lens).
  • Accessory slot refers to the slot of a firearm accessory assembled when using a virtual firearm.
  • the type of the accessory slot includes at least one of a muzzle accessory slot, a butt accessory slot, a sight slot, and a magazine slot.
  • the number of gun accessories in the accessory slot is 4 times.
  • Mirrors, the gun accessories used when using virtual firearms are 4x mirrors.
  • Firearm accessories are divided into different types, such as: grips, muzzles, sights, butts, etc., of which each type of firearm accessories is subdivided into different models, such as: grips Including vertical grip, right-angle grip, half-grip grip, light grip and thumb grip, muzzle includes muzzle compensator, flame arrester and muffler, and scope includes red dot sight, holographic sight, 2 Magnification, 4x and 8x.
  • the accessory selection box in the accessory display area displays the same type of firearm accessory.
  • FIG. 1 shows a structural block diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device 100 includes: an operating system 120 and an application program 122.
  • the operating system 120 is basic software that provides application programs 122 with secure access to computer hardware.
  • the application 122 is an application that supports a virtual environment.
  • the application 122 is an application that supports a three-dimensional virtual environment.
  • the application 122 may be a virtual reality application, a three-dimensional map program, a military simulation program, a Third-Personal Shooting Game (TPS), a First-person Shooting Game (FPS), a MOBA game, Any of the multiplayer shooter survival games.
  • the application 122 may be a stand-alone application, such as a stand-alone 3D game program.
  • FIG. 2 shows a structural block diagram of a computer system provided by an exemplary embodiment of the present application.
  • the computer system 200 includes a first device 220, a server 240, and a second device 260.
  • the first device 220 installs and runs an application that supports a virtual environment.
  • the application can be any one of a virtual reality application, a three-dimensional map program, a military simulation program, a TPS game, an FPS game, a MOBA game, and a multiplayer shooter survival game.
  • the first device 220 is a device used by a first user.
  • the first user uses the first device 220 to control a first virtual object located in a virtual environment to perform activities, including but not limited to: adjusting body posture, crawling, walking, running, At least one of riding, jumping, driving, picking, shooting, attacking, and throwing.
  • the first virtual object is a first virtual character, such as a simulated character or an anime character.
  • the first device 220 is connected to the server 240 through a wireless network or a wired network.
  • the server 240 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center.
  • the server 240 is configured to provide a background service for an application supporting a three-dimensional virtual environment.
  • the server 240 undertakes the main calculation work, and the first device 220 and the second device 260 undertake the secondary calculation work; or, the server 240 undertakes the secondary calculation work, and the first device 220 and the second device 260 undertake the main calculation work;
  • the server 240, the first device 220, and the second device 260 use a distributed computing architecture for collaborative computing.
  • the second device 260 installs and runs an application that supports a virtual environment.
  • the application may be any one of a virtual reality application, a three-dimensional map program, a military simulation program, an FPS game, a MOBA game, and a multiplayer shooter survival game.
  • the second device 260 is a device used by the second user.
  • the second user uses the second device 260 to control the second virtual object located in the virtual environment to perform activities, including but not limited to: adjusting body posture, crawling, walking, running, At least one of riding, jumping, driving, picking, shooting, attacking, and throwing.
  • the second virtual object is a second virtual character, such as a simulated character or an anime character.
  • first virtual character and the second virtual character are in the same virtual environment.
  • first virtual character and the second virtual character may belong to the same team, the same organization, have a friend relationship, or have temporary communication rights.
  • first virtual character and the second virtual character may also belong to different teams, different organizations, or two groups with hostility.
  • the applications installed on the first device 220 and the second device 260 are the same, or the applications installed on the two devices are the same type of applications on different control system platforms.
  • the first device 220 may refer to one of a plurality of devices
  • the second device 260 may refer to one of a plurality of devices. In this embodiment, only the first device 220 and the second device 260 are used as examples.
  • the device types of the first device 220 and the second device 260 are the same or different, and the device types include: game console, desktop computer, smartphone, tablet computer, e-book reader, MP3 player, MP4 player, and laptop portable At least one of the computers.
  • the following embodiments take the device as a desktop computer as an example.
  • the number of the foregoing devices may be larger or smaller.
  • the foregoing device may be only one, or the foregoing device may be dozens or hundreds, or a larger number.
  • the embodiments of the present application do not limit the number and types of devices.
  • an accessory slot is used as an example of a sight slot.
  • a virtual firearm is provided with a main slot and a secondary slot.
  • the backpack display interface 31 includes a virtual gun 32 and a virtual gun.
  • the firearm 33 in which the main slot of the virtual firearm 32 is equipped with a scope 321, the auxiliary slot of the virtual firearm 32 is equipped with a scope 322, the main slot of the virtual firearm 33 is equipped with a scope 331, and the virtual firearm 33
  • a sight 332 is mounted on the auxiliary slot.
  • the user can click the accessory switching control in the first virtual environment interface to switch the sights on the main slot and the auxiliary slot. Through the sights on the original auxiliary slot (the aim on the switched main slot) Mirror) to observe the virtual environment.
  • the gun status bar 411 displayed on the first virtual environment interface 41 indicates that the main scope equipped with the virtual firearm is a red dot scope
  • the first virtual environment interface 41 includes The accessory switching control 412, when the user clicks on the accessory switching control 412, a second virtual environment interface 42 is displayed, and the firearm status bar 422 displayed in the second virtual environment interface 42 indicates that the main scope of the virtual firearm is 4 Magnification.
  • this switching method can only be switched between the main and auxiliary sights, and cannot be switched with other sights in the backpack.
  • the sights in the backpack are switched to the main slot, it needs to be opened
  • the virtual backpack is assembled, the steps are complicated and the operation is inconvenient, and the human-computer interaction efficiency is low when the user changes the scope.
  • FIG. 5 is a flowchart of a method for selecting accessories in a virtual environment provided by an exemplary embodiment of the present application. In this embodiment, the method is applied to a terminal as an example for description. Selection methods include:
  • Step 501 Display a first virtual environment interface.
  • the first environment interface includes a screen where the virtual object observes the virtual environment, and an accessory switching control is superimposed and displayed on the screen, and the virtual object holds a virtual firearm in the virtual environment.
  • an application is installed in the terminal, and the application is an application that supports the foregoing virtual environment.
  • the application may be a virtual reality application, a TPS game, an FPS game, a MOBA game, etc.
  • the first The viewing angle screen is a screen when the virtual object is viewed in the first viewing angle direction in the virtual environment of the application.
  • the virtual firearm held by the virtual object can be directly observed through the virtual object in the first virtual environment interface, for example, the virtual firearm is held at the position of the virtual object's hand, and the virtual firearm is displayed with
  • the first accessory can also be observed in the firearm status bar displayed on the first virtual environment interface, such as: the virtual firearm is displayed in the firearm status bar, and the first accessory is displayed corresponding to the virtual firearm; or,
  • the virtual firearm held by the virtual object cannot be observed through the virtual object in the first interface.
  • the virtual object and the virtual firearm are not displayed in the first virtual environment interface, but can be displayed in the first virtual environment interface.
  • the observation manner of the virtual firearm is not limited in the embodiments of the present application.
  • the first virtual environment interface is an interface displayed from a first-person perspective of the virtual object, or an interface displayed from a third-person perspective of the virtual object.
  • the first-person perspective is the perspective corresponding to the screen that the virtual object can observe in the virtual environment.
  • the interface corresponding to the first-person perspective does not include the virtual object itself, such as only the virtual object's arms and virtual firearms;
  • the third-person perspective is a perspective for observing a virtual object through a camera model in a virtual environment.
  • the interface corresponding to the third-person perspective includes the virtual object itself, and usually the camera model is behind the virtual object to observe the virtual object. For example, you can see the three-dimensional model of the virtual object and the virtual firearms held by the virtual object.
  • FIG. 6 is an interface schematic diagram of a first virtual environment interface 61 displayed in a first-person perspective of a virtual object.
  • the first virtual environment interface 61 includes a firearm state.
  • the firearm status column 62 displays a first accessory "red dot" assembled on the virtual firearm, that is, a red dot sight.
  • the first virtual environment interface when the first virtual environment interface is displayed in the first-person perspective or the third-person perspective of the virtual object, the first virtual environment interface may further include a backpack control.
  • the shortcut key operation may be triggered to open the backpack.
  • the assembly of the virtual firearm is shown in FIG. 7. As shown in FIG. 7, after the backpack is opened, the assembly of the virtual firearm 72 and the assembly of the virtual firearm 73 are displayed in the backpack 71.
  • the target slot of the virtual firearm 72 is equipped with The firearm accessory 721 and the virtual slot 73 are equipped with a firearm accessory 731 in the target slot.
  • the first virtual environment interface when the first virtual environment interface is displayed from a third person perspective of the virtual object, the first virtual environment interface further includes the virtual firearm, and the virtual firearm displays an assembled first accessory.
  • the first virtual environment interface further includes an accessory display control.
  • the first virtual environment interface 61 further includes an accessory switching control 63, and the accessory switching control 63 displays a “red dot”, It is shown that the scope mounted in the target slot of the virtual firearm is a red dot scope.
  • Step 502 Receive a trigger operation on an accessory switching control.
  • the manner of receiving the trigger operation includes at least one of the following manners:
  • the trigger operation includes: clicking on an accessory switching control, pressing on the accessory switching control, and performing continuous operation on the accessory switching control.
  • the continuous operation is to perform a pressing operation after the accessory switching is performed by a click operation. operating.
  • Step 503 Display the candidate accessory area on the peripheral partial area of the accessory switching control according to the trigger operation.
  • n gun accessory parts belonging to the same accessory type are displayed in the candidate accessory area.
  • the gun accessory is an accessory that has been acquired by the virtual object and is assembled on the virtual gun.
  • the gun accessory is assembled on the virtual gun.
  • n is a positive integer.
  • the peripheral partial area is used to indicate a point or line closest to the accessory switching control in the candidate accessory area, and the distance to the accessory switching control is less than a preset distance.
  • the candidate accessory area is fan-shaped Area panel.
  • the closest to the accessory switching control in the sector area panel is an inner arc.
  • the fan-shaped area panel is located in the peripheral side area. .
  • the fan-shaped area panel may be displayed on the peripheral partial area with the accessory switching control as the center according to the trigger operation.
  • n candidate frames of m candidate frames are displayed with n gun accessories, where m ⁇ n;
  • the fan-shaped area panel may be located on the left side of the accessory switching control, the right side of the accessory switching control, the upper side of the accessory switching control, or the lower side of the accessory switching control, or may be located at any angular position of the accessory switching control.
  • the application example does not limit this.
  • the fan-shaped area panel is located on the left or right side of the accessory switching control as an example for description.
  • the fan-shaped area panel is located on the left partial area of the accessory switching control to prevent the fan-shaped area panel from being displayed by the user's hand, and the fan-shaped area cannot be determined.
  • the firearm accessories displayed in the panel are convenient for the user to determine the firearm accessories with the right hand; similarly, when the accessory switching control is located on the left side of the terminal display, the sector area panel is located on the right partial area of the accessory switching control; when the accessory switching When the control is located on the upper side of the terminal display, the fan-shaped area panel is located on the upper partial area of the accessory switching control; when the accessory switching control is on the lower side of the terminal display, the fan-shaped area panel is located on the lower partial area of the accessory switching control .
  • the first virtual environment interface 81 includes an accessory switching control 82.
  • an accessory switching control 82 When received on the accessory switching control 82, When the operation is triggered, a fan-shaped area panel 83 is displayed.
  • the fan-shaped area panel includes 7 candidate frames, among which 3 firearm accessories are displayed in the candidate frame 831, the candidate frame 832, and the candidate frame 833. Accessories).
  • the above candidate accessory area is described by taking a fan-shaped area panel as an example.
  • the candidate accessory area may also be a rectangular area panel, a circular area panel, a hexagonal area panel, etc. This is not limited.
  • the gun accessory when displayed in the candidate accessory area, it includes any one of the following situations:
  • the candidate parts area displays n gun parts in sequence according to the frequency of use of the gun object by the virtual object;
  • the fan-shaped area panel when a fan-shaped area panel is displayed on the candidate accessory area, the fan-shaped area panel includes at least one fan-shaped sub-area, and p firearm accessories with the highest frequency of use are displayed in the first-layer fan-shaped sub-area, where: The first-level fan-shaped sub-area is the fan-shaped sub-area closest to the accessory switching control, p ⁇ n.
  • the candidate accessories area displays n gun accessories in order according to the degree of adaptation of the gun accessories to the virtual guns;
  • the fan-shaped area panel when a fan-shaped area panel is displayed on the candidate accessory area, the fan-shaped area panel includes at least one fan-shaped sub-area, and p firearm accessories with the highest degree of adaptation are displayed in the first-level fan-shaped sub-area.
  • the candidate accessories area displays n firearm accessories according to a preset display order
  • the fan-shaped area panel when a fan-shaped area panel is displayed on the candidate accessory area, the fan-shaped area panel includes at least one fan-shaped sub-area, and the first p firearm accessories corresponding to the preset display order are displayed on the first-level fan-shaped sub-area.
  • the preset display order may be a display order provided in an application, or a display order obtained by a player by setting a priority of a gun accessory in advance.
  • the candidate accessories area displays n gun accessories in order according to the order in which the virtual objects pick up the gun accessories.
  • n gun accessories when the n gun accessories are sequentially displayed in the first sector fan sub-region, the n gun accessories can be displayed in sequence from top to bottom in the first sector fan sub region, or in the first layer. In the fan-shaped sub-region, n firearm accessories are displayed in order from bottom to top. In the first-level fan-shaped sub-region, n firearm accessories can also be displayed in order from the middle position to both sides. Illustratively, in the first layer of the fan-shaped sub-area, five gun accessories are sequentially displayed from the middle position to both sides as an example. The five gun accessories arranged in order are accessory a, accessory b, accessory c, and accessory. d and accessory e.
  • the five candidate frames in the first sector of the fan-shaped sub-area are candidate frame A, candidate frame B, candidate frame C, candidate frame D, and candidate frame E.
  • the accessory a is displayed in the candidate frame.
  • accessory b is displayed in candidate frame B
  • accessory c is displayed in candidate frame D
  • accessory d is displayed in candidate frame A
  • accessory e is displayed in candidate frame E.
  • Step 504 Receive a selection operation on a target firearm accessory among the n firearm accessories.
  • the manner of receiving the selection operation on the target firearm accessory includes any one of the following manners:
  • the trigger operation is a pressing operation
  • a drag operation connected to the pressing operation is received.
  • the starting position of the drag operation is the first display position corresponding to the accessory switching control
  • the ending position of the drag operation is A second display position corresponding to the target firearm accessory; receiving a drag end operation at the second display position, and determining the drag end operation as a selection operation on the target firearm accessory.
  • an accessory identifier corresponding to each firearm accessory is assembled to the virtual firearm according to the target accessory identifier of the target firearm accessory corresponding to the selection operation.
  • Step 505 Display the second virtual environment interface according to the selection operation.
  • the second virtual environment interface includes a screen where a virtual object observes the virtual environment, the virtual object holds a virtual firearm, and a target firearm accessory is mounted on a target slot of the virtual firearm.
  • the first virtual environment interface 91 includes an accessory switching control 92.
  • the accessory switching control 92 for example, the user switches the accessory switching control 92 on the screen by a finger. Press
  • a fan-shaped area panel 93 is displayed, and the fan-shaped area panel includes 7 candidate frames, among which a firearm accessory is displayed in the candidate frame 931, receiving a drag operation connected to the pressing operation, and a starting position of the drag operation It is the first display position corresponding to the accessory switching control 92.
  • the end position of the drag operation is the second display position corresponding to the candidate frame 931.
  • the pressing end operation received on the candidate frame 931 (for example, the user moves his finger from the screen Left), the pressing end operation is determined as a selection operation on the target firearm accessory in the candidate frame 931, and the firearm accessory displayed in the candidate frame 931 is assembled on the virtual firearm.
  • the user drags a finger from the position of the accessory switching control 92 to the position of the candidate frame 931 in the first virtual environment interface 91 and releases the finger to press the screen to complete the firearm accessory displayed in the candidate frame 931. Assembly.
  • the accessory selection method in the virtual environment includes displaying the accessory display control in the first virtual environment interface, and when receiving a trigger operation on the accessory display control, the accessory display control is displayed in the accessory display control.
  • the candidate accessory area is displayed on the periphery of the target.
  • the candidate accessory area displays n gun accessories that belong to the same accessory type. The user can select any one of the n gun accessories to assemble to the target slot without opening the backpack. Selecting accessories for selection, the operation steps in the entire switching process are simple, and the user-machine interaction efficiency is high when replacing accessories.
  • the action performed can be considered as performing a change from the position corresponding to the accessory switch control to the target firearm.
  • the drag operation of the position corresponding to the accessory that is, when the user operates, it is more like selecting a target firearm accessory through a drag operation, and the selection process is more convenient and easier to operate.
  • the firearm accessories are displayed through a sector area panel, and the frequently used firearm accessories are displayed on the inner layer closest to the accessory switching control, which is convenient for switching the frequently used firearm accessories when the terminal is displayed in a horizontal screen.
  • the frequently used firearm accessories are displayed in the inner layer closest to the accessory switching control where the thumb is located, which is convenient for the thumb to select the frequently used firearm accessories.
  • the method provided in this embodiment displays a firearm accessory through a sector-shaped panel, and displays a highly adapted firearm accessory on the inner layer closest to the accessory switching control, which facilitates switching of a highly adapted firearm accessory.
  • the highly adapted firearm accessories are displayed on the inner layer closest to the accessory switching control where the thumb is located, which is convenient for the thumb to select the highly adapted firearm accessories.
  • the target slot is a slot for assembling a sight
  • the virtual gun is equipped with a first sight when the first virtual environment interface is displayed.
  • FIG. 10 is a flowchart of a method for selecting accessories in a virtual environment provided by another exemplary embodiment of the present application. In this embodiment, the method is applied to a terminal as an example for description. Accessory selection methods include:
  • Step 1001 Receive a mirror opening operation.
  • the opening operation is used to observe the virtual environment through the first sight on the target slot.
  • Step 1002 Display the first virtual environment interface according to the mirror opening operation.
  • the first environment interface includes a virtual environment in which the virtual object is enlarged and displayed through the magnification of the first sight.
  • a screen for controlling the virtual object to magnify and observe the virtual environment through the magnification of the first sight is superimposed on the screen to display accessory switching controls.
  • the virtual object is held in the virtual environment.
  • Step 1003 Receive a trigger operation on the accessory switching control.
  • Step 1004 Display the candidate accessory area on the peripheral partial area of the accessory switching control according to the trigger operation.
  • n gun accessory parts belonging to the same accessory type are displayed in the candidate accessory area.
  • the gun accessory is an accessory that the virtual object has obtained for assembling to a slot corresponding to the accessory type on the virtual weapon, where n is Positive integer.
  • a rectangular area panel may be displayed on the peripheral side of the accessory switching control according to the trigger operation, where n firearms are displayed in the rectangular area panel.
  • an accessory switching control 111 is displayed in the first virtual environment interface 110.
  • a trigger signal on the accessory switching control 111 is received, a rectangular area panel 112 is displayed.
  • the rectangular area panel There are 3 firearm accessories shown in 112.
  • Step 1005 Receive a selection operation on a target firearm accessory among the n firearm accessories.
  • a drag operation connected to the pressing operation is received.
  • the starting position of the drag operation is the first display position corresponding to the accessory switching control, and the ending position of the drag operation.
  • Step 1006 Display the second virtual environment interface according to the selection operation.
  • the second virtual environment interface includes a virtual environment displayed at a magnification of the second sight.
  • the first virtual environment interface 121 includes a screen for observing the virtual environment through a red dot sight, and an accessory switching control 122 is displayed in the first virtual environment interface 121.
  • the pressing operation on the switching control 122 is displayed, the fan-shaped area panel 123 is displayed, and the dragging operation that connects the pressing operation is received.
  • the ending position of the dragging operation is the position corresponding to the candidate frame 1231, and the end pressing operation is received, and the candidate The quadruple scope in frame 1231 is used as the switched scope to display the second virtual environment interface 124.
  • the second virtual environment interface 124 includes a picture of viewing the virtual environment through the quadruple lens.
  • the picked scope when a virtual environment is observed using a scope, the picked scope can be directly selected, and the virtual environment interface corresponding to the selected scope is directly switched.
  • the steps for using the sight are simple and the human-computer interaction efficiency is high.
  • the candidate accessory area further includes an accessory removal control, and the accessory removal control is used to indicate that the gun accessory is removed from the target slot of the virtual gun.
  • FIG. 13 is a flowchart of a method for selecting accessories in a virtual environment provided by another exemplary embodiment of the present application. In this embodiment, the method is applied to a terminal as an example for description. Accessory selection methods include:
  • Step 1301 Display a first virtual environment interface.
  • the first environment interface includes a screen where the virtual object observes the virtual environment, and an accessory switching control is superimposed and displayed on the screen, and the virtual object holds a virtual firearm in the virtual environment.
  • the first virtual environment interface may also be a screen for observing the virtual environment through a scope on the virtual firearm.
  • the virtual firearm is equipped with If a sight is received, an opening operation is performed.
  • the opening operation is used to observe the virtual environment through a first sight on the target slot, and a first virtual environment interface is displayed according to the first sight.
  • the first virtual environment interface includes a first A virtual environment in which the scope's magnification is magnified.
  • Step 1302 Receive a trigger operation on an accessory switching control.
  • the manner of receiving the trigger operation includes at least one of the following manners:
  • Step 1303 Display the candidate accessory area on the peripheral partial area of the accessory switching control according to the trigger operation.
  • the candidate accessory area includes an accessory removal control.
  • n gun accessory parts belonging to the same accessory type are displayed in the candidate accessory area.
  • the gun accessory is an accessory that the virtual object has obtained for assembling to a slot corresponding to the accessory type on the virtual weapon, where n is Positive integer.
  • Step 1304 Receive a control selection operation on the accessory removal control.
  • the manner of receiving the control selection operation on the target firearm accessory includes any one of the following manners:
  • the trigger operation is a pressing operation
  • a drag operation connected to the pressing operation is received.
  • the starting position of the drag operation is the first display position corresponding to the accessory switching control
  • the ending position of the drag operation is A third display position corresponding to the accessory removal control; receiving a pressing end operation at the third display position, and determining the pressing end operation as a control selection operation on the accessory removal control.
  • a candidate accessory area is displayed, and the candidate accessory area further includes an accessory removal control, which receives The drag operation is connected by the pressing operation.
  • the starting position of the drag operation is the first display position corresponding to the accessory switching control
  • the ending position of the drag operation is the third display position corresponding to the accessory removing control (that is, the user will Drag the finger from the position corresponding to the accessory switch control to the position corresponding to the child accessory disassembly control), and receive the end operation of the pressing on the accessory disassembly control (for example, the user takes his finger off the screen), and then determine the pressing end operation as Select the operation in the accessory removal control and remove the gun accessory from the virtual gun.
  • Step 1305 Display a third virtual environment interface according to the control selection operation.
  • the third virtual environment interface includes a screen where a virtual object observes the virtual environment, the virtual object holds a virtual firearm, and a target slot of the virtual firearm is not equipped with a firearm accessory.
  • the third virtual environment interface includes a picture for observing the virtual environment through a mechanical sight corresponding to a virtual firearm.
  • the method provided by this embodiment further displays the accessory disassembly control in the candidate accessory area and selects the accessory disassembly control.
  • the gun accessory on the virtual firearm can be directly disassembled without opening the backpack.
  • the disassembly of the firearm accessories, the operation steps in the entire switching process are simple, and the human-machine interaction efficiency is high when the user disassembles the firearm accessories.
  • FIG. 14 is a flowchart of a method for removing a component and / or selecting a target firearm accessory through a drag operation. As shown in FIG. 14, the method includes:
  • Step 1401 the process is started.
  • Step 1402 Press the accessory switch control.
  • Step 1403 Display the candidate accessory area.
  • n gun accessory parts belonging to the same accessory type are displayed in the candidate accessory area.
  • the firearm accessory is an accessory that has been obtained by the virtual object and is used to assemble to the slot corresponding to the accessory type on the virtual firearm, where n is a positive integer.
  • the candidate accessory area when the candidate accessory area is displayed on the peripheral partial area of the accessory switching control according to the trigger operation, it includes at least one of the following situations:
  • a fan-shaped area panel is displayed on the peripheral local area with the accessory switching control as the center.
  • the fan-shaped area panel includes m candidate frames, and n candidate frames of m candidate frames display n gun accessories. , Where m ⁇ n;
  • a rectangular area panel is displayed on the peripheral side of the accessory switching control, and n rectangular firearm panels are displayed in the rectangular area panel.
  • the candidate accessory area further includes an accessory removal control.
  • candidate accessory areas are described by taking a fan-shaped area panel and a rectangular area panel as examples.
  • the candidate accessory area may also be a circular area panel, a hexagonal area panel, or the like, which is not limited in this embodiment of the present application.
  • Step 1404 Receive a drag signal corresponding to the target firearm accessory.
  • the drag signal is a signal triggered by a drag operation to a target firearm accessory.
  • step 1405 the pressing operation is ended.
  • Step 1406 Determine whether the target firearm accessory is an assembled firearm accessory.
  • step 1407 when the target firearm accessory is not an assembled firearm accessory, the target firearm accessory is assembled to the virtual firearm, and the candidate accessory area is closed.
  • step 1408 when the target firearm accessory is an assembled firearm accessory, the target firearm accessory assembled on the virtual firearm remains unchanged, and the candidate accessory area is closed.
  • Step 1409 Receive a drag signal corresponding to the accessory removal control.
  • the drag signal is a signal triggered by a drag operation to the accessory removal control.
  • Step 1410 End the pressing operation.
  • Step 1411 Remove the firearm accessory from the target slot on the virtual firearm, and close the area where the candidate accessory is displayed.
  • Step 1412 Receive a drag signal corresponding to the cancel control.
  • the drag signal is a signal triggered by a drag operation to cancel the control.
  • Step 1413 End the pressing operation.
  • step 1414 the target firearm accessory assembled on the virtual firearm remains unchanged, and the candidate accessory area is closed.
  • Step 1415 ends the process.
  • FIG. 15 is a flowchart of a method for removing a component and / or selecting a target firearm accessory through a click operation.
  • step 1402 can also be implemented as step 1502.
  • steps 1404 to 1405 can also be implemented as step 1503
  • steps 1409 to 1410 can also be implemented as step 1504
  • steps 1412 to 1413 can also be implemented as step 1505. among them:
  • Step 1502 click the accessory switching control.
  • Step 1503 click the target firearm accessory.
  • Step 1504 click the accessory removal control.
  • Step 1505 click the cancel control.
  • the accessory selection method in a virtual environment includes superimposing and displaying accessory display controls on a screen.
  • the peripheral side of the accessory display control is displayed.
  • the candidate accessory area is displayed.
  • n gun accessories belonging to the same accessory type are displayed.
  • the user can select any one of the n gun accessories to assemble to the target slot without opening the backpack to select the accessory.
  • the selection and the steps are simple, and the human-computer interaction efficiency is high when the user changes the accessories.
  • FIG. 16 is a structural block diagram of an accessory selection device in a virtual environment provided by an exemplary embodiment of the present application.
  • the device is applied to a terminal as an example for description.
  • the device includes a display module 161 and a receiving module.
  • a display module 161 is configured to display a first virtual environment interface, where the first virtual environment interface includes a screen where a virtual object observes the virtual environment, and an accessory switching control is superimposed and displayed on the screen. Hold virtual guns in the virtual environment;
  • a receiving module 162 configured to receive a trigger operation on the accessory switching control
  • the display module 161 is further configured to display a candidate accessory area on a peripheral partial area of the accessory switching control according to the trigger operation.
  • the candidate accessory area displays n firearm accessories of the same accessory type.
  • the firearm accessory is an accessory that the virtual object has obtained and assembled to the virtual firearm, wherein the firearm accessory is assembled in a slot corresponding to the type of the accessory on the virtual firearm, and n is a positive integer;
  • the receiving module 162 is further configured to perform a selection operation on a target firearm accessory among the n firearm accessories;
  • the display module 161 is further configured to display a second virtual environment interface according to the selection operation.
  • the second virtual environment interface includes a screen where the virtual object observes the virtual environment, and the virtual object holds In the virtual firearm, the target slot of the virtual firearm is equipped with the target firearm accessory.
  • the display module 161 is further configured to display a fan-shaped area panel on the peripheral partial area with the accessory switching control as a center according to the trigger operation, and the fan-shaped area panel It includes m candidate frames, and the n candidate frames of the m candidate frames display the n gun accessories, m ⁇ n.
  • the receiving module 162 is further configured to receive a pressing operation on the accessory switching control
  • the receiving module 162 is further configured to receive a drag operation connected to the pressing operation, a starting position of the drag operation is a first display position corresponding to the accessory switching control, and an end of the drag operation The position is a second display position corresponding to the target firearm accessory; receiving a drag end operation at the second display position, and determining the drag end operation as a selection operation on the target firearm accessory.
  • the candidate accessory area is configured to sequentially display the n firearm accessories according to a frequency of use of the firearm accessories by the virtual object;
  • the candidate accessory area is used to sequentially display the n gun accessories according to the degree of adaptation of the gun accessories to the virtual gun;
  • the candidate accessory area is used to display the n firearm accessories according to a preset display order
  • the candidate accessory area is used to sequentially display the n firearm accessories according to the picking order of the firearm accessories by the virtual object.
  • the display module 161 further includes a receiving sub-module 1611 and a display sub-module 1612;
  • the target slot is a slot for assembling a scope, and when the first virtual environment interface is displayed, the target slot of the virtual firearm is equipped with a first scope, and the target firearm accessory is a second scope ;
  • the display module 161 includes:
  • a receiving submodule 1611 configured to receive a mirror opening operation, where the mirror opening operation is used to observe the virtual environment through the first sight on the target slot;
  • a display sub-module 1612 configured to display the first virtual environment interface according to the opening operation of the mirror, the first virtual environment interface including the virtual environment enlarged and displayed at a magnification of the first sight;
  • the display module 161 is further configured to display the second virtual environment interface according to the selection operation, and the second virtual environment interface includes the virtual environment displayed at a magnification of the second sight.
  • the candidate accessory area further includes an accessory removal control for removing the firearm accessory of the target slot
  • the receiving module 162 is further configured to receive a control selection operation on the accessory disassembly control
  • the display module 161 is further configured to display a third virtual environment interface according to the control selection operation.
  • the third virtual environment interface includes a screen where the virtual object observes the virtual environment, and the virtual object holds In the virtual firearm, the target slot of the virtual firearm is not equipped with the firearm accessory.
  • the target slot is a slot for assembling a scope, and a first scope is mounted on the target slot of the virtual firearm when the first virtual environment interface is displayed;
  • the receiving sub-module 1611 is further configured to receive a mirror opening operation, where the mirror opening operation is used to observe the virtual environment through the first sight on the target slot;
  • the display sub-module 1612 is further configured to display the first virtual environment interface according to the mirror opening operation, where the first virtual environment interface includes the virtual environment displayed at a magnification of the first sight;
  • the display module 161 is further configured to display the third virtual environment interface according to the control selection operation, and the third virtual environment interface includes performing the virtual environment through the mechanical scope corresponding to the virtual firearm. Observe the picture.
  • FIG. 18 is a structural block diagram of a terminal 1800 provided by an exemplary embodiment of the present invention.
  • the terminal 1800 can be: smartphone, tablet, MP3 player (Moving Picture Experts Group Audio Layer III, moving image expert compression standard audio level 3), MP4 (Moving Picture Expert Experts Group Audio Audio Layer IV, moving image expert compression standard audio Level 4) Player, laptop or desktop computer.
  • the terminal 1800 may also be called other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
  • the terminal 1800 includes a processor 1801 and a memory 1802.
  • the processor 1801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • the processor 1801 may use at least one hardware form among DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array, Field Programmable Gate Array), and PLA (Programmable Logic Array). achieve.
  • the processor 1801 may also include a main processor and a co-processor.
  • the main processor is a processor for processing data in the awake state, also referred to as a CPU (Central Processing Unit).
  • the co-processor is Low-power processor for processing data in standby.
  • the processor 1801 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing content required to be displayed on the display screen.
  • the processor 1801 may further include an AI (Artificial Intelligence) processor, and the AI processor is configured to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory 1802 may include one or more computer-readable storage media, which may be non-transitory.
  • the memory 1802 may further include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash storage devices.
  • the non-transitory computer-readable storage medium in the memory 1802 is used to store at least one instruction, and the at least one instruction is executed by the processor 1801 to implement the virtual environment provided by the method embodiment in this application. Selection method in.
  • the terminal 1800 may further include: a peripheral device interface 1803 and at least one peripheral device.
  • the processor 1801, the memory 1802, and the peripheral device interface 1803 may be connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 1803 through a bus, a signal line, or a circuit board.
  • the peripheral device includes at least one of a radio frequency circuit 1804, a touch display 1805, a camera 1806, an audio circuit 1807, a positioning component 1808, and a power supply 1809.
  • the peripheral device interface 1803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1801 and the memory 1802.
  • the processor 1801, the memory 1802, and the peripheral device interface 1803 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1801, the memory 1802, and the peripheral device interface 1803 or Two can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
  • the radio frequency circuit 1804 is used to receive and transmit an RF (Radio Frequency) signal, also called an electromagnetic signal.
  • the radio frequency circuit 1804 communicates with a communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 1804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 1804 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 radio frequency circuit 1804 can communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, mobile communication networks (2G, 3G, 4G, and 5G) of various generations, wireless local area networks, and / or WiFi (Wireless Fidelity) networks.
  • the radio frequency circuit 1804 may further include circuits related to Near Field Communication (NFC), which is not limited in this application.
  • NFC Near Field Communication
  • the display 1805 is used to display a UI (User Interface).
  • the UI can include graphics, text, icons, videos, and any combination thereof.
  • the display screen 1805 is a touch display screen, the display screen 1805 also has the ability to collect touch signals on or above the surface of the display screen 1805.
  • the touch signal can be input to the processor 1801 as a control signal for processing.
  • the display 1805 may also be used to provide a virtual button and / or a virtual keyboard, which is also called a soft button and / or a soft keyboard.
  • one display screen 1805 may be provided, and the front panel of the terminal 1800 is provided. In other embodiments, at least two display screens 1805 may be provided on different surfaces of the terminal 1800 or may be folded.
  • the display screen 1805 may be a flexible display screen disposed on a curved surface or a folded surface of the terminal 1800. Furthermore, the display 1805 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the display 1805 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
  • the camera component 1806 is used to capture images or videos.
  • the camera component 1806 includes a front camera and a rear camera.
  • the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal.
  • the camera assembly 1806 may further include a flash.
  • the flash can be a monochrome temperature flash or a dual color temperature flash.
  • a dual color temperature flash is a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
  • the audio circuit 1807 may include a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1801 for processing, or input to the radio frequency circuit 1804 to implement voice communication.
  • the microphone can also be an array microphone or an omnidirectional acquisition microphone.
  • the speaker is used to convert electrical signals from the processor 1801 or the radio frequency circuit 1804 into sound waves.
  • the speaker can be a traditional film speaker or a piezoelectric ceramic speaker.
  • the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for ranging purposes.
  • the audio circuit 1807 may further include a headphone jack.
  • the positioning component 1808 is configured to locate the current geographic position of the terminal 1800 to implement navigation or LBS (Location Based Service).
  • the positioning component 1808 may be a positioning component based on a US-based GPS (Global Positioning System), a Chinese Beidou system, or a Russian Galileo system.
  • the power supply 1809 is used to power various components in the terminal 1800.
  • the power source 1809 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
  • the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery.
  • the wired rechargeable battery is a battery charged through a wired line
  • the wireless rechargeable battery is a battery charged through a wireless coil.
  • the rechargeable battery can also be used to support fast charging technology.
  • the terminal 1800 further includes one or more sensors 1810.
  • the one or more sensors 1810 include, but are not limited to, an acceleration sensor 1811, a gyro sensor 1812, a pressure sensor 1813, a fingerprint sensor 1814, an optical sensor 1815, and a proximity sensor 1816.
  • the acceleration sensor 1811 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1800.
  • the acceleration sensor 1811 may be used to detect components of the acceleration of gravity on three coordinate axes.
  • the processor 1801 may control the touch display screen 1805 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1811.
  • the acceleration sensor 1811 may also be used for collecting motion data of a game or a user.
  • the gyro sensor 1812 can detect the body direction and rotation angle of the terminal 1800, and the gyro sensor 1812 can cooperate with the acceleration sensor 1811 to collect a 3D motion of the user on the terminal 1800. Based on the data collected by the gyro sensor 1812, the processor 1801 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 1813 may be disposed on a side frame of the terminal 1800 and / or a lower layer of the touch display 1805.
  • a user's grip signal to the terminal 1800 can be detected, and the processor 1801 can perform left-right hand recognition or quick operation according to the grip signal collected by the pressure sensor 1813.
  • the processor 1801 controls the operable controls on the UI interface according to the user's pressure operation on the touch display screen 1805.
  • the operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 1814 is used to collect a user's fingerprint, and the processor 1801 recognizes the identity of the user based on the fingerprint collected by the fingerprint sensor 1814, or the fingerprint sensor 1814 recognizes the identity of the user based on the collected fingerprint. When the user's identity is identified as trusted, the processor 1801 authorizes the user to perform related sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings.
  • the fingerprint sensor 1814 may be provided on the front, back, or side of the terminal 1800. When a physical button or a manufacturer's logo is set on the terminal 1800, the fingerprint sensor 1814 can be integrated with the physical button or the manufacturer's logo.
  • the optical sensor 1815 is used to collect the ambient light intensity.
  • the processor 1801 may control the display brightness of the touch display 1805 according to the ambient light intensity collected by the optical sensor 1815. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display 1805 is increased; when the intensity of the ambient light is low, the display brightness of the touch display 1805 is decreased.
  • the processor 1801 may also dynamically adjust the shooting parameters of the camera component 1806 according to the ambient light intensity collected by the optical sensor 1815.
  • the proximity sensor 1816 also called a distance sensor, is usually disposed on the front panel of the terminal 1800.
  • the proximity sensor 1816 is used to collect the distance between the user and the front of the terminal 1800.
  • the processor 1801 controls the touch display 1805 to switch from the bright screen state to the closed screen state; when the proximity sensor 1816 detects When the distance between the user and the front side of the terminal 1800 gradually becomes larger, the processor 1801 controls the touch display screen 1805 to switch from the rest screen state to the bright screen state.
  • FIG. 18 does not constitute a limitation on the terminal 1800, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
  • the computer-readable storage The medium may be a computer-readable storage medium included in the memory in the foregoing embodiments; or it may be a computer-readable storage medium that exists separately and is not assembled in the terminal.
  • the computer-readable storage medium stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, the at least one program, code set, or instruction set is loaded and executed by the processor. In order to implement the accessory selection method in a virtual environment as described in any one of FIG. 5, FIG. 10, and FIG. 13 to FIG. 15.
  • the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), solid state hard drives (SSD, Solid State Drives), or optical discs.
  • the random access memory may include a resistive random access memory (ReRAM, Resistance, Random Access Memory) and a dynamic random access memory (DRAM, Dynamic Random Access Memory).
  • ReRAM resistive random access memory
  • DRAM Dynamic Random Access Memory

Abstract

本申请公开了一种虚拟环境中的配件选择方法、装置、设备及可读存储介质,涉及虚拟环境领域。该方法包括:显示第一虚拟环境界面;接收在所述配件切换控件上的触发操作;根据所述触发操作在所述配件切换控件的周侧局部区域上显示候选配件区域;接收在所述n个枪械配件中的目标枪械配件上的选择操作;根据所述选择操作显示第二虚拟环境界面。通过在画面中叠加显示配件显示控件,当接收到在该配件显示控件上的触发操作时,在配件显示控件的周侧显示候选配件区域,显示有属于同一配件类型的n个枪械配件,用户可以在该n个枪械配件中选择任意一个配件装配至目标槽位,而无需再打开背包对待选择配件进行选择,人机交互效率较高。

Description

虚拟环境中的配件选择方法、装置、设备及可读存储介质
本申请要求于2018年08月08日提交的申请号为201810899065.2、发明名称为“虚拟环境中的配件选择方法、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及虚拟环境领域,特别涉及一种虚拟环境中的配件选择方法、装置、设备及可读存储介质。
背景技术
在基于虚拟环境的应用程序,如:虚拟现实应用程序、第三人称射击游戏(Third-Personal Shooting Game,TPS)、第一人称射击游戏(First-person shooting game,FPS)、多人在线战术竞技游戏(Multiplayer Online Battle Arena Games,MOBA)中,用户可以控制虚拟对象使用虚拟枪械对位于虚拟环境中的虚拟物品或者其他虚拟对象进行射击。
通常,在虚拟枪械上包括一些槽位,每个槽位用于装配不同的枪械配件,如:M416自动步枪上通常设置有枪口槽位、握把槽位、弹夹槽位、枪托槽位以及瞄准镜槽位,其中,瞄准镜槽位上可以装配红点瞄准镜、全息瞄准镜、2倍瞄准镜、4倍瞄准镜和8倍瞄准镜中的任意一个,且瞄准镜槽位可以分为主槽位和辅槽位,玩家根据虚拟枪械的主槽位上装配的瞄准镜对虚拟环境进行观察,也可以通过用户界面上的切换控件将辅槽位上的瞄准镜切换至主槽位,通过切换后的瞄准镜对虚拟环境进行观察。
然而,通过上述方式对瞄准镜进行切换时,仅能对主槽位和辅槽位上的瞄准镜进行来回切换,而瞄准镜分为基础镜(如:红点瞄准镜、全息瞄准镜)、低倍镜(如:二倍镜、三倍镜)、高倍镜(如:四倍镜、八倍镜)等,该切换方式无法满足多种倍镜都能被简单装配至虚拟枪械的要求,当用户需要装配的倍镜不在主槽位或辅槽位上时,则需要打开虚拟背包进行装配,步骤复杂且操作不便,用户在更换瞄准镜时人机交互效率较低。
发明内容
本申请实施例提供了一种虚拟环境中的配件选择方法、装置、设备及可读存储介质,可以解决用户在更换瞄准镜时人机交互效率较低的问题。所述技术方案如下:
一方面,提供了一种虚拟环境中的配件选择方法,应用于终端中,所述方法包括:
显示第一虚拟环境界面,所述第一虚拟环境界面包括虚拟对象对所述虚拟环境进行观察的画面,所述画面上叠加显示有配件切换控件,所述虚拟对象在所述虚拟环境中持有虚拟枪械;
接收在所述配件切换控件上的触发操作;
根据所述触发操作在所述配件切换控件的周侧局部区域上显示候选配件区域,所述候选配件区域中显示有属于同一配件类型的n个枪械配件,所述枪械配件是所述虚拟对象已获取的用于装配至所述虚拟枪械上与所述配件类型对应的槽位的配件,n为正整数;
接收在所述n个枪械配件中的目标枪械配件上的选择操作;
根据所述选择操作显示第二虚拟环境界面,所述第二虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上装配有所述目标枪械配件。
另一方面,提供了一种虚拟环境中的配件选择装置,应用于终端中,所述装置包括:
显示模块,用于显示第一虚拟环境界面,所述第一虚拟环境界面包括虚拟对象对所述虚拟环境进行观察的画面,所述画面上叠加显示有配件切换控件,所述虚拟对象在所述虚拟环境中持有虚拟枪械;
接收模块,用于接收在所述配件切换控件上的触发操作;
所述显示模块,还用于根据所述触发操作在所述配件切换控件的周侧局部区域上显示候选配件区域,所述候选配件区域中显示有属于同一配件类型的n个枪械配件,所述枪械配件是所述虚拟对象已获取的用于装配至所述虚拟枪械上与所述配件类型对应的槽位的配件,n为正整数;
所述接收模块,还用于在所述n个枪械配件中的目标枪械配件上的选择操作;
所述显示模块,还用于根据所述选择操作显示第二虚拟环境界面,所述第 二虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上装配有所述目标枪械配件。
另一方面,提供了一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如上述本申请实施例所述的虚拟环境中的配件选择方法。
另一方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如上述本申请实施例所述的虚拟环境中的配件选择方法。
另一方面,提供了一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得计算机执行如上述本申请实施例所述的虚拟环境中的配件选择方法。
本申请实施例提供的技术方案带来的有益效果至少包括:
通过在第一虚拟环境界面中显示配件显示控件,当接收到在该配件显示控件上的触发操作时,在配件显示控件的周侧显示候选配件区域,该候选配件区域中显示有属于同一配件类型的n个枪械配件,用户可以在该n个枪械配件中选择任意一个配件装配至目标槽位,而无需再打开背包对待选择配件进行选择,整个切换过程中的操作步骤简单,用户在更换配件时的人机交互效率较高。
附图说明
图1是本申请一个示例性实施例提供的电子设备的结构框图;
图2是本申请一个示例性实施例提供的计算机系统的结构框图;
图3是本申请一个示例性实施例提供相关技术中终端界面示意图;
图4是本申请另一个示例性实施例提供相关技术中终端界面示意图;
图5是本申请一个示例性实施例提供的虚拟环境中的配件选择方法的流程图;
图6是本申请一个示例性实施例提供的终端界面示意图;
图7是本申请另一个示例性实施例提供的终端的界面示意图;
图8是本申请另一个示例性实施例提供的终端的界面示意图;
图9是本申请另一个示例性实施例提供的终端的界面示意图;
图10是本申请另一个示例性实施例提供的虚拟环境中的配件选择方法的流程图;
图11是本申请另一个示例性实施例提供的终端的界面示意图;
图12是本申请另一个示例性实施例提供的终端的界面示意图;
图13是本申请另一个示例性实施例提供的虚拟环境中的配件选择方法的流程图;
图14是本申请另一个示例性实施例提供的虚拟环境中的配件选择方法的流程图;
图15是本申请另一个示例性实施例提供的虚拟环境中的配件选择方法的流程图;
图16是本申请一个示例性实施例提供的虚拟环境中的配件选择装置的结构框图;
图17是本申请另一个示例性实施例提供的虚拟环境中的配件选择装置的结构框图;
图18是本申请一个示例性的实施例提供的终端的结构框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
首先,对本申请实施例涉及的若干个名词进行简单介绍:
虚拟环境:是指应用程序在终端上运行时显示(或提供)的虚拟环境。该虚拟环境可以是对真实世界的仿真环境,也可以是半仿真半虚构的三维环境,还可以是纯虚构的三维环境。虚拟环境可以是二维虚拟环境、2.5维虚拟环境和三维虚拟环境中的任意一种,下述实施例以虚拟环境是三维虚拟环境来举例说明,但对此不加以限定。可选地,该虚拟环境还用于至少两个虚拟角色之间的虚拟环境对战。
可选地,该虚拟环境还用于至少两个虚拟角色之间使用虚拟枪械进行对战。可选地,该虚拟环境还用于在目标区域范围内,至少两个虚拟角色之间使用虚 拟枪械进行对战,该目标区域范围会随虚拟环境中的时间推移而不断变小。
虚拟对象:是指在虚拟环境中的可活动对象。该可活动对象是虚拟人物、虚拟动物、动漫人物中的至少一种。可选地,当虚拟环境为三维虚拟环境时,虚拟对象是基于动画骨骼技术创建的三维立体模型。每个虚拟对象在三维虚拟环境中具有自身的形状和体积,占据三维虚拟环境中的一部分空间。
虚拟枪械:是指在虚拟环境通过发射子弹进行攻击的虚拟武器,虚拟对象在虚拟环境中可以对虚拟枪械进行捡拾,并通过捡拾得到的虚拟枪械进行攻击。可选地,每个虚拟枪械都可以设置至少一个槽位,每个槽位用于装配至少一个枪械配件,如:M416自动步枪上通常设置有枪口槽位、握把槽位、弹夹槽位、枪托槽位以及瞄准镜槽位,其中,瞄准镜槽位上可以装配红点瞄准镜、全息瞄准镜、2倍瞄准镜(简称:2倍镜)、4倍瞄准镜(简称:4倍镜)和8倍瞄准镜(简称:8倍镜)中的任意一个,玩家在持有该M416自动步枪并开镜时,可以根据枪械装配的瞄准镜对虚拟环境进行一定程度的放大观察。
配件槽位:是指使用虚拟枪械时装配的枪械配件的槽位。可选地,配件槽位的类型包括:枪口配件槽位、枪托配件槽位、瞄准镜槽位、弹夹槽位中的至少一种,如:配件槽位中的枪械配件为4倍镜,则在使用虚拟枪械时所应用的枪械配件为4倍镜。
同类型的枪械配件:枪械配件被分为不同的类型,如:握把、枪口、瞄准镜、枪托等,其中,每一个类型的枪械配件又被细分为不同型号,如:握把包括垂直握把、直角握把、半截式握把、轻型握把以及拇指握把,枪口包括枪口补偿器、消焰器以及消音器,瞄准镜包括红点瞄准镜、全息瞄准镜、2倍镜、4倍镜和8倍镜等。可选地,配件显示区域中的配件待选框中显示的是同一类型的枪械配件。
图1示出了本申请一个示例性实施例提供的电子设备的结构框图。该电子设备100包括:操作系统120和应用程序122。
操作系统120是为应用程序122提供对计算机硬件的安全访问的基础软件。
应用程序122是支持虚拟环境的应用程序。可选地,应用程序122是支持三维虚拟环境的应用程序。该应用程序122可以是虚拟现实应用程序、三维地图程序、军事仿真程序、第三人称射击游戏(Third-Personal Shooting Game,TPS)、第一人称射击游戏(First-person shooting game,FPS)、MOBA游戏、多人枪战 类生存游戏中的任意一种。该应用程序122可以是单机版的应用程序,比如单机版的3D游戏程序。
图2示出了本申请一个示例性实施例提供的计算机系统的结构框图。该计算机系统200包括:第一设备220、服务器240和第二设备260。
第一设备220安装和运行有支持虚拟环境的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、军事仿真程序、TPS游戏、FPS游戏、MOBA游戏、多人枪战类生存游戏中的任意一种。第一设备220是第一用户使用的设备,第一用户使用第一设备220控制位于虚拟环境中的第一虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、攻击、投掷中的至少一种。示意性的,第一虚拟对象是第一虚拟人物,比如仿真人物角色或动漫人物角色。
第一设备220通过无线网络或有线网络与服务器240相连。
服务器240包括一台服务器、多台服务器、云计算平台和虚拟化中心中的至少一种。服务器240用于为支持三维虚拟环境的应用程序提供后台服务。可选地,服务器240承担主要计算工作,第一设备220和第二设备260承担次要计算工作;或者,服务器240承担次要计算工作,第一设备220和第二设备260承担主要计算工作;或者,服务器240、第一设备220和第二设备260三者之间采用分布式计算架构进行协同计算。
第二设备260安装和运行有支持虚拟环境的应用程序。该应用程序可以是虚拟现实应用程序、三维地图程序、军事仿真程序、FPS游戏、MOBA游戏、多人枪战类生存游戏中的任意一种。第二设备260是第二用户使用的设备,第二用户使用第二设备260控制位于虚拟环境中的第二虚拟对象进行活动,该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、攻击、投掷中的至少一种。示意性的,第二虚拟对象是第二虚拟人物,比如仿真人物角色或动漫人物角色。
可选地,第一虚拟人物和第二虚拟人物处于同一虚拟环境中。可选地,第一虚拟人物和第二虚拟人物可以属于同一个队伍、同一个组织、具有好友关系或具有临时性的通讯权限。可选地,第一虚拟人物和第二虚拟人物也可以属于不同队伍、不同组织、或具有敌对性的两个团体。
可选地,第一设备220和第二设备260上安装的应用程序是相同的,或两 个设备上安装的应用程序是不同控制系统平台的同一类型应用程序。第一设备220可以泛指多个设备中的一个,第二设备260可以泛指多个设备中的一个,本实施例仅以第一设备220和第二设备260来举例说明。第一设备220和第二设备260的设备类型相同或不同,该设备类型包括:游戏主机、台式计算机、智能手机、平板电脑、电子书阅读器、MP3播放器、MP4播放器和膝上型便携计算机中的至少一种。以下实施例以设备是台式计算机来举例说明。
本领域技术人员可以知晓,上述设备的数量可以更多或更少。比如上述设备可以仅为一个,或者上述设备为几十个或几百个,或者更多数量。本申请实施例对设备的数量和设备类型不加以限定。
相关技术中,以配件槽位为瞄准镜槽位为例进行说明,一把虚拟枪械配有主槽位和辅槽位,如图3所示,在背包展示界面31中包括虚拟枪械32以及虚拟枪械33,其中,虚拟枪械32的主槽位上装配有瞄准镜321,虚拟枪械32的辅槽位上装配有瞄准镜322,虚拟枪械33的主槽位上装配有瞄准镜331,虚拟枪械33的辅槽位上装配有瞄准镜332。
在虚拟对战中,用户可以在第一虚拟环境界面中点击配件切换控件切换主槽位和辅槽位上的瞄准镜,通过原辅槽位上的瞄准镜(切换后的主槽位上的瞄准镜)观察虚拟环境,如图4所示,第一虚拟环境界面41中显示的枪械状态栏411中表示虚拟枪械所装配的主瞄准镜为红点瞄准镜,该第一虚拟环境界面41中包括配件切换控件412,当用户对该配件切换控件412进行点击后,显示第二虚拟环境界面42,该第二虚拟环境界面42中显示的枪械状态栏422表示虚拟枪械所装配的主瞄准镜为4倍镜。
然而,这种切换方式只能在主瞄准镜和辅瞄准镜之间进行切换,而无法与背包中的其他瞄准镜进行切换,当将背包中的瞄准镜切换至主槽位时,则需要打开虚拟背包进行装配,步骤复杂且操作不便,用户在更换瞄准镜时人机交互效率较低。
结合上述名词解释,对本申请实施例提供的虚拟环境中的配件选择方法进行说明。请参考图5,图5是本申请一个示例性的实施例提供的虚拟环境中的配件选择方法流程图,本实施例中以该方法应用于终端中为例进行说明,该虚拟环境中的配件选择方法包括:
步骤501,显示第一虚拟环境界面。
可选地,该第一环境界面包括虚拟对象对虚拟环境进行观察的画面,该画面上叠加显示有配件切换控件,该虚拟对象在虚拟环境中持有虚拟枪械。
可选地,终端中安装有应用程序,该应用程序为支持上述虚拟环境的应用程序,可选地,该应用程序可以是虚拟现实应用程序、TPS游戏、FPS游戏、MOBA游戏等,该第一视角画面为在该应用程序的虚拟环境中以第一视角方向观察虚拟对象时的画面。
可选地,该虚拟对象所持有的虚拟枪械可以在第一虚拟环境界面中直接通过虚拟对象观察得到,如:在虚拟对象的手部位置持有该虚拟枪械,且该虚拟枪械上显示有该第一配件,也可以在第一虚拟环境界面中显示的枪械状态栏中观察得到,如:在该枪械状态栏中显示有该虚拟枪械,与该虚拟枪械对应显示有第一配件;或者,该虚拟对象所持有的虚拟枪械在第一界面中无法通过虚拟对象观察得到,如:第一虚拟环境界面中并未显示该虚拟对象和该虚拟枪械,但可以在第一虚拟环境界面中显示的枪械状态中观察得到;或者,该虚拟对象所持有的虚拟枪械可以在第一虚拟环境界面中直接通过虚拟对象观察得到,但第一虚拟环境界面中未显示枪械状态栏,无法通过枪械状态栏观察得到,对虚拟枪械的观察方式在本申请实施例中不做限定。
可选地,该第一虚拟环境界面是以虚拟对象的第一人称视角显示的界面,也可以是以虚拟对象的第三人称视角显示的界面。其中,第一人称视角即虚拟对象在虚拟环境中所能观察到的画面对应的视角,该第一人称视角对应的界面中不包括该虚拟对象本身,比如只能看到虚拟对象的手臂和虚拟枪械;第三人称视角即在虚拟环境中通过摄像机模型对虚拟对象进行观察的视角,该第三人称视角对应的界面中包括虚拟对象本身,且通常该摄像机模型是位于虚拟对象的后方对该虚拟对象进行观察的,比如能够看到虚拟对象的三维模型以及该虚拟对象所持有的虚拟枪械。
可选地,当以虚拟对象的第一人称视角或者第三人称视角显示第一虚拟环境界面时,该第一虚拟环境界面中还包括枪械状态栏,该枪械状态栏中显示有该虚拟枪械上装配的第一配件,以第一人称视角为例,如图6所示,图6是以虚拟对象的第一人称视角显示的第一虚拟环境界面61的界面示意图,该第一虚拟环境界面61中包括枪械状态栏62,该枪械状态栏62中显示有该虚拟枪械上装配的第一配件“红点”,即红点瞄准镜。
可选地,当以虚拟对象的第一人称视角或者第三人称视角显示第一虚拟环境界面时,该第一虚拟环境界面中还可以包括背包控件,通过快捷键操作可以触发打开该背包,在该背包中显示有虚拟枪械的装配情况,如图7所示,在打开背包后,背包71中显示有虚拟枪械72的装配情况以及虚拟枪械73的装配情况,其中,虚拟枪械72的目标槽位装配有枪械配件721,虚拟枪械73的目标槽位装配有枪械配件731。
可选地,当以虚拟对象的第三人称视角显示第一虚拟环境界面时,该第一虚拟环境界面中还包括该虚拟枪械,该虚拟枪械上显示有被装配的第一配件。
可选地,该第一虚拟环境界面中还包括配件显示控件,如图6所示,第一虚拟环境界面61中还包括配件切换控件63,该配件切换控件63中显示有“红点”,表明该虚拟枪械的目标槽位中装配的瞄准镜为红点瞄准镜。
步骤502,接收在配件切换控件上的触发操作。
可选地,接收触发操作的方式包括如下方式中的至少一种:
一,接收在配件切换控件上的点击操作;
二,接收在配件切换控件上的按压操作。
示意性的,该触发操作包括:在配件切换控件上进行点击、在配件切换控件上进行按压、在配件切换控件上进行连续操作,该连续操作为在该配件切换进行点击操作后,再进行按压操作。
步骤503,根据触发操作在配件切换控件的周侧局部区域上显示候选配件区域。
可选地,该候选配件区域中显示有属于同一配件类型的n个枪械配件,该枪械配件是虚拟对象已获取且装配至虚拟枪械上的的配件,可选地,该枪械配件装配在虚拟枪械上与配件类型对应的槽位上,n为正整数。
可选地,该周侧局部区域用于表示候选配件区域中距离配件切换控件最近的点或线,与配件切换控件之间的距离小于预设距离,示意性的,当该候选配件区域为扇形区域面板,该扇形区域面板中与配件切换控件距离最近的是内侧的一条弧线,则该弧线与配件切换控件之间的距离小于预设距离时,该扇形区域面板位于周侧局部区域中。
可选地,根据触发操作在配件切换控件的周侧局部区域上显示候选配件区域时,可以根据触发操作,以配件切换控件为中心在周侧局部区域上显示扇形区域面板,该扇形区域面板中包括m个候选框,m个候选框的n个候选框显示 有n个枪械配件,其中m≥n;
可选地,该扇形区域面板可以位于配件切换控件的左侧、配件切换控件的右侧、配件切换控件的上侧或者配件切换控件的下侧,也可以位于配件切换控件的任意角度位置,本申请实施例对此不加以限定。
可选地,以扇形区域面板位于配件切换控件的左侧或右侧为例进行说明。当配件切换控件位于终端显示屏的右侧时,该扇形区域面板位于配件切换控件的左侧局部区域,以避免显示扇形区域面板时,用户的手部对扇形区域面板形成遮挡而无法确定扇形区域面板中显示的枪械配件,便于用户的右手对枪械配件进行确定;同理,当配件切换控件位于终端显示屏的左侧时,该扇形区域面板位于配件切换控件的右侧局部区域;当配件切换控件位于终端显示屏的上侧时,该扇形区域面板位于配件切换控件的上侧局部区域;当配件切换控件位于终端显示屏的下侧时,该扇形区域面板位于配件切换控件的下侧局部区域。
示意性的,请参考图8,以该扇形区域面板位于配件切换控件的左侧为例进行说明,在第一虚拟环境界面81中包括配件切换控件82,当在该配件切换控件82上接收到触发操作时,显示扇形区域面板83,该扇形区域面板中包括7个候选框,其中候选框831、候选框832以及候选框833中显示有3个枪械配件(每个候选框中显示有一个枪械配件)。
值得注意的是,上述候选配件区域以扇形区域面板为例进行说明,实际操作中,该候选配件区域还可以是矩形区域面板、圆形区域面板、六边形区域面板等,本申请实施例对此不加以限定。
可选地,候选配件区域显示枪械配件时,包括如下情况中的任意一种:
1、候选配件区域根据虚拟对象对枪械配件的使用频率按序显示n个枪械配件;
可选地,当该候选配件区域上显示扇形区域面板时,该扇形区域面板中包括至少一层扇形子区域,则将使用频率最高的p个枪械配件显示在第一层扇形子区域,其中,第一层扇形子区域为距离配件切换控件最近的扇形子区域,p≤n。
2、候选配件区域根据枪械配件与虚拟枪械的适配程度按序显示n个枪械配件;
可选地,当该候选配件区域上显示扇形区域面板时,该扇形区域面板中包括至少一层扇形子区域,则将适配程度最高的p个枪械配件显示在第一层扇形 子区域。
3、候选配件区域根据预设显示顺序显示n个枪械配件;
可选地,当该候选配件区域上显示扇形区域面板时,该扇形区域面板中包括至少一层扇形子区域,则将预设显示顺序对应的前p个枪械配件显示在第一层扇形子区域。
可选地,该预设显示顺序可以是应用程序内提供的显示顺序,也可以是玩家预先对枪械配件的优先级进行设置后得到的显示顺序。
4、候选配件区域根据虚拟对象对枪械配件的捡拾顺序按序显示n个枪械配件。
值得注意的是,上述在第一层扇形子区域中按序显示n个枪械配件时,可以在第一层扇形子区域中由上至下按序显示n个枪械配件,也可以在第一层扇形子区域中由下至上按序显示n个枪械配件,还可以在第一层扇形子区域中由中间位置向两边按序显示n个枪械配件。示意性的,以在第一层扇形子区域中由中间位置向两边按序显示5个枪械配件为例进行说明,按序排列的5个枪械配件分别为配件a、配件b、配件c、配件d以及配件e,第一层扇形子区域中的5个候选框由上之下分别为候选框A、候选框B、候选框C、候选框D以及候选框E,则配件a显示在候选框C中,配件b显示在候选框B中,配件c显示在候选框D中,配件d显示在候选框A中,配件e显示在候选框E中。
步骤504,接收在n个枪械配件中的目标枪械配件上的选择操作。
可选地,接收在该目标枪械配件上的选择操作的方式包括如下方式中的任意一种:
第一,接收在该目标枪械配件上的点击操作;
第二,当上述触发操作为按压操作时,接收与该按压操作衔接的拖动操作,该拖动操作的起始位置为配件切换控件对应的第一显示位置,该拖动操作的结束位置为与目标枪械配件对应的第二显示位置;接收在该第二显示位置的拖动结束操作,并将该拖动结束操作确定为在目标枪械配件上的选择操作。
可选地,每个枪械配件对应的一个配件标识,根据选择操作对应的目标枪械配件的目标配件标识,将该目标枪械配件装配至虚拟枪械。
步骤505,根据选择操作显示第二虚拟环境界面。
可选地,该第二虚拟环境界面包括虚拟对象对虚拟环境进行观察的画面,该虚拟对象持有虚拟枪械,该虚拟枪械的目标槽位上装配有目标枪械配件。
示意性的,请参考图9,在第一虚拟环境界面91中包括配件切换控件92,当在该配件切换控件92上接收到按压操作时(如:用户通过手指在屏幕上对配件切换控件92进行按压),显示扇形区域面板93,该扇形区域面板中包括7个候选框,其中候选框931中显示有枪械配件,接收与该按压操作衔接的拖动操作,该拖动操作的起始位置为与配件切换控件92对应的第一显示位置,该拖动操作的结束位置为候选框931对应的第二显示位置,接收在该候选框931上的按压结束操作(如:用户将手指从屏幕上离开),则将该按压结束操作确定为在候选框931中的目标枪械配件上的选择操作,并将候选框931中显示的枪械配件装配至虚拟枪械上。
简言之,用户在第一虚拟环境界面91中将手指从配件切换控件92的位置拖动至候选框931的位置并松开手指对屏幕的按压,以完成对候选框931中显示的枪械配件的装配。
综上所述,本申请实施例提供的虚拟环境中的配件选择方法,通过在第一虚拟环境界面中显示配件显示控件,当接收到在该配件显示控件上的触发操作时,在配件显示控件的周侧显示候选配件区域,该候选配件区域中显示有属于同一配件类型的n个枪械配件,用户可以在该n个枪械配件中选择任意一个配件装配至目标槽位,而无需再打开背包对待选择配件进行选择,整个切换过程中的操作步骤简单,用户在更换配件时的人机交互效率较高。
本实施例提供的方法,当触发操作为按压操作,选择操作为拖动操作时,用户对目标枪械配件进行选择时,所执行的动作可以认为是执行了从配件切换控件对应的位置至目标枪械配件对应的位置的拖动操作,即在用户操作时更像是通过一个拖动操作对目标枪械配件进行选择,该选择过程更加便捷且更易操作。
本实施例提供的方法,通过扇形区域面板显示枪械配件,并将使用频率高的枪械配件显示在距离配件切换控件最近的内层,便于对使用频率高的枪械配件进行切换,当终端横屏显示第一虚拟环境界面时,使用频率高的枪械配件显示在距离拇指所在的配件切换控件最近的内层,便于拇指对使用频率较高的枪械配件进行选择。
本实施例提供的方法,通过扇形区域面板显示枪械配件,并将适配程度高的枪械配件显示在距离配件切换控件最近的内层,便于对适配程度高的枪械配件进行切换,当终端横屏显示第一虚拟环境界面时,适配程度高的枪械配件显 示在距离拇指所在的配件切换控件最近的内层,便于拇指对适配程度较高的枪械配件进行选择。
在一个可选的实施例中,目标槽位是用于装配瞄准镜的槽位,显示第一虚拟环境界面时虚拟枪械装配有第一瞄准镜。请参考图10,图10是本申请另一个示例性的实施例提供的虚拟环境中的配件选择方法流程图,本实施例中以该方法应用于终端中为例进行说明,该虚拟环境中的配件选择方法包括:
步骤1001,接收开镜操作。
可选地,该开镜操作用于通过目标槽位上的第一瞄准镜观察虚拟环境。
步骤1002,根据开镜操作显示第一虚拟环境界面。
可选地,该第一环境界面包括虚拟对象通过第一瞄准镜的放大倍数放大显示的虚拟环境。
可选地,该第一环境界面中把控虚拟对象通过第一瞄准镜的放大倍数对虚拟环境进行放大显示观察的画面,该画面上叠加显示有配件切换控件,该虚拟对象在虚拟环境中持有虚拟枪械,该虚拟枪械上装配有上述第一瞄准镜。
步骤1003,接收在配件切换控件上的触发操作。
步骤1004,根据触发操作在配件切换控件的周侧局部区域上显示候选配件区域。
可选地,该候选配件区域中显示有属于同一配件类型的n个枪械配件,该枪械配件是虚拟对象已获取的用于装配至虚拟枪械上的与配件类型对应的槽位的配件,n为正整数。
可选地,根据触发操作在配件切换控件的周侧局部区域上显示候选配件区域时,可以根据触发操作,在配件切换控件的周侧显示矩形区域面板,该矩形区域面板中显示有n个枪械配件。
示意性的,如图11所示,在第一虚拟环境界面110中显示有配件切换控件111,当接收到在该配件切换控件111上的触发信号时,显示矩形区域面板112,该矩形区域面板112中显示有3个枪械配件。
步骤1005,接收在n个枪械配件中的目标枪械配件上的选择操作。
可选地,当上述触发操作为按压操作时,接收与该按压操作衔接的拖动操作,该拖动操作的起始位置为配件切换控件对应的第一显示位置,该拖动操作的结束位置为与目标枪械配件对应的第二显示位置;接收在该第二显示位置的 拖动结束操作,并将该拖动结束操作确定为在目标枪械配件上的选择操作。
步骤1006,根据选择操作显示第二虚拟环境界面。
可选地,该第二虚拟环境界面包括以第二瞄准镜的放大倍数显示的虚拟环境。
示意性的,请参考图12,第一虚拟环境界面121包括通过红点瞄准镜对虚拟环境进行观察的画面,在第一虚拟环境界面121中显示有配件切换控件122,当接收到在该配件切换控件122上的按压操作时,显示扇形区域面板123,接收到衔接该按压操作的拖动操作,该拖动操作的结束位置为候选框1231对应的位置,并接收结束按压操作,将该候选框1231中的四倍瞄准镜作为切换后的瞄准镜,显示第二虚拟环境界面124,该第二虚拟环境界面124中包括通过四倍镜观察虚拟环境的画面。
综上所述,本实施例提供的方法,可以在使用瞄准镜对虚拟环境进行观察的情况下,直接对已捡拾的瞄准镜进行选择,并直接切换至被选择的瞄准镜对应的虚拟环境界面,对瞄准镜进行使用的步骤简单,人机交互效率较高。
在一个可选的实施例中,该候选配件区域还包括配件拆卸控件,该配件拆卸控件用于表示卸下虚拟枪械的目标槽位上的枪械配件。请参考图13,图13是本申请另一个示例性的实施例提供的虚拟环境中的配件选择方法流程图,本实施例中以该方法应用于终端中为例进行说明,该虚拟环境中的配件选择方法包括:
步骤1301,显示第一虚拟环境界面。
可选地,该第一环境界面包括虚拟对象对虚拟环境进行观察的画面,该画面上叠加显示有配件切换控件,该虚拟对象在虚拟环境中持有虚拟枪械。
可选地,该第一虚拟环境界面还可以是通过虚拟枪械上的瞄准镜对虚拟环境进行观察的画面,以虚拟枪械上的目标槽位用于装配瞄准镜为例,该虚拟枪械装配有第一瞄准镜,则接收开镜操作,该开镜操作用于通过目标槽位上的第一瞄准镜观察虚拟环境,根据第一瞄准镜显示第一虚拟环境界面,该第一虚拟环境界面包括以第一瞄准镜的放大倍数放大显示的虚拟环境。
步骤1302,接收在配件切换控件上的触发操作。
可选地,接收触发操作的方式包括如下方式中的至少一种:
一,接收在配件切换控件上的点击操作;
二,接收在配件切换控件上的按压操作。
步骤1303,根据触发操作在配件切换控件的周侧局部区域上显示候选配件区域。
可选地,该候选配件区域包括配件拆卸控件。
可选地,该候选配件区域中显示有属于同一配件类型的n个枪械配件,该枪械配件是虚拟对象已获取的用于装配至虚拟枪械上的与配件类型对应的槽位的配件,n为正整数。
步骤1304,接收在配件拆卸控件上的控件选择操作。
可选地,接收在该目标枪械配件上的控件选择操作的方式包括如下方式中的任意一种:
第一,接收在该配件拆卸控件上的点击操作;
第二,当上述触发操作为按压操作时,接收与该按压操作衔接的拖动操作,该拖动操作的起始位置为配件切换控件对应的第一显示位置,该拖动操作的结束位置为与配件拆卸控件对应的第三显示位置;接收在该第三显示位置的按压结束操作,并将该按压结束操作确定为在配件拆卸控件上的控件选择操作。
示意性的,当在配件切换控件上接收到按压操作时(如:用户通过手指在屏幕上对配件切换控件进行按压),显示候选配件区域,该候选配件区域中还包括配件拆卸控件,接收与该按压操作衔接的拖动操作,该拖动操作的起始位置为与配件切换控件对应的第一显示位置,该拖动操作的结束位置为配件拆卸控件对应的第三显示位置(即用户将手指从配件切换控件对应的位置拖动孩子配件拆卸控件对应的位置),接收在该配件拆卸控件上的按压结束操作(如:用户将手指从屏幕上离开),则将该按压结束操作确定为在配件拆卸控件中的控件选择操作,并将虚拟枪械上枪械配件卸下。
步骤1305,根据控件选择操作显示第三虚拟环境界面。
可选地,该第三虚拟环境界面包括虚拟对象对虚拟环境进行观察的画面,该虚拟对象持有虚拟枪械,该虚拟枪械的目标槽位上未装配枪械配件。
可选地,当第一虚拟环境界面包括通过瞄准镜对虚拟环境进行观察的画面时,该第三虚拟环境界面包括通过虚拟枪械对应的机械瞄准镜对虚拟环境进行观察的画面。
综上所述,本实施例提供的方法,通过在候选配件区域还显示配件拆卸控件,并对该配件拆卸控件进行选择,可以直接将虚拟枪械上的枪械配件进行拆 卸,而无需再打开背包对枪械配件进行拆卸,整个切换过程中的操作步骤简单,用户在拆卸枪械配件时的人机交互效率较高。
值得注意的是,上述方法中对配件拆卸控件和/或对目标枪械配件进行选择时,可以通过点击操作或拖动操作两种方式进行,以该两种方式对配件拆卸控件和/或对目标枪械配件的选择进行示意性的说明。
可选地,该第一虚拟环境界面中还包括取消控件。请参考下图14及图15,图14是通过拖动操作对配件拆卸控件和/或对目标枪械配件进行选择的方法流程图,如图14所示,该方法包括:
步骤1401,开始流程。
步骤1402,按压配件切换控件。
步骤1403,显示候选配件区域。
可选地,该候选配件区域中显示有属于同一配件类型的n个枪械配件。该枪械配件是虚拟对象已获取的用于装配至虚拟枪械上的与配件类型对应的槽位的配件,n为正整数。
可选地,根据触发操作在配件切换控件的周侧局部区域上显示候选配件区域时,包括如下情况中的至少一种:
第一,根据触发操作,以配件切换控件为中心在周侧局部区域上显示扇形区域面板,该扇形区域面板中包括m个候选框,m个候选框的n个候选框显示有n个枪械配件,其中m≥n;
第二,根据触发操作,在配件切换控件的周侧显示矩形区域面板,该矩形区域面板中显示有n个枪械配件。
可选地,该候选配件区域还包括配件拆卸控件。
值得注意的是,上述候选配件区域以扇形区域面板以及矩形区域面板为例进行说明。实际操作中,该候选配件区域还可以是圆形区域面板、六边形区域面板等,本申请实施例对此不加以限定。
步骤1404,接收与目标枪械配件对应的拖动信号。
即该拖动信号是拖动至目标枪械配件的拖动操作触发的信号。
步骤1405,结束按压操作。
即对该目标枪械配件进行选择。
步骤1406,判断目标枪械配件是否为已装配的枪械配件。
步骤1407,当目标枪械配件不是已装配的枪械配件时,将目标枪械配件装配至虚拟枪械,并关闭显示候选配件区域。
步骤1408,当目标枪械配件是已装配的枪械配件时,虚拟枪械上装配的目标枪械配件无变化,并关闭显示候选配件区域。
步骤1409,接收与配件拆卸控件对应的拖动信号。
即该拖动信号是拖动至配件拆卸控件的拖动操作触发的信号。
步骤1410,结束按压操作。
步骤1411,卸下所述虚拟枪械上的目标槽位上的枪械配件,并关闭显示候选配件区域。
步骤1412,接收与取消控件对应的拖动信号。
即该拖动信号是拖动至取消控件的拖动操作触发的信号。
步骤1413,结束按压操作。
步骤1414,虚拟枪械上装配的目标枪械配件无变化,并关闭显示候选配件区域。
步骤1415,结束流程。
图15是通过点击操作对配件拆卸控件和/或对目标枪械配件进行选择的方法流程图,如图15所示,上述图14所示的方法流程图中,步骤1402还可以替换实现为步骤1502、上述步骤1404至步骤1405还可以替换实现为步骤1503,步骤1409至步骤1410还可以替换实现为步骤1504,步骤1412至步骤1413还可以替换实现为步骤1505。其中:
步骤1502,点击配件切换控件。
步骤1503,点击目标枪械配件。
步骤1504,点击配件拆卸控件。
步骤1505,点击取消控件。
综上所述,本申请实施例提供的虚拟环境中的配件选择方法,通过在画面中叠加显示配件显示控件,当接收到在该配件显示控件上的触发操作时,在配件显示控件的周侧显示候选配件区域,该候选配件区域中显示有属于同一配件类型的n个枪械配件,用户可以在该n个枪械配件中选择任意一个配件装配至目标槽位,而无需再打开背包对待选择配件进行选择,步骤简单,用户在更换配件时的人机交互效率较高。
图16是本申请一个示例性实施例提供的虚拟环境中的配件选择装置的结构框图,以该装置应用于终端中为例进行说明,如图16所示,该装置包括:显示模块161以及接收模块162;
显示模块161,用于显示第一虚拟环境界面,所述第一虚拟环境界面包括虚拟对象对所述虚拟环境进行观察的画面,所述画面上叠加显示有配件切换控件,所述虚拟对象在所述虚拟环境中持有虚拟枪械;
接收模块162,用于接收在所述配件切换控件上的触发操作;
所述显示模块161,还用于根据所述触发操作在所述配件切换控件的周侧局部区域上显示候选配件区域,所述候选配件区域中显示有属于同一配件类型的n个枪械配件,所述枪械配件是所述虚拟对象已获取且装配至所述虚拟枪械上的配件,其中,所述枪械配件装配在所述虚拟枪械上与所述配件类型对应的槽位上,n为正整数;
所述接收模块162,还用于在所述n个枪械配件中的目标枪械配件上的选择操作;
所述显示模块161,还用于根据所述选择操作显示第二虚拟环境界面,所述第二虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上装配有所述目标枪械配件。
在一个可选的实施例中,所述显示模块161,还用于根据所述触发操作,以所述配件切换控件为中心在所述周侧局部区域上显示扇形区域面板,所述扇形区域面板中包括m个候选框,所述m个候选框中的n个候选框显示有所述n个枪械配件,m≥n。
在一个可选的实施例中,所述接收模块162,还用于接收在所述配件切换控件上的按压操作;
所述接收模块162,还用于接收与所述按压操作衔接的拖动操作,所述拖动操作的起始位置为所述配件切换控件对应的第一显示位置,所述拖动操作的结束位置为与所述目标枪械配件对应的第二显示位置;接收在所述第二显示位置的拖动结束操作,并将所述拖动结束操作确定为在所述目标枪械配件上的选择操作。
在一个可选的实施例中,所述候选配件区域用于根据所述虚拟对象对所述 枪械配件的使用频率按序显示所述n个枪械配件;
或,
所述候选配件区域用于根据所述枪械配件与所述虚拟枪械的适配程度按序显示所述n个枪械配件;
或,
所述候选配件区域用于根据预设显示顺序显示所述n个枪械配件;
或,
所述候选配件区域用于根据所述虚拟对象对所述枪械配件的捡拾顺序按序显示所述n个枪械配件。
在一个可选的实施例中,如图17所示,该显示模块161还包括接收子模块1611和显示子模块1612;
所述目标槽位是用于装配瞄准镜的槽位,显示所述第一虚拟环境界面时所述虚拟枪械的目标槽位上装配有第一瞄准镜,所述目标枪械配件为第二瞄准镜;
所述显示模块161,包括:
接收子模块1611,用于接收开镜操作,所述开镜操作用于通过所述目标槽位上的所述第一瞄准镜观察所述虚拟环境;
显示子模块1612,用于根据所述开镜操作显示所述第一虚拟环境界面,所述第一虚拟环境界面包括以所述第一瞄准镜的放大倍数放大显示的所述虚拟环境;
所述显示模块161,还用于根据所述选择操作显示所述第二虚拟环境界面,所述第二虚拟环境界面包括以所述第二瞄准镜的放大倍数放大显示的所述虚拟环境。
在一个可选的实施例中,所述候选配件区域还包括配件拆卸控件,所述配件拆卸控件用于卸下所述目标槽位的所述枪械配件;
所述接收模块162,还用于接收在所述配件拆卸控件上的控件选择操作;
所述显示模块161,还用于根据所述控件选择操作显示第三虚拟环境界面,所述第三虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上未装配有所述枪械配件。
在一个可选的实施例中,所述目标槽位是用于装配瞄准镜的槽位,显示所述第一虚拟环境界面时所述虚拟枪械的目标槽位上装配有第一瞄准镜;
所述接收子模块1611,还用于接收开镜操作,所述开镜操作用于通过所述目标槽位上的所述第一瞄准镜观察所述虚拟环境;
所述显示子模块1612,还用于根据所述开镜操作显示所述第一虚拟环境界面,所述第一虚拟环境界面包括以所述第一瞄准镜的放大倍数放大显示的所述虚拟环境;
所述显示模块161,还用于根据所述控件选择操作显示所述第三虚拟环境界面,所述第三虚拟环境界面包括通过所述虚拟枪械对应的所述机械瞄准镜对所述虚拟环境进行观察的画面。
图18示出了本发明一个示例性实施例提供的终端1800的结构框图。该终端1800可以是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端1800还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。
通常,终端1800包括有:处理器1801和存储器1802。
处理器1801可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1801可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1801也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1801可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1801还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1802可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1802还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1802中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少 一个指令用于被处理器1801所执行以实现本申请中方法实施例提供的虚拟环境中的配件选择方法。
在一些实施例中,终端1800还可选包括有:外围设备接口1803和至少一个外围设备。处理器1801、存储器1802和外围设备接口1803之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口1803相连。具体地,外围设备包括:射频电路1804、触摸显示屏1805、摄像头1806、音频电路1807、定位组件1808和电源1809中的至少一种。
外围设备接口1803可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1801和存储器1802。在一些实施例中,处理器1801、存储器1802和外围设备接口1803被集成在同一芯片或电路板上;在一些其他实施例中,处理器1801、存储器1802和外围设备接口1803中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。
射频电路1804用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1804通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1804将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1804包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路1804可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1804还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。
显示屏1805用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏1805是触摸显示屏时,显示屏1805还具有采集在显示屏1805的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1801进行处理。此时,显示屏1805还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1805可以为一个,设置终端1800的前面板;在另一些实施例中,显示屏1805可以为至少两个,分别设置在终端1800的不同表面或呈折叠设计;在再一些实施例中,显示屏1805可以是柔性显示屏,设置在终端1800的弯曲表面上或折叠面上。甚至,显示屏1805还可以设置成非矩形的不规则图形,也 即异形屏。显示屏1805可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
摄像头组件1806用于采集图像或视频。可选地,摄像头组件1806包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件1806还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。
音频电路1807可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1801进行处理,或者输入至射频电路1804以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端1800的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器1801或射频电路1804的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1807还可以包括耳机插孔。
定位组件1808用于定位终端1800的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件1808可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。
电源1809用于为终端1800中的各个组件进行供电。电源1809可以是交流电、直流电、一次性电池或可充电电池。当电源1809包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。
在一些实施例中,终端1800还包括有一个或多个传感器1810。该一个或多个传感器1810包括但不限于:加速度传感器1811、陀螺仪传感器1812、压力 传感器1813、指纹传感器1814、光学传感器1815以及接近传感器1816。
加速度传感器1811可以检测以终端1800建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1811可以用于检测重力加速度在三个坐标轴上的分量。处理器1801可以根据加速度传感器1811采集的重力加速度信号,控制触摸显示屏1805以横向视图或纵向视图进行用户界面的显示。加速度传感器1811还可以用于游戏或者用户的运动数据的采集。
陀螺仪传感器1812可以检测终端1800的机体方向及转动角度,陀螺仪传感器1812可以与加速度传感器1811协同采集用户对终端1800的3D动作。处理器1801根据陀螺仪传感器1812采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。
压力传感器1813可以设置在终端1800的侧边框和/或触摸显示屏1805的下层。当压力传感器1813设置在终端1800的侧边框时,可以检测用户对终端1800的握持信号,由处理器1801根据压力传感器1813采集的握持信号进行左右手识别或快捷操作。当压力传感器1813设置在触摸显示屏1805的下层时,由处理器1801根据用户对触摸显示屏1805的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。
指纹传感器1814用于采集用户的指纹,由处理器1801根据指纹传感器1814采集到的指纹识别用户的身份,或者,由指纹传感器1814根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器1801授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器1814可以被设置终端1800的正面、背面或侧面。当终端1800上设置有物理按键或厂商Logo时,指纹传感器1814可以与物理按键或厂商Logo集成在一起。
光学传感器1815用于采集环境光强度。在一个实施例中,处理器1801可以根据光学传感器1815采集的环境光强度,控制触摸显示屏1805的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏1805的显示亮度;当环境光强度较低时,调低触摸显示屏1805的显示亮度。在另一个实施例中,处理器1801还可以根据光学传感器1815采集的环境光强度,动态调整摄像头组件1806的拍摄参数。
接近传感器1816,也称距离传感器,通常设置在终端1800的前面板。接近传感器1816用于采集用户与终端1800的正面之间的距离。在一个实施例中,当接近传感器1816检测到用户与终端1800的正面之间的距离逐渐变小时,由处理器1801控制触摸显示屏1805从亮屏状态切换为息屏状态;当接近传感器1816检测到用户与终端1800的正面之间的距离逐渐变大时,由处理器1801控制触摸显示屏1805从息屏状态切换为亮屏状态。
本领域技术人员可以理解,图18中示出的结构并不构成对终端1800的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,该计算机可读存储介质可以是上述实施例中的存储器中所包含的计算机可读存储介质;也可以是单独存在,未装配入终端中的计算机可读存储介质。该计算机可读存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如图5、图10、图13至图15任一所述的虚拟环境中的配件选择方法。
可选地,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、固态硬盘(SSD,Solid State Drives)或光盘等。其中,随机存取记忆体可以包括电阻式随机存取记忆体(ReRAM,Resistance Random Access Memory)和动态随机存取存储器(DRAM,Dynamic Random Access Memory)。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (16)

  1. 一种虚拟环境中的配件选择方法,其特征在于,应用于终端中,所述方法包括:
    显示第一虚拟环境界面,所述第一虚拟环境界面包括虚拟对象对所述虚拟环境进行观察的画面,所述画面上叠加显示有配件切换控件,所述虚拟对象在所述虚拟环境中持有虚拟枪械;
    接收在所述配件切换控件上的触发操作;
    根据所述触发操作在所述配件切换控件的周侧局部区域上显示候选配件区域,所述候选配件区域中显示有属于同一配件类型的n个枪械配件,所述枪械配件是所述虚拟对象已获取且装配至所述虚拟枪械上的配件,其中,所述枪械配件装配在所述虚拟枪械上与所述配件类型对应的槽位上,n为正整数;
    接收在所述n个枪械配件中的目标枪械配件上的选择操作;
    根据所述选择操作显示第二虚拟环境界面,所述第二虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上装配有所述目标枪械配件。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述触发操作在所述配件切换控件的周侧局部区域上显示候选配件区域,包括:
    根据所述触发操作,以所述配件切换控件为中心在所述周侧局部区域上显示扇形区域面板,所述扇形区域面板中包括m个候选框,所述m个候选框中的n个候选框显示有所述n个枪械配件,m≥n。
  3. 根据权利要求1所述的方法,其特征在于,所述接收在所述配件切换控件上的触发操作包括:
    接收在所述配件切换控件上的按压操作;
    所述接收在所述n个枪械配件中的目标枪械配件上的选择操作,包括:
    接收与所述按压操作衔接的拖动操作,所述拖动操作的起始位置为所述配件切换控件对应的第一显示位置,所述拖动操作的结束位置为与所述目标枪械配件对应的第二显示位置;
    接收在所述第二显示位置的拖动结束操作,并将所述拖动结束操作确定为 在所述目标枪械配件上的选择操作。
  4. 根据权利要求2所述的方法,其特征在于,
    所述候选配件区域用于根据所述虚拟对象对所述枪械配件的使用频率按序显示所述n个枪械配件;
    或,
    所述候选配件区域用于根据所述枪械配件与所述虚拟枪械的适配程度按序显示所述n个枪械配件;
    或,
    所述候选配件区域用于根据预设显示顺序显示所述n个枪械配件;
    或,
    所述候选配件区域用于根据所述虚拟对象对所述枪械配件的捡拾顺序按序显示所述n个枪械配件。
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述目标槽位是用于装配瞄准镜的槽位,显示所述第一虚拟环境界面时所述虚拟枪械的所述目标槽位上装配有第一瞄准镜,所述目标枪械配件为第二瞄准镜;
    所述显示第一虚拟环境界面,包括:
    接收开镜操作,所述开镜操作用于通过所述目标槽位上的所述第一瞄准镜观察所述虚拟环境;根据所述开镜操作显示所述第一虚拟环境界面,所述第一虚拟环境界面包括以所述第一瞄准镜的放大倍数放大显示的所述虚拟环境;
    所述根据所述选择操作显示第二虚拟环境界面,包括:
    根据所述选择操作显示所述第二虚拟环境界面,所述第二虚拟环境界面包括以所述第二瞄准镜的放大倍数放大显示的所述虚拟环境。
  6. 根据权利要求1至4任一所述的方法,其特征在于,所述候选配件区域还包括配件拆卸控件,所述配件拆卸控件用于卸下所述目标槽位的所述枪械配件;
    所述方法,还包括:
    接收在所述配件拆卸控件上的控件选择操作;
    根据所述控件选择操作显示第三虚拟环境界面,所述第三虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上未装配有所述枪械配件。
  7. 根据权利要求6所述的方法,其特征在于,所述目标槽位是用于装配瞄准镜的槽位,显示所述第一虚拟环境界面时所述虚拟枪械的所述目标槽位上装配有第一瞄准镜;
    所述显示第一虚拟环境界面,包括:
    接收开镜操作,所述开镜操作用于通过所述目标槽位上的所述第一瞄准镜观察所述虚拟环境;根据所述开镜操作显示所述第一虚拟环境界面,所述第一虚拟环境界面包括以所述第一瞄准镜的放大倍数放大显示的所述虚拟环境;
    所述根据所述控件选择操作显示第三虚拟环境界面,包括:
    根据所述控件选择操作显示所述第三虚拟环境界面,所述第三虚拟环境界面包括通过所述虚拟枪械对应的机械瞄准镜对所述虚拟环境进行观察的画面。
  8. 一种虚拟环境中的配件选择装置,其特征在于,应用于终端中,所述装置包括:
    显示模块,用于显示第一虚拟环境界面,所述第一虚拟环境界面包括虚拟对象对所述虚拟环境进行观察的画面,所述画面上叠加显示有配件切换控件,所述虚拟对象在所述虚拟环境中持有虚拟枪械;
    接收模块,用于接收在所述配件切换控件上的触发操作;
    所述显示模块,还用于根据所述触发操作在所述配件切换控件的周侧局部区域上显示候选配件区域,所述候选配件区域中显示有属于同一配件类型的n个枪械配件,所述枪械配件是所述虚拟对象已获取且装配至所述虚拟枪械上的配件,其中,所述枪械配件装配在所述虚拟枪械上与所述配件类型对应的槽位上,n为正整数;
    所述接收模块,还用于在所述n个枪械配件中的目标枪械配件上的选择操作;
    所述显示模块,还用于根据所述选择操作显示第二虚拟环境界面,所述第二虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟 对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上装配有所述目标枪械配件。
  9. 根据权利要求8所述的装置,其特征在于,所述显示模块,还用于根据所述触发操作,以所述配件切换控件为中心在所述周侧局部区域上显示扇形区域面板,所述扇形区域面板中包括m个候选框,所述m个候选框中的n个候选框显示有所述n个枪械配件,m≥n。
  10. 根据权利要求8所述的装置,其特征在于,所述接收模块,还用于接收在所述配件切换控件上的按压操作;
    所述接收模块,还用于接收与所述按压操作衔接的拖动操作,所述拖动操作的起始位置为所述配件切换控件对应的第一显示位置,所述拖动操作的结束位置为与所述目标枪械配件对应的第二显示位置;接收在所述第二显示位置的拖动结束操作,并将所述拖动结束操作确定为在所述目标枪械配件上的选择操作。
  11. 根据权利要求9所述的装置,其特征在于,
    所述候选配件区域用于根据所述虚拟对象对所述枪械配件的使用频率按序显示所述n个枪械配件;
    或,
    所述候选配件区域用于根据所述枪械配件与所述虚拟枪械的适配程度按序显示所述n个枪械配件;
    或,
    所述候选配件区域用于根据预设显示顺序显示所述n个枪械配件;
    或,
    所述候选配件区域用于根据所述虚拟对象对所述枪械配件的捡拾顺序按序显示所述n个枪械配件。
  12. 根据权利要求8至11任一所述的装置,其特征在于,所述目标槽位是用于装配瞄准镜的槽位,显示所述第一虚拟环境界面时所述虚拟枪械的所述目 标槽位上装配有第一瞄准镜,所述目标枪械配件为第二瞄准镜;
    所述显示模块,包括:
    接收子模块,用于接收开镜操作,所述开镜操作用于通过所述目标槽位上的所述第一瞄准镜观察所述虚拟环境;
    显示子模块,用于根据所述开镜操作显示所述第一虚拟环境界面,所述第一虚拟环境界面包括以所述第一瞄准镜的放大倍数放大显示的所述虚拟环境;
    所述显示模块,还用于根据所述选择操作显示所述第二虚拟环境界面,所述第二虚拟环境界面包括以所述第二瞄准镜的放大倍数放大显示的所述虚拟环境。
  13. 根据权利要求8至11任一所述的装置,其特征在于,所述候选配件区域还包括配件拆卸控件,所述配件拆卸控件用于卸下所述目标槽位的所述枪械配件;
    所述接收模块,还用于接收在所述配件拆卸控件上的控件选择操作;
    所述显示模块,还用于根据所述控件选择操作显示第三虚拟环境界面,所述第三虚拟环境界面包括所述虚拟对象对所述虚拟环境进行观察的画面,所述虚拟对象持有所述虚拟枪械,所述虚拟枪械的所述目标槽位上未装配有所述枪械配件。
  14. 根据权利要求13所述的装置,其特征在于,所述目标槽位是用于装配瞄准镜的槽位,显示所述第一虚拟环境界面时所述虚拟枪械的所述目标槽位上装配有第一瞄准镜;
    所述接收子模块,还用于接收开镜操作,所述开镜操作用于通过所述目标槽位上的所述第一瞄准镜观察所述虚拟环境;
    所述显示子模块,还用于根据所述开镜操作显示所述第一虚拟环境界面,所述第一虚拟环境界面包括以所述第一瞄准镜的放大倍数放大显示的所述虚拟环境;
    所述显示模块,还用于根据所述控件选择操作显示所述第三虚拟环境界面,所述第三虚拟环境界面包括通过所述虚拟枪械对应的机械瞄准镜对所述虚拟环境进行观察的画面。
  15. 一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至7任一所述的虚拟环境中的配件选择方法。
  16. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1至7任一所述的虚拟环境中的配件选择方法。
PCT/CN2019/098017 2018-08-08 2019-07-26 虚拟环境中的配件选择方法、装置、设备及可读存储介质 WO2020029817A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2021510520A JP7155405B2 (ja) 2018-08-08 2019-07-26 仮想環境におけるアクセサリー選択方法及びその装置、機器並びにコンピュータプログラム
US17/017,538 US11517819B2 (en) 2018-08-08 2020-09-10 Method and apparatus for selecting accessory in virtual environment, device, and readable storage medium
JP2022160366A JP7471369B2 (ja) 2018-08-08 2022-10-04 仮想環境におけるアクセサリー選択方法及びその装置、機器並びにコンピュータプログラム
US17/978,911 US20230055575A1 (en) 2018-08-08 2022-11-01 Method and apparatus for selecting accessory in virtual environment, device, and readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810899065.2 2018-08-08
CN201810899065.2A CN109045695B (zh) 2018-08-08 2018-08-08 虚拟环境中的配件选择方法、设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/017,538 Continuation US11517819B2 (en) 2018-08-08 2020-09-10 Method and apparatus for selecting accessory in virtual environment, device, and readable storage medium

Publications (1)

Publication Number Publication Date
WO2020029817A1 true WO2020029817A1 (zh) 2020-02-13

Family

ID=64678949

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/098017 WO2020029817A1 (zh) 2018-08-08 2019-07-26 虚拟环境中的配件选择方法、装置、设备及可读存储介质

Country Status (4)

Country Link
US (2) US11517819B2 (zh)
JP (2) JP7155405B2 (zh)
CN (1) CN109045695B (zh)
WO (1) WO2020029817A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111298438A (zh) * 2020-02-21 2020-06-19 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、设备和存储介质
CN113262472A (zh) * 2021-05-07 2021-08-17 网易(杭州)网络有限公司 选项控件的处理方法、装置、处理器及电子装置
CN114225389A (zh) * 2021-10-11 2022-03-25 腾讯科技(深圳)有限公司 虚拟物品收集方法、装置、终端及存储介质

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109045695B (zh) * 2018-08-08 2020-09-29 腾讯科技(深圳)有限公司 虚拟环境中的配件选择方法、设备及存储介质
CN110134462B (zh) * 2019-05-09 2020-12-01 腾讯科技(深圳)有限公司 虚拟角色的控制方法和装置、存储介质及电子装置
CN110413171B (zh) * 2019-08-08 2021-02-09 腾讯科技(深圳)有限公司 控制虚拟对象进行快捷操作的方法、装置、设备及介质
CN111013136B (zh) * 2019-12-12 2021-09-03 腾讯科技(深圳)有限公司 虚拟场景中的移动控制方法、装置、设备及存储介质
CN111318014A (zh) * 2020-01-23 2020-06-23 腾讯科技(深圳)有限公司 图像显示方法和装置、存储介质及电子装置
CN111701243A (zh) * 2020-06-19 2020-09-25 腾讯科技(深圳)有限公司 一种虚拟物件的配置方法、虚拟物件的展示方法及装置
CN112121427B (zh) * 2020-09-17 2022-05-20 腾讯科技(深圳)有限公司 虚拟道具的控制方法和装置及存储介质
CN112156458B (zh) * 2020-09-22 2024-01-19 网易(杭州)网络有限公司 显示控制方法及装置、存储介质、电子设备
CN112138393A (zh) * 2020-10-15 2020-12-29 腾讯科技(深圳)有限公司 虚拟道具的配置方法、装置、终端及存储介质
CN113101661A (zh) * 2021-05-10 2021-07-13 网易(杭州)网络有限公司 配件装配方法、装置、存储介质及计算机设备
CN113663322A (zh) * 2021-07-27 2021-11-19 网易(杭州)网络有限公司 游戏中的交互控制方法及装置
CN113694513A (zh) * 2021-08-16 2021-11-26 网易(杭州)网络有限公司 游戏中拾取物品的方法、装置、存储介质及电子设备
CN113633985A (zh) * 2021-08-18 2021-11-12 腾讯科技(深圳)有限公司 一种虚拟配件的使用方法、相关装置、设备以及存储介质
CN113687761B (zh) * 2021-08-24 2023-08-08 网易(杭州)网络有限公司 游戏控制方法及装置、电子设备、存储介质
CN113680053B (zh) * 2021-08-30 2023-06-13 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、终端及存储介质
CN116943236A (zh) * 2022-04-18 2023-10-27 腾讯科技(深圳)有限公司 虚拟载具的选择方法、装置、设备、存储介质及程序产品

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107913520A (zh) * 2017-12-14 2018-04-17 网易(杭州)网络有限公司 信息处理方法、装置、电子设备及存储介质
CN108295465A (zh) * 2018-02-12 2018-07-20 腾讯科技(深圳)有限公司 在三维虚拟环境中分享视野的方法、装置、设备及存储介质
CN109045695A (zh) * 2018-08-08 2018-12-21 腾讯科技(深圳)有限公司 虚拟环境中的配件选择方法、设备及存储介质

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8469824B1 (en) * 2004-09-27 2013-06-25 Hasbro, Inc. Device and method for an electronic tag game
JP2006305176A (ja) * 2005-04-28 2006-11-09 Nintendo Co Ltd ゲームプログラムおよびゲーム装置
JP4832824B2 (ja) 2005-07-25 2011-12-07 株式会社バンダイナムコゲームス プログラム、情報記憶媒体及びゲーム装置
US8108092B2 (en) * 2006-07-14 2012-01-31 Irobot Corporation Autonomous behaviors for a remote vehicle
JP5157329B2 (ja) * 2007-08-31 2013-03-06 株式会社セガ ゲーム装置
US8342926B2 (en) * 2008-07-13 2013-01-01 Sony Computer Entertainment America Llc Game aim assist
US9079099B1 (en) * 2012-06-13 2015-07-14 Airdrop Gaming, Llc First-person shooter gaming accessory
US9480921B2 (en) * 2014-03-12 2016-11-01 Wargaming.Net Limited Potential damage indicator of a targeted object
US10311679B2 (en) * 2014-12-12 2019-06-04 Synergy Blue, Llc First person shooter, RPG and sports themed hybrid arcade-type, wager-based gaming techniques
US20160232715A1 (en) * 2015-02-10 2016-08-11 Fangwei Lee Virtual reality and augmented reality control with mobile devices
CN106730810B (zh) * 2015-11-19 2020-02-18 网易(杭州)网络有限公司 一种移动智能终端的游戏按钮切换方法及装置
US10518172B2 (en) * 2016-03-07 2019-12-31 Htc Corporation Accessory management of virtual reality system
CN107291357A (zh) * 2016-04-01 2017-10-24 腾讯科技(深圳)有限公司 物品领取方法、装置及系统
US9919213B2 (en) * 2016-05-03 2018-03-20 Hothead Games Inc. Zoom controls for virtual environment user interfaces
US20170354864A1 (en) * 2016-06-11 2017-12-14 Sony Interactive Entertainment Inc. Directional Interface Object
US20190156558A1 (en) * 2016-08-31 2019-05-23 Factualvr, Inc. Virtual reality system
US9939234B1 (en) * 2016-10-06 2018-04-10 Joel Glauber Shooting simulator with GPS and augmented reality
US10343069B2 (en) * 2017-04-11 2019-07-09 Sony Interactive Entertainment LLC Systems and methods for executing a training program based on player DNA
CN107469351B (zh) * 2017-06-20 2021-02-09 网易(杭州)网络有限公司 游戏画面显示方法及装置、存储介质、电子设备
CN107678647B (zh) * 2017-09-26 2023-04-28 网易(杭州)网络有限公司 虚拟射击主体控制方法、装置、电子设备及存储介质
CN107694085A (zh) 2017-10-24 2018-02-16 网易(杭州)网络有限公司 游戏角色和装备的控制方法及装置、触摸设备、存储介质
CN108355353B (zh) 2017-12-29 2019-10-29 网易(杭州)网络有限公司 信息处理方法及装置、存储介质、电子设备
US10788290B2 (en) * 2018-01-22 2020-09-29 Hvrt Corp. Systems and methods for shooting simulation and training
US10572016B2 (en) * 2018-03-06 2020-02-25 Microsoft Technology Licensing, Llc Spatialized haptic device force feedback

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107913520A (zh) * 2017-12-14 2018-04-17 网易(杭州)网络有限公司 信息处理方法、装置、电子设备及存储介质
CN108295465A (zh) * 2018-02-12 2018-07-20 腾讯科技(深圳)有限公司 在三维虚拟环境中分享视野的方法、装置、设备及存储介质
CN109045695A (zh) * 2018-08-08 2018-12-21 腾讯科技(深圳)有限公司 虚拟环境中的配件选择方法、设备及存储介质

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Does experience server of stimultation battleground has car music?", BILIBILI, 25 July 2018 (2018-07-25), XP055683549, Retrieved from the Internet <URL:www.bilibili.com/video/av27679580?fromsearch&seid=2437743375312101797> *
ANONYMOUS: "Experience server: One second switching mirro tips", KSAIKSIAOKSI GAME, 4 August 2018 (2018-08-04), Retrieved from the Internet <URL:http://www.iqiyi.com/w_19rzmba35d.htm1#curid=21140948509_fc25dlec2940adf370658df2a33830f0> *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111298438A (zh) * 2020-02-21 2020-06-19 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、设备和存储介质
CN111298438B (zh) * 2020-02-21 2021-08-17 腾讯科技(深圳)有限公司 虚拟对象的控制方法、装置、设备和存储介质
CN113262472A (zh) * 2021-05-07 2021-08-17 网易(杭州)网络有限公司 选项控件的处理方法、装置、处理器及电子装置
CN114225389A (zh) * 2021-10-11 2022-03-25 腾讯科技(深圳)有限公司 虚拟物品收集方法、装置、终端及存储介质
CN114225389B (zh) * 2021-10-11 2023-07-14 腾讯科技(深圳)有限公司 虚拟物品收集方法、装置、终端及存储介质

Also Published As

Publication number Publication date
CN109045695B (zh) 2020-09-29
JP7155405B2 (ja) 2022-10-18
CN109045695A (zh) 2018-12-21
JP2022191330A (ja) 2022-12-27
US20230055575A1 (en) 2023-02-23
US11517819B2 (en) 2022-12-06
JP7471369B2 (ja) 2024-04-19
US20200406142A1 (en) 2020-12-31
JP2021520286A (ja) 2021-08-19

Similar Documents

Publication Publication Date Title
WO2020029817A1 (zh) 虚拟环境中的配件选择方法、装置、设备及可读存储介质
US11229840B2 (en) Equipment display method, apparatus, device and storage medium in virtual environment battle
CN108815851B (zh) 在虚拟环境中射击时的界面显示方法、设备及存储介质
JP7419382B2 (ja) 仮想アイテムをマークするように仮想対象を制御する方法及びその装置並びにコンピュータプログラム
WO2019214402A1 (zh) 虚拟环境中的配件切换方法、装置、设备及存储介质
US11656755B2 (en) Method and apparatus for controlling virtual object to drop virtual item and medium
CN109529319B (zh) 界面控件的显示方法、设备及存储介质
WO2021031765A1 (zh) 虚拟环境中瞄准镜的应用方法和相关装置
US11878240B2 (en) Method, apparatus, device, and storage medium for perspective rotation
TWI802978B (zh) 應用程式內的控制項位置調整方法及裝置、設備及存儲介質
CN113398571A (zh) 虚拟道具的切换方法、装置、终端及存储介质
US11786817B2 (en) Method and apparatus for operating virtual prop in virtual environment, device and readable medium
CN112569596A (zh) 视频画面展示方法、装置、计算机设备及存储介质
CN112330823A (zh) 虚拟道具的显示方法、装置、设备及可读存储介质
CN112402969B (zh) 虚拟场景中虚拟对象控制方法、装置、设备及存储介质
CN112354181A (zh) 开镜画面展示方法、装置、计算机设备及存储介质

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021510520

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19848736

Country of ref document: EP

Kind code of ref document: A1