CN112156454A - Virtual object generation method and device, terminal and readable storage medium - Google Patents

Virtual object generation method and device, terminal and readable storage medium Download PDF

Info

Publication number
CN112156454A
CN112156454A CN202011134608.5A CN202011134608A CN112156454A CN 112156454 A CN112156454 A CN 112156454A CN 202011134608 A CN202011134608 A CN 202011134608A CN 112156454 A CN112156454 A CN 112156454A
Authority
CN
China
Prior art keywords
virtual object
virtual
data
object data
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011134608.5A
Other languages
Chinese (zh)
Other versions
CN112156454B (en
Inventor
王淇峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shanghai Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011134608.5A priority Critical patent/CN112156454B/en
Publication of CN112156454A publication Critical patent/CN112156454A/en
Application granted granted Critical
Publication of CN112156454B publication Critical patent/CN112156454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/65Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor automatically by game devices or servers from real world data, e.g. measurement in live racing competition

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a virtual object generation method, a virtual object generation device, a terminal and a readable storage medium, and relates to the field of virtual environments. The method comprises the following steps: acquiring first virtual object data of a first virtual object; acquiring second virtual object data matched with the first virtual object from a virtual object database according to the first virtual object data; and generating a second virtual object configured with second virtual object data, wherein the second virtual object is a virtual object which establishes a cooperative relationship with the first virtual object in the virtual game. The second virtual object matched with the first virtual object is generated by selecting the second virtual object data from the virtual object database, and the first virtual object and the second virtual object are paired under the condition that a cooperative relationship is established, so that the number of virtual objects waiting for pairing is reduced, the occupied amount of server resources is reduced, and the resource utilization efficiency of the server is improved.

Description

Virtual object generation method and device, terminal and readable storage medium
Technical Field
The present application relates to the field of virtual environments, and in particular, to a method, an apparatus, a terminal, and a readable storage medium for generating a virtual object.
Background
On terminals such as smart phones, tablet computers, and the like, there are many game applications that require cooperation of users, and in the game applications, users can interact with virtual objects of other users by operating their own virtual objects and achieve game purposes.
In the related art, in order to enable a user to obtain a better game experience, when a virtual object has a need to start a game that needs to be cooperated, the application program generally needs to wait for the virtual object and search for other virtual objects that have the game need at the same time. When it is determined that all the virtual objects meet the condition of the common game and the total number of the virtual objects satisfies the number of opening the game, the game is played.
However, when the number of virtual objects is large and does not meet the conditions of the common game, the number of virtual objects waiting for the virtual game is large, which results in a large amount of occupied resources of the server and further causes a problem of reduced resource utilization efficiency of the server.
Disclosure of Invention
The application relates to a method, a device, a terminal and a readable storage medium for generating virtual objects, which can reduce the number of virtual objects waiting for virtual matching at the same time and improve the service efficiency of server resources. The technical scheme is as follows:
in one aspect, a method for generating a virtual object is provided, where the method includes:
acquiring first virtual object data of a first virtual object, wherein the first virtual object data is used for indicating the characteristics of the first virtual object in a virtual environment, and the first virtual object is a virtual object controlled by a target account in the virtual environment;
acquiring second virtual object data matched with the first virtual object from a virtual object database according to the first virtual object data;
and generating a second virtual object according to the second virtual object data, wherein the second virtual object is configured with the second virtual object data, and the second virtual object is a virtual object which establishes a cooperative relationship with the first virtual object in the virtual bureau.
In another aspect, an apparatus for generating a virtual object is provided, the apparatus including:
the acquisition module is used for acquiring first virtual object data of a first virtual object, wherein the first virtual object data is used for indicating the characteristics of the first virtual object in a virtual environment, and the first virtual object is a virtual object corresponding to a target account;
the acquisition module is also used for acquiring second virtual object data matched with the first virtual object from the virtual object database according to the first virtual object data;
and the generation module is used for generating a second virtual object configured with second virtual object data, wherein the second virtual object is a virtual object which establishes a cooperative relationship with the first virtual object in a virtual game.
In another aspect, a computer device is provided, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method for generating a virtual object as provided in the embodiments of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement any one of the above-mentioned virtual object generation methods.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the method for generating the virtual object according to any one of the above embodiments.
The beneficial effect that technical scheme that this application provided brought includes at least:
in the process of determining a second virtual object which is established with the first virtual object in a cooperative relationship in the application program, acquiring first virtual object data, determining second virtual object data matched with the first virtual object data in an object database, and generating the second virtual object by taking the second virtual object data as a reference. The second virtual object matched with the first virtual object is generated by selecting the second virtual object data from the virtual object database, and the first virtual object and the second virtual object are subjected to virtual match under the condition that a cooperative relationship is established, so that the number of virtual objects waiting for virtual match is reduced, the occupied amount of server resources is reduced, and the resource use efficiency of the server is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating a terminal display of a first virtual object waiting for a virtual session to start according to an exemplary embodiment of the present application;
FIG. 2 illustrates a block diagram of an electronic device provided in an exemplary embodiment of the present application;
FIG. 3 illustrates a block diagram of a computer system provided in an exemplary embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for generating a virtual object according to an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a process for virtually pairing a first virtual object with a second virtual object according to an exemplary embodiment of the present application;
FIG. 6 is a diagram illustrating a process for determining second virtual object data provided by an exemplary embodiment of the present application;
FIG. 7 is a diagram illustrating a data interaction of a server according to an exemplary embodiment of the present application;
FIG. 8 is a diagram illustrating a method for generating a virtual object according to an exemplary embodiment of the present application;
FIG. 9 is a process diagram illustrating a method for generating a virtual object according to an exemplary embodiment of the present application;
FIG. 10 is a schematic diagram illustrating an apparatus for generating a virtual object according to an exemplary embodiment of the present application;
fig. 11 is a schematic diagram illustrating a virtual object generating apparatus according to an exemplary embodiment of the present application;
fig. 12 shows a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, the terms referred to in the embodiments of the present application will be briefly described:
virtual environment: is a virtual environment that is displayed (or provided) when an application is run on the terminal. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional environment, or a pure fictional 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, which is not limited in this application. The following embodiments are illustrated with the virtual environment being a three-dimensional virtual environment.
Virtual object: refers to a movable object in a virtual environment. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: characters, animals, plants, oil drums, walls, stones, etc. displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional volumetric model created based on animated skeletal techniques. Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment.
In the present application, the virtual object corresponds to virtual object data. The virtual object data is used to indicate characteristics of the virtual object in the virtual environment. In one example, the virtual object data includes at least one of appearance data of the virtual object and numerical data of the virtual object. Wherein the appearance data of the virtual object is data indicating an appearance of the virtual object. In one example, the virtual object is implemented as a character displayed in a three-dimensional virtual environment, and the appearance of the virtual object includes the appearance of the character as well as the appearance of clothing. The appearance of the person includes at least one of height, arm extension, face shape, hair style, eye features, nose features, mouth features, ear features of the person, and the clothing appearance of the person includes at least one of jacket, under-garment, headwear, shoes, and jewelry of the person.
The numerical data of the virtual object is data that embodies the intrinsic ability of the virtual object. For example, numerical data may include a variety of different attributes such as a grade, a vital value, an intelligence value, an attack force value, a defense force value, a spirit value, a magic value, a strength value, a endurance value, an agility value, a potential value, a speed value, a skill combination, and so forth. In one example. The numerical data may be embodied in an interface in a visual form. For example, the virtual environment in which the virtual object is displayed includes a character attribute interface, and the character attribute interface includes the numerical value displayed in a visual number. For another example, the virtual environment includes a status bar of the virtual object, and the status bar of the virtual object includes the level, the life value, and the flexibility value of the virtual character displayed in numerical values.
In the application, the user can change and select the virtual object data corresponding to the virtual object in the account. In one example, a user causes the appearance value of a virtual object to change by modifying the appearance of the virtual object. In another example, a user uses a prop on a virtual object to cause numerical data of the virtual object to change. Since each user has a personalized cultivation method for the virtual object controlled by the user, there is often a difference in the value of the virtual object between the virtual objects.
The terminal in the present application may be a desktop computer, a laptop computer, a mobile phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4) player, and so on. The terminal is installed and operated with an application program supporting a virtual environment, such as an application program supporting a three-dimensional virtual environment. The application program may be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, a TPS game, an FPS game, and an MOBA game. Alternatively, the application may be a stand-alone application, such as a stand-alone 3D game program, or may be a network online application.
The method provided in the present application may be applied to a virtual reality application program, a three-dimensional map program, a military simulation program, a First-Person shooter game (FPS), a Third-Person shooter game (TPS), a Multiplayer Online tactical competition game (MOBA), and the like, and the following embodiments are exemplified by applications in Games.
The game based on the virtual environment is often composed of one or more maps of game worlds, the virtual environment in the game simulates the scene of the real world, a user can control the virtual objects in the game to walk, run, jump, shoot, fight, drive, switch to use the virtual props, attack other virtual objects by using the virtual props and other actions in the virtual environment, the interactivity is strong, and the virtual objects can enter the same game room through a matching mechanism of the system and perform virtual match with the mutually cooperated identities, namely, in the virtual match, the matched virtual objects are teammates with each other. Optionally, the matching mechanism takes the virtual object as a matching criterion. Optionally, the server preferentially needs to add the virtual object conforming to the matching mechanism to the same room, and when there is no object conforming to the matching mechanism, the virtual object needs to wait.
Fig. 1 is a schematic diagram illustrating an interface of a terminal for matching according to an exemplary embodiment of the present application. Referring to FIG. 1, in a virtual environment 100, a team interface 110 is included. The team interface 110 includes an interface name prompt 111, a team task display area 112, a room display area 113, and a team function area 114. In fig. 1, the content of the interface name prompt 111 is "team platform" for prompting the user that the interface is an interface for performing team formation of a virtual object, and the team task display area 112 includes a team task type control 121 and a team task type control 122, where the team task type control 122 further includes a team task control 131, a team task control 132, a team task control 133, and a team task control 134. Each team task type control indicates a type of a team task, and each team task control indicates a type of a team task. In the room display area 113, a room corresponding to the team task control is displayed, the room is used for waiting for other virtual objects to join, when no room exists, a team prompt 1131 is displayed in the room display area 113, and the team prompt 1131 indicates that no waiting room exists currently. The team function area 114 includes an automatic match control 1141, an automatic apply control 1142, and a create team control 1143. The user can control the virtual object by operating in the queuing interface 110, so that the virtual object enters a queuing state, and virtual game play is performed when a virtual game play starting condition is met. Optionally, the virtual game-play enabling condition includes that the number of virtual objects reaches an object number threshold, and the virtual object data difference between each virtual object is within a difference threshold. In one example, the virtual alignment start condition is that the number of virtual objects reaches 8, and the level of the maximum level and the level of the minimum level among the levels of all the virtual objects does not exceed 5 levels.
Fig. 2 shows a block diagram of an electronic device according to an exemplary embodiment of the present application. The electronic device 200 includes: an operating system 220 and application programs 222.
Operating system 220 is the base software that provides applications 222 with secure access to computer hardware.
Application 222 is an application that supports a virtual environment. Optionally, application 222 is an application that supports a three-dimensional virtual environment. The application 222 may be any one of a virtual reality application, a three-dimensional map program, a military simulation program, a TPS, an FPS, an MOBA Game, a multi-player gunfight type live Game, and a Massively Multiplayer Online Role Playing Game (MMORPG). The application 222 may be a stand-alone application, such as a stand-alone 3D game program.
Fig. 3 shows a block diagram of a computer system provided in an exemplary embodiment of the present application. The computer system 300 includes: a first device 320, a server 340, and a second device 360.
The first device 320 is installed and operated with an application program supporting a virtual environment. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, a TPS game, an FPS game, an MOBA game, a multi-player gunfight survival game and an MMORPG game. The first device 420 is a device used by a first user who uses the first device 320 to control a first virtual object located in a virtual environment for activities including, but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the first virtual object is a first virtual character, such as a simulated persona or an animated persona.
The first device 320 is connected to the server 340 through a wireless network or a wired network.
The server 340 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server 340 is used for providing background services for applications supporting a three-dimensional virtual environment. Alternatively, server 340 undertakes primary computing work and first device 320 and second device 360 undertakes secondary computing work; alternatively, the server 340 undertakes secondary computing work and the first device 320 and the second device 360 undertake primary computing work; alternatively, the server 340, the first device 320, and the second device 360 perform cooperative computing by using a distributed computing architecture.
The second device 360 is installed and operated with an application program supporting a virtual environment. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, an FPS game, an MOBA game, a multi-player gunfight survival game and an MMORPG game. The second device 360 is a device used by a second user who uses the second device 360 to control a second virtual object located in the virtual environment to perform activities including, but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the second virtual object is a second virtual character, such as a simulated persona or an animated persona.
Optionally, the first virtual character and the second virtual character are in the same virtual environment. Alternatively, the first avatar and the second avatar may belong to the same team, the same organization, have a friend relationship, or have temporary communication rights. Alternatively, the first virtual character and the second virtual character may belong to different teams, different organizations, or two groups with enemy.
Alternatively, the applications installed on the first device 320 and the second device 360 are the same, or the applications installed on the two devices are the same type of application for different control system platforms. The first device 320 may generally refer to one of a plurality of devices, and the second device 360 may generally refer to one of a plurality of devices, and this embodiment is illustrated by the first device 320 and the second device 360 only. The device types of the first device 320 and the second device 360 are the same or different, and include: at least one of a game console, a desktop computer, a smartphone, a tablet, an e-book reader, an MP3 player, an MP4 player, and a laptop portable computer. The following embodiments are illustrated where the device is a desktop computer.
Those skilled in the art will appreciate that the number of devices described above may be greater or fewer. For example, the number of the devices may be only one, or several tens or hundreds, or more. The number and the type of the devices are not limited in the embodiments of the present application.
The method for generating a virtual object according to the embodiments of the present application will be described with reference to the noun introduction and the description of the implementation environment. Fig. 4 shows a flowchart of a method for generating a virtual object, which is described by applying the method to a server, according to an exemplary embodiment of the present application, and the method includes:
step 401, acquiring first virtual object data of a first virtual object, where the first virtual object data is used to indicate characteristics of the first virtual object in a virtual environment, and the first virtual object is a virtual object controlled by a target account in the virtual environment.
The execution main body of the embodiment of the application is a server, a communication network connection is established between the server and the terminal, the server can receive the message sent by the terminal, and reply data to the terminal according to the request sent by the terminal. The server according to the embodiment of the application can perform data interaction with the terminal aiming at the application program comprising the first virtual object.
The first virtual object is a virtual object in an application, the virtual object being displayable on a virtual environment interface in a terminal connected to the server, the first virtual object corresponding to first virtual object data including at least one of appearance data and numerical data.
The target account is an account corresponding to the user, and the user can control the first virtual object by logging in the target account. Optionally, the user's control of the first virtual object includes making changes to first virtual object data of the first virtual object. Optionally, during the change, the characteristics of the first virtual object in the virtual environment are also changed. Correspondingly, the first virtual object data includes appearance data of the first virtual object and numerical data of the first virtual object, and a relationship is established between the appearance data and the numerical data. In one example, the first virtual object is implemented as a virtual character whose jacket is modified by the user to modify the appearance data of the first virtual object. The jacket has the function of increasing the life value of the virtual character, and the numerical data of the first virtual object is modified along with the appearance data of the first virtual object; in another example, the first virtual object is implemented as a virtual character, the numerical data of the first virtual object is the fighting capacity of the virtual object, and the appearance of the virtual object is changed when the fighting capacity of the virtual object reaches a fighting capacity threshold value, wherein the appearance data of the first virtual object is modified along with the numerical data of the first virtual object.
Step 402, acquiring second virtual object data matched with the first virtual object from the virtual object database according to the first virtual object data.
The virtual object database stores at least one virtual object data. Optionally, each virtual object data stored in the virtual object database corresponds to a virtual object.
The second virtual object data matched with the first virtual object comprises the same virtual object data as the first virtual object data corresponding to the first virtual object; or, virtual object data that approximates the first virtual object data; or virtual object data corresponding to the virtual object that the first virtual object has generated the interaction. The embodiment of the present application does not limit the matching manner between the first virtual object and the second virtual object data.
Step 403 is to generate a second virtual object configured with second virtual object data, where the second virtual object is a virtual object that has a cooperative relationship with the first virtual object in the virtual bureau.
And after acquiring second virtual object data matched with the first virtual object, the server generates a second virtual object according to the second virtual object data. In one example, the server inserts the second virtual object data into the program segment that generated the virtual object to enable generation of the second virtual object. After the virtual object is generated, a cooperative relationship is established between the second virtual object and the first virtual object. In one example, the second virtual object performs a virtual game with the first virtual object in a cooperative relationship.
In the present application, the number of generated second virtual objects is not limited, and in one example, when a first virtual object needs 3 second virtual objects for virtual game matching, 3 second virtual objects are simultaneously generated from the virtual object database; or, 3 virtual objects are sequentially generated from the virtual object database.
Correspondingly, in the terminal, after the second virtual object is generated, the first virtual object and the second virtual object are subjected to virtual game matching in a cooperative manner. Fig. 5 is a schematic diagram illustrating a process of performing virtual pairing between a first virtual object and a second virtual object according to an exemplary embodiment of the present application. Please refer to fig. 5. Fig. 5 is a game interface 500 with a first virtual object 501 as a main control view, where the interface includes a main control object, that is, the first virtual object 501, and 3 second virtual objects, that is, a virtual object 502, a virtual object 503, and a virtual object 504, which have a cooperative relationship with the virtual object. Since the game interface 500 is a master interface of the virtual object 501, the game interface 500 includes a status area 510, a fighting area 520, a control area 530, and a map function area 540. In the state area 510, first virtual object data 511 indicating a first virtual object feature and a first virtual object state 512 are included. Also included in status area 510 is teammate status 513. The battle area 520 includes a first virtual object 501, a second virtual object 502, a second virtual object 503, and a second virtual object 504, and the battle area 520 also includes a battle scene, and in this example, the battle area 520 includes a skill indicator 521 corresponding to the skill "canon battle" given by the first virtual object. Within control controls area 530, a skills control 531 and a movement control 532 are included, with movement control 532 being used to control movement of the first virtual object and skills control c being used to control the application of skills by the first virtual object. In this embodiment, the number of movement controls 532 is one and the number of skill controls 531 is 4. The map function area 540 includes a map identifier 541 indicating a map where the current virtual destination is located, and map function controls 542 related to map functions, where in the present embodiment, the number of the map function controls 542 is 5.
In summary, in the method provided in this embodiment, in the process of determining the second virtual object that has a cooperative relationship with the first virtual object in the application program, the first virtual object data is obtained, the second virtual object data that matches the first virtual object data is determined in the object database, and the second virtual object is generated based on the second virtual object data. The second virtual object matched with the first virtual object is generated by selecting the second virtual object data from the virtual object database, and the first virtual object and the second virtual object are subjected to virtual match under the condition that a cooperative relationship is established, so that the number of virtual objects waiting for virtual match is reduced, the occupied amount of server resources is reduced, and the resource use efficiency of the server is improved.
In the process of determining the second virtual object data, since the first virtual object data has more indicated features, it is necessary to extract a part of data in the first object data as reference data to perform the subsequent process of determining the second virtual object data. Fig. 6 is a schematic diagram illustrating a process of determining second virtual object data according to an exemplary embodiment of the present application, where the method may be used to replace step 402 in the embodiment of the application and implemented as steps 4021 to 4026, and the method includes:
step 4021, obtaining the office information of the virtual office.
In the embodiment of the present application, the virtual bureau corresponds to bureau information. Optionally, the virtual information is embodied in a team interface within the virtual environment in the terminal. The session information indicates conditions for the start of virtual sessions. For example, the game-play information includes the level condition of the player in the virtual game-play; or the game-play information comprises item conditions held by the players in the virtual game-play.
Step 4022, determining the matching condition of the first virtual object data and the second virtual object data according to the office information.
As described in step 4021, the session information includes the conditions of the virtual objects participating in the virtual session, and the matching conditions between the first virtual object and the second virtual object can be further determined based on the conditions.
Step 4023, determining first reference data in the first virtual object data according to the matching conditions.
In the embodiment of the present application, the first virtual object is implemented as a character, and the first virtual object data includes appearance data of the virtual object and numerical data of the virtual object. Because the first virtual object data indicates the characteristics of multiple dimensions of the first virtual object, in order to enable the matching between the first virtual object and the second virtual object data to be carried out under the matching conditions preset in the server and to be matched with the formation conditions displayed in the formation interface in the terminal, the first reference data is selected from the first virtual object data. The first reference data characterizes the first virtual object from at least one dimension. In this embodiment, the first reference data characterizes the first virtual object from one dimension. For example, the first reference data is a fighting force value of the first virtual object; or, the first reference data is a grade value of the first virtual object; or, the first reference data is indicative of a piece of virtual clothing worn by the virtual object; or, the first reference data indicates a piece of prop held by the virtual object.
Step 4024, determining a candidate reference data set corresponding to the first reference data.
In embodiments of the present application, the candidate reference data set may be implemented as one reference data range, or as a combination of at least two reference data ranges.
The reference data range is a data range that matches the first reference data. Optionally, the reference data range is a continuous data range, or the reference data range is a discontinuous reference data range, or. In one example, the first reference data is a fighting force value of the first virtual object, the fighting force value is 1000, and the fighting force difference value of the virtual object determined to participate in the virtual game play in the application program does not exceed 100, then the reference data range corresponding to the first reference data is 900-; in another example, the first reference data is a fighting force value of the first virtual object, the fighting force value is 1000, the difference value between the fighting forces of the virtual objects determined to participate in the virtual game in the application program and the fighting force of the first virtual object needs to be greater than 300, and the reference data range corresponding to the first reference data is greater than 1300 or less than 700.
In other exemplary embodiments of the present application, the reference data value corresponding to the first reference data is determined according to a data type of the first reference data. In one example, the first reference data indicates a prop held by the virtual object, and then the reference data value should be the same as the value of the first reference data to indicate that the first reference data is the same as the reference data, and the virtual objects holding the same prop can cooperate.
Step 4025, selecting second reference data from the candidate reference data set.
After the reference data range is determined, the reference data in the virtual object database is screened.
Optionally, the virtual object database includes virtual object data corresponding to a virtual object created by an account in the application program; or the virtual object database comprises virtual object data corresponding to the preset virtual object.
When the virtual object database includes virtual object data corresponding to the virtual object created by the account in the application, the data comes from the data storage of the application, please refer to fig. 7. The server 701 performs data interaction with the virtual object database 702 of the application program to acquire reference data. The application program has at least two sub-databases 703, and the virtual object database 702 can store virtual object data from the sub-databases 703 in the virtual object database 702 through data interaction with the sub-databases 703. In this embodiment, each sub-database corresponds to a service in the application, and the content in the sub-database includes virtual object data of virtual objects corresponding to all accounts in the service.
When the virtual object database comprises virtual object data corresponding to a preset virtual object, namely the server is instructed to generate a plurality of virtual object data according to the numerical values of different virtual object data, the virtual object data are generated by a computer without creating an account.
In this embodiment, the second reference data is determined in a random selection manner.
Step 4026, acquiring second virtual object data corresponding to the second reference data.
In this embodiment, after the second reference data is determined, the second object data corresponding to the second reference data may be determined at the same time, so as to perform a subsequent generation process of the second virtual object.
In summary, in the method provided in this embodiment, the first virtual object data with reference value is extracted from the first virtual object data, and the candidate reference data set corresponding to the first virtual object data is obtained from the virtual object database, so as to determine the second reference data and the second virtual object data corresponding to the second reference data. And determining a reference data set in which the second reference data is located according to the first virtual object data and the matching condition obtained from the virtual office-matching information, so that the matching degree of the second virtual object data and the first virtual object data is improved.
In the present application, determining second virtual object data from first virtual object data of a first virtual object, and thus the process of determining a second virtual object, is triggered in response to receiving a team request. Fig. 8 is a schematic diagram illustrating a method for generating a virtual object according to an exemplary embodiment of the present application, which is described by way of example as being applied to a server, and includes:
step 801, receiving a team formation request, wherein the team formation request comprises a first virtual object and first virtual object data.
In the embodiment of the application, the team forming request is request data sent by the terminal to the server when a user performs team forming in a team forming interface in the terminal. Optionally, the first virtual object corresponds to a first virtual object identifier. In one example, the team request includes a first virtual object and first virtual object data corresponding to the first virtual object; in another example, the first virtual object identification is included in the team request, and the server retrieves the first virtual object data from the virtual object database via the virtual object identification.
Step 802, in response to receiving a team request, determines a game status of a first virtual object.
The alignment status indicates whether the first virtual object entered a virtual alignment. The purpose of the terminal sending the team formation request is to enable the first virtual object to enter the virtual game, so the server detects the game state of the first virtual object in real time to determine, and further judges whether the first virtual object enters the virtual game.
At step 803, a duration that the alignment status indicates that the first virtual object is not in alignment is determined.
Optionally, step 803 is performed in synchronization with step 802.
In this embodiment, a timer is set in the server, and the timer is used for detecting the time length of the first virtual object not entering the opposite state. The timer is the same as the time length displayed on the queuing timer in the queuing interface in the terminal.
And step 804, responding to the time threshold reached by the duration, and determining first reference data in the first virtual object data according to the matching condition in the game information.
When the time length recorded in the timer reaches the time threshold, the server determines that the queuing time of the first virtual object is too long, and starts to configure the second virtual object for the first virtual object, so that the first virtual object finishes the queuing process and enters the virtual game.
In this embodiment of the application, the team organizing request further includes the office-matching information, and the server may determine the first reference data in the first virtual object data according to the matching condition corresponding to the office-matching information.
Step 805, determining a candidate reference data set according to the data type of the first reference data.
In the embodiment of the present application, the candidate reference data set corresponding to the first reference data is implemented as a reference data range, and the reference data set is obtained by screening data in the virtual object database.
In the embodiment of the present application, the basis for performing the screening includes, in addition to the reference data range, but is not limited to at least one of an area service where the first virtual object is located, a social relationship between the first virtual object and the virtual object corresponding to the reference data set, and a time when the matching is performed.
Optionally, the filtering includes arranging and indexing the data in the virtual object database in the form of a red-black tree.
In step 806, second reference data is selected from the candidate reference data set.
In the embodiment of the application, one candidate reference data is randomly selected from the candidate reference data set as the second reference data.
In another example, second virtual object data corresponding to at least two candidate reference data are randomly acquired, the second virtual object data are sent to the terminal, and the terminal feeds back a selection signal to determine the corresponding candidate reference data as the second reference data.
In step 807, second virtual object data corresponding to the second reference data is acquired.
In this embodiment, after the second reference data is determined, the second object data corresponding to the second reference data may be determined at the same time, so as to perform a subsequent generation process of the second virtual object.
And 808, anonymizing the account identifier corresponding to the second virtual object data to obtain an anonymous identifier.
In this embodiment, the second virtual object data includes the account identifier of the second virtual object, so that the account identifier is anonymized to obtain an anonymous identifier.
Step 809, generating a second virtual object according to the second virtual object data and the anonymous identifier.
And after the account identifier corresponding to the second virtual object is processed anonymously, generating the second virtual object according to the second virtual object data and the anonymous identifier.
Optionally, after the second virtual object is generated, the server controls the second virtual object to interact with the first virtual object, so as to perform virtual game matching in a cooperative relationship.
Optionally, when the number of the second virtual objects required to be matched by the first virtual object is at least two, the server generates one second virtual object each time and queues the first virtual object again; or the server directly generates at least two second virtual objects meeting the quantity requirement for the first virtual object at one time, so that the first virtual object and the second virtual object directly enter the virtual game.
In summary, in the method provided in this embodiment, in the process of determining the second virtual object that has a cooperative relationship with the first virtual object in the application program, the first virtual object data is obtained, the second virtual object data that matches the first virtual object data is determined in the object database, and the second virtual object is generated based on the second virtual object data. The second virtual object matched with the first virtual object is generated by selecting the second virtual object data from the virtual object database, and the first virtual object and the second virtual object are subjected to virtual match under the condition that a cooperative relationship is established, so that the number of virtual objects waiting for virtual match is reduced, the occupied amount of server resources is reduced, and the resource use efficiency of the server is improved.
Extracting first virtual object data with reference value from the first virtual object data, acquiring a candidate reference data set corresponding to the first virtual object data from a virtual object database, and further determining second reference data and second virtual object data corresponding to the second reference data. And determining a reference data set in which the second reference data is located according to the first virtual object data and the matching condition obtained from the virtual office-matching information, so that the matching degree of the second virtual object data and the first virtual object data is improved.
By the method of determining the game-play state of the first virtual object and controlling the generation time of the second virtual object according to the duration time without entering the virtual game-play, the waiting time of the first virtual object is controlled, the occupied amount of server resources is further reduced, and the resource utilization efficiency of the server is further improved.
Fig. 9 is a process diagram illustrating a method for generating a virtual object according to an exemplary embodiment of the present application, which is described by way of example as being applied to a server, and includes:
in step 901, a first virtual object is added to an automatic matching queue.
The procedure is a procedure in the terminal. And in a team forming interface of the terminal, the first virtual object is added into the automatic matching queue, and at the moment, the terminal sends a team forming request to the server.
The server matches the live player, step 902, and the time is timed out.
The process is the matching process of the virtual objects corresponding to other accounts for the first virtual object by the server according to the team formation request. In the process, a timer in the server performs timing, and in a team interface in the terminal, the timing condition of the timer is displayed.
In step 903, the server looks up the matching copy player data from the database.
The process is a process in which the server determines the second virtual object data according to the first reference data in the first virtual object data. The process is completed by calling the virtual object database by the server. Optionally, the server is connected to the virtual object database via a data interface.
In step 904, the database returns the found player identification to the server.
The process is a process in which the server receives the second virtual object data from the virtual object database through the data interface, and in the process, the server receives the second virtual object data.
In step 905, the server loads the corresponding player archive from the database and places it in proximity to the corresponding non-player character.
In this process, the server generates a second virtual object. Correspondingly, the second virtual object is generated in the virtual environment of the terminal, the second virtual object is controlled by the server, and the server moves the second virtual object to the position of entering the virtual game.
At step 906, the team match is successful.
The process is a process of the first virtual object and the second virtual object interacting and establishing a cooperative relationship.
At step 907, the team enters the copy.
At step 908, the team challenge is complete.
Steps 907 to 908 are processes of performing virtual game matching on the first virtual object and the second virtual object in a cooperative relationship.
At step 909, the copy is exited.
In embodiments of the present application, the partnership is established prior to entry into the copy, and in response to completion of the challenge to the copy, the partnership is resolved.
At step 910, the robot exits the game.
Optionally, to save the server space, after the virtual exchange is finished, the server deletes the second virtual object.
In this embodiment, steps 906 to 910 in the above steps are all completed by the second virtual object in the server control terminal.
In summary, in the method provided in this embodiment, in the process of determining the second virtual object that has a cooperative relationship with the first virtual object in the application program, the first virtual object data is obtained, the second virtual object data that matches the first virtual object data is determined in the object database, and the second virtual object is generated based on the second virtual object data. The second virtual object matched with the first virtual object is generated by selecting the second virtual object data from the virtual object database, and the first virtual object and the second virtual object are subjected to virtual match under the condition that a cooperative relationship is established, so that the number of virtual objects waiting for virtual match is reduced, the occupied amount of server resources is reduced, and the resource use efficiency of the server is improved.
Fig. 10 is a schematic diagram illustrating an apparatus for generating a virtual object according to an exemplary embodiment of the present application, where the apparatus includes:
an obtaining module 1001, configured to obtain first virtual object data of a first virtual object, where the first virtual object data is used to indicate a feature of the first virtual object in a virtual environment, and the first virtual object is a virtual object corresponding to a target account;
the obtaining module 1001 is further configured to obtain, from the virtual object database, second virtual object data matched with the first virtual object according to the first virtual object data;
the generating module 1002 is configured to generate a second virtual object configured with second virtual object data, where the second virtual object is a virtual object that establishes a cooperative relationship with the first virtual object in a virtual office.
In an alternative embodiment, please refer to fig. 11, the obtaining module 1001 is further configured to obtain the session information of the virtual session;
the apparatus further includes a determining module 1003, configured to determine, according to the office targeting information, a matching condition between the first virtual object data and the second virtual object data;
the obtaining module 1001 is further configured to obtain, from the virtual object database, second virtual object data matched with the first virtual object according to the matching condition and the first virtual object data.
In an optional embodiment, the determining module 1003 is further configured to determine, according to the matching condition, first reference data in the first virtual object data;
determining a candidate reference data set corresponding to the first reference data, wherein the candidate reference data set is a set of reference data meeting the matching condition;
the apparatus further comprises a selecting module 1004 for selecting second reference data from the candidate reference data set;
the obtaining module 1001 is further configured to obtain second virtual object data corresponding to the second reference data.
In an optional embodiment, the apparatus further includes a receiving module 1005 configured to receive a team formation request, where the team formation request includes the first virtual object and the first virtual object data.
In an optional embodiment, the determining module 1003 is further configured to determine, in response to receiving the team formation request, a game status of the first virtual object, the game status indicating whether the first virtual object enters a game;
the obtaining module 1001 is further configured to, in response to the local alignment status indicating that the first virtual object does not enter the local alignment, obtain, according to the first virtual object data, second virtual object data matched with the first virtual object from the virtual object database.
In an optional embodiment, the determining module 1003 is further configured to determine a duration that the alignment status indicates that the first virtual object does not enter the alignment;
an obtaining module 1001, configured to, in response to the time duration reaching the time threshold, obtain, from the virtual object database, second virtual object data that matches the first virtual object according to the first virtual object data.
In an optional embodiment, the virtual object database includes virtual object data corresponding to virtual objects created by accounts in the application;
or the like, or, alternatively,
the virtual object database comprises virtual object data corresponding to the preset virtual object.
In an optional embodiment, the virtual object database includes virtual object data corresponding to virtual objects created for accounts within the application;
the second virtual object data corresponds to an account identifier, and the account identifier is used for indicating an account source of the second virtual object data;
the device also comprises a processing module 1006, configured to perform anonymization processing on the account identifier to obtain an anonymous identifier;
the generating module 1002 is further configured to generate a second virtual object according to the second virtual object data and the anonymous identifier.
In summary, in the apparatus provided in this embodiment, in the process of determining, for the first virtual object, the second virtual object that has a cooperative relationship with the first virtual object in the application program, the first virtual object data is obtained, the second virtual object data that matches the first virtual object data is determined in the object database, and the second virtual object is generated based on the second virtual object data. The second virtual object matched with the first virtual object is generated by selecting the second virtual object data from the virtual object database, and the first virtual object and the second virtual object are paired under the condition that a cooperative relationship is established, so that the number of virtual objects waiting for pairing is reduced, the occupied amount of server resources is reduced, and the resource utilization efficiency of the server is improved.
It should be noted that: the virtual object generating apparatus is only illustrated by dividing each functional module, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above description.
Fig. 12 shows a block diagram of an electronic device 1200 according to an exemplary embodiment of the present application. The electronic device 1200 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The electronic device 1200 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
In general, the electronic device 1200 includes: a processor 1201 and a memory 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content required to be displayed by the display screen. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1202 may include one or more computer-readable storage media, which may be non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1202 is used to store at least one instruction for execution by processor 1201 to implement a method of generating a virtual object as provided by method embodiments herein.
In some embodiments, the electronic device 1200 may further optionally include: a peripheral interface 1203 and at least one peripheral. The processor 1201, memory 1202, and peripheral interface 1203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, display 1205, camera assembly 1206, audio circuitry 1207, positioning assembly 1208, and power supply 1209.
The peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202 and the peripheral device interface 1203 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1204 comprises: 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 so forth. The radio frequency circuit 1204 may 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, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to acquire touch signals on or over the surface of the display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. At this point, the display 1205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1205 may be one, disposed on the front panel of the electronic device 1200; in other embodiments, the display panels 1205 can be at least two, respectively disposed on different surfaces of the electronic device 1200 or in a folded design; in other embodiments, the display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 1200. Even further, the display screen 1205 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display panel 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
Camera assembly 1206 is used to capture images or video. Optionally, camera assembly 1206 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1201 for processing or inputting the electric signals into the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations of the electronic device 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is used to locate a current geographic Location of the electronic device 1200 to implement navigation or LBS (Location Based Service). The Positioning component 1208 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 1209 is used to supply power to various components in the electronic device 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable. When the power source 1209 includes 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, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 may detect magnitudes of accelerations on three coordinate axes of a coordinate system established with the electronic apparatus 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the display screen 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the electronic device 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the electronic device 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 1213 may be disposed on the side bezel of the electronic device 1200 and/or underlying layers of the display 1205. When the pressure sensor 1213 is disposed on a side frame of the electronic device 1200, a user's holding signal to the electronic device 1200 can be detected, and the processor 1201 performs left-right hand recognition or shortcut operation according to the holding signal acquired by the pressure sensor 1213. When the pressure sensor 1213 is disposed at a lower layer of the display screen 1205, the processor 1201 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used for collecting a fingerprint of the user, and the processor 1201 identifies the user according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1214 may be disposed on the front, back, or side of the electronic device 1200. When a physical button or vendor Logo is provided on the electronic device 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
The optical sensor 1215 is used to collect the ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display luminance of the display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
The proximity sensor 1216, also called a distance sensor, is typically disposed on the front panel of the electronic device 1200. The proximity sensor 1216 is used to collect the distance between the user and the front of the electronic device 1200. In one embodiment, the processor 1201 controls the display screen 1205 to switch from the bright screen state to the dark screen state when the proximity sensor 1216 detects that the distance between the user and the front of the electronic device 1200 is gradually decreased; when the proximity sensor 1216 detects that the distance between the user and the front surface of the electronic device 1200 gradually becomes larger, the processor 1201 controls the display 1205 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not limiting of electronic device 1200 and may include more or fewer components than shown, or combine certain components, or employ a different arrangement of components.
An embodiment of the present application further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the method for generating a virtual object.
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the method for generating the virtual object according to any one of the above embodiments.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may be a computer readable storage medium contained in a memory of the above embodiments; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium has at least one instruction, at least one program, code set, or set of instructions stored therein, which is loaded and executed by a processor to implement the method for generating a virtual object described above.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. A method for generating a virtual object, the method comprising:
acquiring first virtual object data of a first virtual object, wherein the first virtual object data is used for indicating the characteristics of the first virtual object in a virtual environment, and the first virtual object is a virtual object controlled by a target account in the virtual environment;
acquiring second virtual object data matched with the first virtual object from a virtual object database according to the first virtual object data;
and generating a second virtual object configured with the second virtual object data, wherein the second virtual object is a virtual object which establishes a cooperative relationship with the first virtual object in a virtual office.
2. The method according to claim 1, wherein the obtaining second virtual object data matching the first virtual object from the virtual object database according to the first virtual object data comprises:
acquiring the game-matching information of the virtual game-matching;
determining a matching condition of the first virtual object and the second virtual object according to the game information;
and acquiring the second virtual object data matched with the first virtual object from the virtual object database according to the matching condition and the first virtual object data.
3. The method according to claim 2, wherein the obtaining the second virtual object data matching the first virtual object from the virtual object database according to the matching condition and the first virtual object data comprises:
determining first reference data in the first virtual object data according to the matching condition;
determining a candidate reference data set corresponding to the first reference data from the virtual object database, wherein the candidate reference data set is a set of reference data meeting the matching condition;
selecting second reference data from the candidate reference data set;
and acquiring the second virtual object data corresponding to the second reference data.
4. The method according to any one of claims 1 to 3, wherein the obtaining of the first virtual object data of the first virtual object comprises:
receiving a team forming request, wherein the team forming request comprises the first virtual object and the first virtual object data.
5. The method according to claim 4, wherein the obtaining second virtual object data matching the first virtual object from a virtual object database according to the first virtual object data comprises:
in response to receiving the team request, determining a game status of the first virtual object, the game status indicating whether the first virtual object entered the virtual game;
and responding to the game-playing state indicating that the first virtual object does not enter the virtual game, and acquiring second virtual object data matched with the first virtual object from a virtual object database according to the first virtual object data.
6. The method of claim 5, wherein, in response to the alignment status indicating that the first virtual object does not enter the alignment, retrieving second virtual object data from a virtual object database that matches the first virtual object based on the first virtual object data comprises:
determining a duration that the alignment status indicates that the first virtual object does not enter the virtual alignment;
and responding to the time threshold reached by the duration, and acquiring second virtual object data matched with the first virtual object from a virtual object database according to the first virtual object data.
7. The method according to any one of claims 1 to 3, wherein the virtual object database includes the virtual object data corresponding to a virtual object created by an account in an application;
or the like, or, alternatively,
the virtual object database comprises the virtual object data corresponding to the preset virtual object.
8. The method of claim 7, wherein the virtual object database includes the virtual object data corresponding to virtual objects created for accounts within applications;
the second virtual object data corresponds to an account identifier, and the account identifier is used for indicating an account source of the second virtual object data;
the generating a second virtual object from the second virtual object data comprises:
anonymizing the account identification to obtain an anonymous identification;
and generating a second virtual object according to the second virtual object data and the anonymous identifier.
9. An apparatus for generating a virtual object, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring first virtual object data of a first virtual object, the first virtual object data is used for indicating the characteristics of the first virtual object in a virtual environment, and the first virtual object is a virtual object controlled by a target account in the virtual environment;
the acquisition module is further used for acquiring second virtual object data matched with the first virtual object from a virtual object database according to the first virtual object data;
a generating module, configured to generate a second virtual object configured with the second virtual object data, where the second virtual object is a virtual object that establishes a cooperative relationship with the first virtual object in the virtual game.
10. The apparatus of claim 9,
the acquisition module is further configured to acquire the game information of the virtual game;
the device further comprises a determining module, which is used for determining the matching condition of the first virtual object and the second virtual object according to the game information;
the obtaining module is further configured to obtain, from the virtual object database, the second virtual object data matched with the first virtual object according to the matching condition and the first virtual object data.
11. The apparatus of claim 10,
the determining module is further configured to determine first reference data in the first virtual object data according to the matching condition;
the determining module is further configured to determine, from the virtual object database, a candidate reference data set corresponding to the first reference data, where the candidate reference data set is a set of reference data that satisfies the matching condition;
the device further comprises a selecting module for selecting second reference data from the candidate reference data set;
the obtaining module is further configured to obtain the second virtual object data corresponding to the second reference data.
12. The apparatus according to any one of claims 9 to 11,
the apparatus further includes a receiving module, configured to receive a team formation request, where the team formation request includes the first virtual object and the first virtual object data.
13. The apparatus of claim 12,
the determining module is configured to determine, in response to receiving the team formation request, a game status of the first virtual object, the game status indicating whether the first virtual object enters the virtual game;
the obtaining module is configured to, in response to the game state indicating that the first virtual object does not enter the virtual game, obtain, from a virtual object database, second virtual object data that matches the first virtual object according to the first virtual object data.
14. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the method of generating a virtual object according to any one of claims 1 to 8.
15. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of generating a virtual object according to any one of claims 1 to 8.
CN202011134608.5A 2020-10-21 2020-10-21 Virtual object generation method and device, terminal and readable storage medium Active CN112156454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011134608.5A CN112156454B (en) 2020-10-21 2020-10-21 Virtual object generation method and device, terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011134608.5A CN112156454B (en) 2020-10-21 2020-10-21 Virtual object generation method and device, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN112156454A true CN112156454A (en) 2021-01-01
CN112156454B CN112156454B (en) 2022-07-15

Family

ID=73867804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011134608.5A Active CN112156454B (en) 2020-10-21 2020-10-21 Virtual object generation method and device, terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN112156454B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024000148A1 (en) * 2022-06-28 2024-01-04 上海莉莉丝科技股份有限公司 Method for controlling virtual objects in virtual environment, medium, and electronic device
WO2024060914A1 (en) * 2022-09-23 2024-03-28 腾讯科技(深圳)有限公司 Virtual object generation method and apparatus, device, medium, and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080045335A1 (en) * 2006-08-17 2008-02-21 Zachary Adam Garbow Replacing a Departing Player in a Game with a Waiting Player
CN106730849A (en) * 2016-11-24 2017-05-31 腾讯科技(深圳)有限公司 The method and user equipment of a kind of information recommendation
CN108159705A (en) * 2017-12-06 2018-06-15 腾讯科技(深圳)有限公司 Matching process, device, storage medium and the electronic device of object
CN110052031A (en) * 2019-04-11 2019-07-26 网易(杭州)网络有限公司 The imitation method, apparatus and readable storage medium storing program for executing of player
CN110585729A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Game account matching method and device, storage medium and electronic device
CN111744201A (en) * 2019-03-27 2020-10-09 电子技术公司 Automatic player-controlled takeover in video games

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080045335A1 (en) * 2006-08-17 2008-02-21 Zachary Adam Garbow Replacing a Departing Player in a Game with a Waiting Player
CN106730849A (en) * 2016-11-24 2017-05-31 腾讯科技(深圳)有限公司 The method and user equipment of a kind of information recommendation
CN108159705A (en) * 2017-12-06 2018-06-15 腾讯科技(深圳)有限公司 Matching process, device, storage medium and the electronic device of object
CN111744201A (en) * 2019-03-27 2020-10-09 电子技术公司 Automatic player-controlled takeover in video games
CN110052031A (en) * 2019-04-11 2019-07-26 网易(杭州)网络有限公司 The imitation method, apparatus and readable storage medium storing program for executing of player
CN110585729A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Game account matching method and device, storage medium and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024000148A1 (en) * 2022-06-28 2024-01-04 上海莉莉丝科技股份有限公司 Method for controlling virtual objects in virtual environment, medium, and electronic device
WO2024060914A1 (en) * 2022-09-23 2024-03-28 腾讯科技(深圳)有限公司 Virtual object generation method and apparatus, device, medium, and program product

Also Published As

Publication number Publication date
CN112156454B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN111013142B (en) Interactive effect display method and device, computer equipment and storage medium
CN111760278B (en) Skill control display method, device, equipment and medium
CN111672104B (en) Virtual scene display method, device, terminal and storage medium
CN112691370B (en) Method, device, equipment and storage medium for displaying voting result in virtual game
CN111921197A (en) Method, device, terminal and storage medium for displaying game playback picture
CN111672099A (en) Information display method, device, equipment and storage medium in virtual scene
CN111596838B (en) Service processing method and device, computer equipment and computer readable storage medium
CN111672106B (en) Virtual scene display method and device, computer equipment and storage medium
CN112891931A (en) Virtual role selection method, device, equipment and storage medium
CN111672110A (en) Control method, device, storage medium and equipment for virtual role in virtual world
CN112843679A (en) Skill release method, device, equipment and medium for virtual object
CN111672114B (en) Target virtual object determination method, device, terminal and storage medium
CN111744185A (en) Virtual object control method and device, computer equipment and storage medium
CN110833695B (en) Service processing method, device, equipment and storage medium based on virtual scene
CN112870705A (en) Method, device, equipment and medium for displaying game settlement interface
CN112156454B (en) Virtual object generation method and device, terminal and readable storage medium
TW202247879A (en) Information displaying method, device, terminal and storage medium
CN112156471B (en) Skill selection method, device, equipment and storage medium of virtual object
CN111651616B (en) Multimedia resource generation method, device, equipment and medium
CN111679879B (en) Display method and device of account segment bit information, terminal and readable storage medium
CN113144598A (en) Virtual exchange-matching reservation method, device, equipment and medium
CN111589117A (en) Method, device, terminal and storage medium for displaying function options
CN112316423B (en) Method, device, equipment and medium for displaying state change of virtual object
CN112619131B (en) Method, device and equipment for switching states of virtual props and readable storage medium
CN112169321B (en) Mode determination method, device, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210126

Address after: 5 / F, area C, 1801 Hongmei Road, Xuhui District, Shanghai, 201200

Applicant after: Tencent Technology (Shanghai) Co.,Ltd.

Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Applicant before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TA01 Transfer of patent application right
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038158

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant