CN109669608A - Action effect generation method and device - Google Patents

Action effect generation method and device Download PDF

Info

Publication number
CN109669608A
CN109669608A CN201811578586.4A CN201811578586A CN109669608A CN 109669608 A CN109669608 A CN 109669608A CN 201811578586 A CN201811578586 A CN 201811578586A CN 109669608 A CN109669608 A CN 109669608A
Authority
CN
China
Prior art keywords
joint
swing
skeletal joint
skeletal
prestored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811578586.4A
Other languages
Chinese (zh)
Other versions
CN109669608B (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.)
Chengdu Sefon Software Co Ltd
Original Assignee
Chengdu Sefon Software 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 Chengdu Sefon Software Co Ltd filed Critical Chengdu Sefon Software Co Ltd
Priority to CN201811578586.4A priority Critical patent/CN109669608B/en
Publication of CN109669608A publication Critical patent/CN109669608A/en
Application granted granted Critical
Publication of CN109669608B publication Critical patent/CN109669608B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/403D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present embodiments relate to animation effect processing technology fields, specifically, it is related to a kind of action effect generation method and device, the triggering command that this method can be inputted based on user obtains the location information of contact, corresponding goods categories are found out based on location information, it and based on goods categories is that each skeletal joint for prestoring distributes joint motion weighted value, then the swing of each skeletal joint is generated according to location information and joint motion weighted value, and corresponding skeletal joint is controlled according to the swing of generation and is rotated, and then realize the action effect of role, so, the swing of each skeletal joint can be flexibly generated according to the location information and different goods categories of different contacts, improve flexibility and accuracy that action effect generates.

Description

Action effect generation method and device
Technical field
The present embodiments relate to animation effect processing technology fields, in particular to a kind of action effect generation side Method and device.
Background technique
As Internet technology develops, many application programs have the presence of role now, can also correspond to that there are roles Behavior, and then just have corresponding movement.But the prior art is difficult to flexibly, accurately generate the action effect of role.
Summary of the invention
In view of this, the present invention provides a kind of action effect generation method and devices.
The embodiment of the invention provides a kind of action effect generation methods, are applied to local electronic equipment, the local electricity Multiple skeletal joints for characterizing role's body are prestored in sub- equipment, which comprises
User is responded by the triggering command of the local electronic equipment input, contact is obtained according to the triggering command Location information;
The index value for obtaining the location information, searching whether to exist in default virtual objects information bank has the rope Draw the Item Information of value, and if it exists, parse to the Item Information, obtain the corresponding goods categories of the Item Information;
It is that each skeletal joint prestored distributes joint motion weighted value based on the goods categories;
For each skeletal joint prestored, it is based on location information joint motion weight corresponding with the skeletal joint Value generates the swing of the skeletal joint;
For each swing that generation obtains, controls the corresponding skeletal joint of the swing and rotated.
Optionally, the local electronic equipment is provided with display area, is with one of vertex of the display area Coordinate origin generates two-dimensional coordinate system using the first direction initialization and the second direction initialization as reference axis;User is responded described in The triggering command of local electronic equipment input, the step of location information of contact is obtained according to the triggering command, comprising:
The triggering command that response user is inputted by the display area;
Coordinate value of the contact in the two-dimensional coordinate system is obtained according to the triggering command.
It optionally, is the step of each skeletal joint prestored distributes joint motion weighted value based on the goods categories, Include:
Action classification when identifying that role contacts the corresponding article of the goods categories based on the goods categories;
It is that each skeletal joint prestored distributes joint motion weighted value according to the action classification, wherein what is prestored is every The sum of joint motion weighted value that a skeletal joint is distributed based on the action classification is one.
Optionally, based on the goods categories be the step of each skeletal joint for prestoring distributes joint motion weighted value it Before, the method also includes:
For the maximum rotation section of each skeletal joint setting prestored.
Optionally, for each skeletal joint prestored, it is based on location information joint corresponding with the skeletal joint Movable weighted value generates the step of swing of the skeletal joint, comprising:
It is for each skeletal joint prestored, the corresponding maximum rotation section of the skeletal joint is corresponding with the skeletal joint Joint motion weighted value be multiplied to obtain setting rotation section;
The quasi- swing of the skeletal joint is generated based on the location information;
Judge whether the quasi- swing is located in setting rotation section, if the quasi- swing is located at the setting It rotates in section, using the quasi- swing as the swing of the skeletal joint, if the quasi- swing is located at setting rotation Turn outside section, calculates separately the absolute value of the quasi- swing with the difference of two setting swings, obtain two be calculated Smaller value in a absolute value, using the corresponding setting swing of the smaller value as the swing of the skeletal joint;Wherein, institute It states two and sets swing as two endpoint values in setting rotation section.
The embodiment of the invention also provides a kind of action effect generating means, are applied to local electronic equipment, the local Multiple skeletal joints for characterizing role's body are prestored in electronic equipment, described device includes:
Position information acquisition module, the triggering command inputted for responding user by the local electronic equipment, according to The triggering command obtains the location information of contact;
Goods categories obtain module, for obtaining the index value of the location information, in default virtual objects information bank Search whether the Item Information for having with the index value, and if it exists, parse to the Item Information, obtain the object The corresponding goods categories of product information;
Joint motion weighted value distribution module, for being that each skeletal joint distribution prestored is closed based on the goods categories Section activity weighted value;
Joint swing generation module, for being based on the location information and the bone for each skeletal joint prestored The corresponding joint motion weighted value in bone joint generates the swing of the skeletal joint;
Rotary module is carried out for for obtained each swing is generated, controlling the corresponding skeletal joint of the swing Rotation.
Optionally, the local electronic equipment is provided with display area, is with one of vertex of the display area Coordinate origin generates two-dimensional coordinate system using the first direction initialization and the second direction initialization as reference axis;The location information obtains Module responds user by the triggering command of the local electronic equipment input in the following manner, is obtained according to the triggering command Obtain the location information of contact:
The triggering command that response user is inputted by the display area;
Coordinate value of the contact in the two-dimensional coordinate system is obtained according to the triggering command.
Optionally, the joint motion weighted value distribution module is prestored based on the goods categories in the following manner Each skeletal joint distributes joint motion weighted value:
Action classification when identifying that role contacts the corresponding article of the goods categories based on the goods categories;
It is that each skeletal joint prestored distributes joint motion weighted value according to the action classification, wherein what is prestored is every The sum of joint motion weighted value that a skeletal joint is distributed based on the action classification is one.
Optionally, based on the goods categories be the step of each skeletal joint for prestoring distributes joint motion weighted value it Before, the joint motion weighted value distribution module is also used to:
For the maximum rotation section of each skeletal joint setting prestored.
Optionally, the joint swing generation module is directed to each skeletal joint prestored in the following manner, is based on Location information joint motion weighted value corresponding with the skeletal joint generates the swing of the skeletal joint:
It is for each skeletal joint prestored, the corresponding maximum rotation section of the skeletal joint is corresponding with the skeletal joint Joint motion weighted value be multiplied to obtain setting rotation section;
The quasi- swing of the skeletal joint is generated based on the location information;
Judge whether the quasi- swing is located in setting rotation section, if the quasi- swing is located at the setting It rotates in section, using the quasi- swing as the swing of the skeletal joint, if the quasi- swing is located at setting rotation Turn outside section, calculates separately the absolute value of the quasi- swing with the difference of two setting swings, obtain two be calculated Smaller value in a absolute value, using the corresponding setting swing of the smaller value as the swing of the skeletal joint;Wherein, institute It states two and sets swing as two endpoint values in setting rotation section.
The embodiment of the invention also provides a kind of local electronic equipment, including memory, processor and it is stored in storage On device and the computer program that can run on a processor, the processor is realized above-mentioned dynamic when executing the computer program Make effect generation method.
The embodiment of the invention also provides a kind of computer readable storage medium, the readable storage medium storing program for executing includes computer Program, the local electronic equipment computer program controls the readable storage medium storing program for executing when running where execute above-mentioned movement effect Fruit generation method.
Beneficial effect
Action effect generation method provided in an embodiment of the present invention and device, the triggering command that can be inputted based on user are obtained Contact location information, corresponding goods categories are found out based on location information, and be each of to prestore based on goods categories Skeletal joint distributes joint motion weighted value, then generates each skeletal joint according to location information and joint motion weighted value Swing, and corresponding skeletal joint is controlled according to the swing of generation and is rotated, and then realizes the action effect of role, such as This, can flexibly generate the rotation of each skeletal joint according to the location information and different goods categories of different contacts Degree improves flexibility and accuracy that action effect generates.
Further, action effect generation method provided in an embodiment of the present invention and device are without presetting a large amount of effect Fruit textures, therefore the workload of fine arts personnel is decreased, thereby reduce cost of manufacture.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of block diagram of local electronic equipment 10 provided by the embodiment of the present invention.
Fig. 2 is a kind of flow chart of action effect generation method provided by the embodiment of the present invention.
Fig. 3 is the schematic diagram of multiple skeletal joints provided by the embodiment of the present invention.
Fig. 4 is the schematic diagram for the sub-step that step S25 shown in Fig. 2 includes in an embodiment.
Fig. 5 is a kind of module frame chart of action effect generating means 20 provided by the embodiment of the present invention.
Icon:
The local 10- electronic equipment;11- memory;12- processor;13- network module;
20- action effect generating means;21- position information acquisition module;22- goods categories obtain module;The joint 23- is living Dynamic weighted value distribution module;The joint 24- swing generation module;25- rotary module.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Inventor further investigation reveals that, existing role action effect generation method is mostly by presetting a large amount of effect Then textures play out according to the multiple effect textures of user demand rotation and generate continuous animation in turn, but this mode There are certain defects, on the one hand, for certain a kind of movement there may be the fine tuning in angle, is just difficult to embody in aforementioned manners Fine tuning effect in angle out, on the other hand, to embody the fine tuning effect in angle, it is necessary to make more effect patches Figure, this undoubtedly will increase the workload of fine arts personnel, for example, being picked up article may on the ground, can also for the movement for picking up thing Can the action effect for picking up thing be realized according to effect textures, needs to make a large amount of textures on the table, it can be seen that, it is existing Technology is difficult to flexibly, accurately generate the action effect of role.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying As a result, therefore, the solution that the discovery procedure of the above problem and the hereinafter embodiment of the present invention are proposed regarding to the issue above Scheme all should be the contribution that inventor makes the present invention in process of the present invention.
Based on the studies above, the embodiment of the invention provides a kind of action effect generation method and devices, can be according to not The location information of same contact and different goods categories flexibly generate the swing of each skeletal joint, improve action effect The flexibility and accuracy of generation.
Fig. 1 shows a kind of block diagram of local electronic equipment 10 provided by the embodiment of the present invention.The present invention is real Applying the local electronic equipment 10 in example has data storage, transmission, processing function, as shown in Figure 1, local electronic equipment 10 wraps It includes: memory 11, processor 12, network module 13 and action effect generating means 20.
It is directly or indirectly electrically connected between memory 11, processor 12 and network module 13, to realize the biography of data Defeated or interaction.It is electrically connected for example, these elements can be realized from each other by one or more communication bus or signal wire. Action effect generating means 20 are stored in memory 11, the action effect generating means 20 include at least one can be with software Or the form of firmware (firmware) is stored in the software function module in the memory 11, the processor 12 passes through operation The action effect generating means 20 being stored in the software program and module, such as the embodiment of the present invention in memory 11, from And perform various functions application and data processing, that is, realize the action effect generation method in the embodiment of the present invention.
Wherein, the memory 11 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 11 is for storing program, and the processor 12 executes described program after receiving and executing instruction.
The processor 12 may be a kind of IC chip, the processing capacity with data.Above-mentioned processor 12 It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc..It may be implemented or execute each method, step disclosed in the embodiment of the present invention and patrol Collect block diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..
Network module 13 is used for the communication established between local electronic equipment 10 and other communication terminal devices by network The transmitting-receiving operation of network signal and data is realized in connection.Above-mentioned network signal may include wireless signal or wire signal.
It is appreciated that structure shown in FIG. 1 is only to illustrate, local electronic equipment 10 may also include more than shown in Fig. 1 Perhaps less component or with configuration different shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or A combination thereof is realized.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the readable storage medium storing program for executing includes computer journey Sequence.Local electronic equipment 10 computer program controls the readable storage medium storing program for executing when running where executes following movement effect Fruit generation method.
Fig. 2 shows a kind of flow charts of action effect generation method provided by the embodiment of the present invention.The method has Method and step defined in the process of pass is applied to local electronic equipment 10, can be realized by the processor 12.It below will be right Detailed process shown in Fig. 2 is described in detail:
In the present embodiment, local electronic equipment 10 can be mobile phone, plate etc..
Fig. 3 is please referred to, local electronic equipment 10 includes a display area Zone, further, display area Zone For rectangle, using one of vertex of display area Zone as origin, with the first direction initialization X-direction and the second direction initialization Y Direction is that reference axis establishes two-dimensional coordinate system, so, it is possible to provide reference for the generation of rotation angle later.
Further, multiple skeletal joints of characterization role's body are prestored in local electronic equipment 10, as shown in figure 3, Skeletal joint includes but is not limited to: head joint J0, shoulder joint J1, elbow joint J2, wrist joint J3, hip joint J4, knee joint J5And ankle Joint J6, there are certain connection relationship between these joints, the linkage between joint can be realized different movements and for example pick It article and kicks and kicks article etc..
Step S21, response user pass through the triggering command of local electronic equipment input, obtain contact according to triggering command Location information.
For example, user can put the input that touching display area Zone realizes triggering command, it can base in local electronic equipment 10 The location information of contact is obtained in triggering command, wherein the location information of contact can be a certain coordinate in two-dimensional coordinate system Point, for example, certain of user's point touching display area Zone, local electronic equipment 10 can obtain the place of user's point touching in two dimension Coordinate value in coordinate system, in another example, which is (x, y).
Step S22 obtains the index value of location information, and searching whether to exist in virtual objects information bank has the index The Item Information of value.
If it exists, step S23 is turned to show there is no article at contact if it does not exist, do not execute operation.
Step S23, parses Item Information, obtains the corresponding goods categories of Item Information.
For example, the index value of (x, y) is index0If being placed with article at (x, y) coordinate points of display area Zone, There is also index values identical with (x, y) coordinate points for the Item Information of the article stored in virtual objects information bank, i.e., index0
In another example the index value of Item Information C, C are index0, local electronic equipment 10 can be to Item Information C progress Parsing obtains the goods categories of Item Information C.
Step S24 is that each skeletal joint prestored distributes joint motion weighted value based on goods categories.
It specifically, can be the maximum rotation section of each skeletal joint distribution, example before distributing joint motion weighted value Such as, Fig. 3, shoulder joint J are please referred to1Maximum rotation section be [- 90 °, 90 °].
Further, action classification when identifying that role contacts article based on goods categories, for example, goods categories are foot Ball, therefore, the action classification that local electronic equipment 10 identifies that role contacts football is " kicking ", can be according to action classification at this time Each skeletal joint distributes weighted value, wherein the weighted value of distribution is as follows:
Head joint J0: 0.05;
Shoulder joint J1: 0.15;
Elbow joint J2: 0.05;
Wrist joint J3: 0.05;
Hip joint J4: 0.2;
Knee joint J5: 0.3;
Ankle-joint J6: 0.2.
It is appreciated that being directed to " kicking " this type of action, the sum of weighted value that each skeletal joint is distributed is 1.
Step S25 is based on location information joint motion corresponding with the skeletal joint for each skeletal joint prestored Weighted value generates the swing of the skeletal joint.
Fig. 4 is please referred to, passes through step S251, step S252, step S253, step S254 and step in the present embodiment S255 lists one of implementation of step S25.
Step S251, for each skeletal joint prestored, by the corresponding maximum rotation section of the skeletal joint and the bone The corresponding joint motion weighted value in bone joint is multiplied to obtain setting rotation section.
The shoulder joint J acted with " kicking " class1For, weight 0.15 is multiplied with [- 90 °, 90 °] and obtains setting rotation section For [- 13.5 °, 13.5 °].
Step S252 generates the quasi- swing of the skeletal joint based on location information.
Local electronic equipment 10 can generate shoulder joint J based on (x, y)1Quasi- swing angle.
Step S253, judges whether quasi- swing is located in setting rotation section.
If angle is located in [- 13.5 °, 13.5 °], step S254 is turned to.
If angle is located at [- 13.5 °, 13.5 °] outside, step S255 is turned to.
Step S254, using quasi- swing as the swing of the skeletal joint.
For example, being used as shoulder joint J for 10 ° if angle is 10 °1Swing.
Step S255, calculates separately the absolute value of quasi- swing with the difference of two setting swings, and acquisition is calculated Two absolute values in smaller value, using the corresponding setting swing of smaller value as the swing of the skeletal joint.
In another example calculating separately 20 ° and -13.5 ° and the absolute value of 13.5 ° of difference, Ke Yili if angle is 20 ° Solution, absolute value smaller value are 6.5 °, therefore, are used as joint J for 13.5 °1Swing.It so, it is possible to guarantee that role is executing Harmony of " kicking " class when movement between each skeletal joint, avoids some joint from opening and closing larger impact total tune.
It is appreciated that other skeletal joints also calculate or generate corresponding swing using the above method.
Optionally, the calculating for setting swing also can be adjusted according to the actual situation, and might not use weighted value The mode being multiplied with maximum rotation section.
Step S26 controls the corresponding skeletal joint of the swing and is rotated for each swing that generation obtains.
Local electronic equipment 10 controls the corresponding skeletal joint progress of the swing according to obtained each swing is generated Rotation, to realize that role executes corresponding movement, it will be understood that position of the football in the Zone of display area may be different, this When the swing of each skeletal joint can be adjusted according to specific location of the football in the Zone of display area, to realize angle Color " kicks " action effect of the football of different location, and compared to existing by the way of a large amount of effect textures, this method is not only Reduce the art work amount of early period, additionally it is possible to flexibly, accurately presentation act, meet diversified customer demand.
On the basis of the above, described as shown in figure 5, the embodiment of the invention provides a kind of action effect generating means 20 Action effect generating means 20 include: position information acquisition module 21, goods categories obtain module 22, joint motion weighted value divides With module 23, joint swing generation module 24 and rotary module 25.
Position information acquisition module 21 passes through the triggering command of the local electronic equipment input, root for responding user The location information of contact is obtained according to the triggering command.
Since position information acquisition module 21 is similar with the realization principle of step S21 in Fig. 2, do not say more herein It is bright.
Goods categories obtain module 22, for obtaining the index value of the location information, in default virtual objects information bank In search whether exist with the index value Item Information, and if it exists, the Item Information is parsed, described in acquisition The corresponding goods categories of Item Information.
Since goods categories acquisition module 22 and step S22 in Fig. 2 are similar with the realization principle of step S23, herein Do not illustrate more.
Joint motion weighted value distribution module 23, for being each skeletal joint distribution prestored based on the goods categories Joint motion weighted value.
Since joint motion weighted value distribution module 23 is similar with the realization principle of step S24 in Fig. 2, do not make herein More explanations.
Joint swing generation module 24, for based on the location information and being somebody's turn to do for each skeletal joint prestored The corresponding joint motion weighted value of skeletal joint generates the swing of the skeletal joint.
Since joint swing generation module 24 is similar with the realization principle of step S25 in Fig. 2, do not make herein more Explanation.
Rotary module 25, for for obtained each swing is generated, control the corresponding skeletal joint of the swing into Row rotation.
Since rotary module 25 is similar with the realization principle of step S26 in Fig. 2, do not illustrate more herein.
To sum up, action effect generation method and device provided by the embodiment of the present invention, can be according to different contacts Location information and different goods categories flexibly generate the swing of each skeletal joint, improve the flexible of action effect generation Property and accuracy, without presetting a large amount of effect textures, therefore decrease the workload of fine arts personnel, thereby reduce Cost of manufacture.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, local electronic equipment 10 or the network equipment etc.) execute the whole or portion of each embodiment the method for the present invention Step by step.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), with Machine accesses various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to nonexcludability Include so that include a series of elements process, method, article or equipment not only include those elements, but also Including other elements that are not explicitly listed, or further include for this process, method, article or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method, article or equipment of element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of action effect generation method, which is characterized in that pre- in the local electronic equipment applied to local electronic equipment There are multiple skeletal joints for characterizing role's body, which comprises
User is responded by the triggering command of the local electronic equipment input, the position of contact is obtained according to the triggering command Information;
The index value for obtaining the location information, searching whether to exist in default virtual objects information bank has the index value Item Information, and if it exists, the Item Information is parsed, the corresponding goods categories of the Item Information are obtained;
It is that each skeletal joint prestored distributes joint motion weighted value based on the goods categories;
It is raw based on location information joint motion weighted value corresponding with the skeletal joint for each skeletal joint prestored At the swing of the skeletal joint;
For each swing that generation obtains, controls the corresponding skeletal joint of the swing and rotated.
2. action effect generation method according to claim 1, which is characterized in that the local electronic equipment is provided with aobvious Show region, using one of vertex of the display area as coordinate origin, is with the first direction initialization and the second direction initialization Reference axis generates two-dimensional coordinate system;User is responded by the triggering command of the local electronic equipment input, according to the triggering Instruction obtains the step of location information of contact, comprising:
The triggering command that response user is inputted by the display area;
Coordinate value of the contact in the two-dimensional coordinate system is obtained according to the triggering command.
3. action effect generation method according to claim 1, which is characterized in that prestored based on the goods categories The step of each skeletal joint distribution joint motion weighted value, comprising:
Action classification when identifying that role contacts the corresponding article of the goods categories based on the goods categories;
It is that each skeletal joint prestored distributes joint motion weighted value according to the action classification, wherein each bone prestored The sum of joint motion weighted value that bone joint is distributed based on the action classification is one.
4. action effect generation method according to claim 1, which is characterized in that prestored based on the goods categories Before the step of each skeletal joint distribution joint motion weighted value, the method also includes:
For the maximum rotation section of each skeletal joint setting prestored.
5. action effect generation method according to claim 4, which is characterized in that for each skeletal joint prestored, The step of generating the swing of the skeletal joint based on location information joint motion weighted value corresponding with the skeletal joint, Include:
For each skeletal joint prestored, by the skeletal joint corresponding maximum rotation section pass corresponding with the skeletal joint Section activity weighted value is multiplied to obtain setting rotation section;
The quasi- swing of the skeletal joint is generated based on the location information;
Judge whether the quasi- swing is located in setting rotation section, if the quasi- swing is located at setting rotation In section, using the quasi- swing as the swing of the skeletal joint, if the quasi- swing is located at the setting Rotary District Between it is outer, calculate separately the absolute value of the quasi- swing with the difference of two setting swings, obtain two be calculated absolutely To the smaller value in value, using the corresponding setting swing of the smaller value as the swing of the skeletal joint;Wherein, described two A swing that sets is two endpoint value in setting rotation section.
6. a kind of action effect generating means, which is characterized in that pre- in the local electronic equipment applied to local electronic equipment There are multiple skeletal joints for characterizing role's body, described device includes:
Position information acquisition module, for responding user by the triggering command of the local electronic equipment input, according to described The location information of triggering command acquisition contact;
Goods categories obtain module and search in default virtual objects information bank for obtaining the index value of the location information With the presence or absence of the Item Information with the index value, and if it exists, parsed to the Item Information, obtain the article letter Cease corresponding goods categories;
Joint motion weighted value distribution module, for being that each skeletal joint distribution joint prestored is lived based on the goods categories Dynamic weighted value;
Joint swing generation module, for being closed based on the location information and the bone for each skeletal joint prestored Save the swing that corresponding joint motion weighted value generates the skeletal joint;
Rotary module, for controlling the corresponding skeletal joint of the swing and being rotated for obtained each swing is generated.
7. action effect generating means according to claim 6, which is characterized in that the local electronic equipment is provided with aobvious Show region, using one of vertex of the display area as coordinate origin, is with the first direction initialization and the second direction initialization Reference axis generates two-dimensional coordinate system;The position information acquisition module responds user in the following manner and passes through the local electronics The triggering command of equipment input, the location information of contact is obtained according to the triggering command:
The triggering command that response user is inputted by the display area;
Coordinate value of the contact in the two-dimensional coordinate system is obtained according to the triggering command.
8. action effect generating means according to claim 6, which is characterized in that the joint motion weighted value distributes mould Block is in the following manner that each skeletal joint prestored distributes joint motion weighted value based on the goods categories:
Action classification when identifying that role contacts the corresponding article of the goods categories based on the goods categories;
It is that each skeletal joint prestored distributes joint motion weighted value according to the action classification, wherein each bone prestored The sum of joint motion weighted value that bone joint is distributed based on the action classification is one.
9. action effect generating means according to claim 6, which is characterized in that prestored based on the goods categories Before the step of each skeletal joint distribution joint motion weighted value, the joint motion weighted value distribution module is also used to:
For the maximum rotation section of each skeletal joint setting prestored.
10. action effect generating means according to claim 9, which is characterized in that the joint swing generation module In the following manner for each skeletal joint prestored, it is based on location information joint motion corresponding with the skeletal joint Weighted value generates the swing of the skeletal joint:
For each skeletal joint prestored, by the skeletal joint corresponding maximum rotation section pass corresponding with the skeletal joint Section activity weighted value is multiplied to obtain setting rotation section;
The quasi- swing of the skeletal joint is generated based on the location information;
Judge whether the quasi- swing is located in setting rotation section, if the quasi- swing is located at setting rotation In section, using the quasi- swing as the swing of the skeletal joint, if the quasi- swing is located at the setting Rotary District Between it is outer, calculate separately the absolute value of the quasi- swing with the difference of two setting swings, obtain two be calculated absolutely To the smaller value in value, using the corresponding setting swing of the smaller value as the swing of the skeletal joint;Wherein, described two A swing that sets is two endpoint value in setting rotation section.
CN201811578586.4A 2018-12-21 2018-12-21 Action effect generation method and device Active CN109669608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811578586.4A CN109669608B (en) 2018-12-21 2018-12-21 Action effect generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811578586.4A CN109669608B (en) 2018-12-21 2018-12-21 Action effect generation method and device

Publications (2)

Publication Number Publication Date
CN109669608A true CN109669608A (en) 2019-04-23
CN109669608B CN109669608B (en) 2021-06-18

Family

ID=66145889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811578586.4A Active CN109669608B (en) 2018-12-21 2018-12-21 Action effect generation method and device

Country Status (1)

Country Link
CN (1) CN109669608B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080755B (en) * 2019-12-31 2023-11-14 上海米哈游天命科技有限公司 Motion calculation method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484540A (en) * 2015-01-05 2015-04-01 赵立江 Snatch action optimization method and device
CN105619409A (en) * 2016-02-24 2016-06-01 佛山市科莱机器人有限公司 Movement optimizing treatment method for manual teaching robot

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484540A (en) * 2015-01-05 2015-04-01 赵立江 Snatch action optimization method and device
CN105619409A (en) * 2016-02-24 2016-06-01 佛山市科莱机器人有限公司 Movement optimizing treatment method for manual teaching robot

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080755B (en) * 2019-12-31 2023-11-14 上海米哈游天命科技有限公司 Motion calculation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109669608B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
Zhang et al. Ergonomic posture recognition using 3D view-invariant features from single ordinary camera
CN106662914B (en) Wearable wireless HMI device
CN108229332A (en) Bone attitude determination method, device and computer readable storage medium
Wang et al. Real time eye gaze tracking with 3d deformable eye-face model
US9477312B2 (en) Distance based modelling and manipulation methods for augmented reality systems using ultrasonic gloves
CN110942479B (en) Virtual object control method, storage medium and electronic device
CN102893236A (en) Augmented reality proximity sensing
US20180267604A1 (en) Computer pointer device
CN109034095A (en) A kind of face alignment detection method, apparatus and storage medium
US10175751B2 (en) Method and apparatus for dynamic sensor configuration
US20170221250A1 (en) Animating a virtual object in a virtual world
AU2015394606B2 (en) Determination of an implant orientation relative to a bone
CN107608508A (en) A kind of information processing method and electronic equipment
CN107577451A (en) More Kinect human skeletons coordinate transformation methods and processing equipment, readable storage medium storing program for executing
Penhaker et al. Cloud computing environments for biomedical data services
CN109669608A (en) Action effect generation method and device
Visell et al. Contact sensing and interaction techniques for a distributed, multimodal floor display
CN116615755A (en) System and method for virtual fitting
CN114742925A (en) Covering method and device for virtual object, electronic equipment and storage medium
CN108434737A (en) Game element display methods, device and readable storage medium storing program for executing
CN115047976A (en) Multi-level AR display method and device based on user interaction and electronic equipment
Fu et al. Capture of 3D human motion pose in virtual reality based on video recognition
Jiang et al. A SLAM-based 6DoF controller with smooth auto-calibration for virtual reality
CN108829595B (en) Test method, test device, storage medium and electronic equipment
Ren et al. Application of wearable inertial sensor in optimization of basketball player’s human motion tracking method

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