CN107019914B - A kind of method and device that simulated object resemblance is replaced - Google Patents

A kind of method and device that simulated object resemblance is replaced Download PDF

Info

Publication number
CN107019914B
CN107019914B CN201610072865.8A CN201610072865A CN107019914B CN 107019914 B CN107019914 B CN 107019914B CN 201610072865 A CN201610072865 A CN 201610072865A CN 107019914 B CN107019914 B CN 107019914B
Authority
CN
China
Prior art keywords
component
simulated object
resemblance
group
feature
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.)
Active
Application number
CN201610072865.8A
Other languages
Chinese (zh)
Other versions
CN107019914A (en
Inventor
褚民庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610072865.8A priority Critical patent/CN107019914B/en
Publication of CN107019914A publication Critical patent/CN107019914A/en
Application granted granted Critical
Publication of CN107019914B publication Critical patent/CN107019914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of methods that simulated object resemblance is replaced, including:The feature obtained for specific simulated object replaces instruction, and the specific simulated object corresponds to a component set, and the component set includes the component group of different priorities, and each component group includes the component for combining the specific simulated object;Selection is corresponding with current signature replacement logic from available component group, and the component of highest priority, determines the current part group for replacing the specific simulated object resemblance;The resemblance of the specific simulated object is changed to component included in the current part group, obtains replacing the simulated object after resemblance.The method that simulated object resemblance provided in an embodiment of the present invention is replaced, can quickly determine the resemblance to be replaced of simulated object, to simplify the complexity of calculating, realize the quick-replaceable of simulated object resemblance.

Description

A kind of method and device that simulated object resemblance is replaced
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method and dress of the replacement of simulated object resemblance It sets.
Background technology
Traditional interactive application is general only to design simple paper doll (Avatar) system, Avatar system branch If hold logic high level is divided into dry part by the simulated object in interactive application, component can be reconfigured according to logic requirement, Generate the simulated object of different surfaces.
For the simple interactive application of content, it is only necessary to be logically organized the component for being currently used in splicing simulated object Group.
And for more complex interactive application, when needing the simulated object of more different surfaces, it is necessary to More components are added to Avatar systems, while wanting iterative development logic high level, often increases an iteration, can all increase high level The degree of coupling of logic, moreover, the simulated object in interactive application needs numerous from Avatar systems when replacing resemblance Component in search be suitble to current operation logic component, cause to calculate extremely complex.
Invention content
The embodiment of the present invention provides a kind of method that simulated object resemblance is replaced, and can quickly determine that simulated object is wanted The resemblance of replacement realizes the quick-replaceable of simulated object resemblance to simplify the complexity of calculating.The present invention is real It applies example and additionally provides corresponding device.
First aspect present invention provides a kind of method that simulated object resemblance is replaced, including:
The feature obtained for specific simulated object replaces instruction, and the specific simulated object corresponds to a component set, The component set includes the component group of different priorities, and each component group includes for combining the specific simulated object Component;
Selection is corresponding with current signature replacement logic from available component group, and the component of highest priority, determines Current part group for replacing the specific simulated object resemblance;
The resemblance of the specific simulated object is changed to component included in the current part group, is obtained more Change the simulated object after resemblance.
Second aspect of the present invention provides a kind of device that simulated object resemblance is replaced, including:
Acquiring unit, for obtaining the feature replacement instruction for specific simulated object, the specific simulated object corresponds to One component set, the component set include the component group of different priorities, and each component group includes for combining State the component of specific simulated object;
Determination unit, the feature for being obtained according to the acquiring unit replaces instruction, from available component group Selection is corresponding with current signature replacement logic, and the component of highest priority, determines for replacing the specific simulated object The current part group of resemblance;
Feature replaces unit, for the resemblance of the specific simulated object to be changed to what the determination unit determined Component included in the current part group obtains replacing the simulated object after resemblance.
With when simulated object has multiple resemblances, the degree of coupling of logic high level is big, and simulated object exists in the prior art When replacing resemblance, needs to search the component for being suitble to current operation logic from the numerous component of Avatar systems, cause to count Calculate it is extremely complex compare, the embodiment of the present invention provides a kind of method that simulated object resemblance is replaced, and passes through simulated object The component of different priorities determines the current part group of the resemblance to be replaced in component group, to according to current part group Resemblance replacement is carried out, can quickly determine the resemblance to be replaced of simulated object, to simplify the complexity of calculating, Realize the quick-replaceable of simulated object resemblance.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is an embodiment schematic diagram of the method that simulated object resemblance is replaced in the embodiment of the present invention;
Fig. 2 is the component set schematic diagram of simulated object in the embodiment of the present invention;
Fig. 3 is the correspondence schematic diagram of component group and performance data in the embodiment of the present invention;
Fig. 4 is component group schematic diagram in the embodiment of the present invention;
Fig. 5 is the example schematic that current part group is determined in the embodiment of the present invention;
Fig. 6 is the example schematic that current part group is determined in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram for the method that simulated object resemblance is replaced in the embodiment of the present invention;
Fig. 8 is an embodiment schematic diagram of the device that simulated object resemblance is replaced in the embodiment of the present invention;
Fig. 9 is another embodiment schematic diagram for the device that simulated object resemblance is replaced in the embodiment of the present invention;
Figure 10 is another embodiment schematic diagram for the device that simulated object resemblance is replaced in the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention provides a kind of method that simulated object resemblance is replaced, and can quickly determine that simulated object is wanted The resemblance of replacement realizes the quick-replaceable of simulated object resemblance to simplify the complexity of calculating.The present invention is real It applies example and additionally provides corresponding device.It is described in detail separately below.
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, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
With popularizing for internet, game industry is also fast-developing therewith, the equipment and clothes of role in scene of game More and more, certain role can also have the technical ability such as variable body and Yi Rong.In embodiments of the present invention, the role in scene of game It is expressed with simulated object, variable body, the easily technical ability such as appearance replace instruction to express with feature.Moreover, simulated object be all have it is multiple Made of component combination, as long as being replaced to all parts, that is, the replacement of simulated object resemblance is realized.
Simulated object comes into specific room, reaches specific position, starts specific technical ability and all may be used in scene of game It can start feature and replace instruction, such as:The feature replacement instruction for replacing magician, simulated object can be started by coming into magic room Variable body magician.
The process of simulated object resemblance replacement is described with reference to Fig. 1.
Fig. 1 is an embodiment schematic diagram of the method that simulated object resemblance is replaced in the embodiment of the present invention.
As shown in Figure 1, the method that simulated object resemblance provided in an embodiment of the present invention is replaced includes:Feature replacement is patrolled Module, the bridge module of component set and Avatar interfaces are collected, feature replaces logic module and replaces instruction institute for operation characteristic The feature of triggering replaces logic, includes the corresponding component set of simulated object in the bridge module of component set, and be one Simulated object can correspond to a component set, and component set includes the component group of multiple and different priority, in each component group All include multiple components.Component set can be understood refering to Fig. 2, as shown in Fig. 2, the component set of a simulated object can To include priority that component group 0, component group 1, component group 2 and component group 3,0,1,2 and 3 can represent component group, Ke Yili Solution from small to large, illustrates the component that may include in component group for priority by taking component group 1 therein as an example, can in component group 1 Including such as lower component:Head, body, trousers, wrist guard, main weapon, secondary weapon, mask, back of the body decorations, waist ornament and face, certainly, each portion The component that part group includes can be identical, can not also be identical or not exactly the same, and component can also have overlapping.
As shown in figure 3, component group 0 can be bear layer, priority is minimum, and component group 1 can be fashionable dress layer, component successively Group 2 can be change barrel layers and component group 3 can be easy appearance layer, easily hold the highest priority of layer, certainly, it is several that component group is not limited to this It is a, moreover, each component group can also be finely divided, actually segments and a component group is namely divided into several components Group, such as:The component group of fashionable dress layer can be divided into fashionable dress layer 1, fashionable dress layer 2 and fashionable dress layer 3 etc., can be that each fashionable dress layer is set Set different priority.Easily holding layer has corresponding easy appearance data, change barrel layers to have corresponding variable body data, that is to say, that each component Group has corresponding data.
Avatar interfaces are used for the simulated object after final display transformation resemblance.
In scene of game, after simulated object triggers feature replacement instruction, this feature, which is replaced, instructs corresponding feature to replace Logic is activated, and the feature being activated replaces logic and can be understood as current signature replacement logic, and this feature replaces logic meeting Include the information for the resemblance to be replaced, such as:Be replaced with the type of clothes, the type of weapon, head pattern and The pattern etc. of leg, available component group can be determined by replacing logic according to current signature, can be done for available component group a Significant notation does an invalid flag for not available component group, for example, as in Fig. 4, it can be available to mark with checking the number, with mistake It is number unavailable to mark.
It obtains after replacing instruction to the feature of specific simulated object, selection and current signature are replaced from available component group Logic is corresponding, and the component of highest priority, determines the current part for replacing the specific simulated object resemblance Group.
If the feature for getting a variable body replaces instruction, according to current spy corresponding with the replacement instruction of the feature of the variable body Sign replaces logic and determines available component group, as shown in figure 5, bear layer and change barrel layers are available, that is, component group 0 and component group 2 is available, easily holds layer and fashionable dress layer is unavailable.
Logic, which is replaced, according to current signature determines that this is replaced the component that resemblance needs to simulated object and includes:Head Portion, body, trousers, face and main weapon.
Determine that the process of current part group can be understood refering to the process of Fig. 5, component group can be with Record come table Show, current part group can be indicated with Current Record.From change barrel layers and the corresponding component group 0 of bear layer and component group Selection carries out the component needed for eigentransformation to the specific simulated object in 2, as shown in figure 5, becoming the priority of barrel layers higher than dress Standby layer is then first selected from becoming in barrel layers, and it includes head 2, body 2 and trousers 2 to become barrel layers, without face and main weapon component, then Face 0 and main weapon 0 are selected from bear layer, it is determined that the current part group gone out includes head 2, body 2, trousers 2, face 0 and master Weapon 0.
After determining current part group, so that it may the resemblance of the specific simulated object is changed to the current part Component included in group obtains replacing the simulated object after resemblance.
When current part group includes:When head 2, body 2, trousers 2, face 0 and main weapon 0, so that it may with by specific simulation Head, body, trousers, face and the main weapon of object are changed to head 2, body 2, trousers 2, face 0 and main weapon 0.
When doing feature replacement, can by component included in the component group of the specific simulated object with it is described current Component is compared included in component group;Determine the component group of the specific simulated object in the current part group not Same component;Resemblance corresponding from the different components in the specific simulated object is changed to the different components, is obtained Simulated object to after replacement resemblance.
Such as:When specific simulated object is head 2 not doing feature to replace fore head, only body, trousers, face and master Weapon from current part group body 2, trousers 2, face 0 and main weapon 0 it is different, then be directed to head 2 can not replace, only replace Body 2, trousers 2, face 0 and main weapon 0 can improve the efficiency of feature replacement in this way.
If performing primary easily appearance again during variable body, and the priority easily held is higher than the priority of variable body, It includes that fisrt feature replacement instruction and second feature replace instruction, the fisrt feature replacement that the namely described feature, which replaces instruction, Instruction is replaced instruction prior to the second feature and is performed, and the fisrt feature is replaced and instructs the priority of corresponding component group low The priority of instruction corresponding component group is replaced in the second feature, then it is corresponding to replace instruction according to the second feature The component that current part group is included replaces the resemblance of the specific simulated object, obtains replacing the mould after resemblance Quasi- object.
After determining current part group, it can be formed by currently when the last time executing eigentransformation with current part group Component group is compared, if being found after comparing, two component groups are identical, need not execute eigentransformation, it is possible to reduce calculate Amount.
If execute fisrt feature transformation directive, and second feature transformation directive is performed, such as in the way of variable body, again Perform primary easily appearance.When easy appearance not yet terminates, the logic of variable body terminates, when detecting specifically to release variable body operation It is front and back, be all the easy component held on layer of highest priority in action, then it represents that front and back current part group twice is the same 's.Then after easy hold, it will directly press the feature of the specific simulated object of highest priority sequencing display.
Moreover, in the application, when needing to add the new game logic for the specific simulated object, it is only necessary to consider mesh Whether the component group of each priority meets the needs of the new logic in forepiece set.It is such as unsatisfactory for, just newly adds one layer of component Group gives suitable priority.In this way, when the new logic is run, so that it may to use newly added component group, determination to work as Forepiece group.As shown in fig. 6, after newly increasing a component group, so that it may be not related in logic with basis and other logics carry out The problem of coupling, to also reduce the complexity of logic development.
Refering to Fig. 7, another embodiment for the method that simulated object resemblance provided in an embodiment of the present invention is replaced includes:
101, the feature obtained for specific simulated object replaces instruction, and the specific simulated object corresponds to a part set It closes, the component set includes the component group of different priorities, and each component group includes for combining the specific simulation The component of object.
102, selection is corresponding with current signature replacement logic from available component group, and the component of highest priority, Determine the current part group for replacing the specific simulated object resemblance.
103, the resemblance of the specific simulated object is changed to component included in the current part group, obtained Simulated object to after replacement resemblance.
With when simulated object has multiple resemblances, the degree of coupling of logic high level is big, and simulated object exists in the prior art When replacing resemblance, needs to search the component for being suitble to current operation logic from the numerous component of Avatar systems, cause to count Calculate it is extremely complex compare, the embodiment of the present invention provides a kind of method that simulated object resemblance is replaced, and passes through simulated object The component of different priorities determines the current part group of the resemblance to be replaced in component group, to according to current part group Resemblance replacement is carried out, can quickly determine the resemblance to be replaced of simulated object, to simplify the complexity of calculating, Realize the quick-replaceable of simulated object resemblance.
Optionally, on the basis of above-mentioned Fig. 7 corresponding embodiments, simulated object shape provided in an embodiment of the present invention is special In first alternative embodiment for levying the method replaced, the selection from available component group replaces logic pair with current signature It answers, and the component of highest priority, determines current part group for replacing the specific simulated object resemblance, it can be with Including:
Logic is replaced according to the current signature, determines and replaces the component needed for the specific simulated object resemblance Information;
For the information of each required component, the portion of highest priority is selected from the available component group Part determines the current part group for replacing the specific simulated object resemblance.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 7 or first alternative embodiment, the embodiment of the present invention carries It is described by the outer of the specific simulated object in second alternative embodiment of the method that the simulated object resemblance of confession is replaced Shape feature is changed to component included in the current part group, obtains replacing the simulated object after resemblance, can wrap It includes:
Included in component included in the component group of the specific simulated object and the current part group Part is compared;
The component group for determining the specific simulated object and different components in the current part group;
Resemblance corresponding from the different components in the specific simulated object is changed to the different components, is obtained Simulated object to after replacement resemblance.
It in the embodiment of the present invention, is replaced just for different components, the efficiency of feature replacement can be provided.
Optionally, optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 7 or first alternative embodiment, the present invention In the third alternative embodiment for the method that the simulated object resemblance that embodiment provides is replaced, the feature replaces instruction packet It includes fisrt feature and replaces instruction and second feature replacement instruction, the fisrt feature is replaced instruction and replaced prior to the second feature Instruction is performed, and the fisrt feature replaces the priority of instruction corresponding component group less than second feature replacement instruction pair The priority of component group is answered,
The resemblance by the specific simulated object is changed to component included in the current part group, obtains To replace resemblance after simulated object, may include:
The component for instructing corresponding current part group to be included is replaced according to the second feature, replaces the specific simulation The resemblance of object obtains replacing the simulated object after resemblance.
In the embodiment of the present invention, replaces instruction when a feature and do not complete also, another is proceeded by again when, posterior spy The priority that sign executes is higher than the priority that instruction is replaced in the feature first carried out, then can directly be replaced according to posterior feature Instruction carries out feature replacement, in this way, the complexity of feature replacement can be reduced.
Optionally, the selection from available component group is corresponding with current signature replacement logic, and highest priority Component, before determining current part group for replacing the specific simulated object resemblance, the method can also wrap It includes:
Logic is replaced according to the current signature, determines available component group in each component group.
Refering to Fig. 8, an a kind of embodiment of the device 20 that simulated object resemblance is replaced provided in an embodiment of the present invention Including:
Acquiring unit 201, for obtaining the feature replacement instruction for specific simulated object, the specific simulated object pair It includes the component group of different priorities to answer a component set, the component set, and each component group includes for combining The component of the specific simulated object;
Determination unit 202, the feature for being obtained according to the acquiring unit 201 replaces instruction, from available portion Selection is corresponding with current signature replacement logic in part group, and the component of highest priority, determines for replacing the specific mould The current part group of quasi- object resemblance;
Feature replaces unit 203, for the resemblance of the specific simulated object to be changed to the determination unit 202 Component included in the determining current part group obtains replacing the simulated object after resemblance.
In the embodiment of the present invention, acquiring unit 201 obtains the feature replacement instruction for specific simulated object, described specific Simulated object corresponds to a component set, and the component set includes the component group of different priorities, is wrapped in each component group Include the component for combining the specific simulated object;The feature that determination unit 202 is obtained according to the acquiring unit 201 Instruction is replaced, selection is corresponding with current signature replacement logic from available component group, and the component of highest priority, determines Current part group for replacing the specific simulated object resemblance;Feature replaces unit 203 by the specific simulation pair The resemblance of elephant is changed to component included in the current part group of the determination of the determination unit 202, is replaced Simulated object after resemblance.With in the prior art when simulated object has multiple resemblances, the degree of coupling of logic high level Greatly, simulated object needs to search suitable current operation logic from the numerous component of Avatar systems when replacing resemblance Component, cause to calculate it is extremely complex compare, the embodiment of the present invention provides a kind of device that simulated object resemblance is replaced, and leads to The component of different priorities in the component group of simulated object is crossed to determine the current part group of the resemblance to be replaced, to root Resemblance replacement is carried out according to current part group, the resemblance to be replaced of simulated object can be quickly determined, to simplify The complexity of calculating realizes the quick-replaceable of simulated object resemblance.
Optionally, on the basis of above-mentioned Fig. 8 corresponding embodiments, simulated object shape provided in an embodiment of the present invention is special In first alternative embodiment for levying the device 20 replaced,
The determination unit 202 determines for replacing logic according to the current signature and replaces the specific simulated object The information of component needed for resemblance is selected for the information of each required component from the available component group The component of highest priority is selected, determines the current part group for replacing the specific simulated object resemblance.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 8 or first alternative embodiment, refering to Fig. 9, the present invention In second alternative embodiment of the device 20 that the simulated object resemblance that embodiment provides is replaced, the feature replaces unit 203 include:
Comparing subunit 2031, for by component included in the component group of the specific simulated object with it is described current Component is compared included in component group;
Determination subelement 2032 determines the specific simulation for the comparison result according to the comparing subunit 2031 The component group of object and different components in the current part group;
Subelement 2033 is replaced, for it will be determined with the determination subelement 2032 in the specific simulated object described in The corresponding resemblance of different components is changed to the different components, obtains replacing the simulated object after resemblance.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 8 or first alternative embodiment, the embodiment of the present invention carries In the third alternative embodiment for the device 20 that the simulated object resemblance of confession is replaced,
The feature replaces unit 203, includes that fisrt feature replaces instruction and second for replacing instruction in the feature Feature replaces instruction, and the fisrt feature is replaced instruction and is performed prior to second feature replacement instruction, and described first is special When the priority that sign replaces instruction corresponding component group replaces the priority of instruction corresponding component group less than the second feature, according to The second feature replaces the component for instructing corresponding current part group to be included, and the shape for replacing the specific simulated object is special Sign obtains replacing the simulated object after resemblance.
Optionally, on the basis of the corresponding embodiments of above-mentioned Fig. 8 or first alternative embodiment, the embodiment of the present invention carries In 4th alternative embodiment of the device 20 that the simulated object resemblance of confession is replaced,
The determination unit 202 is additionally operable to replace logic according to the current signature, and determining can in each component group Component group.
Figure 10 is the structural schematic diagram for the device 30 that simulated object resemblance provided in an embodiment of the present invention is replaced.It is described The system that the device 30 that simulated object resemblance is replaced is applied to motion track verification, the system that institute's motion track verifies include User equipment and server, the device 30 that the simulated object resemblance is replaced include processor 310, memory 350 and defeated Enter/export I/O equipment 330, memory 350 may include read-only memory and random access memory, and be carried to processor 310 For operational order and data.The a part of of memory 350 can also include nonvolatile RAM (NVRAM).
In some embodiments, memory 350 stores following element, executable modules or data structures, or Their subset of person or their superset:
In embodiments of the present invention, by calling the operational order of the storage of memory 350, (operational order is storable in behaviour Make in system),
The feature obtained for specific simulated object replaces instruction, and the specific simulated object corresponds to a component set, The component set includes the component group of different priorities, and each component group includes for combining the specific simulated object Component;
Selection is corresponding with current signature replacement logic from available component group, and the component of highest priority, determines Current part group for replacing the specific simulated object resemblance;
The resemblance of the specific simulated object is changed to component included in the current part group, is obtained more Change the simulated object after resemblance.
With when simulated object has multiple resemblances, the degree of coupling of logic high level is big, and simulated object exists in the prior art When replacing resemblance, needs to search the component for being suitble to current operation logic from the numerous component of Avatar systems, cause to count Calculate it is extremely complex compare, the embodiment of the present invention provides the device that a kind of simulated object resemblance is replaced, and passes through simulated object The component of different priorities determines the current part group of the resemblance to be replaced in component group, to according to current part group Resemblance replacement is carried out, can quickly determine the resemblance to be replaced of simulated object, to simplify the complexity of calculating, Realize the quick-replaceable of simulated object resemblance.
Processor 310 controls the operation for the device 30 that simulated object resemblance is replaced, and processor 310 can also be known as CPU (Central Processing Unit, central processing unit).Memory 350 may include read-only memory and deposit at random Access to memory, and provide instruction and data to processor 310.The a part of of memory 350 can also include non-volatile random Access memory (NVRAM).The various components for the device 30 that simulated object resemblance is replaced in specific application pass through bus System 320 is coupled, and wherein bus system 320 can also include power bus, control always in addition to including data/address bus Line and status signal bus in addition etc..But for the sake of clear explanation, various buses are all designated as bus system 320 in figure.
The method that the embodiments of the present invention disclose can be applied in processor 310, or be realized by processor 310. Processor 310 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 310 or the instruction of software form.Above-mentioned processing Device 310 can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.May be implemented or Person executes disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be microprocessor or Person's processor can also be any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be straight Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory 350, and processor 310 is read Information in access to memory 350, in conjunction with the step of its hardware completion above method.
Optionally, processor 310 is used to replace logic according to the current signature, determines and replaces the specific simulated object The information of component needed for resemblance;For the information of each required component, selected from the available component group The component of highest priority is selected, determines the current part group for replacing the specific simulated object resemblance.
Optionally, processor 310 is for working as component included in the component group of the specific simulated object with described Component is compared included in forepiece group;In the component group and the current part group that determine the specific simulated object Different components;Resemblance corresponding from the different components in the specific simulated object is changed to the different components, It obtains replacing the simulated object after resemblance.
Optionally, it includes that fisrt feature replaces instruction and second feature that processor 310, which is used to replace instruction in the feature, Instruction is replaced, the fisrt feature is replaced instruction and is performed prior to second feature replacement instruction, and the fisrt feature is more When changing the priority for instructing the priority of corresponding component group to be less than second feature replacement instruction corresponding component group, according to described Second feature replaces the component for instructing corresponding current part group to be included, and replaces the resemblance of the specific simulated object, It obtains replacing the simulated object after resemblance.
Optionally, processor 310 is additionally operable to replace logic according to the current signature, and determining can in each component group Component group.
The device 30 that above simulated object resemblance is replaced can be refering to fig. 1 to the parts Fig. 9 description understood, This place, which is not done, excessively to be repeated.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:ROM, RAM, disk or CD etc..
The method and device for being provided for the embodiments of the invention the replacement of simulated object resemblance above have carried out in detail Thin to introduce, principle and implementation of the present invention are described for specific case used herein, and above example is said The bright method and its core concept for being merely used to help understand the present invention;Meanwhile for those of ordinary skill in the art, foundation The thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of method that simulated object resemblance is replaced, which is characterized in that including:
The feature obtained for specific simulated object replaces instruction, and the specific simulated object corresponds to a component set, described Component set includes the component group of different priorities, and each component group includes the portion for combining the specific simulated object Part;The feature replacement instruction is corresponding with feature replacement logic, and the feature replaces logic for determining available component group;
Selection is corresponding with current signature replacement logic from available component group, and the component of highest priority, and determination is used for Replace the current part group of the specific simulated object resemblance;
The resemblance of the specific simulated object is changed to component included in the current part group, obtains replacing outer Simulated object after shape feature.
2. according to the method described in claim 1, it is characterized in that, described select with current signature more from available component group It changes that logic is corresponding, and the component of highest priority, determines and work as front for replace the specific simulated object resemblance Part group, including:
Logic is replaced according to the current signature, determines the letter for replacing the component needed for the specific simulated object resemblance Breath;
For the information of each required component, the component of highest priority is selected from the available component group, really The fixed current part group for replacing the specific simulated object resemblance.
3. method according to claim 1 or 2, which is characterized in that the resemblance by the specific simulated object It is changed to component included in the current part group, obtains replacing the simulated object after resemblance, including:
By component included in component included in the component group of the specific simulated object and the current part group into Row compares;
The component group for determining the specific simulated object and different components in the current part group;
Resemblance corresponding from the different components in the specific simulated object is changed to the different components, is obtained more Change the simulated object after resemblance.
4. method according to claim 1 or 2, which is characterized in that it includes that fisrt feature is replaced that the feature, which replaces instruction, Instruction and second feature replace instruction, and the fisrt feature replacement instruction is replaced instruction prior to the second feature and is performed, and The priority that the fisrt feature replaces instruction corresponding component group replaces the excellent of instruction corresponding component group less than the second feature First grade,
The resemblance by the specific simulated object is changed to component included in the current part group, obtains more The simulated object after resemblance is changed, including:
The component for instructing corresponding current part group to be included is replaced according to the second feature, replaces the specific simulated object Resemblance, obtain replace resemblance after simulated object.
5. method according to claim 1 or 2, which is characterized in that the selection from available component group and current spy Sign replacement logic is corresponding, and the component of highest priority, determines for replacing working as the specific simulated object resemblance Before forepiece group, the method further includes:
Logic is replaced according to the current signature, determines available component group in each component group.
6. the device that a kind of simulated object resemblance is replaced, which is characterized in that including:
Acquiring unit, for obtaining the feature replacement instruction for specific simulated object, the specific simulated object corresponds to one Component set, the component set include the component group of different priorities, and each component group includes for combining the spy Determine the component of simulated object;The feature replacement instruction is corresponding with feature replacement logic, and the feature replaces logic for really Fixed available component group;
Determination unit, the feature for being obtained according to the acquiring unit are replaced instruction, are selected from available component group It is corresponding with current signature replacement logic, and the component of highest priority, it determines for replacing the specific simulated object shape The current part group of feature;
Feature replaces unit, for the resemblance of the specific simulated object to be changed to described in the determination unit determination Component included in current part group obtains replacing the simulated object after resemblance.
7. device according to claim 6, which is characterized in that
The determination unit determines for replacing logic according to the current signature and replaces the specific simulated object shape spy The information of component needed for sign selects highest for the information of each required component from the available component group The component of priority determines the current part group for replacing the specific simulated object resemblance.
8. the device described according to claim 6 or 7, which is characterized in that the feature replaces unit and includes:
Comparing subunit, for will be in component included in the component group of the specific simulated object and the current part group Including component be compared;
Determination subelement determines the component group of the specific simulated object for the comparison result according to the comparing subunit From different components in the current part group;
Subelement is replaced, the different components for will be determined from the determination subelement in the specific simulated object are corresponding Resemblance be changed to the different component, obtain replacing the simulated object after resemblance.
9. the device described according to claim 6 or 7, which is characterized in that it includes that fisrt feature is replaced that the feature, which replaces instruction, Instruction and second feature replace instruction;
The feature replaces unit, is held prior to second feature replacement instruction for replacing instruction in the fisrt feature Row, and the fisrt feature replaces the priority of instruction corresponding component group less than second feature replacement instruction corresponding component group Priority when, the component for instructing corresponding current part group to be included is replaced according to the second feature, is replaced described specific The resemblance of simulated object obtains replacing the simulated object after resemblance.
10. the device described according to claim 6 or 7, which is characterized in that
The determination unit is additionally operable to replace logic according to the current signature, determines available portion in each component group Part group.
CN201610072865.8A 2016-02-02 2016-02-02 A kind of method and device that simulated object resemblance is replaced Active CN107019914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610072865.8A CN107019914B (en) 2016-02-02 2016-02-02 A kind of method and device that simulated object resemblance is replaced

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610072865.8A CN107019914B (en) 2016-02-02 2016-02-02 A kind of method and device that simulated object resemblance is replaced

Publications (2)

Publication Number Publication Date
CN107019914A CN107019914A (en) 2017-08-08
CN107019914B true CN107019914B (en) 2018-10-23

Family

ID=59524283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610072865.8A Active CN107019914B (en) 2016-02-02 2016-02-02 A kind of method and device that simulated object resemblance is replaced

Country Status (1)

Country Link
CN (1) CN107019914B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109529339A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 Game role costume changing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866264A (en) * 2005-05-21 2006-11-22 华为技术有限公司 Scene generating method and system for mobile game
CN101393652A (en) * 2007-09-20 2009-03-25 广州左右软件技术有限公司 Costume changing method for characters in network community
US10022631B2 (en) * 2008-06-02 2018-07-17 Nike, Inc. System and method for creating an avatar
CN101799847A (en) * 2010-01-22 2010-08-11 深圳市新飞扬数码技术有限公司 Method and system for equipment changing of webpage game role
CN102385759B (en) * 2011-10-28 2014-10-29 深圳第七大道网络技术有限公司 Method and device for changing characters in web game
CN105261055B (en) * 2015-09-07 2018-06-26 网易(杭州)网络有限公司 A kind of game role costume changing method, device and terminal

Also Published As

Publication number Publication date
CN107019914A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN106570822B (en) Face mapping method and device
CN111494934B (en) Method, device, terminal and storage medium for displaying virtual prop in game
CN108096833B (en) Motion sensing game control method and device based on cascade neural network and computing equipment
US11123636B2 (en) Runtime animation substitution
CN109621425A (en) A kind of video generation method, device, equipment and storage medium
US11275661B1 (en) Test generation of a distributed system
CN112370772B (en) Game task processing method and device and electronic equipment
CN109698914A (en) A kind of lightning special efficacy rendering method, device, equipment and storage medium
CN105354040A (en) Method, device and terminal for twin-engine game built-in toolbar
CN106975220A (en) Game user and room matching process and system
CN110772794B (en) Intelligent game processing method, device, equipment and storage medium
CN107019914B (en) A kind of method and device that simulated object resemblance is replaced
CN109603154B (en) Game interface testing method, client, hosting server and system
CN109523614B (en) 3D animation export method, 3D animation playing method and device
CN109739753A (en) Chess/card game test method, device, equipment and storage medium
CN111870932B (en) Interactive processing method, device and equipment based on game
CN114548027A (en) Method for tracking signal in verification system, electronic device and storage medium
CN108427584A (en) The configuration method of the chip and the chip with parallel computation core quickly started
CN109034966A (en) Craftwork generation method, terminal and storage medium based on Photographing On-line
CN109669805A (en) Reduce method, apparatus, computer equipment and the storage medium of check bit digit
CN107885452A (en) 3D Touch analogy methods and device, computer installation and computer-readable recording medium
CN115079820A (en) Virtual scene dynamic switching method, system, storage medium and equipment
CN112473139A (en) Object form switching method and device, storage medium and electronic device
CN105700805B (en) Handwriting display methods, handwriting display device and mobile terminal
CN111027348A (en) Lottery drawing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant