Virtual portrait changes the outfit system and methodTechnical field
The invention belongs to animation design technique fields, and in particular to virtual portrait changes the outfit system and method.
Background technique
When traditional animation, game picture design and production, same virtual portrait difference dress style, different virtual portraitsThe transformation of same dress style etc. requires to design the design of artificial participation progress again.With the development of technology, one kind can be certainlyMoving the scheme for replacing dressing for virtual portrait becomes one of the demand of this field, can be effective by establishing such systemGround reduces cost of human resources, accelerates works/launch speed.
Summary of the invention
For the defects in the prior art, virtual portrait of the present invention changes the outfit system and method, and it is virtual for can be realized automaticallyPersonage replaces dressing, reduces cost of human resources.
The system in a first aspect, a kind of virtual portrait changes the outfit, comprising:
Client: it is directed to the replacement request that a virtual portrait is initiated for receiving user, and the replacement request is sent toServer;The virtual portrait for the document presentation replacement front and back for being also used to be issued according to server;
Server: several mutually independent knowledge mappings are stored with: including personage's map, attribute map, figure mapWith dress ornament map;Corresponding file is stored in each knowledge mapping, wherein personage's map includes each virtual portraitEssential information file;The attribute map includes the attribute and dress ornament file currently in use of each virtual portrait;The bodyType map includes the body-shape information file of each virtual portrait;The wearing require information file of each dress ornament of dress ornament map;
Server is also used to parse the replacement request received, to obtain parsing data, and will according to the parsing dataCorresponding file is handed down to the client in corresponding knowledge mapping.
Preferably, the essential information file in personage's map includes the one or more combination of following data: virtualPerson names, virtual portrait ID, figure, age, birthday, nationality, occupation, hobby and attribute;
Body-shape information file in the figure map includes the one or more combination of following data: height, weight, hairLength, color development, pupil color, measurements of the chest, waist and hips and head body ratio;
Wearing require information file in the dress ornament map includes the one or more combination of following data: color, classType, style, size regulation and permission.
Preferably, corresponding call number is additionally provided in each knowledge mapping;
The call number that the client is also used to be issued according to server completes the index of knowledge mapping.
Preferably, the server is also used to update the attribute map according to the replacement request of virtual portrait.
Preferably, the wearing require information that the server is also used to request in the replacement request for detecting virtual portraitWhen file exceeds its permission, generates information of going beyond one's commission and return to corresponding client.
Second aspect, a kind of virtual portrait costume changing method, comprising the following steps:
Several mutually independent knowledge mappings of server construction: including personage's map, attribute map, figure map kimonosAdorn map;Corresponding file is stored in each knowledge mapping, wherein personage's map includes the basic of each virtual portraitMessage file;The attribute map includes each virtual portrait dress ornament file currently in use;The figure map includes eachThe body-shape information file of virtual portrait;The wearing require information file of each dress ornament of dress ornament map;
Client receives user and is directed to the replacement request that a virtual portrait is initiated, and the replacement request is sent to serviceDevice;
Server parses the replacement request received, to obtain parsing data, and will accordingly be known according to the parsing dataKnow corresponding file in map and is handed down to the client.
Preferably, the essential information file in personage's map includes the one or more combination of following data: virtualPerson names, virtual portrait ID, figure, age, birthday, nationality, occupation, hobby and attribute;
Body-shape information file in the figure map includes the one or more combination of following data: height, weight, hairLength, color development, pupil color, measurements of the chest, waist and hips and head body ratio;
Wearing require information file in the dress ornament map includes the one or more combination of following data: color, classType, style, size regulation and permission.
Preferably, corresponding call number is additionally provided in each knowledge mapping;
This method is after corresponding file is handed down to the client by the server, further includes:
Client completes the index of knowledge mapping according to the call number that server issues.
Preferably, this method is after corresponding file is handed down to the client by the server, further includes:
Server updates the attribute map according to the replacement request of virtual portrait.
Preferably, this method is after the replacement request is sent to server by the client, further includes:
When the wearing require information file that server is requested in the replacement request for detecting virtual portrait exceeds its permission,Generation information of going beyond one's commission returns to corresponding client.
Virtual portrait provided by the invention changes the outfit system and method, by construct multiple independent knowledge mappings manage it is virtualThe various files of personage.When user, which desires to virtual portrait, to change the outfit, replacement request is initiated according to specified agreement, server is justCorresponding file can be obtained from knowledge mapping according to the data of replacement request and is handed down to client, realizes automatically be virtual portraitDressing is replaced, designer is not needed and re-starts design, reduce cost of human resources.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior artEmbodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar elementOr part is generally identified by similar appended drawing reference.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 is that the virtual portrait that provides of the embodiment of the present invention one changes the outfit the module frame chart of system.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hairEmbodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative effortsExample, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instructionDescribed feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precludedBody, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodimentAnd be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless onOther situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
Embodiment one:
A kind of virtual portrait changes the outfit system, referring to Fig. 1, comprising:
Client: it is directed to the replacement request that a virtual portrait is initiated for receiving user, and the replacement request is sent toServer;The virtual portrait for the document presentation replacement front and back for being also used to be issued according to server;
Specifically, replacement request is used for the demand of identity user.User can pass through the input of the touch screen of client, voiceThe modes such as defeated or text input initiate replacement request.User can request to be that virtual portrait is more restyled the hair, taken by replacement requestDecorations, figure etc..On the one hand client is equipped with the human-computer interaction interface with user, on the other hand carry out information exchange with server,Information transmit-receive.
Server: several mutually independent knowledge mappings are stored with: including personage's map, attribute map, figure mapWith dress ornament map;Corresponding file is stored in each knowledge mapping, wherein personage's map includes each virtual portraitEssential information file;The attribute map includes the attribute and dress ornament file currently in use of each virtual portrait;The bodyType map includes the body-shape information file of each virtual portrait;The wearing require information file of each dress ornament of dress ornament map;
Specifically, which stores different files by the way that multiple mutually independent knowledge mappings are arranged respectively.ServiceDevice may be an equipment, it is also possible to which more independent equipment can also be able to be virtual unit.
Server is also used to parse the replacement request received, to obtain parsing data, and will according to the parsing dataCorresponding file is handed down to the client in corresponding knowledge mapping.
Specifically, server parses the replacement request, obtains the demand of user.Such as server parses to obtainVirtual portrait, new hair style, new dress ornament, new figure that user to be replaced etc..Then server is corresponding according to parsing data selectionCorresponding file is handed down to client by knowledge mapping.Such as: the corresponding file of new hair style is selected from personage's map, from bodyThe corresponding file of new figure is selected in type map, and the corresponding file of new dress ornament, and the file that will be selected are selected from dress ornament mapIt is handed down to the corresponding client of the user.
The system manages the various files of virtual portrait by constructing multiple independent knowledge mappings.When user desires to voidWhen anthropomorphic object changes the outfit, replacement request is initiated according to specified agreement, and server can be according to the data of replacement request from knowledge graphCorresponding file is obtained in spectrum and is handed down to client, is realized and is replaced dressing automatically for virtual portrait, does not need designer againIt is designed, reduces cost of human resources.
After server is in addition to being handed down to client for the file chosen, it is also used to according to the replacement request of virtual portrait moreThe new attribute map.Such as it after the file chosen is handed down to client by server, is newly replaced also according to virtual portraitNew hair style, new figure or new dress ornament Update attribute map, enable attribute map to reflect that virtual portrait is currently in use in real timeFile shows new dress ornament to user in the virtual wardrobe of virtual portrait.
Embodiment two:
Embodiment two on the basis of example 1, further limits knowledge mapping.
Essential information file in personage's map includes the one or more combination of following data: visual human's nameTitle, virtual portrait ID, figure, age, birthday, nationality, occupation, hobby and attribute;
Specifically, virtual portrait title, virtual portrait ID, figure, age, birthday, nationality, occupation, hobby, attribute etc. be allCan be prespecified by design and technical staff, and be added in personage's map.
The dress ornament file of attribute map can also record the dress ornament for the virtual portrait use/dressed.
Body-shape information file in the figure map includes the one or more combination of following data: height, weight, hairLength, color development, pupil color, measurements of the chest, waist and hips and head body ratio;
Specifically, the contents such as height, weight, hair length, color development, pupil color, measurements of the chest, waist and hips, head body ratio can be by design and technologyPersonnel are prespecified, and are added in figure map.
Wearing require information file in the dress ornament map includes the one or more combination of following data: color, classType, style, size regulation and permission.
Specifically, type includes jacket, trousers, skirt, hair decorations, jewellery etc..The color of dress ornament, type, style, size ruleThe contents such as fixed, permission can be prespecified by design and technical staff, and is added in dress ornament map.Wherein, size regulation isRefer to that the dress ornament having can only be dressed by the object of specific figure.Capability identification allows to dress the range of the object of the dress ornament.
Any one virtual portrait/image in the system, any one figure, any wardrobe are designed with accordinglyFile, and store into corresponding knowledge mapping.
Preferably, the wearing require information that the server is also used to request in the replacement request for detecting virtual portraitWhen file exceeds its permission, generates information of going beyond one's commission and return to corresponding client.
Specifically, it due to defining the permission of every dress ornament in dress ornament map, is worn so working as user's request for virtual portraitWhen the new dress ornament worn exceeds the permission of the dress ornament, server can reply information of going beyond one's commission to user, for informing the user visual humanObject cannot replace the dress ornament.User can also be instructed for virtual portrait upgrading, when necessary to meet the permission of new dress ornament.
System provided by the embodiment of the present invention, to briefly describe, embodiment part does not refer to place, can refer to aforementioned systemCorresponding contents in embodiment of uniting.
Embodiment three:
Embodiment three increases index function on the basis of other embodiments.
Corresponding call number is additionally provided in each knowledge mapping;
Specifically, such as provide: the call number of personage's map is VH_xxx_Y, and wherein VH indicates that the map is figure mapSpectrum, xxx is the number or ID of the virtual portrait, and Y indicates the gender of the virtual portrait.The call number of attribute map is NA_xxx_Y, wherein NA indicates that the map is attribute map, and xxx is the number or ID of the virtual portrait, and Y indicates the gender of the virtual portrait.The call number of dress ornament map is CL_mmm_Y, and wherein CL indicates that the map is dress ornament map, and mmm is the number or ID of the dress ornament, YIndicate the applicable gender of the dress ornament.The call number of figure map is BY_nnn_Y, and wherein BY indicates that the map is figure map,Nnn is the number or ID of the figure, and Y indicates the corresponding gender of the figure.
The call number that the client is also used to be issued according to server completes the index of knowledge mapping.
Specifically, understand for convenience, the simplest example for only using number as index is given by following table.
Client establishes the mode of index based on upper table to knowledge mapping, completes the digitlization index of knowledge mapping, thanIf server sends 0101004010 to client, then the data that client can issue server according to upper table parse are as follows: 01Number virtual portrait is with No. 01 figure No.1 necklace.
System provided by the embodiment of the present invention, to briefly describe, embodiment part does not refer to place, can refer to aforementioned systemCorresponding contents in embodiment of uniting.
Example IV:
A kind of virtual portrait costume changing method, comprising the following steps:
Several mutually independent knowledge mappings of server construction: including personage's map, attribute map, figure map kimonosAdorn map;Corresponding file is stored in each knowledge mapping, wherein personage's map includes the basic of each virtual portraitMessage file;The attribute map includes each virtual portrait dress ornament file currently in use;The figure map includes eachThe body-shape information file of virtual portrait;The wearing require information file of each dress ornament of dress ornament map;
Client receives user and is directed to the replacement request that a virtual portrait is initiated, and the replacement request is sent to serviceDevice;
Server parses the replacement request received, to obtain parsing data, and will accordingly be known according to the parsing dataKnow corresponding file in map and is handed down to the client.
Preferably, the essential information file in personage's map includes the one or more combination of following data: virtualPerson names, virtual portrait ID, figure, age, birthday, nationality, occupation, hobby and attribute;
Body-shape information file in the figure map includes the one or more combination of following data: height, weight, hairLength, color development, pupil color, measurements of the chest, waist and hips and head body ratio;
Wearing require information file in the dress ornament map includes the one or more combination of following data: color, classType, style, size regulation and permission.
Preferably, corresponding call number is additionally provided in each knowledge mapping;
This method is after corresponding file is handed down to the client by the server, further includes:
Client completes the index of knowledge mapping according to the call number that server issues.
Preferably, this method is after corresponding file is handed down to the client by the server, further includes:
Server updates the attribute map according to the replacement request of virtual portrait.
Preferably, this method is after the replacement request is sent to server by the client, further includes:
When the wearing require information file that server is requested in the replacement request for detecting virtual portrait exceeds its permission,Generation information of going beyond one's commission returns to corresponding client.
This method manages the various files of virtual portrait by constructing multiple independent knowledge mappings.When user desires to voidWhen anthropomorphic object changes the outfit, replacement request is initiated according to specified agreement, and server can be according to the data of replacement request from knowledge graphCorresponding file is obtained in spectrum and is handed down to client, is realized and is replaced dressing automatically for virtual portrait, does not need designer againIt is designed, reduces cost of human resources.
Method provided by the embodiment of the present invention, to briefly describe, embodiment part does not refer to place, can refer to aforementioned systemCorresponding contents in embodiment of uniting.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extentPipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according toSo be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features intoRow equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solutionThe range of scheme should all cover within the scope of the claims and the description of the invention.