CN109011579A - Generation method, device and the readable medium of virtual pet - Google Patents
Generation method, device and the readable medium of virtual pet Download PDFInfo
- Publication number
- CN109011579A CN109011579A CN201810840387.XA CN201810840387A CN109011579A CN 109011579 A CN109011579 A CN 109011579A CN 201810840387 A CN201810840387 A CN 201810840387A CN 109011579 A CN109011579 A CN 109011579A
- Authority
- CN
- China
- Prior art keywords
- parameter
- virtual pet
- target
- father
- image
- 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.)
- Pending
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating 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/63—Generating 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 by the player, e.g. authoring using a level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating 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/69—Generating 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 by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Processing Or Creating Images (AREA)
Abstract
This application discloses a kind of generation method of virtual pet, device and readable mediums, are related to virtual environment field.This method comprises: receiving breeding request;According to female figure parameter of father's figure parameter of the breeding request father virtual pet and mother virtual pet;According to father's figure parameter and female figure parameter, the target figure parameter of child virtual pet is generated according to hereditary rule.Child virtual pet is generated by father virtual pet and mother virtual pet, the target figure parameter of child virtual pet is determined according to father's figure parameter and female figure parameter, increase the mode for generating virtual pet, user can generate child virtual pet by selection father virtual pet and mother virtual pet, and generate the different child virtual pet of figure parameter, the figure parameter of the child virtual pet generated is unexpected, and increases the interest for generating the process of virtual pet.
Description
Technical field
The invention relates to virtual environment field, in particular to a kind of generation method of virtual pet, device and can
Read medium.
Background technique
There are the virtual role of many same types in application program, virtual role includes soldier, offices and men, hero, pet, non-
Player role (Non-Player Character, NPC) etc..
In the related technology, it when generating virtual role, is usually generated for the virtual role with operational efficiency, root
Median is taken to obtain the fight value of child's virtual role according to the fight value of father's virtual role and the fight value of mother's virtual role
Afterwards, child's virtual role is generated, such as: the fight value of father's virtual role is 80, and the fight value of mother's virtual role is 100, then
Median is 90, which is the fight value of child's virtual role, and child's virtual role, father's virtual role and mother
Close virtual role is usually maintained consistent in shape, i.e. the shape of child's virtual role is foreseeable.
However, since virtual pet generating mode in the related technology is with numerical attribute (such as: fight value) for target, because
The mode that this generates virtual role is more single.
Summary of the invention
The embodiment of the present application provides generation method, device and the readable medium of a kind of virtual pet, can solve generation
The more single problem of the mode of virtual role.The technical solution is as follows:
On the one hand, a kind of virtual pet generation method is provided, which comprises
Receive breeding request;
According to mother's image ginseng of father's figure parameter of the breeding request father virtual pet and mother virtual pet
Number, father's figure parameter include that n first of the first role image of the father virtual pet generates parameter, mother's shape
As a second generation parameter of n that parameter includes the second role image of mother virtual pet, n is positive integer;
According to father's figure parameter and female figure parameter, the target of child virtual pet is generated according to hereditary rule
Figure parameter, the target figure parameter include that n third of the target roles image of the child virtual pet generates parameter.
On the other hand, a kind of generating means of virtual pet are provided, which is characterized in that described device includes:
Receiving module, for receiving breeding request;
Module is obtained, for virtually doting on according to the father's figure parameter and mother of the breeding request father virtual pet
Female figure parameter of object, father's figure parameter include that n first of the first role image of the father virtual pet generates
Parameter, mother's figure parameter include that n second of the second role image of mother virtual pet generates parameter, and n is positive
Integer;
Generation module, for generating child according to hereditary rule according to father's figure parameter and female figure parameter
The target figure parameter of virtual pet, the target figure parameter include the n of the target roles image of the child virtual pet
A third generates parameter.
On the other hand, a kind of electronic equipment is provided, which is characterized in that the electronic equipment includes processor and storage
Device is stored at least one instruction, at least one section of program, code set or instruction set in the memory, and described at least one refers to
It enables, at least one section of program, the code set or the instruction set are loaded by the processor and executed to realize such as this above-mentioned Shen
Please virtual pet described in embodiment generation method.
On the other hand, a kind of computer readable storage medium is provided, at least one finger is stored in the storage medium
Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or
Instruction set is loaded as the processor and is executed the generation method to realize the virtual pet as described in above-mentioned the embodiment of the present application.
On the other hand, a kind of computer program product is provided, when the computer program product is run on computers
When, so that computer executes the generation method of the virtual pet as described in above-mentioned the embodiment of the present application.
Technical solution bring beneficial effect provided by the embodiments of the present application includes at least:
Child virtual pet is generated by father virtual pet and mother virtual pet, according to father's figure parameter and
Female figure parameter determines the target figure parameter of child virtual pet, increases the mode for generating virtual pet, and user can lead to
It crosses selection father virtual pet and mother virtual pet generates child virtual pet, and generate gene order, i.e., it is vivid
The different child virtual pet of parameter, that is, the figure parameter of the child virtual pet generated is unexpected, and the something lost
Rule is passed only for the variation of role image, will not influence the numerical value category similar to operational efficiency, life value, Mana etc
Property, it is not only suitable for the virtual pet without operational efficiency, and be suitable for the virtual pet with operational efficiency, i.e. the generation is empty
The method compatibility of quasi- pet preferably, and increases the interest for generating the process of virtual pet.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the structural block diagram for the computer system that one exemplary embodiment of the application provides;
Fig. 2 is the structural block diagram for the server system that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart for the virtual pet generation method that one exemplary embodiment of the application provides;
Fig. 4 is the flow chart for the virtual pet generation method that another exemplary embodiment of the application provides;
Fig. 5 is the flow chart for the virtual pet generation method that another exemplary embodiment of the application provides;
Fig. 6 is the flow chart for the virtual pet generation method that another exemplary embodiment of the application provides;
Fig. 7 is the schematic diagram for the virtual pet that one exemplary embodiment of the application provides;
Fig. 8 is the schematic diagram of the local feature for the virtual pet that one exemplary embodiment of the application provides;
Fig. 9 is schematic diagram of the body model of one exemplary embodiment of the application offer in conjunction with local feature;
Figure 10 is the schematic diagram for the virtual pet that another exemplary embodiment of the application provides;
Figure 11 is the flow chart for the virtual pet generation method that another exemplary embodiment of the application provides;
Figure 12 is the flow chart for the virtual pet generation method that another exemplary embodiment of the application provides;
Figure 13 is the flow chart for the virtual pet generation method that another exemplary embodiment of the application provides;
Figure 14 is the flow chart for the virtual pet generation method that another exemplary embodiment of the application provides;
Figure 15 is the structural block diagram for the virtual pet generating means that one exemplary embodiment of the application provides;
Figure 16 is the structural block diagram for the virtual pet generating means that another exemplary embodiment of the application provides;
Figure 17 is the structural block diagram for the server that one exemplary embodiment of the application provides;
Figure 18 is the structural block diagram for the terminal that one exemplary embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party
Formula is described in further detail.
Firstly, simply being introduced noun involved in the embodiment of the present application: virtual pet: be with cartoon fashion and/
Or the digital pet that the pet image of animal forms is presented.The virtual pet is that two-dimensional digital pet or 3-dimensional digital are doted on
Object, for example, virtual pet is the three-dimensional pet that the pet image in the form of cartoon cat is presented.Optionally, there are one
What the pet image of partial virtual pet was randomly generated, for example the pet image of 0 generation virtual pet is randomly generated;In the presence of
The pet image of at least one virtual pet is according to the pet of parents virtual pet and/or other ancestors virtual pets image
It is generated according to gene genetic rule, for example the pet image of the offspring virtual pet in addition to 0 generation virtual pet is according to base
It is generated because of hereditary rule.Optionally, every virtual pet has unique gene order, which includes being used for
Determine that the generation parameter of the pet image of virtual pet, gene order are also referred to as figure parameter.
In some embodiments, the pet information of every virtual pet is stored on block catenary system, by block linkwork
The common recognition mechanism of multiple nodes on system is stored and is authenticated.Pet information includes at least: virtual pet it is unique
Gene order, also it is optional include: virtual pet mark, parents' information of virtual pet, generation-inter- information, the void of virtual pet
The family tree information of quasi- pet, the historical trading flowing water information of virtual pet, the history career event information of virtual pet and virtual
At least one of other information of pet.Since the gene order of every virtual pet is unique, and in block
The information stored on catenary system is true and unique, therefore virtual pet has collection attribute.Simultaneously as virtual pet
Pet information is stored on block catenary system, even if virtual pet is design, the number used in the first application program is doted on
Object, move to also can be convenient in the second application program carry out using.First application program and the second application program are different
Application program.
In some embodiments, virtual pet is the digital pet that the application program run in terminal is shown.The application
Program includes at least one in following function: crawl virtual pet generates virtual pet, breeding virtual pet, trade virtual
Pet, fought using virtual pet, using virtual pet carry out augmented reality (Augmented Reality, AR) interaction,
Social activity is carried out using virtual pet, carries out AR education using virtual pet.In further embodiments, which is to be based on
Block catenary system carries out the application program of acquisition, breeding and/or the transaction of virtual pet.In further embodiments, the application
Program is the social gaming program based on geographical location, the social gaming program be provided with collected using virtual pet, at
Long and/or militant at least one function.
In some embodiments, application program has the function of fighting using virtual pet.At this point, gene order meeting
Determine feature possessed by virtual pet.Features described above may include: external feature and/or internal characteristics.
External feature refers to the feature for embodying the pet image of virtual pet.Optionally, virtual pet includes skin, spot
The difference physical feeling such as line, ear, beard, decorative pattern, eyes and mouth, each physical feeling can there are many different outer
In feature.Above-mentioned external feature may include the visible features such as color, shape, texture.For example, the external feature of skin can wrap
Include white skin, red skin, orange skin, yellow-toned skin, green skin, cyan skin, blue skin and purple skin etc.
Different colours.In another example the external feature of ear may include the different shapes such as screech owl, cropped ear, grasswort, folding ear, normal ear.
Internal characteristics refer to the feature for embodying the inherent attribute of virtual pet.For example, inherent attribute may include intelligence value,
Attack force value, defence force value, clever force value, magic power value, force, resistance to force value, quick angle value, potential value, velocity amplitude, life value etc.
A variety of different attributes.
The gene order of virtual pet: one group of parameter value including the pet image for generating virtual pet, also referred to as shape
As parameter.By taking virtual pet is 3D virtual pet as an example, the pet image of each virtual pet includes the 3D image of multiple types
Material, the 3D image material of each type correspond to different role position and/or texture level, each 3D image material corresponding one
The 3D material mark of a material mark, each type can be considered a parameter value in gene order.Schematically, if a 3D
The 3D body model of virtual pet be it is identical, then the pet image of 3D virtual pet include at least 8 kinds of 3D image materials (also referred to as
Local feature): 3D body model, ear model, skin material, eyes material, nose material, mouth material, beard material, body
Body speckle material, thorax abdomen decorative pattern material.Optionally, it includes: tail material, outside that the pet image of 3D virtual pet is also optional
Pendant material and global characteristics.Tail material is the feature for determining the tail model of virtual pet, such as when pet image
When being type of animal, tail material is elongated tail or short and thick tail;External hanging member material is for determining matching for virtual pet
The feature of decorations, accessories include but is not limited to knapsack, glasses, hold in stage property, waistband, clothes, cap, shoes and head ornaments
It is at least one;Global characteristics are the integration image characteristics for being covered on the body model of virtual pet, and are had highest
Display priority.When in target figure parameter including global characteristics, global characteristics can cover local feature and completely be shown
Show namely local feature can be hidden and not show.For example when some pet cat has superman's global characteristics, it will not show itself
Cat image, but show one with superman's appearance pet image.
Accordingly, gene order includes: global characteristics parameter, dermatoglyph characteristic parameter, skin color characteristic parameter, tripe
It is special that dermatoglyph manages characteristic parameter, belly Color characteristics parameters, eyes textural characteristics parameter, eye color characteristic parameter, mouth texture
It is special to levy parameter, mouth Color characteristics parameters, beard textural characteristics parameter, beard Color characteristics parameters, ear characteristic parameter, tail
Levy at least one of parameter, pendant characteristic parameter.The key-value pair that multiple arranged in sequence can be used in gene order is indicated, should
The form of (gene name, parameter value) can be used in key-value pair.In a schematical example, gene order is represented as Gene=
[(3D body model feature, default), (skin characteristic, smooth), (belly feature, decorative pattern 1), (mouth textural characteristics, small protruding canine teeth
1), (mouth color characteristic, red), (tail feature, tubbiness shape)].
Gene genetic rule: also known as heredity rule, genetic algorithm or Gene hepatitis B vaccine, are by parents virtual pet
And/or the pet image of other ancestors virtual pets is imitated true biological genetic development and is transmitted, it is virtual to generate child
The rule of the pet image of pet.It in some embodiments, is unique personalized empty for each virtual pet of guarantee
Quasi- pet, each virtual pet have unique gene order.In some embodiments, which is by father
After the pet image of mother virtual pet and/or other ancestors virtual pets carries out recombination and duplicate removal according to genetic development, generate
Child virtual pet has the rule of the pet image of unique trait.Duplicate removal refer to when in genetic process occur with have virtually dote on
When the identical gene order of object, the gene order of the virtual pet can be regenerated, to guarantee the gene of the virtual pet only
The mechanism of one property.Optionally, since gene genetic rule is to imitate the heredity rule of true biology, there is also reproductive processes
The middle restrictive condition that there is pregnancy duration, close relative and cannot breed etc.
In the embodiment of the present application, between two virtual pets with genetic affinity, there are gene.Gene
Refer to the gene that another party is hereditary to by the side in two virtual pets with genetic affinity.The spy that gene are determined
Sign can be described as hereditary feature.There are identical hereditary features between two virtual pets with genetic affinity, namely exist
Identical image material feature.For example, two virtual pets with genetic affinity, all have yellow-toned skin.In another example two
Virtual pet with genetic affinity all has red skin and folding ear.The quantity of hereditary feature can be one, be also possible to
Multiple, the embodiment of the present application is not construed as limiting this.In general, the generation between two virtual pets with genetic affinity
Point closer, then hereditary feature is more;Conversely, the seniority in the family between two virtual pets with genetic affinity is remoter, then heredity is special
It levies fewer.
The generation-inter- information of virtual pet: refer to virtual pet generation part information in entire virtual pet world outlook, by virtual
Generation-inter- in the father virtual pet and mother virtual pet of pet determines.In some embodiments, the generation of child virtual pet
Border adds one to obtain by the maximum generation-inter- number in father virtual pet and mother virtual pet, for example father virtual pet is 0 generation void
Quasi- pet, mother virtual pet is 4 generation virtual pets, then child virtual pet is 5 generation virtual pets.In some embodiments,
The generation-inter- of virtual pet primary is minimum, such as the generation-inter- of virtual pet primary is 0.The generation-inter- of non-virtual pet primary is by its parent
The generation-inter- of close virtual pet determines.By the generation-inter- for the child virtual pet that the breeding of parents virtual pet generates, it is higher than its parent
The generation-inter- of close virtual pet.In one example, if only allowing the parents virtual pet of identical generation-inter- to breed generates child
Virtual pet (namely next-generation virtual pet), then the generation-inter- that the generation-inter- of child virtual pet is equal to parents virtual pet adds 1.
For example, the generation-inter- of parents virtual pet is 1, then the generation-inter- of child virtual pet is 2;In another example parents virtual pet
Generation-inter- be 0, then the generation-inter- of child virtual pet be 1.In another example, if both allowing the parents of identical generation-inter-
Virtual pet breeding generates child virtual pet (namely next-generation virtual pet), and the parents of different generation-inter-s is also allowed virtually to dote on
Object breeding generates child virtual pet, then the generation-inter- of child virtual pet is equal in parents virtual pet, generation-inter- higher one
The generation-inter- of side adds 1.For example, the generation-inter- of father virtual pet is 0, the generation-inter- of mother virtual pet is 2, then child virtual pet
Generation-inter- is 3.In addition, virtual pet primary is not to be by father virtual pet and the breeding generation of mother virtual pet, but by void
The quasi- automatic output of pet system.Therefore, virtual pet primary and be not present father virtual pet and mother virtual pet, more will not
There are the seniority in the family be higher than virtual pet primary and with its other virtual pet with genetic affinity.
Father's figure parameter: optionally, each virtual pet further includes sex character, which can be randomly generated
, it is also possible to by genesis sequence alternating decision, schematically, server generates 5 virtual pets, and presses genesis sequence
Women, male, women, male and women are set by the sex character of 5 virtual pets.Wherein, women of role and male
Property role combination can breed virtual pet, wherein the male role is the father virtual pet of the virtual pet, the father
The figure parameter of virtual pet is father's figure parameter.
Female figure parameter: after women of role is bred in conjunction with male role obtains virtual pet, which is
Mother virtual pet of the virtual pet, the figure parameter of mother virtual pet are female figure parameter.
It is worth noting that, virtual pet can not also include sex character, when being bred by two virtual pets,
Mother virtual pet and father virtual pet can be determined between two virtual pets at random.
Ancestors' figure parameter: ancestors' figure parameter refers to the ancestors of breeding father virtual pet and/or mother virtual pet
The figure parameter of virtual pet, when above-mentioned father virtual pet and/or mother virtual pet are also to be generated by way of breeding
When, the figure parameter of the previous generation or previous generations virtual pet that breed the father virtual pet and/or mother virtual pet are
Ancestors' figure parameter.Schematically, virtual pet 1 is the 3rd generation virtual pet, which is by virtual pet 2 and virtual
The breeding of pet 3 obtains, and all for 2nd generation virtual pet, (optionally, the same generation virtual pet can for virtual pet 2 and virtual pet 3
To be combined breeding), then virtual pet 2 and virtual pet 3 are that the father virtual pet of virtual pet 1 and mother virtually dote on
Object, virtual pet 2 are obtained by virtual pet 4 and the breeding of virtual pet 5, then the virtual pet 4 and virtual pet 5 are virtual
The figure parameter of the ancestors virtual pet of pet 1, virtual pet 4 and virtual pet 5 is ancestors' figure parameter.
Global characteristics: refer to the integration image characteristics of the body model of covering virtual pet.The global characteristics pass through complete
Office's characteristic parameter configures to obtain, which is used to carry out the integration image of the body model of covering virtual pet
Configuration, that is, when in target figure parameter including global characteristics parameter, virtual pet can also be carried out without local feature parameter
Complete display, schematically, the global characteristics are racoon series of features, Spider-Man series of features etc..Optionally, the overall situation is special
Sign parameter and local characteristic parameter can also be configured in figure parameter simultaneously, and the display priority of global characteristics parameter is high
In local feature parameter, that is, when including simultaneously global characteristics parameter and local feature parameter in figure parameter, preferential display is complete
The corresponding global characteristics of office's characteristic parameter.
Local feature: refer to the part image feature of the image of the body model of covering virtual pet.The local feature is logical
Local feature parameter is crossed to be configured, the local feature parameter be used for covering virtual pet body model image be divided into
Few two parts are configured.It optionally, can be to virtually doting on when in target figure parameter including all local feature parameters
Object is completely shown.Optionally, when some local feature parameter is not configured or is configured as blank parameter, virtual pet
In display, which is shown as pellucidity or the local feature parameter is corresponding
Local feature is shown as white occupied state or the corresponding local feature of local feature parameter is shown as any filling shape
State.In general, configured with complete global characteristics parameter and local characteristic parameter in figure parameter, when global characteristics parameter is not empty
When white ginseng number, when showing virtual pet, the corresponding image of display global characteristics parameter, when global characteristics parameter is blank parameter
When, the corresponding image of display local feature parameter.
Pendant feature: referring to the accessories feature of virtual pet, which is configured by pendant characteristic parameter, should
Pendant characteristic parameter is for configuring the accessories of virtual pet.Pendant feature is independently of global characteristics and local feature
Except feature, the pendant feature be used for when show virtual pet, increase show accessories, such as: knapsack, hand held object, wing, cap
Son, scarf, glasses etc..After determining the image of virtual pet by global characteristics parameter or local feature parameter, pass through pendant
Characteristic parameter shows accessories with the virtual pet.
Fig. 1 shows the structural block diagram of the computer system 100 of one exemplary embodiment of the application offer.The computer
System 100 includes: first terminal 120, server cluster 140 and second terminal 160.
First terminal 120 is connected by wireless network or cable network with server cluster 120.First terminal 120 can be with
It is smart phone, game host, desktop computer, tablet computer, E-book reader, MP3 player, MP4 player and knee
At least one of mo(u)ld top half portable computer.First equipment, 120 installation and operation has the application program for supporting virtual pet.This is answered
It can be pet develop class games, AR games, any one in AR educational procedure with program.First terminal 120
It is the terminal that the first user uses, the application program in first terminal 120 is logged in the first user account number.
First terminal 120 is connected by wireless network or cable network with server 140.
Server cluster 140 include a server, multiple servers, cloud computing platform and virtualization center at least
It is a kind of.Server cluster 140 is used to that the application program of virtual pet to be supported to provide background service.Optionally, server cluster
140 undertake main calculating work, and first terminal 120 and second terminal 160 undertake secondary calculation work;Alternatively, server cluster
140 undertake secondary calculation work, and first terminal 120 and second terminal 160 undertake main calculating work;Alternatively, server cluster
140, cooperated computing is carried out using distributed computing architecture between 160 three of first terminal 120 and second terminal.
Optionally, server cluster 140 includes: access server 141, background server 142.Access server 141 is used
In providing access service and the messaging service of first terminal 120 and second terminal 140, and by useful information in terminal and
It is forwarded between background server 142.Background server 142 is used to provide the background service of application program, such as: game logic clothes
During business, material offer service, the generation service of virtual pet, the breeding of the transactional services of virtual pet, virtual pet service
It is at least one.Background server 142 can be one or more.When background server 142 is more, after there are at least two platforms
Platform server 142 is used to provide different services, and/or, there are at least two background servers 142 for providing identical clothes
Business, the embodiment of the present application are not limited this.
160 installation and operation of second terminal has the application program for supporting virtual pet.The application program can be pet and support
At any one in class games, AR games, AR educational procedure.Second terminal 160 is the end that second user uses
End.Second user account number is logged in the application program of second terminal 120.
Optionally, the first user account number and second user account number are in same virtual social network.Optionally, it first uses
Family account number and second user account number may belong to the same troop, the same tissue, with friend relation or with provisional
Communicate permission.Optionally, the first user account number and second user account number also may belong to different troops, different tissues or have
Antagonistic Liang Ge group.
Optionally, the application program installed in first terminal 120 and second terminal 160 be identical or two terminals on
The application program of installation is the same type application program of different control system platforms.First terminal 120 can refer to multiple ends
One in end, second terminal 160 can refer to one in multiple terminals, and the present embodiment is only with first terminal 120 and second
Terminal 160 illustrates.First terminal 120 and the terminal type of second terminal 160 are identical or different, the terminal type packet
It includes: smart phone, game host, desktop computer, tablet computer, E-book reader, MP3 player, MP4 player and knee
At least one of mo(u)ld top half portable computer.Following embodiment is smart phone with first terminal 120 and/or second terminal 140
To illustrate.
Those skilled in the art could be aware that the quantity of above-mentioned terminal can be more or less.For example above-mentioned terminal can be with
Only one perhaps above-mentioned terminal be tens or several hundred or greater number.The embodiment of the present application to the quantity of terminal and
Device type is not limited.
In some alternative embodiments, server cluster 140 is used to store Role Information and the friendship of each virtual pet
Easily record.Role Information includes: the role identification for unique identification virtual pet, for characterizing the role image of virtual pet
Figure parameter, at least one of the preview graph for characterizing virtual pet.In an alternative embodiment as shown in Figure 2
In, server cluster 140 is also connected with block catenary system 180, and server cluster 140 is by the Role Information of each virtual pet
And/or transaction record is stored in block catenary system 180.In some alternative embodiments, server cluster 140 itself can also
Using as in block catenary system 180 a node operation and storing data.
Fig. 3 shows the generation method flow chart of the virtual pet of one exemplary embodiment of the application offer, this implementation
Example is applied in computer system shown in FIG. 1 in this way, is illustrated so that virtual role is virtual pet as an example, this method
Include:
Step 301, breeding request is received.
Optionally, breeding request is for requesting through father virtual pet and mother virtual pet to child virtual pet
It is bred.
Optionally, breeding request can be terminal and be sent to server, be also possible to what server automatically generated, take
The mode that device reception breeding is requested of being engaged in includes such as at least one of under type:
First, timer is previously provided in server, which issues breeding request after reaching timing duration;It is optional
Ground, breeding request randomly choose father virtual pet and mother's void for requesting from virtual pet generated in server
Quasi- pet is bred.
Second, terminal to server sends breeding request.
Optionally, operation has application program in terminal, which provides the function of being shown to virtual pet.It can
Selection of land, user can carry out using such as virtual pet in the application program: be carried out in virtual environment using virtual pet
Game, using virtual pet carry out analogue simulation, using virtual pet carry out augmented reality (Augmented Reality,
AR) game, use virtual pet to carry out at least one of AR education.
Optionally, terminal to server sends breeding request and can be through any one in following situation:
First, user selects father virtual pet and mother virtual pet in the application program of terminal, and to server
Breeding request is sent, request is bred by the father virtual pet selected and mother virtual pet;
Second, user draws a lottery in the application, and by prize drawing obtain virtual pet when, terminal to server hair
Breeding is sent to request, request server requests random selection father virtual pet and the progress of mother virtual pet numerous according to the breeding
It educates, and the father virtual pet and mother virtual pet by selection can be what user was possessed, be also possible on server
What is stored is generated;
Third, user get gift bag in the application, when the gift in gift bag is virtual pet, terminal to server hair
Breeding is sent to request, request server requests random selection father virtual pet and the progress of mother virtual pet numerous according to the breeding
It educates.
Step 302, according to female shape of father's figure parameter of breeding request father virtual pet and mother virtual pet
As parameter.
Optionally, which includes n first generation parameter of the first role image of father virtual pet, should
Female figure parameter includes that n second of the second role image of mother virtual pet generates parameter, wherein n is positive integer.
Optionally, which is the image that father virtual pet is shown in the terminal.Optionally, this
One role image is obtained by n first generation parameter configuration, and each first generation parameter is for configuring the first role shape
The all or part of image of elephant.Optionally, each first generation parameter corresponds to a kind of vivid material, and every kind of vivid material is corresponding
N vivid material superposition is shown, obtains first role image by respective physical feeling and/or texture level.
Optionally, which is the image that mother virtual pet is shown in the terminal.Optionally, this
Two role images are obtained by n second generation parameter configuration, and each second generation parameter is for configuring the second role shape
The all or part of image of elephant.Optionally, each second generation parameter corresponds to a kind of vivid material, and every kind of vivid material is corresponding
N vivid material superposition is shown, obtains second role image by respective physical feeling and/or texture level.
Optionally, when breeding request is to send after user selects father virtual pet and mother virtual pet to server
When, father's figure parameter and female figure parameter can be terminal will breeding request when being sent to server, it is attached in breeding request
Band;It is generated virtual pet of the server from storage when breeding the father virtual pet in requesting and mother virtual pet
In it is randomly selected when, father's figure parameter and female figure parameter can be corresponding storage in the server, and father image
Parameter and female figure parameter are corresponding storage, service with the mark of father virtual pet and mother virtual pet in the server
After device obtains the mark of father virtual pet and the mark of mother virtual pet, inquired according to the mark.
Step 303, according to father's figure parameter and female figure parameter, the target of child virtual pet is generated according to hereditary rule
Figure parameter.
Optionally, which includes that n third of the target roles image of child virtual pet generates parameter.
Optionally, which is the image that child virtual pet is shown in the terminal.Optionally, this
Three role images are to generate parameter configuration by n third to obtain, and each third generates parameter for configuring third role's shape
The all or part of image of elephant.Optionally, which includes different types of image material, each type in n
Vivid material correspond to respective physical feeling and/or texture level, n third generate parameter respectively with different type in n
Vivid material it is corresponding.
Optionally, above-mentioned hereditary rule includes but is not limited to: copy rule, reversion rule, variation rule and loss rule
At least one of then.
Wherein, copy rule is used to carry out selection duplication in n first generation parameter and n second generation parameter;It returns
Grand master gage is then used to carry out selection duplication in ancestors' figure parameter;Variation rule is for excluding n when determining that third generates parameter
A first generates parameter and n second generation parameter;Loss rule be used for by target figure parameter global characteristics parameter and/
Or pendant characteristic parameter is set as blank parameter.
Optionally, the target figure parameter that a child virtual pet can be generated according to hereditary rule, also can be generated
The different target figure parameter of multiple child virtual pets.
In conclusion the generation method of virtual pet provided in this embodiment, virtual by father virtual pet and mother
Pet generates child virtual pet, and the target shape of child virtual pet is determined according to father's figure parameter and female figure parameter
As parameter, the mode for generating virtual pet is increased, user can pass through selection father virtual pet and mother virtual pet pair
Child virtual pet generates, and generates gene order, i.e. the different child virtual pet of figure parameter, that is, generates
The gene order of child virtual pet is unexpected, and heredity rule will not influence only for the variation of role image
Similar to the numerical attribute of operational efficiency, life value, Mana etc, it is not only suitable for the virtual pet without operational efficiency,
It is suitable for the virtual pet with operational efficiency again, i.e. the method compatibility of the generation virtual pet is preferable, and increases generation
The interest of the process of virtual pet.
In an alternative embodiment, above-mentioned heredity rule includes in copy rule, variation rule and loss rule
At least one.Fig. 4 is the generation method flow chart for the virtual pet that another exemplary embodiment of the application provides, with the party
Method is illustrated for applying in computer system as shown in Figure 1, this method comprises:
Step 401, breeding request is received.
Optionally, breeding request is for requesting through father virtual pet and mother virtual pet to child virtual pet
It is bred.
Step 402, according to female shape of father's figure parameter of breeding request father virtual pet and current virtual pet
As parameter.
Optionally, which includes n first generation parameter of the first role image of father virtual pet, should
Female figure parameter includes that n second of the second role image of mother virtual pet generates parameter, wherein n is positive integer.
Optionally, which is the image that father virtual pet is shown in the terminal.Optionally, this
One role image is obtained by n first generation parameter configuration, and each first generation parameter is for configuring the first role shape
The all or part of image of elephant.Optionally, each first generation parameter corresponds to a kind of vivid material, and every kind of vivid material is corresponding
N vivid material superposition is shown, obtains first role image by respective physical feeling and/or texture level.
Optionally, which is the image that mother virtual pet is shown in the terminal.Optionally, this
Two role images are obtained by n second generation parameter configuration, and each second generation parameter is for configuring the second role shape
The all or part of image of elephant.Optionally, each second generation parameter corresponds to a kind of vivid material, and every kind of vivid material is corresponding
N vivid material superposition is shown, obtains second role image by respective physical feeling and/or texture level.
Step 403, according to father's figure parameter and female figure parameter, i of target roles image are determined according to copy rule
Third generates parameter, i≤n.
Wherein, copy rule is used to carry out selection duplication in n first generation parameter and n second generation parameter.
Optionally, which further includes direct copy rule and cross replication rule.Wherein, selection, which replicates, is
Refer to, m-th first in parameter are generated at n first and generates parameter and n second m-th second generations generated in parameter
In parameter, one is selected to carry out copying as m-th of third generation parameter (i.e. directly duplication);Alternatively, being generated according to m-th first
Parameter and m-th second generation parameters carry out duplication as m-th of third in parameter list and generate parameter, such as: arranging in parameter
Between m-th first generation parameters and m-th second generation parameters in table, a parameter is selected to generate as m-th of third
Parameter (i.e. cross replication), wherein parameter list is that prestore in server includes that can be arranged to the in whole or in part
Three generate the list of the parameter of parameter, and optionally, the parameter in the parameter list is sequentially arranged by rule.Schematically,
The glasses textural characteristics parameter for including in parameter list is successively are as follows: birdeye eyeball parameter, quadrangle eye parameters, five jiaos of eye parameters
And hexagonal eye parameters.
Schematically, in conjunction with above description, direct duplication and cross replication are illustrated.
Directly replicate: it is ear characteristic parameter that m-th of third, which generates parameter, m-th first generations in father's figure parameter
Parameter is ear 1, and m-th second generation parameters in female figure parameter are ear 2, then one is selected in ear 1 and ear 2
(ear 1 or ear 2) generates parameter as m-th of third;
Cross replication: ear characteristic parameter in parameter list presses regular sequential are as follows: ear 1, ear 2, ear 3,
Ear 4 and ear 5, m-th first generation parameters in father's figure parameter are ear 1, m-th second in female figure parameter
Generation parameter is ear 4, then selects one to give birth in (i.e. ear 2 and ear 3) as m-th of third between ear 1 and ear 4
At parameter.
Step 404, according to father's figure parameter and female figure parameter, j of target roles image are determined according to variation rule
Third generates parameter, i+j≤n.
Wherein, variation rule generates parameter and n second for excluding n first when determining that j third generates parameter
Parameter is generated, which generates parameter and above-mentioned i third generates parameter and intersection is not present.
Optionally, server can also first obtain ancestors' figure parameter, and exclude n when determining that j third generates parameter
A first generates parameter, n the second generation parameters and ancestors' figure parameters, and is selected as in other figure parameters
Third generates parameter, wherein selection mode includes randomly choosing, successively being selected according to putting in order for parameter in parameter list
It selects, the embodiment of the present application is not limited this.
Schematically, the ear characteristic parameter in father's figure parameter is ear 1, the ear characteristic parameter in female figure parameter
For ear 2, then ear 1 is excluded when determining that third generates the ear characteristic parameter in parameter and ear 2 is selected.
Step 405, ancestors' figure parameter is obtained.
Optionally, when father's figure parameter and/or female figure parameter are corresponding with ancestors' figure parameter, ancestors' image ginseng is obtained
Number, the figure parameter of the ancestors virtual pet of breeding father virtual pet and/or mother virtual pet when ancestors' figure parameter.
Optionally, the breeding relationship being stored in server between virtual pet, as shown in following table one:
Table one
Virtual pet | Father virtual pet | Mother virtual pet |
Virtual pet 1 | Virtual pet 2 | Virtual pet 3 |
Virtual pet 2 | Virtual pet 4 | Virtual pet 5 |
Virtual pet 3 | Virtual pet 4 | Virtual pet 5 |
Virtual pet 4 | - | - |
Virtual pet 5 | - | - |
According to upper table one it is found that the father virtual pet of virtual pet 1 is virtual pet 2, the father of virtual pet 2 is virtual
Pet is virtual pet 4, then virtual pet 4 is the ancestors virtual pet of virtual pet 1, and the figure parameter of virtual pet 4 is void
Ancestors' figure parameter of quasi- pet 1.
It is worth noting that, with ancestors virtual pet for father virtual pet and/or mother virtual pet in the present embodiment
Previous generation virtual pet for be illustrated, in actual operation, ancestors virtual pet can also be father virtual pet and/
Or the previous generations virtual pet of mother virtual pet.
Step 406, determine that k third of target roles image generates parameter, k+i≤n according to reversion rule.
Wherein, for reversion principle for carrying out selection duplication in ancestors' figure parameter, which generates parameter and i-th
Intersection is not present in a generation parameter.
Optionally, which includes direct reversion rule and intersects any one in reversion rule, is directly returned
Grand master gage then refers to that one is selected in ancestors' figure parameter as third generates parameter.Such as: the ear in ancestors' figure parameter is special
Sign parameter includes ear 3 and ear 4, then selects one in ear 3 and ear 4 as third and generate parameter.
Intersect reversion rule and refers to that a determining parameter is generated as third in parameter list according to ancestors' figure parameter
Parameter.Such as: the ear characteristic parameter in ancestors' figure parameter includes ear 1 and ear 4, then selects one in ear 2 and ear 3
It is a that third is used as to generate parameter.
It is determined it is worth noting that, working as i third in target figure parameter and generating parameter by copy rule, j third
When create-rule is determined by the determination of variation rule and k third create-rule by reversion rule, above-mentioned i+j+k≤n.
Step 407, when the global characteristics parameter in father's figure parameter and/or female figure parameter is configured as the global spy of target
When levying parameter, blank parameter is set for the global characteristics parameter in target figure parameter according to loss rule.
It optionally, include global characteristics parameter in target figure parameter, which is used for empty to covering child
The integration image of the body model of quasi- pet is configured.
Optionally, when setting blank parameter for the global characteristics parameter in target figure parameter according to loss principle, packet
It includes such as at least one of under type:
First, it determines in server in generated virtual pet, it is global that global characteristics parameter is configured as above-mentioned target
The quantity of the virtual pet of characteristic parameter improves the overall situation in target figure parameter is special when the quantity is greater than preset quantity
Sign parameter is set as the probability of blank parameter;
Second, determine whether to set blank parameter for the global characteristics parameter in the target global characteristics parameter at random;
Third determines whether according to the facilities of nearest one or several global characteristics parameters by the global characteristics parameter
It is set as blank parameter.Such as:, will be when previous full when a nearest global characteristics parameter is arranged to target global characteristics parameter
Office's characteristic parameter is set as blank parameter.
Step 408, when the pendant characteristic parameter in father's figure parameter and/or female figure parameter is configured as target pendant spy
When levying parameter, blank parameter is set for the pendant characteristic parameter in target figure parameter according to loss rule.
It optionally, include pendant characteristic parameter in target figure parameter, the pendant characteristic parameter is for virtually doting on child
The accessories of object are configured.
Optionally, when setting blank parameter for the global characteristics parameter in target figure parameter according to loss principle, packet
It includes such as at least one of under type:
First, it determines in server in generated virtual pet, pendant characteristic parameter is configured as above-mentioned target pendant
The quantity of the virtual pet of characteristic parameter improves the pendant in target figure parameter is special when the quantity is greater than preset quantity
Sign parameter is set as the probability of blank parameter;
Second, determine whether to set blank parameter for the pendant characteristic parameter in the target pendant characteristic parameter at random;
Third determines whether according to the facilities of nearest one or several pendant characteristic parameters by the pendant characteristic parameter
It is set as blank parameter.Such as: when a nearest pendant characteristic parameter is arranged to target pendant characteristic parameter, previous extension will be worked as
Part characteristic parameter is set as blank parameter.
Step 409, the target figure parameter that parameter determines child virtual pet is generated according to third.
Optionally, n third generate parameter be i determined by above-mentioned copy rule, variation rule determine j,
What reversion rule determining k and global characteristics parameter and the determination of pendant characteristic parameter obtained, wherein global characteristics parameter
It can be determined, can also be advised by losing by copy rule, variation rule or reversion rule with pendant characteristic parameter
Then it is determined.
Schematically, it is as follows that the third for including in target figure parameter generates parameter:
Gene=[(physical trait, default), (skin characteristic, smooth), (tail feature, tubbiness shape)]
Wherein, Gene indicates target figure parameter, includes that three thirds generate parameter in the target figure parameter, respectively
Physical trait, skin characteristic and tail feature, wherein physical trait is configured as defaulting, skin characteristic be configured as it is smooth,
Tail feature is configured as tubbiness shape.
In conclusion the generation method of virtual pet provided in this embodiment, virtual by father virtual pet and mother
Pet generates child virtual pet, and the target shape of child virtual pet is determined according to father's figure parameter and female figure parameter
As parameter, the mode for generating virtual pet is increased, user can pass through selection father virtual pet and mother virtual pet pair
Child virtual pet generates, and generates gene order, i.e. the different child virtual pet of figure parameter, that is, generates
The figure parameter of child virtual pet is unexpected, and heredity rule will not influence only for the variation of role image
Similar to the numerical attribute of operational efficiency, life value, Mana etc, it is not only suitable for the virtual pet without operational efficiency,
It is suitable for the virtual pet with operational efficiency again, i.e. the method compatibility of the generation virtual pet is preferable, and increases generation
The interest of the process of virtual pet.
Method provided in this embodiment, by copy rule, variation rule, reversion rule and loss rule at least
It is a kind of rule to third generate parameter be determined, rather than single pass duplication mode to father virtual pet and mother
Virtual pet is bred, and child virtual pet is obtained, and increases the gene genetic rule in reality, breeding during breeding
Process more meet real genetic development, increase generate virtual pet process interest.
Fig. 5 is that the virtual pet provided for above-mentioned steps 403 a to illustrative examples shown in step 408 generates
The flow chart of method, as shown in Figure 5:
N feature (i.e. above-mentioned n third generates parameter) is determined in conjunction with hereditary logic 51, for ith feature
52,53 (copy rules i.e. in above-mentioned steps 403) of duplication, (the variation rule i.e. in above-mentioned steps 404 of variation 54 can be passed through
Then) and loss 55 (i.e. above-mentioned steps 407 to the loss rule in step 408) three kinds of modes are determined.It is noticeable
It is that above-mentioned reversion rule is included in copy rule in Fig. 5 and is illustrated, direct reversion is classified as direct copy mode, will be handed over
Fork reversion is classified as cross replication mode.
Wherein, duplication 53 includes that (copy rule is direct multiple in corresponding above-mentioned steps 403 by father/mother directly duplication again
System rule) or cross replication 57 (the cross replication rule of copy rule in corresponding above-mentioned steps 403), cross replication 57 is again
Including father and female section duplication 571 and father/mother's family tree duplication 572 (the reversion rule in corresponding above-mentioned steps 406).
Variation 54 includes section duplication except father, mother, family tree, and losing 55 includes that global characteristics/pendant is lost.
Include for above-mentioned global characteristics and local feature, in the target figure parameter of virtual pet global characteristics and/
Or local feature, global characteristics and local feature are two groups of independent characteristics for determining the image of virtual pet, i.e., by global special
It seeks peace any one group in the local feature image that can determine a complete virtual pet.Optionally, target image is joined
It further include pendant parameter in number.
Schematically, it referring to FIG. 6, when determining the image of virtual pet 61, needs through essential feature 62 and optional
Feature 63 is determined, wherein essential feature includes global characteristics 64 and local feature 65.It is special according to global characteristics 64, part
When sign 65 and pendant feature 66 are determined the image of virtual pet, including any one in following situation:
First, global characteristics 64 are configured, then show the corresponding image of global characteristics 64;
Second, local feature 65 is configured, then shows the corresponding image of local feature 65;
Third, configures global characteristics 64 and pendant feature 66, then shows global characteristics 64 plus pendant feature 66
Corresponding image;
4th, local feature 65 and pendant feature 66 are configured, then show local feature 65 plus pendant feature 66
Corresponding image;
5th, global characteristics 64, local feature 65 and pendant feature 66 are configured, then show that global characteristics 65 add
The corresponding image of upper pendant feature 66.
Fig. 7 is the vivid schematic diagram for the corresponding virtual pet of global characteristics that one exemplary embodiment of the application provides,
As shown in fig. 7, firstly, virtual pet 71, virtual pet 72 and virtual pet 73 are corresponding for the global characteristics of racoon theme
Virtual pet, wherein pendant feature is also configured in virtual pet 71, which includes cap 711, glasses 712, stick
Sugar 713, scarf 714 and knapsack 715 are also configured with cap 711 and scarf 714 in virtual pet 72.
It is worth noting that, when configuring pendant feature in virtual pet, in addition to hand held object type, the extension of the same type
Part can only configure one, and the pendant of hand held object type can configure two.
Fig. 8 is the local feature schematic diagram that one exemplary embodiment of the application provides, to include target figure parameter packet
It includes and is illustrated for 8 kinds of local features, which includes+7 kinds of parameters of body model.Wherein, all virtual pets
Can be used the same body model, and 7 kinds of parameters include: skin 810, speckle 820, ear 830, beard 840, decorative pattern 850,
Eyes 860 and mouth 870.Speckle refers to that the lines being mainly made of spot, decorative pattern refer to the lines being mainly made of lines.Together
Each material in a kind of parameter has different color and/or shape.Optionally, each material has transparency n, transparency
N is greater than 0% and less than 80%.That is, each material has translucence, it can be seen that different layers after the parameter superposition of different layers
Textured pattern.
8 kinds of skin parameters 811 to 818, respectively white skin, red skin, orange skin, yellow are shown in Fig. 8
Skin, green skin, cyan skin, blue skin and purple skin, various skins can be distinguished and have according to different colours
Identical shape;Accordingly, further it is shown that 8 kinds of speckle materials 821 to 828,8 kind of ear material 831 to 838,8 kind of beard material
841 to 848,8 kind of decorative pattern material 851 to 858,8 kind of eyes material 861 to 868,8 kind of mouth material 871 to 878.
Optionally, 8 seed parameters 88 to 870 in Fig. 8 are divided according to different shape, but the ginseng of same shape
Number can also mark off more parameters according to different colours, and the application is not limited this.
In a schematical example, the figure parameter of a certain pet cat includes: purported skin parameter 812, target
Speckle parameter 821, target ear parameter 831, target beard parameter 844, target decorative pattern parameter 851, objective eye parameter 864,
Target mouth parameter 874.The figure parameter can be write a Chinese character in simplified form are as follows: { 812,821,831,844,851,865,874 }.
Terminal extracts mesh from skin material set after getting the figure parameter of pet cat, according to parameter identification 812
Mark skin material;Target speckle material is extracted from speckle material set according to parameter identification 821;According to parameter identification 831 from
Target ear material is extracted in ear material set;Target beard element is extracted from beard material set according to parameter identification 844
Material;Target decorative pattern material is extracted from decorative pattern material set according to parameter identification 851;According to parameter identification 864 from eyes material
Objective eye material is extracted in set;Target mouth material is extracted from mouth material set according to parameter identification 874.
Schematically, Fig. 9 is void of the ear material of one exemplary embodiment of the application offer in conjunction with body model
The schematic diagram of quasi- pet, as shown in figure 9, it is ear material 831 in figure 8 above in conjunction with obtaining that virtual pet 910, which be body material,
, virtual pet 920 is that body material is that ear material 838 in figure 8 above is combined and obtained, and virtual pet 930 is body element
Material is that the ear material 833 in figure 8 above is combined and obtained, and virtual pet 940 is that body material is ear material in figure 8 above
832 combine and obtain, and virtual pet 950 be that body material is ear material 835 in figure 8 above in conjunction with obtaining.
In the related technology, when generating virtual pet, two-dimensional actor model is set by the virtual pet first, then will
Pattern and clothes Overlapping display carry out only on the body and/or face of the actor model, and to the virtual pet
One number, to generate a virtual pet.And in the related art, the virtual pet of the same series is usually same shape
As shown in Figure 10, the number of virtual pet 101 is 551701, and the number of virtual pet 102 is 344895, and virtual pet
101 and virtual pet 102 be in image it is identical, can not distinguish numbering different and virtually be doted on completely in shape
Object 101 and virtual pet 102, the problem for causing the value of virtual pet 101 and virtual pet 102 relatively low.
Figure 11 is the generation method flow chart for the virtual pet that another exemplary embodiment of the application provides, with the party
Method is illustrated for applying in computer system as shown in Figure 1, this method comprises:
Step 1101, breeding request is received.
Optionally, breeding request is for requesting through father virtual pet and mother virtual pet to child virtual pet
It is bred.
Optionally, breeding request can be terminal and be sent to server, be also possible to what server automatically generated.
Step 1102, according to female shape of father's figure parameter of breeding request father virtual pet and mother virtual pet
As parameter.
Optionally, according to father's figure parameter of breeding request father virtual pet and female shape of mother virtual pet
Before parameter, the state of father virtual pet and mother virtual pet can also be obtained, when father virtual pet and
When mother virtual pet all meets breeding condition, father's figure parameter of father virtual pet and female shape of mother virtual pet are obtained
As parameter.
Wherein, breeding condition includes at least one of following condition:
First, mother virtual pet did not carried out breeding in nearest preset time period;
Second, mother virtual pet is not at Pregnancy status, i.e. mother virtual pet needs when breeding by pre-
If the Pregnancy status of duration, to Pregnancy status after breeding obtain child virtual pet, wherein the duration of Pregnancy status can be with
It is different according to the difference of child virtual pet, it is also possible to determine at random;
The generation duration of third, father virtual pet reaches preset duration;
4th, the generation duration of mother virtual pet reaches preset duration.
It is worth noting that, third and fourth condition in above-mentioned condition can the analogy mankind in growth reach preset condition
When can be bred.
Optionally, which includes n first generation parameter of the first role image of father virtual pet, should
Female figure parameter includes that n second of the second role image of mother virtual pet generates parameter, wherein n is positive integer.
Optionally, which is the image that father virtual pet is shown in the terminal.Optionally, this
One role image is obtained by n first generation parameter configuration, and each first generation parameter is for configuring the first role shape
The all or part of image of elephant.Optionally, each first generation parameter corresponds to a kind of vivid material, and every kind of vivid material is corresponding
N vivid material superposition is shown, obtains first role image by respective physical feeling and/or texture level.
Optionally, which is the image that mother virtual pet is shown in the terminal.Optionally, this
Two role images are obtained by n second generation parameter configuration, and each second generation parameter is for configuring the second role shape
The all or part of image of elephant.Optionally, each second generation parameter corresponds to a kind of vivid material, and every kind of vivid material is corresponding
N vivid material superposition is shown, obtains second role image by respective physical feeling and/or texture level.
Step 1103, according to father's figure parameter and female figure parameter, the mesh of child virtual pet is generated according to hereditary rule
Mark figure parameter.
Optionally, which includes that n third of the target roles image of child virtual pet generates parameter.
Optionally, above-mentioned hereditary rule includes but is not limited to: copy rule, reversion rule, variation rule and loss rule
At least one of then.
Step 1104, target figure parameter is compared with existing figure parameter.
Optionally, the corresponding existing figure parameter of generated virtual pet is stored in server.Optionally, the target
In figure parameter include global characteristics parameter, pendant characteristic parameter and local feature parameter, the local feature parameter for pair
The image for covering the body model pair of child virtual pet is divided at least two parts and configures.
Optionally, when target figure parameter being compared with existing figure parameter, including at least one in such as under type
Kind:
First, by the combination of global characteristics parameter and pendant characteristic parameter, combined with first in existing figure parameter into
Row compares, wherein the first combination includes the combination of the global characteristics parameter and pendant characteristic parameter in existing figure parameter;
Second, it will be in the combination of global characteristics parameter, local feature parameter and pendant characteristic parameter, with existing figure parameter
The second combination be compared, second combination include global characteristics parameter in existing figure parameter, local feature parameter with
And the combination of pendant characteristic parameter.
Step 1105, when target figure parameter and existing figure parameter be not identical, target figure parameter is determined as child
The figure parameter of sub- virtual pet.
Optionally, when target figure parameter is matched with existing figure parameter, then explanation is raw according to the target figure parameter
At the image of virtual pet be overlapped with the image of generated virtual pet, when target figure parameter and existing figure parameter not
When matching, then the image of virtual pet that explanation is generated according to the target figure parameter be uniquely, not with it is any generated
The image of virtual pet is overlapped, then the target figure parameter is determined as to the figure parameter of child virtual pet.
Step 1106, when target figure parameter is identical as existing figure parameter, target figure parameter is regenerated.
Optionally, it when regenerating target figure parameter, can be advised by above-mentioned copy rule, reversion rule, variation
Then and loss rule regenerates target figure parameter, until target figure parameter and existing figure parameter not phase
Together.
Step 1107, target figure parameter is sent to terminal.
Optionally, terminal is for showing the image of child virtual pet according to the target figure parameter.
Optionally, terminal generates parameter according to n third and determines n production material, and above-mentioned n production material is carried out
Overlapping display obtains the image of the virtual pet.
Optionally, it is said so that n production material includes dermatan material, belly material, ear material, tail material as an example
Bright, as shown in figure 12, the method for showing the virtual pet includes:
Step 1201, skin material and belly material are synthesized into texture T.
Step 1202, texture T is used as to the diffusing reflection textures of body material.
Step 1203, it is multiplexed material of the material of body model as ear material and tail material.
Step 1204, ear material and tail material are suspended on the skeleton point of body material.
Detailed process please refers to Figure 13, firstly, after determining body material 1301, by skin material 1302 and belly material
Texture T, is used as the diffusing reflection textures of body material, textures model 1304 is obtained, by ear material 1305 by 1303 synthesis texture T
The skeleton point of body material is suspended to tail material 1306.
In conclusion the generation method of virtual pet provided in this embodiment, virtual by father virtual pet and mother
Pet generates child virtual pet, and the target shape of child virtual pet is determined according to father's figure parameter and female figure parameter
As parameter, the mode for generating virtual pet is increased, user can pass through selection father virtual pet and mother virtual pet pair
Child virtual pet generates, and generates gene order namely the different child virtual pet of figure parameter, that is, generates
The gene order of child virtual pet be unexpected, and variation of the heredity rule only for role image, Bu Huiying
The numerical attribute for being similar to operational efficiency, life value, Mana etc is rung, virtually doting on without operational efficiency is not only suitable for
Object, and be suitable for the virtual pet with operational efficiency, i.e. the method compatibility of the generation virtual pet is preferable, and increases life
At the interest of the process of virtual pet.
Method provided in this embodiment, by copy rule, variation rule, reversion rule and loss rule at least
It is a kind of rule to third generate parameter be determined, rather than single pass duplication mode to father virtual pet and mother
Virtual pet is bred, and child virtual pet is obtained, and increases the gene genetic rule in reality, breeding during breeding
Process more meet real genetic development, increase generate virtual pet process interest.
Method provided in this embodiment, after generating target figure parameter, by the target figure parameter and existing image
Parameter is compared, and when figure parameter and existing figure parameter mismatch, which is sent to terminal, i.e., should
When the figure parameter of the corresponding virtual pet of target figure parameter and the not identical figure parameter of existing virtual pet, to terminal
Send target figure parameter, it is ensured that the figure parameter for each virtual pet that server generates is unique, increase
The interest for generating virtual pet, improves the reserve value of virtual pet.
Method provided in this embodiment includes global characteristics parameter and local feature parameter in target figure parameter due to working as
When, the corresponding global characteristics of global characteristics parameter can be preferentially shown, if comparing global characteristics parameter, local feature parameter and pendant
The combination of characteristic parameter, when global characteristics parameter combines identical with first with the combination of pendant characteristic parameter, even if part is special
Sign parameter in there is parameter to be different with the parameter in existing figure parameter, also result in virtual pet image be it is identical,
By using different alignments for different target figure parameters, avoid the image for generating two virtual pets identical
Situation.
Using virtual pet as pet cat, virtual pet is bred by father virtual pet and mother virtual pet
For, as shown in figure 14, according to father virtual pet 141 and mother virtual pet 142, pass through breeding module controller first
143 generate target figure parameter, and then target figure parameter is compared with existing figure parameter by duplicate removal inspection 144,
When comparison result is target figure parameter and existing figure parameter mismatches, which is sent to terminal, and
Generate child virtual pet of the virtual pet 145 as father virtual pet 141 and mother virtual pet 142.
Figure 15 is the structural block diagram for the virtual pet generating means that one exemplary embodiment of the application provides, such as Figure 15
Shown, which includes: receiving module 1510, obtains module 1520 and generation module 1530;
Receiving module 1510, for receiving breeding request;
Module 1520 is obtained, for empty according to father's figure parameter of the breeding request father virtual pet and mother
Female figure parameter of quasi- pet, father's figure parameter include n first of the first role image of the father virtual pet
Parameter is generated, mother's figure parameter includes that n second of the second role image of mother virtual pet generates parameter, n
For positive integer;
Generation module 1530, for being generated according to hereditary rule according to father's figure parameter and female figure parameter
The target figure parameter of child virtual pet, the target figure parameter include the target roles image of the child virtual pet
N third generate parameter.
In an alternative embodiment, the target roles image includes the different types of vivid material of n kind, every type
The vivid material of type corresponds to respective physical feeling and/or texture level, the n third generate parameter respectively with the n kind
Different types of image material is corresponding.
In an alternative embodiment, the generation module 1530 is also used to according to father's figure parameter and described
Female figure parameter determines that i third of the target roles image generates parameter according to copy rule;
The generation module 1530 is also used to generate the target that parameter determines the child virtual pet according to the third
Figure parameter;
Wherein, the copy rule is used in the n first generation parameter and the n second generation parameter carry out
Selection duplication, i≤n.
In an alternative embodiment, the generation module 1530 is also used to according to father's figure parameter and described
Female figure parameter determines that j third of the target roles image generates parameter according to variation rule;
Wherein, the variation rule generates ginseng for excluding the n first when determining that the j third generates parameter
The several and n second generates parameter, and the j third generates parameter and the i third generates parameter and intersection, i+ is not present
j≤n。
In an alternative embodiment, as shown in figure 16, Figure 16 is that another exemplary embodiment of the application provides
The structural block diagram of virtual pet generating means, father's figure parameter and/or female figure parameter are corresponding with ancestors' image ginseng
Number, ancestors' figure parameter are the ancestors virtual pets for breeding the father virtual pet and/or mother virtual pet
Figure parameter;
The generation module 1530, further includes:
Acquisition submodule 1531, for obtaining ancestors' figure parameter;
The generation module 1530 is also used to determine that k third of the target roles image is generated according to reversion rule
Parameter;
Wherein, the reversion rule is generated for carrying out selection duplication, the k third in ancestors' figure parameter
Parameter and the i third generate parameter and intersection, k+i≤n are not present.
It in an alternative embodiment, include global characteristics parameter and/or pendant feature in the target figure parameter
Parameter, the global characteristics parameter are used to match the integration image for the body model for covering the child virtual pet
It sets, the pendant characteristic parameter is for configuring the accessories of the child virtual pet;
The generation module 1530 is also used to when the overall situation in father's figure parameter and/or female figure parameter is special
It, will be described global special in the target figure parameter according to loss rule when sign parameter is configured as target global characteristics parameter
Sign parameter is set as blank parameter;
And/or
The generation module 1530 is also used to when the pendant in father's figure parameter and/or female figure parameter is special
Sign parameter is when being configured as target pendant characteristic parameter, according to the loss rule by the extension in the target figure parameter
Part characteristic parameter is set as blank parameter.
In an alternative embodiment, the corresponding existing image ginseng of generated virtual pet is stored in server
Number;
Described device, further includes:
Comparison module 1540, for the target figure parameter to be compared with the existing figure parameter;
Determining module 1550 is used for when the target figure parameter and the not identical existing figure parameter, will be described
Target figure parameter is determined as the figure parameter of the child virtual pet.
It in an alternative embodiment, include the global characteristics parameter, the pendant in the target figure parameter
Characteristic parameter and local characteristic parameter, the local feature parameter are used for the body model for covering the child virtual pet
Image is divided at least two parts and is configured;
The comparison module 1540, is also used to the combination of the global characteristics parameter and the pendant characteristic parameter, with
The first combination in the existing figure parameter is compared, and first combination includes the overall situation in the existing figure parameter
The combination of characteristic parameter and pendant characteristic parameter;
And/or
The comparison module 1540 is also used to the global characteristics parameter, the local feature parameter and the pendant
The combination of characteristic parameter is combined with second in the existing figure parameter and is compared, and described second combines including described in
There is the combination of global characteristics parameter in figure parameter, local feature parameter and pendant characteristic parameter.
In an alternative embodiment, the generation module 1530, be also used to when the target figure parameter with it is described
When existing figure parameter is identical, the target figure parameter is regenerated.
In conclusion the generating means of virtual pet provided in this embodiment, virtual by father virtual pet and mother
Pet generates child virtual pet, and the target shape of child virtual pet is determined according to father's figure parameter and female figure parameter
As parameter, the mode for generating virtual pet is increased, user can pass through selection father virtual pet and mother virtual pet pair
Child virtual pet generates, and generates gene order, i.e. the different child virtual pet of figure parameter, that is, generates
The gene order of child virtual pet is unexpected, and heredity rule will not influence only for the variation of role image
Similar to the numerical attribute of operational efficiency, life value, Mana etc, it is not only suitable for the virtual pet without operational efficiency,
It is suitable for the virtual pet with operational efficiency again, i.e. the method compatibility of the generation virtual pet is preferable, and increases generation
The interest of the process of virtual pet.
Present invention also provides a kind of server, which includes processor and memory, be stored in memory to
A few instruction, at least one instruction load by processor and is executed with realize above-mentioned each embodiment of the method offer virtual
The generation method of pet.It should be noted that the server can be server provided by following Figure 17.
Figure 17 is please referred to, it illustrates the structural schematic diagrams for the server that one exemplary embodiment of the application provides.Tool
For body: the server 1700 includes 1702 He of central processing unit (CPU) 1701 including random access memory (RAM)
The system storage 1704 of read-only memory (ROM) 1703, and connection system storage 1704 and central processing unit 1701
System bus 1705.The server 1700 further includes that the substantially defeated of information is transmitted between each device helped in computer
Enter/output system (I/O system) 1706, and is used for storage program area 1713, application program 1714 and other program modules
1715 mass-memory unit 1707.
The basic input/output 1706 includes display 1708 for showing information and inputs for user
The input equipment 1709 of such as mouse, keyboard etc of information.Wherein the display 1708 and input equipment 1709 all pass through
The input and output controller 1710 for being connected to system bus 1705 is connected to central processing unit 1701.The basic input/defeated
System 1706 can also include input and output controller 1710 to touch for receiving and handling from keyboard, mouse or electronics out
Control the input of multiple other equipment such as pen.Similarly, input and output controller 1710 also provide output to display screen, printer or
Other kinds of output equipment.
The mass-memory unit 1707 (is not shown by being connected to the bulk memory controller of system bus 1705
It is connected to central processing unit 1701 out).The mass-memory unit 1707 and its associated computer-readable medium are
Server 1700 provides non-volatile memories.That is, the mass-memory unit 1707 may include such as hard disk or
The computer-readable medium (not shown) of person's CD-ROI driver etc.
Without loss of generality, the computer-readable medium may include computer storage media and communication media.Computer
Storage medium includes information such as computer readable instructions, data structure, program module or other data for storage
The volatile and non-volatile of any method or technique realization, removable and irremovable medium.Computer storage medium includes
RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storages its technologies, CD-ROM, DVD or other optical storages, tape
Box, tape, disk storage or other magnetic storage devices.Certainly, skilled person will appreciate that the computer storage medium
It is not limited to above-mentioned several.Above-mentioned system storage 1704 and mass-memory unit 1707 may be collectively referred to as memory.
Memory is stored with one or more programs, and one or more programs are configured to by one or more central processings
Unit 1701 executes, and one or more programs include the instruction of the generation method for realizing above-mentioned virtual pet, central processing
Unit 1701 executes the generation method for the virtual pet that the one or more program realizes that above-mentioned each embodiment of the method provides.
According to various embodiments of the present invention, the server 1700 can also be arrived by network connections such as internets
Remote computer operation on network.Namely server 1700 can be connect by the network being connected on the system bus 1705
Mouth unit 1711 is connected to network 1712, in other words, it is other kinds of to be connected to that Network Interface Unit 1711 also can be used
Network or remote computer system (not shown).
The memory further includes that one or more than one program, the one or more programs are stored in
In memory, the one or more programs include the generation for carrying out virtual pet provided in an embodiment of the present invention
The step as performed by server in method.
The embodiment of the present application also provides a kind of computer readable storage medium, and at least one finger is stored in the storage medium
Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or
Instruction set is loaded by the processor 1710 and is executed the generation side to realize the virtual pet as described in Fig. 3 to Figure 14 is any
Method.
Figure 18 shows the structural block diagram of the terminal 1800 of an illustrative embodiment of the invention offer.The terminal 1800 can
To be: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer
III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio
Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 1800 is also
Other titles such as user equipment, portable terminal, laptop terminal, terminal console may be referred to as.
In general, terminal 1800 includes: processor 1801 and memory 1802.
Processor 1801 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 1801 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 1801 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 1801 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1801 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 1802 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 1802 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1802 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1801 for realizing this Shen
Please in embodiment of the method provide virtual pet generation method.
In some embodiments, terminal 1800 is also optional includes: peripheral device interface 1803 and at least one periphery are set
It is standby.It can be connected by bus or signal wire between processor 1801, memory 1802 and peripheral device interface 1803.It is each outer
Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1803.Specifically, peripheral equipment includes:
In radio circuit 1804, touch display screen 1805, camera 1806, voicefrequency circuit 1807, positioning component 1808 and power supply 1809
At least one.
Peripheral device interface 1803 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 1801 and memory 1802.In some embodiments, processor 1801, memory 1802 and periphery
Equipment interface 1803 is integrated on same chip or circuit board;In some other embodiments, processor 1801, memory
1802 and peripheral device interface 1803 in any one or two can be realized on individual chip or circuit board, this implementation
Example is not limited this.
Radio circuit 1804 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.
Radio circuit 1804 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1804 is by telecommunications
Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit
1804 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution
Code chipset, user identity module card etc..Radio circuit 1804 can by least one wireless communication protocol come with it is other
Terminal is communicated.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network
(2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some implementations
In example, radio circuit 1804 can also include that NFC (Near Field Communication, wireless near field communication) is related
Circuit, the application are not limited this.
Display screen 1805 is for showing UI (User Interface, user interface).The UI may include figure, text,
Icon, video and its their any combination.When display screen 1805 is touch display screen, display screen 1805 also there is acquisition to exist
The ability of the touch signal on the surface or surface of display screen 1805.The touch signal can be used as control signal and be input to place
Reason device 1801 is handled.At this point, display screen 1805 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press
Button and/or soft keyboard.In some embodiments, display screen 1805 can be one, and the front panel of terminal 1800 is arranged;Another
In a little embodiments, display screen 1805 can be at least two, be separately positioned on the different surfaces of terminal 1800 or in foldover design;
In still other embodiments, display screen 1805 can be flexible display screen, is arranged on the curved surface of terminal 1800 or folds
On face.Even, display screen 1805 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1805 can be with
Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode,
Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1806 is for acquiring image or video.Optionally, CCD camera assembly 1806 includes front camera
And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.?
In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively
As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide
Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle
Shooting function.In some embodiments, CCD camera assembly 1806 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light
Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for
Light compensation under different-colour.
Voicefrequency circuit 1807 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and
It converts sound waves into electric signal and is input to processor 1801 and handled, or be input to radio circuit 1804 to realize that voice is logical
Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1800 to be multiple.
Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1801 or radio frequency will to be come from
The electric signal of circuit 1804 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking
Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action
Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1807 may be used also
To include earphone jack.
Positioning component 1808 is used for the current geographic position of positioning terminal 1800, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 1808 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group
Part.
Power supply 1809 is used to be powered for the various components in terminal 1800.Power supply 1809 can be alternating current, direct current
Electricity, disposable battery or rechargeable battery.When power supply 1809 includes rechargeable battery, which can be line charge
Battery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is to pass through
The battery of wireless coil charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1800 further includes having one or more sensors 1810.One or more sensing
Device 1810 includes but is not limited to: acceleration transducer 1811, gyro sensor 1812, pressure sensor 1813, fingerprint sensing
Device 1814, optical sensor 1815 and proximity sensor 1816.
Acceleration transducer 1811 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1800
Size.For example, acceleration transducer 1811 can be used for detecting component of the acceleration of gravity in three reference axis.Processor
The 1801 acceleration of gravity signals that can be acquired according to acceleration transducer 1811, control touch display screen 1805 with transverse views
Or longitudinal view carries out the display of user interface.Acceleration transducer 1811 can be also used for game or the exercise data of user
Acquisition.
Gyro sensor 1812 can detecte body direction and the rotational angle of terminal 1800, gyro sensor 1812
Acquisition user can be cooperateed with to act the 3D of terminal 1800 with acceleration transducer 1811.Processor 1801 is according to gyro sensors
The data that device 1812 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped
Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1805 in terminal 1800 can be set in pressure sensor 1813.When
When the side frame of terminal 1800 is arranged in pressure sensor 1813, user can detecte to the gripping signal of terminal 1800, by
Reason device 1801 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1813 acquires.Work as pressure sensor
1813 when being arranged in the lower layer of touch display screen 1805, is grasped by processor 1801 according to pressure of the user to touch display screen 1805
Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control,
At least one of icon control, menu control.
Fingerprint sensor 1814 is used to acquire the fingerprint of user, is collected by processor 1801 according to fingerprint sensor 1814
Fingerprint recognition user identity, alternatively, by fingerprint sensor 1814 according to the identity of collected fingerprint recognition user.Knowing
Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1801, which grasps
Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1814 can be set
Set the front, the back side or side of terminal 1800.When being provided with physical button or manufacturer Logo in terminal 1800, fingerprint sensor
1814 can integrate with physical button or manufacturer Logo.
Optical sensor 1815 is for acquiring ambient light intensity.In one embodiment, processor 1801 can be according to light
The ambient light intensity that sensor 1815 acquires is learned, the display brightness of touch display screen 1805 is controlled.Specifically, work as ambient light intensity
When higher, the display brightness of touch display screen 1805 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1805 is turned down
Show brightness.In another embodiment, the ambient light intensity that processor 1801 can also be acquired according to optical sensor 1815, is moved
The acquisition parameters of state adjustment CCD camera assembly 1806.
Proximity sensor 1816, also referred to as range sensor are generally arranged at the front panel of terminal 1800.Proximity sensor
1816 for acquiring the distance between the front of user Yu terminal 1800.In one embodiment, when proximity sensor 1816 is examined
When measuring the distance between the front of user and terminal 1800 and gradually becoming smaller, by processor 1801 control touch display screen 1805 from
Bright screen state is switched to breath screen state;When proximity sensor 1816 detect the distance between front of user and terminal 1800 by
When gradual change is big, touch display screen 1805 is controlled by processor 1801 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1800 of structure shown in Figure 18
Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
Present invention also provides a kind of computer program products to make when computer program product is run on computers
Obtain the generation method that computer executes the virtual pet that above-mentioned each embodiment of the method provides.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (15)
1. a kind of generation method of virtual pet, which is characterized in that the described method includes:
Receive breeding request;
According to female figure parameter of father's figure parameter of the breeding request father virtual pet and mother virtual pet, institute
N first for stating the first role image that father's figure parameter includes the father virtual pet generates parameter, female image ginseng
Number includes that n second of the second role image of mother virtual pet generates parameter, and n is positive integer;
According to father's figure parameter and female figure parameter, the target image of child virtual pet is generated according to hereditary rule
Parameter, the target figure parameter include that n third of the target roles image of the child virtual pet generates parameter.
2. the method according to claim 1, wherein the target roles image includes the different types of shape of n kind
Pixel material, each type of image material correspond to respective physical feeling and/or texture level, and the n third generates parameter
It is corresponding with the different types of vivid material of the n kind respectively.
3. the method according to claim 1, wherein described join according to father's figure parameter with female image
Number generates the target figure parameter of child virtual pet according to hereditary rule, comprising:
According to father's figure parameter and female figure parameter, i of the target roles image are determined according to copy rule
Third generates parameter;
The target figure parameter that parameter determines the child virtual pet is generated according to the third;
Wherein, the copy rule is used in the n first generation parameter and the n second generation parameter be selected
Duplication, i≤n.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
According to father's figure parameter and female figure parameter, j of the target roles image are determined according to variation rule
Third generates parameter;
Wherein, variation rule for excluded when determining that the j third generates parameter the n first generate parameter with
The n second generates parameter, and the j third generates parameter and i third generation parameter there is no intersection, and i+j≤
n。
5. according to the method described in claim 3, it is characterized in that, father's figure parameter and/or female figure parameter pair
There should be ancestors' figure parameter, ancestors' figure parameter is to breed the father virtual pet and/or mother virtual pet
Ancestors virtual pet figure parameter;
The method also includes:
Obtain ancestors' figure parameter;
Determine that k third of the target roles image generates parameter according to reversion rule;
Wherein, the reversion rule generates parameter for carrying out selection duplication, the k third in ancestors' figure parameter
Parameter is generated with the i third, and intersection, k+i≤n is not present.
6. according to the method described in claim 3, it is characterized in that, including global characteristics parameter in the target figure parameter
And/or pendant characteristic parameter, the global characteristics parameter are used for the entirety to the body model for covering the child virtual pet
Change image to be configured, the pendant characteristic parameter is for configuring the accessories of the child virtual pet;
The method also includes:
When the global characteristics parameter in father's figure parameter and/or female figure parameter is configured as target global characteristics ginseng
When number, blank parameter is set for the global characteristics parameter in the target figure parameter according to loss rule;
And/or
When the pendant characteristic parameter in father's figure parameter and/or female figure parameter is configured as target pendant feature ginseng
When number, blank parameter is set for the pendant characteristic parameter in the target figure parameter according to the loss rule.
7. method according to any one of claims 1 to 6, which is characterized in that be stored with and generated virtually dote in server
The corresponding existing figure parameter of object;
It is described according to father's figure parameter and female figure parameter, the target of child virtual pet is determined according to hereditary rule
After figure parameter, further includes:
The target figure parameter is compared with the existing figure parameter;
When the target figure parameter and the not identical existing figure parameter, the target figure parameter is determined as described
The figure parameter of child virtual pet.
8. the method according to the description of claim 7 is characterized in that including that the global characteristics are joined in the target figure parameter
Several, the described pendant characteristic parameter and local characteristic parameter, the local feature parameter are used for the covering child virtual pet
The image of body model be divided at least two parts and configured;
It is described that the target figure parameter is compared with the existing figure parameter, comprising:
By the combination of the global characteristics parameter and the pendant characteristic parameter, combined with first in the existing figure parameter
It is compared, first combination includes the group of global characteristics parameter and pendant characteristic parameter in the existing figure parameter
It closes;
And/or
It is and described tangible by the combination of the global characteristics parameter, the local feature parameter and the pendant characteristic parameter
As in parameter second combination be compared, it is described second combination include the existing figure parameter in global characteristics parameter,
The combination of local feature parameter and pendant characteristic parameter.
9. the method according to the description of claim 7 is characterized in that the method also includes:
When the target figure parameter is identical as the existing figure parameter, the target figure parameter is regenerated.
10. a kind of generating means of virtual pet, which is characterized in that described device includes:
Receiving module, for receiving breeding request;
Obtain module, for according to the breeding request father virtual pet father's figure parameter and mother virtual pet
Female figure parameter, father's figure parameter include that n first of the first role image of the father virtual pet generates parameter,
Mother's figure parameter includes that n second of the second role image of mother virtual pet generates parameter, and n is positive integer;
Generation module, for it is virtual to generate child according to hereditary rule according to father's figure parameter and female figure parameter
The target figure parameter of pet, the target figure parameter include the n the of the target roles image of the child virtual pet
Three generate parameter.
11. device according to claim 10, which is characterized in that the target roles image includes that n kind is different types of
Vivid material, each type of image material correspond to respective physical feeling and/or texture level, and the n third generates ginseng
Number is corresponding with the different types of vivid material of the n kind respectively.
12. device according to claim 10, which is characterized in that the generation module is also used to according to father's image
Parameter and female figure parameter determine that i third of the target roles image generates parameter according to copy rule;
The generation module is also used to generate the target image ginseng that parameter determines the child virtual pet according to the third
Number;
Wherein, the copy rule is used in the n first generation parameter and the n second generation parameter be selected
Duplication, i≤n.
13. device according to claim 12, which is characterized in that the generation module is also used to according to father's image
Parameter and female figure parameter determine that j third of the target roles image generates parameter according to variation rule;
Wherein, variation rule for excluded when determining that the j third generates parameter the n first generate parameter with
The n second generates parameter, and the j third generates parameter and i third generation parameter there is no intersection, and i+j≤
n。
14. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory
Contain at least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of journey
Sequence, the code set or instruction set are loaded by the processor and are executed as described in any one of claim 1 to 9 virtual to realize
The generation method of pet.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium
Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction
Collection is loaded by the processor and is executed the generation method to realize virtual pet as described in any one of claim 1 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810840387.XA CN109011579A (en) | 2018-07-27 | 2018-07-27 | Generation method, device and the readable medium of virtual pet |
CN201910703968.3A CN110420464B (en) | 2018-07-27 | 2018-07-27 | Method and device for determining virtual pet image parameters and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810840387.XA CN109011579A (en) | 2018-07-27 | 2018-07-27 | Generation method, device and the readable medium of virtual pet |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910703968.3A Division CN110420464B (en) | 2018-07-27 | 2018-07-27 | Method and device for determining virtual pet image parameters and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109011579A true CN109011579A (en) | 2018-12-18 |
Family
ID=64646971
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810840387.XA Pending CN109011579A (en) | 2018-07-27 | 2018-07-27 | Generation method, device and the readable medium of virtual pet |
CN201910703968.3A Active CN110420464B (en) | 2018-07-27 | 2018-07-27 | Method and device for determining virtual pet image parameters and readable storage medium |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910703968.3A Active CN110420464B (en) | 2018-07-27 | 2018-07-27 | Method and device for determining virtual pet image parameters and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN109011579A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109785967A (en) * | 2018-12-25 | 2019-05-21 | 河北微幼趣教育科技有限公司 | Information processing method and device |
CN109908587A (en) * | 2019-03-20 | 2019-06-21 | 北京小米移动软件有限公司 | Figure parameter generation method, device and the storage medium of fertile virtual role |
CN111111166A (en) * | 2019-12-17 | 2020-05-08 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, server and storage medium |
CN111729315A (en) * | 2020-06-24 | 2020-10-02 | 网易(杭州)网络有限公司 | Method and system for acquiring game virtual pet, electronic equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001059703A1 (en) * | 2000-02-09 | 2001-08-16 | Sony Corporation | Information processing device and method, data holding device, and program |
CN101510317A (en) * | 2009-03-17 | 2009-08-19 | 中国科学院计算技术研究所 | Method and apparatus for generating three-dimensional cartoon human face |
JP6468484B2 (en) * | 2015-02-19 | 2019-02-13 | 大日本印刷株式会社 | Image processing apparatus, image processing method, and image processing program |
CN205389272U (en) * | 2016-01-17 | 2016-07-20 | 罗轶 | Intelligence luggage |
TWI597691B (en) * | 2017-01-10 | 2017-09-01 | A method of updating a virtual pet's appearance based on the pictures taken by the user | |
CN108256558A (en) * | 2017-12-27 | 2018-07-06 | 深圳市云之梦科技有限公司 | A kind of head body of virtual image generation than computational methods and system |
-
2018
- 2018-07-27 CN CN201810840387.XA patent/CN109011579A/en active Pending
- 2018-07-27 CN CN201910703968.3A patent/CN110420464B/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109785967A (en) * | 2018-12-25 | 2019-05-21 | 河北微幼趣教育科技有限公司 | Information processing method and device |
CN109908587A (en) * | 2019-03-20 | 2019-06-21 | 北京小米移动软件有限公司 | Figure parameter generation method, device and the storage medium of fertile virtual role |
CN109908587B (en) * | 2019-03-20 | 2022-07-15 | 北京小米移动软件有限公司 | Method and device for generating image parameters of reproducible virtual character and storage medium |
CN111111166A (en) * | 2019-12-17 | 2020-05-08 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, server and storage medium |
CN111111166B (en) * | 2019-12-17 | 2022-04-26 | 腾讯科技(深圳)有限公司 | Virtual object control method, device, server and storage medium |
CN111729315A (en) * | 2020-06-24 | 2020-10-02 | 网易(杭州)网络有限公司 | Method and system for acquiring game virtual pet, electronic equipment and storage medium |
CN111729315B (en) * | 2020-06-24 | 2024-02-09 | 网易(杭州)网络有限公司 | Method, system, electronic device and storage medium for obtaining game virtual pet |
Also Published As
Publication number | Publication date |
---|---|
CN110420464B (en) | 2021-05-04 |
CN110420464A (en) | 2019-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110237532A (en) | Methods of exhibiting, equipment and the storage medium of virtual pet | |
CN109032454A (en) | Information displaying method, device, equipment and the storage medium of virtual pet | |
US10609334B2 (en) | Group video communication method and network device | |
CN110420465A (en) | Mating system, device, equipment and the storage medium of virtual pet | |
KR102204919B1 (en) | Methods and systems for creating virtual and augmented reality | |
CN109978989A (en) | Three-dimensional face model generation method, device, computer equipment and storage medium | |
CN109011579A (en) | Generation method, device and the readable medium of virtual pet | |
CN110019918A (en) | Information displaying method, device, equipment and the storage medium of virtual pet | |
CN110163048A (en) | Identification model training method, recognition methods and the equipment of hand key point | |
JP2022502749A (en) | Methods and systems for 3D model sharing | |
CN108970115A (en) | Information display method, device, equipment and storage medium in battle game | |
CN109643161A (en) | Dynamic enters and leaves the reality environment browsed by different HMD users | |
CN110135336A (en) | Training method, device and the storage medium of pedestrian's generation model | |
CN109107155A (en) | Method of adjustment, device, terminal and the storage medium of virtual objects | |
CN110136236A (en) | Personalized face's display methods, device, equipment and the storage medium of three-dimensional character | |
JP2017531494A (en) | Memory and charging device for game pieces | |
CN110496392A (en) | Control method, device, terminal and the storage medium of virtual objects | |
CN110393916A (en) | Method, apparatus, equipment and the storage medium of visual angle rotation | |
CN110263617A (en) | Three-dimensional face model acquisition methods and device | |
CN110448905A (en) | Virtual object control method, device, equipment and storage medium in virtual environment | |
CN110399183A (en) | Mating system, device, equipment and the storage medium of virtual pet | |
CN109126136A (en) | Generation method, device, equipment and the storage medium of three-dimensional pet | |
CN110533756A (en) | Setting method, device, equipment and the storage medium of attaching type ornament | |
CN110517346A (en) | Methods of exhibiting, device, computer equipment and the storage medium at virtual environment interface | |
CN110312144A (en) | Method, apparatus, terminal and the storage medium being broadcast live |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |