CN103578127A - Method and device for achieving turn-around operation of object - Google Patents

Method and device for achieving turn-around operation of object Download PDF

Info

Publication number
CN103578127A
CN103578127A CN201310565552.2A CN201310565552A CN103578127A CN 103578127 A CN103578127 A CN 103578127A CN 201310565552 A CN201310565552 A CN 201310565552A CN 103578127 A CN103578127 A CN 103578127A
Authority
CN
China
Prior art keywords
towards
current location
turning axle
crown
turned round
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
CN201310565552.2A
Other languages
Chinese (zh)
Other versions
CN103578127B (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.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software Technology 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 Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN201310565552.2A priority Critical patent/CN103578127B/en
Publication of CN103578127A publication Critical patent/CN103578127A/en
Application granted granted Critical
Publication of CN103578127B publication Critical patent/CN103578127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Toys (AREA)

Abstract

The embodiment of the invention relates to the technical field of computers, in particular to a method and device for achieving turn-around operation of an object. The method comprises the steps that the object rotates from a current position to a first rotary shaft of a target position in the vertical plane; the object rotates from the current position to a second rotary shaft of the target position in the horizontal plane; after rotating around the first rotary shaft and the second rotary shaft, the object turns around from the current position to the target position. According to the method and device for achieving turn-around operation of the object, after rotating around the first rotary shaft and the second rotary shaft, the object rotates to the target position, conical swinging in the turn-around process of a single shaft can be avoided, the turn-around process of the object is more fluent, and a user experience effect is improved.

Description

A kind of object is turned round operation realizing method and device
Technical field
The embodiment of the present invention relates to field of computer technology, relates in particular to a kind of object and turns round operation realizing method and device.
Background technology
In the creation of three-dimensional animation, game or advertisement etc., often relate to creation the turning round of object, such as turning round of role in personage, online game in animation etc.The turning round of object refer to role, animated character etc. from current place towards vectorial current location, while turning round target towards vectorial target location.
In prior art, take online game as example, often adopt single shaft to turn round to realize turning round of role in game.First setting role is the object of turning round operation, and this object can be by the previous dynasty to defining with crown direction and current place plane.The direction of motion of object be the previous dynasty to, object has predefined place plane, for example character, during its standing, the surface level at place, center is current place plane, perpendicular to current place plane be the crown towards, corresponding, object in this plane, have left towards with the right side towards.Each object all has the volume of self, can spherically determine the space that object is occupied.
Single shaft has been turned round no-radius single shaft and has been turned round with non-no-radius single shaft and turn round two kinds.It is to imitate the method for turning round of turning round mode in reality that non-no-radius single shaft is turned round, and that is to say that in the process of turning round the arc length that object determine to radius by current location winding in world coordinate system turns to that target location realization turns round; No-radius single shaft is turned round and is referred to that object crown in world coordinate system, towards constant, rotates in surface level, during towards difference, also in perpendicular, turns round on the crown of current location and target location simultaneously.For no-radius single shaft turn round be by previous dynasty of current location to previous dynasty of vector sum target location to the normal vector of the common place of vector face, be T axle, the crown that is to say current location towards or the crown, target location towards axle, allow role around previous dynasty of this T axle rotation current location and target location between angle, thereby complete single shaft, turn round.Shown in Fig. 1, be that in prior art, no-radius single shaft is turned round schematic diagram.Object is in world coordinate system (X, Y, Z) in the drawings, and the coordinate of (X1, Y1, Z1) is the coordinate of object current location, and the coordinate of (X2, Y2, Z2) is the coordinate of subject object position; Wherein, the previous dynasty that X1 and X2 are current location to the previous dynasty with target location to; Y1 and Y2 be the left side of current location towards the left side with target location towards; Z1 and Z2 be the crown of current location towards the crown with target location towards, and Z1, Z2 and T axle are to be same axle.Under this state, object can, by take T axle as axis, rotate the angle between X1 and X2, thereby turn round target location by current location.
For no-radius single shaft, turn round, if the crown of current location towards the crown of vector sum target location when there is certain angle in vector, at this moment in the process of turning round role's the crown towards just no longer fixing.Because axle when role turns round can not be with the crown of current location towards vector, can not be with the crown of target location towards vector, and then must redefine a new axle and realize and turning round.If suppose that this axle is L, L axle is by calculating to vectorial cross product the previous dynasty to vector sum target location previous dynasty of role's current location, in whole process of turning round, role's the crown is spread certain angle towards meeting around axle L like this, and then the fluency of role's the process of turning round is reduced.Shown in Fig. 2, be that in prior art, single shaft is turned round middle current location and the crown, target location towards not identical equivalent schematic; As shown in Figure 2, when the crown of current location towards the crown of Z1 and target location when Z2 is not identical, now to determine L axle to X2 the previous dynasty to X1 and target location the previous dynasty of current location, object by current location when L axle turns to target location, because of in rotation process, the crown of current location and target location is towards changing, and object can form a taper and waves, and causes the distortion of object and not smooth etc.And, when the single shaft mode with no-radius of turning round realizes, because of L axle, take role current initial point when the vector position and turn round as axle, the process that can make to turn round exists a taper to wave, make game role turn round process not smooth, be unfavorable for promoting user's experience effect.
Summary of the invention
For making the process of turning round of role in game more smooth, and then promote the experience effect of game user, the invention provides a kind of object and turn round operation realizing method and device.
In first aspect, the embodiment of the present invention provides a kind of object to turn round operation realizing method, comprising:
Determine that object is in vertical plane, from current location, turn to the first turning axle of target location;
Determine that object is in surface level, from current location, turn to the second turning axle of target location;
Described object is rotated around described the first turning axle and the second turning axle, and described object is turned round target location by current location after rotating.
In second aspect, the embodiment of the present invention also provides a kind of object to turn round operation implement device, comprising:
The first turning axle determination module, for determining that object, in vertical plane, turns to the first turning axle of target location from current location;
The second turning axle determination module, for determining that object, in surface level, turns to the second turning axle of target location from current location;
Rotating module, for described object is rotated around described the first turning axle and the second turning axle, described object is turned round target location by current location after rotating.
The object that the embodiment of the present invention provides is turned round operation implementation and device, and described object is rotated around described the first turning axle and the second turning axle, and described object is turned round target location by current location after rotating; That is to say object is turned to target location from current location around the first turning axle in vertical plane, and in surface level, from current location, turn to target location around the second turning axle.With this, turning round by two turning axles of object realized, overcome single shaft of the prior art and turned round the taper occurring in process and wave etc. and to turn round the slack phenomenon of process, object is turned round more smooth, and promoted user's experience effect simultaneously.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, does not form limitation of the invention.In the accompanying drawings:
Shown in Fig. 1, be that in prior art, single shaft is turned round middle current location and the crown, the target location schematic diagram when identical;
Shown in Fig. 2, be that in prior art, single shaft is turned round middle current location and the crown, the target location schematic diagram when not identical;
Shown in Fig. 3, be that in the embodiment of the present invention one, object is turned round operation realizing method schematic flow sheet;
Shown in Fig. 4, be that in the embodiment of the present invention two, object is turned round operation realizing method schematic flow sheet;
Shown in Fig. 5, be in the embodiment of the present invention two crown towards definite method flow schematic diagram;
Shown in Fig. 6, be that in the embodiment of the present invention two, object is turned round schematic diagram around the second turning axle;
Shown in Fig. 7, be that in the embodiment of the present invention two, object is turned round schematic diagram around the first turning axle;
Shown in Fig. 8, be that in the embodiment of the present invention three, object is turned round operation implement device structural representation.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is carried out more in detail and complete explanation.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not full content.
For being described clearly, first define world coordinate system, it is absolute rectangular coordinate system in space, with X, Y and Z axis, represents.X-axis and Y-axis are positioned at surface level, and Z axis is perpendicular to surface level.Following as without special instruction herein, all refer to vector sum coordinate definite under world coordinate system.The state of object is set as its left side towards be positioned at surface level towards all the time with the right side, and object can be not crooked to the left and right.Even if it is crooked that left and right occurs object in rotation process, but also can recover the proper turntable in left and right after stable reaching desired location.To departing from surface level, can lean forward or swing back the previous dynasty of object.
Shown in Fig. 3, be that in the embodiment of the present invention one, object is turned round operation realizing method schematic flow sheet; Preferably, in the present embodiment, object is turned round operation realizing method and be can be applicable to seek celestial grade in online game, and in concrete the present embodiment, method can be carried out and be realized by server end equipment.As shown in Figure 3, described method comprises:
Step 301, determine that object is in vertical plane, from current location, turn to the first turning axle of target location.
In the present embodiment, object can be for seeking game role in Xianyou play, saddle horse etc.Current location refer to object before turning round in world coordinate system residing position, the previous dynasty that the current location of object can be by object current location to, left or right towards with the crown towards determining; Target location is that object is turned round rear residing position, the previous dynasty that it can be by subject object position to, left or right towards with the crown towards determining.
Concrete, in the present embodiment, be to determine that object, in the perpendicular of world coordinate system, turns to the first turning axle of target location from current location.When object rotates in perpendicular, only consider that the crown of object is towards changing, in this step, that is to say and determine this turning axle.Object, in the position of surface level, that is to say that the previous dynasty of object is to the projection at surface level, and left and right towards constant.
Step 302, determine that object is in surface level, from current location, turn to the second turning axle of target location.
Object, in the surface level of world coordinate system, turns to target location from current location and refers in world coordinate system, the previous dynasty of considering object to projection, and left or right is towards rotating in surface level.In this step, be to determine the second turning axle of turning round by this kind of mode.
Above-mentioned steps 301 and 302 does not have fixing sequential relationship, can carry out side by side yet.
Step 303, object is rotated around described the first turning axle and the second turning axle, described object is turned round target location by current location after rotating.
When determining that in step 301 and step 302 after the first turning axle and the second turning axle, what realize in this step is to allow object turn to target location around the first turning axle and the second turning axle respectively, and then realizes turning round of object.In the present embodiment, for the sequencing rotating around the first turning axle or the second turning axle, can select according to practical application; Can first around the first turning axle, rotate, can also first around the second turning axle, be rotated, or be rotated around the first turning axle and the second turning axle simultaneously.
Concrete, take and first around the first turning axle, rotate as example, after definite the first turning axle and the second turning axle.First, object is turned to centre position by current location around the first turning axle, the residing position of object after centre position refers to object is rotated by the first turning axle; Around the first turning axle, carry out object in rotation process previous dynasty of current location to a left side towards or right towards the projection at surface level in constant state, and the crown of only having object towards changing in perpendicular (when the crown of current location towards with the crown of target location when identical, when the first turning axle rotates, the crown is towards also not changing in perpendicular); Then by centre position, object is turned to target location around the second turning axle, when the crown that object turns to object in the process of target location around the second turning axle is not towards changing, only have object previous dynasty of current location to a left side towards or right previous dynasty towards being adjusted into target location to left towards or right towards.And then, turn round to compare by realize respectively the rotation of object around the first turning axle and the second turning axle with no-radius single shaft of the prior art and realized turning round of object.This kind of mode realizes turning round because of the object process of turning round of object no longer take single shaft as basis, so taper no longer appears in object in the process of turning round, waves, and makes the process of turning round of object more smooth.
The object that the embodiment of the present invention provides is turned round operation implementation, and object is turned to target location from current location around the first turning axle in vertical plane, and in surface level, from current location, turns to target location around the second turning axle.With this, turning round by two turning axles of object realized, that is to say the process that object's position is turned to target location, realize at twice, make object in the process of turning round, no longer occur that taper waves, overcome no-radius single shaft of the prior art and turned round the taper occurring in process and wave etc. and to turn round the slack phenomenon of process, object has been turned round more smooth, and promoted user's experience effect simultaneously.
Shown in Fig. 4, be that in the embodiment of the present invention two, object is turned round operation realizing method schematic flow sheet, the enforcement of the present embodiment be take embodiment mono-as basis.Preferably, in the present embodiment, object is turned round operation realizing method and be can be applicable to seek celestial grade in online game, and in concrete the present embodiment, method can be carried out and be realized by server end equipment.
In seeking Xianyou play the previous dynasty of character object current location to refer to role direction of motion or towards, role movement direction operational order by user before role turns round just can obtain; To referring to that user's operation-roles object wants the direction of motion that role is gone to, obtained by obtaining the mode of the operational order of user in the process of playing games the previous dynasty of role goal position; World coordinate system is the absolute coordinate system of system, do not set up before object coordinate system on picture coordinate be a little all to determine position separately with the initial point of world coordinate system, that is to say the system that games system self is set, according to predefined data can obtain world coordinate system vertically upper towards, the previous dynasty to, and left towards or right towards.
The realization of technical solution of the present invention in seeking Xianyou play be take above-mentioned known quantity as basis, and as shown in Figure 4, described method comprises:
Step 401, according to the previous dynasty of object current location to the vertically upper crown towards determining current location with world coordinate system towards.
The crown of current location is towards referring to when object is during in current position state, its previous dynasty perpendicular to current location to a left side towards or right towards towards.
Shown in Fig. 5, be in the embodiment of the present invention two crown towards definite method flow schematic diagram; As shown in Figure 5, it is realized according to the following steps:
Step 4011, according to the previous dynasty of object current location to world coordinate system vertically upper towards cross product, a left side of determining current location towards or right towards.
Owing to being that not meeting left and right is crooked under supposition object steady state (SS), thus left and right towards inevitable and the previous dynasty to, and vertically upper towards vertically.The previous dynasty of object to refer to the motion of object current location in world coordinate system towards, can be considered known vector; World coordinate system is the absolute coordinate system of system, before not setting up object coordinate system in system coordinate be a little all to determine position separately with the initial point of world coordinate system.Therefore, can according to the previous dynasty of object current location to the vertically upper left side towards determining current location with world coordinate system towards or right towards.
Shown in Fig. 1 and Fig. 2, the previous dynasty of current location to that is to say object coordinate system X1 axle towards.The Z axis of world coordinate system towards that is to say world coordinate system vertically upper towards.Because of when the left or right of object current location towards simultaneously perpendicular to previous dynasty of current position to world coordinate system vertically upper towards, previous dynasty that therefore can be by object current location to world coordinate system vertically upper towards a cross product left side of determining current position towards or right towards.
Step 4012, according to a left side towards or right towards the previous dynasty with current location to the cross product crown of determining current location towards.
Shown in Fig. 1, Fig. 2, a left side for current location towards or right towards, previous dynasty to the crown towards common framework the coordinate system at current location place, a left side for current location towards or right towards, previous dynasty to the crown towards being vertical each other.A left side of having determined current location in step 4012 towards or right towards, according to the previous dynasty of known current location to can by ask for left towards or right towards the previous dynasty with current location to the mode of the cross product crown of determining current location towards.
Step 402, according to the crown of current location towards, determine and to using the crown towards the first surface as normal vector;
What according to the crown of current location definite in step 401, towards, this step, realize is to determine the current location crown towards the first surface of making normal vector.
Step 403, according to the previous dynasty of subject object position to world coordinate system vertically upper towards cross product, a left side of determining target location towards or right towards.
In this step, according to the previous dynasty of fixed target location to the vertically upper left side of determining target location towards the mode of asking cross product with world coordinate system towards or right towards.
Step 404, determine using described target location a left side towards or right towards second as normal vector.
A left side of having determined target location in step 403 towards or right towards, this step realizes be according to a definite left side towards or right towards, and then determine left towards or right towards the face as normal vector.Be understandable that, left towards being the same face with the right side towards the face of left normal vector.
Step 405, determine that first surface and second 's concurrent aces is the first turning axle.
After definite first surface and second, and then determine the concurrent aces of two faces, and using first surface and second crossing axle as the first turning axle.
Preferably, in the present embodiment using first surface and second crown at current location or target location object towards axle on the concurrent aces that forms as the first turning axle.
Step 406, according to the previous dynasty of object current location to the vertically upper crown towards determining object current location with world coordinate system towards.
The crown of determining object current location in this step towards be with step 401 in determine object current location the crown towards identical.In specific implementation, this step can utilize the crown of the current location of obtaining in step 401 towards the realization as this step, can also utilize described in step 401 and the process crown that redefines object current location towards.
Step 407, using the crown with current location towards identical, through described object axle planar as the second turning axle step.
In this step, that is to say using object current location or at the central shaft of target location as the second turning axle.In conjunction with Fig. 1, that is to say using Z1 or Z2 axle as the second turning axle.
Step 408, object is turned to target location from current location around described the first turning axle in vertical plane, and in surface level, from current location, turn to target location around described the second turning axle.
In the present embodiment first by object by rotating around the second turning axle, after rotating, object mediates; And then object is rotated around the second turning axle by centre position, after rotating, object is in target location.
Shown in Fig. 6, be that in the embodiment of the present invention, object is turned round schematic diagram around the second turning axle.As shown in Figure 6, object is at the coordinate (X1, Y1, Z1) of current location, wherein X1 be to, Y2, be the previous dynasty of object current location the left side of object current location towards, Z1, be object current location the crown towards; Around the second turning axle, turn to intermediate position coordinates (Xo, Yo, Zo), wherein the left side in Xo to be object in previous dynasty in centre position to, Yo be object centre position towards, Zo be object on the crown in centre position towards.
In Fig. 6 object from current location when the second turning axle is turned round target location, the crown of object towards be all in same towards, and a left side for object towards with the previous dynasty to variation has occurred in surface level.When current location, the previous dynasty of the current location of object, when turning to centre position, the previous dynasty was to being Xo, left towards being Yo to being X1, left towards being Y1; And shown in Fig. 1, the previous dynasty in centre position, a left side was identical towards Y2 to Xo and the left previous dynasty towards Yo and target location to X2.But in the second axle rotation process, the crown of current location is identical with Zo towards Z1.
Shown in Fig. 7, be that in the embodiment of the present invention, object is turned round schematic diagram around the first turning axle.As shown in Figure 7, object intermediate position coordinates (Xo, Yo, Zo) wherein Xo to be object in previous dynasty in centre position to, Yo be object centre position a left side towards, Zo be object on the crown in centre position towards.The coordinate of subject object position (X2, Y2, Z2) wherein X2 be object previous dynasty of target location to, Y2 be object on the left side of target location towards, Z2 be object on the crown of target location towards.
Object is when the first turning axle turns to target location by centre position, the previous dynasty of object to a left side towards the projection in surface level in constant state, and the crown of object is towards occurred lifting and decline in perpendicular, and then realizes object and turn round target location by current location.When the first axle turning axle turns to target location by centre position, the left side in object centre position can not change towards Yo, and at this moment centre position the previous dynasty to Xo and left towards Yo, be that previous dynasty of target location is to X2 and left towards Y2.Now, the crown that object turns to target location on the crown in centre position towards Zo, towards Z2, is realized object in the rotation of Z axis, and then has been realized object and turned round target location by current location,
As a kind of preferred implementation in the present embodiment, in the present embodiment for the process of turning round of further optimization object, increase the fluency that object is turned round, around same time shaft, synchronous execution rotated described object around described the first turning axle and the second turning axle, after described object rotates, the operation of being turned round target location by current location.That is to say, object is rotated around the first turning axle and the second turning axle simultaneously, this kind of mode turned round and made object have more connecting in the process around the first turning axle and the second turning axle are turned round, reduced by the first turning axle to the jumping characteristic in the excessive process of the second turning axle, object has been turned round and had more fluency.For the rotation process along two turning axles, the weights that velocity of rotation can be set are controlled rotation rhythm, for example in the rotation of vertical plane first quick and back slow, and in the uniform rotation of surface level.
The object that the embodiment of the present invention provides is turned round operation implementation and device, object is turned to target location from current location around the first turning axle in vertical plane, and in surface level, from current location, turn to target location around the second turning axle.With this, turning round by two turning axles of object realized, overcome single shaft of the prior art and turned round the taper occurring in process and wave etc. and to turn round the slack phenomenon of process, object is turned round more smooth, and promoted user's experience effect simultaneously.
Shown in Fig. 8, be that in the embodiment of the present invention four, object is turned round operation implement device structural representation, as shown in Figure 8, described in turn round operation implement device structure and comprise:
The first turning axle determination module 801, for determining that object, in vertical plane, turns to the first turning axle of target location from current location.
Preferably, in the present embodiment, the first turning axle determination module 801 comprises that the crown is towards definite submodule 8011, for according to the previous dynasty of object current location to the vertically upper crown towards determining current location with world coordinate system towards; First surface is determined submodule 8012, for according to the crown of described current location towards, determine and to using the crown towards the first surface as normal vector; A left side, target location towards or right towards determination module 8013, for according to the previous dynasty of subject object position to world coordinate system vertically upper towards cross product, a left side of determining target location towards or right towards; Second definite submodule 8014, for determine using target location a left side towards or right towards second as normal vector; The first turning axle is determined submodule 8015, for determining that described first surface and second 's concurrent aces is the first turning axle.The second turning axle determination module 802, for determining that object, in surface level, turns to the second turning axle of target location from current location.
Preferably, in the present embodiment, the second turning axle determination module 802 comprises that the crown is towards definite submodule 8021, for according to the previous dynasty of object current location to the vertically upper crown towards determining object current location with world coordinate system towards; The second turning axle is determined submodule 8022, for using the crown with described current location towards identical, through described object axle planar as the second turning axle.
Preferably, in the present embodiment the crown towards definite submodule 8022 comprise left towards or right towards determining unit, for according to the previous dynasty of object current location to world coordinate system vertically upper towards cross product, a left side of determining current location towards or right towards.
The crown is towards determining unit, for according to a described left side towards or right towards the previous dynasty with described current location to the cross product crown of determining current location towards.
Rotating module 803, for described object is rotated around described the first turning axle and the second turning axle, described object is turned round target location by current location after rotating.
Preferably, in the present embodiment, rotating module 803, specifically for around same time shaft, is synchronously carried out described object is rotated around described the first turning axle and the second turning axle, after described object rotates, and the operation of being turned round target location by current location.
The object that the embodiment of the present invention provides is turned round operation implement device, and object is turned to target location from current location around the first turning axle in vertical plane, and in surface level, from current location, turns to target location around the second turning axle.With this, turning round by two turning axles of object realized, overcome single shaft of the prior art and turned round the taper occurring in process and wave etc. and to turn round the slack phenomenon of process, object is turned round more smooth, and promoted user's experience effect simultaneously.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can realize with the executable program code of computer installation, thereby they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various changes and variation.All any modifications of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included within spirit of the present invention and principle.

Claims (10)

1. object is turned round an operation realizing method, it is characterized in that, comprising:
Determine that object is in vertical plane, from current location, turn to the first turning axle of target location;
Determine that object is in surface level, from current location, turn to the second turning axle of target location;
Described object is rotated around described the first turning axle and the second turning axle, and described object is turned round target location by current location after rotating.
2. object as claimed in claim 1 is turned round operation realizing method, it is characterized in that, described definite object, in vertical plane, turns to the first turning axle of target location from current location, comprising:
According to the previous dynasty of object current location to the vertically upper crown towards determining current location with world coordinate system towards;
According to the crown of described current location towards, determine and to using the crown towards the first surface as normal vector;
According to the previous dynasty of subject object position to world coordinate system vertically upper towards cross product, a left side of determining target location towards or right towards;
Determine using described target location a left side towards or right towards second as normal vector;
The concurrent aces of determining described first surface and second is the first turning axle.
3. object as claimed in claim 1 is turned round operation realizing method, it is characterized in that, described definite object, in surface level, turns to the second turning axle of target location from current location, comprising:
According to the previous dynasty of object current location to the vertically upper crown towards determining object current location with world coordinate system towards;
Using the crown with described current location towards identical, through described object axle planar as the second turning axle.
4. object is turned round operation realizing method as claimed in claim 2 or claim 3, it is characterized in that, according to the previous dynasty of object current location to the vertically upper crown towards determining current location with world coordinate system towards, comprising:
According to the previous dynasty of object current location to world coordinate system vertically upper towards cross product, a left side of determining current location towards or right towards;
According to a described left side towards or right towards the previous dynasty with described current location to the cross product crown of determining current location towards.
5. object as claimed in claim 1 is turned round operation realizing method, it is characterized in that, described described object is rotated around described the first turning axle and the second turning axle, and described object is turned round target location by current location and comprised after rotating:
Around same time shaft, synchronous execution rotated described object around described the first turning axle and the second turning axle, and described object is turned round target location by current location after rotating.
6. object is turned round an operation implement device, it is characterized in that, comprising:
The first turning axle determination module, for determining that object, in vertical plane, turns to the first turning axle of target location from current location;
The second turning axle determination module, for determining that object, in surface level, turns to the second turning axle of target location from current location;
Rotating module, rotates around described the first turning axle and the second turning axle for just described object, and described object is turned round target location by current location after rotating.
7. object as claimed in claim 6 is turned round operation implement device, it is characterized in that, the first turning axle determination module comprises:
The crown is towards definite submodule, for according to the previous dynasty of object current location to the vertically upper crown towards determining current location with world coordinate system towards;
First surface is determined submodule, for according to the crown of described current location towards, determine and to using the crown towards the first surface as normal vector;
A left side, target location towards or right towards determination module, for according to the previous dynasty of subject object position to world coordinate system vertically upper towards cross product, a left side of determining target location towards or right towards;
Second definite submodule, for determine using described target location a left side towards or right towards second as normal vector;
The first turning axle is determined submodule, for determining that described first surface and second 's concurrent aces is the first turning axle.
8. object as claimed in claim 6 is turned round operation implement device, it is characterized in that, described the second turning axle determination module comprises:
The crown is towards definite submodule, for according to the previous dynasty of object current location to the vertically upper crown towards determining object current location with world coordinate system towards;
The second turning axle is determined submodule, for using the crown with described current location towards identical, through described object axle planar as the second turning axle.
9. object is turned round operation implement device as claimed in claim 7 or 8, it is characterized in that, the crown comprises towards definite submodule:
A current location left side towards or right towards determining unit, for according to the previous dynasty of object current location to world coordinate system vertically upper towards cross product, a left side of determining current location towards or right towards;
The crown is towards determining unit, for according to a described left side towards or right towards the previous dynasty with described current location to the cross product crown of determining current location towards.
10. object as claimed in claim 6 is turned round operation implement device, it is characterized in that, described rotating module is specifically for around same time shaft, synchronous execution rotated described object around described the first turning axle and the second turning axle, after described object rotates, the operation of being turned round target location by current location.
CN201310565552.2A 2013-11-13 2013-11-13 A kind of object turns round operation realizing method and device Active CN103578127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310565552.2A CN103578127B (en) 2013-11-13 2013-11-13 A kind of object turns round operation realizing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310565552.2A CN103578127B (en) 2013-11-13 2013-11-13 A kind of object turns round operation realizing method and device

Publications (2)

Publication Number Publication Date
CN103578127A true CN103578127A (en) 2014-02-12
CN103578127B CN103578127B (en) 2016-08-31

Family

ID=50049847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310565552.2A Active CN103578127B (en) 2013-11-13 2013-11-13 A kind of object turns round operation realizing method and device

Country Status (1)

Country Link
CN (1) CN103578127B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488834A (en) * 2015-12-01 2016-04-13 网易(杭州)网络有限公司 Character face orientation regulation method and apparatus
CN110458943A (en) * 2019-07-31 2019-11-15 深圳市商汤科技有限公司 Mobile object spinning solution and device, control equipment and storage medium
CN114053693A (en) * 2021-10-20 2022-02-18 腾讯科技(深圳)有限公司 Object control method and device in virtual scene and terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1140861A (en) * 1995-05-12 1997-01-22 索尼公司 Method and apparatus for producing animation data
US7423650B2 (en) * 2005-12-09 2008-09-09 Electronics And Telecommunications Research Institute Method of representing and animating two-dimensional humanoid character in three-dimensional space
CN101447093A (en) * 2002-05-24 2009-06-03 英国电讯有限公司 Image processing method and system
CN102004612A (en) * 2010-12-03 2011-04-06 深圳市蓝韵实业有限公司 Method for rotating three-dimensional image
US8111284B1 (en) * 2004-07-30 2012-02-07 Extreme Reality Ltd. System and method for 3D space-dimension based image processing
CN102663795A (en) * 2012-04-06 2012-09-12 谌方琦 2.5D character animation realization method based on webpage and system thereof
CN103077546A (en) * 2012-12-27 2013-05-01 江苏太奇通软件有限公司 Three-dimensional perspective transforming method of two-dimensional graphics

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1140861A (en) * 1995-05-12 1997-01-22 索尼公司 Method and apparatus for producing animation data
CN101447093A (en) * 2002-05-24 2009-06-03 英国电讯有限公司 Image processing method and system
US8111284B1 (en) * 2004-07-30 2012-02-07 Extreme Reality Ltd. System and method for 3D space-dimension based image processing
US7423650B2 (en) * 2005-12-09 2008-09-09 Electronics And Telecommunications Research Institute Method of representing and animating two-dimensional humanoid character in three-dimensional space
CN102004612A (en) * 2010-12-03 2011-04-06 深圳市蓝韵实业有限公司 Method for rotating three-dimensional image
CN102663795A (en) * 2012-04-06 2012-09-12 谌方琦 2.5D character animation realization method based on webpage and system thereof
CN103077546A (en) * 2012-12-27 2013-05-01 江苏太奇通软件有限公司 Three-dimensional perspective transforming method of two-dimensional graphics

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ALEXANDER HORNUNG .ET AL: "Character Animation from 2D Picture and 3D Motion Data", 《JOURNAL ACM TRANSACTIONS ON GRAPHICS(TOG)》, vol. 26, no. 1, 31 January 2007 (2007-01-31), pages 1 - 9 *
陈东祥等: "利用"球面三角"建立三维图形旋转变换参数的关系", 《工程图学学报》, no. 4, 31 December 2001 (2001-12-31), pages 97 - 100 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488834A (en) * 2015-12-01 2016-04-13 网易(杭州)网络有限公司 Character face orientation regulation method and apparatus
CN105488834B (en) * 2015-12-01 2019-03-19 网易(杭州)网络有限公司 The method of adjustment and device of role's face orientation
CN110458943A (en) * 2019-07-31 2019-11-15 深圳市商汤科技有限公司 Mobile object spinning solution and device, control equipment and storage medium
CN110458943B (en) * 2019-07-31 2021-09-14 深圳市商汤科技有限公司 Moving object rotating method and device, control equipment and storage medium
CN114053693A (en) * 2021-10-20 2022-02-18 腾讯科技(深圳)有限公司 Object control method and device in virtual scene and terminal equipment
CN114053693B (en) * 2021-10-20 2023-07-25 腾讯科技(深圳)有限公司 Object control method and device in virtual scene and terminal equipment

Also Published As

Publication number Publication date
CN103578127B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
US11229846B2 (en) Providing a shared virtual experience in a location-based game
EP2839441B1 (en) Network game system without dynamic obstructions and processing method thereof
US11158291B2 (en) Image display method and apparatus, storage medium, and electronic device
US10792568B1 (en) Path management for virtual environments
US20210346810A1 (en) Shared Augmented Reality Game Within a Shared Coordinate Space
CN110251936B (en) Method and device for controlling virtual camera in game and storage medium
JP7451563B2 (en) Virtual character control method, computer equipment, computer program, and virtual character control device
US11478700B2 (en) Asynchronous event management for hosted sessions
WO2023088041A1 (en) Method and apparatus for generating walking animation of virtual character, and device and storage medium
US20200057435A1 (en) Method and system for controlling robots within in an interactive arena and generating a virtual overlayed
CN103578127A (en) Method and device for achieving turn-around operation of object
US20200402314A1 (en) Location-based platform for multiple 3d engines for delivering location-based 3d content to a user
CN103959241A (en) Mechanism for facilitating context-aware model-based image composition and rendering at computing devices
CN104898653B (en) A kind of flight control system
CN114307150B (en) Method, device, equipment, medium and program product for interaction between virtual objects
CN113786615B (en) Interaction method, device and terminal
CN109865291A (en) Animation processing method and device in a kind of game
CN102722901A (en) Method and apparatus for processing images
CN107564058A (en) Object's position display methods and device
WO2021062817A1 (en) Flight control method, unmanned aerial vehicle, and flight control system
CN111078031B (en) Virtual character position determining method, device, equipment and storage medium
US10576378B2 (en) Non-linear interactive experience creation and execution methods and systems
CN117830567A (en) Position updating method, device, medium and program product for virtual scene
JP2016179165A (en) Game program, control method of computer, and computer
CN105334880A (en) Method and device for controlling speed of rotary table

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant