CN110458943A - Mobile object spinning solution and device, control equipment and storage medium - Google Patents

Mobile object spinning solution and device, control equipment and storage medium Download PDF

Info

Publication number
CN110458943A
CN110458943A CN201910703103.7A CN201910703103A CN110458943A CN 110458943 A CN110458943 A CN 110458943A CN 201910703103 A CN201910703103 A CN 201910703103A CN 110458943 A CN110458943 A CN 110458943A
Authority
CN
China
Prior art keywords
vector
projection
target
coordinate
objective plane
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
CN201910703103.7A
Other languages
Chinese (zh)
Other versions
CN110458943B (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.)
Shenzhen Sensetime Technology Co Ltd
Original Assignee
Shenzhen Sensetime 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 Shenzhen Sensetime Technology Co Ltd filed Critical Shenzhen Sensetime Technology Co Ltd
Priority to CN201910703103.7A priority Critical patent/CN110458943B/en
Publication of CN110458943A publication Critical patent/CN110458943A/en
Application granted granted Critical
Publication of CN110458943B publication Critical patent/CN110458943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Abstract

The embodiment of the present application discloses a kind of mobile object spinning solution and device, control equipment and storage medium.The mobile object spinning solution, comprising: the first Object Projection to objective plane is obtained into the first projection;Based on first projection and target direction, primary vector is obtained;By first object towards vector projection to the objective plane, secondary vector is obtained;Based on the primary vector and the secondary vector, controls first object and rotated along the target axis perpendicular to the objective plane.

Description

Mobile object spinning solution and device, control equipment and storage medium
Technical field
This application involves mobile object spinning solutions more particularly to a kind of mobile object spinning solution and device, control to set Standby and storage medium.
Background technique
In some three dimensionalities (Three dimensional, 3D) image scene, a controll plant is being rotated, in addition to Other than the direction for changing the controll plant, the controll plant can be made unnecessary relative to its plane run-off the straight stood etc. Posture changes, so that the control of controll plant has error or the low phenomenon of accuracy in this 3D scene.
Summary of the invention
In view of this, the embodiment of the present application is intended to provide a kind of mobile object spinning solution and device, control equipment and deposits Storage media.
The technical solution of the application is achieved in that
The embodiment of the present application first aspect provides a kind of mobile object spinning solution, comprising:
First Object Projection to objective plane is obtained into the first projection;
Based on first projection and target direction, primary vector is obtained;
By first object towards vector projection to the objective plane, secondary vector is obtained;
Based on the primary vector and the secondary vector, first object is controlled along perpendicular to the objective plane The rotation of target axis.
It, will the method also includes the second Object Projection to the objective plane is obtained the second projection based on above scheme Second Object Projection obtains the second projection to the objective plane, wherein second projection characterizes the target direction;
It is described to be based on first projection and target direction, obtain primary vector, comprising:
Based on first projection and second projection, the primary vector is obtained.
It is described based on first projection and second projection based on above scheme, obtain primary vector, comprising:
The origin of first nodal point and three-dimensional system of coordinate based on first projection, obtains third vector, wherein described Target axis is a kind of reference axis of the three-dimensional system of coordinate;The objective plane is where the reference axis of the three-dimensional system of coordinate One plane;
The origin of the second central point and the three-dimensional system of coordinate based on second projection, obtains the 4th vector;
4th vector is subtracted into the third vector, obtains the primary vector.
It is described to be based on the primary vector and the secondary vector based on above scheme, first object is controlled along vertical Directly rotated in the target axis of the objective plane, comprising:
Determine the angle of the primary vector and the secondary vector;
It controls first object and rotates the angle along the target axis.
Based on above scheme, the angle of the determination primary vector and the secondary vector, comprising:
Primary vector described in dot product and the secondary vector, obtain dot-product;
Determine the length product of the primary vector and the secondary vector;
Seek the quotient between the dot-product and the length product;
Based on the quotient, carries out antitrigonometric function operation and obtain the angle.
Based on above scheme, the method also includes:
According to the origin of the central point of first object and three-dimensional system of coordinate, obtain the direction of first object to Amount, wherein the target axis is a reference axis of the three-dimensional system of coordinate;The objective plane is the three-dimensional system of coordinate A plane where reference axis.
Based on above scheme, the method also includes:
According to the direction of visual lines of first object, determine first object towards vector.
The embodiment of the present application second aspect provides a kind of mobile object rotating device characterized by comprising
First projection module, for the first Object Projection to objective plane to be obtained the first projection;
Primary vector module, for obtaining primary vector based on first projection and target direction;
Secondary vector module, for first object towards vector projection to the objective plane, to be obtained second Vector;
Rotary module, for being based on the primary vector and the secondary vector, control first object along perpendicular to The target axis of the objective plane rotates.
Based on above scheme, described device further include:
Second projection module, for the second Object Projection to be obtained the second projection to the objective plane, wherein described Two projections characterize the target direction;
The primary vector module, for obtaining the primary vector based on first projection and second projection.
Based on above scheme, the primary vector module, specifically for based on it is described first projection first nodal point and The origin of three-dimensional system of coordinate obtains third vector, wherein the target axis is a kind of reference axis of the three-dimensional system of coordinate;Institute State a plane where the reference axis that objective plane is the three-dimensional system of coordinate;The second central point based on second projection With the origin of the three-dimensional system of coordinate, the 4th vector is obtained;4th vector is subtracted into the third vector, obtains described One vector.
Based on above scheme, the rotary module, specifically for the folder of the determination primary vector and the secondary vector Angle;It controls first object and rotates the angle along the target axis.
Based on above scheme, the rotary module is specifically used for primary vector and the secondary vector described in dot product, obtains Dot-product;Determine the length product of the primary vector and the secondary vector;It seeks between the dot-product and the length product Quotient;Based on the quotient, carries out antitrigonometric function operation and obtain the angle.
Based on above scheme, described device further include:
First towards vector module, for obtaining according to the central point of first object and the origin of three-dimensional system of coordinate First object towards vector, wherein the target axis is a reference axis of the three-dimensional system of coordinate;The target is flat Face is a plane where the reference axis of the three-dimensional system of coordinate;
Based on above scheme, described device further include:
Second determines the court of first object for the direction of visual lines according to first object towards vector module To vector.
The embodiment of the present application third aspect provides a kind of control equipment, comprising:
Memory;
Processor is connect with the memory, for executable by executing the computer being stored on the memory Instruction can be realized the mobile object spinning solution that aforementioned any technical solution provides.
The embodiment of the present application fourth aspect provides a kind of computer storage medium, and the computer storage medium is stored with meter Calculation machine executable instruction;The computer executable instructions after being executed by processor, can be realized aforementioned any technical solution and mention The mobile object spinning solution of confession
Technical solution provided by the embodiments of the present application is not directly according to first pair when carrying out the rotation of the first object The current direction and target direction of elephant, but can be then based on first by the first Object Projection to objective plane in the target In plane, the primary vector of current direction and target between is obtained, in conjunction with the current towards vector of the first object, is come smart The rotation of first object is really controlled, in this way, reduce the first object leads to the posture of objective plane in rotary course Unnecessary transformation, so that the rotation for realizing mobile object accurately controls.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of mobile object spinning solution provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another mobile object spinning solution provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another mobile object spinning solution provided by the embodiments of the present application;
Fig. 4 is a kind of schematic diagram of first object and the second object provided by the embodiments of the present application in 3d space;
Fig. 5 is the schematic diagram of another first object provided by the embodiments of the present application and the second object in 3d space;
Fig. 6 is that the current relative position being directly based upon between two objects rotates the effect diagram of the first object;
Fig. 7 is a kind of structural schematic diagram of mobile object rotating device provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram for controlling equipment provided by the embodiments of the present application.
Specific embodiment
The technical solution of the application is further described in detail with reference to the accompanying drawings and specific embodiments of the specification.
As shown in Figure 1, the present embodiment provides a kind of mobile object spinning solutions, comprising:
Step S110: the first Object Projection to objective plane is obtained into the first projection;
Step S120: based on first projection and target direction, primary vector is obtained;
Step S130: by first object towards vector projection to the objective plane, secondary vector is obtained;
Step S140: being based on the primary vector and the secondary vector, controls first object along perpendicular to described The target axis of objective plane rotates.
Stating mobile object can be that mobile any object is carried out in 3d space.For example, the mobile object includes but not It is limited at least one of: game role object;Social persona object.
It is distinguished according to the type of mobile object, it may include: human object, mobile tool object are (for example, traffic work Tool) etc..
In the present embodiment, first object is the object to be rotated.In the present embodiment when rotating the first object, It, can be by the first Object Projection to target not instead of not simply according to the current direction of the first object and postrotational target direction Plane, the objective plane are the objects that the first object needs to keep posture.For example, the first object is currently relative to objective plane Predetermined angular then still needs to maintain predetermined angular after rotation, rather than the change of angle occurs.
Target direction can be the direction determining according to the received user's income of man-machine interactive interface.
After the first Object Projection to objective plane, first projection can be obtained.
During projection, projecting direction is the upright projection along the axial objective plane of the target.
First object along the target axial projection to the objective plane mode there are many kinds of, two kinds presented below Optional way:
Mode one: by each point of the outer profile of first object along the target axial projection to the objective plane It is interior, at this point, will form the view field of the first object outer profile projection in the objective plane, the region can be taken Central point constructs the primary vector.
Mode two: by the central point of first object along the target axial projection to objective plane, at this point, in target Include in plane is exactly the subpoint of the first object center point, constructs the primary vector based on the subpoint;
Mode three: by the focus point of first object along the target axial projection to objective plane, at this point, in target Include in plane is exactly the subpoint of the first object focus point, constructs the primary vector based on the subpoint.
After projecting to objective plane, the first projection and target form vector between.Target direction can be used It is indicated from the unit vector of origin.
First object can towards vector are as follows: with the intersection point between the target axis and the objective plane go out deliver Show the vector of the current direction of the first object.
In step s 130 can by it is described towards vector along the target axial projection to the objective plane, obtain described Secondary vector.
After obtaining primary vector, secondary vector with the first object towards vector in objective plane, in conjunction with this two Person, rotation of the first object of control along the target axis.In this way, at least may insure target object after rotation, in target Posture in plane remains unchanged, to realize that the rotation of the first object is precisely controlled.
For example, the first object changes the posture in target object in rotary course in shooting game scene, it may So that the quasi- heart of alignment shifts originally after rotation, it is poor so as to cause user's game experiencing sense, and use the present embodiment Method, posture during rotation in objective plane are to maintain to stablize, it is only necessary to needing the direction rotated to be rotated, from And ensure the accuracy of the control of rotation.
In some embodiments, as shown in Fig. 2, the method also includes:
Second Object Projection to the objective plane is obtained the second projection for the second Object Projection to described by step S111 Objective plane obtains the second projection, wherein second projection characterizes the target direction;
The step S120 can include:
Step S121: based on first projection and second projection, the primary vector is obtained.
In application scenes, the target of the first object towards be because will towards another object, herein second Object can be same class object with first object, be also possible to the object of different classes.For example, first object and Second object is all mobile object.In further embodiments, first object and second object can also be Different objects.For example, the first object is the vehicles of scene of game;And the second object berths for some of scene of game Position, although being two objects at this time, one is mobile object, the other is non-moving object, is two different objects.
Projection pattern and the first Object Projection in second Object Projection to objective plane are to the projection side in objective plane Formula is identical, herein, is just not repeated.
In the present embodiment, the step S121 can specifically: the projection of the first object and the second object in objective plane Between can with line formed vector.For example, being projected as starting point with the first of the first object, end is projected as with the second of the second object Point, connection form the primary vector.
It is only citing herein in short, being formed there are many kinds of the modes of the primary vector and the secondary vector, it is specific real It is current not limited to this.
In some embodiments, if second object is also mobile object, in the moving process of first object, Second object may be also in movement, this meeting is so that the target direction of first object changes.At this point, the method Further include: the motion state of monitoring second object;When second object is when being subjected to displacement, second object is updated Project to the second projection of the objective plane;In this way, rotation of first object relative to the second object towards change may be implemented Turn tracking.
Fig. 4 shows object a and object b;It is assumed that objective plane is x-z-plane;Target axis is y-axis.Assuming that object a is the An object, object b are the second object;It then can use method provided in this embodiment, towards institute after control the first object rotation State the second object.As shown in Figure 4, the coordinate value of object a and object b in x-axis is inconsistent.
As shown in figure 5, the position of object a and object b on the y axis can be the same or different.Shown in Fig. 6 are as follows: be based on The present embodiment provides the rotations of the upright projection of method control object a and object b in x-z-plane.As can be seen from FIG. 5, object a It is inconsistent with the coordinate of object b on the y axis.
Fig. 6 is the current direction for being directly based upon the first object and the position of the second object, carries out the direction rotation of object a, It can be seen that the posture of object a occurs in x-z-plane after rotating object a in the three-dimensional space that three-dimensional system of coordinate is set Transformation, this transformation can be known to comparison charts 6 and Fig. 4 and/or Fig. 5.And this uses method provided in this embodiment, so that it may Inhibit this phenomenon.
In some embodiments, the step S121 can include:
The origin of first nodal point and three-dimensional system of coordinate based on first projection, obtains third vector, wherein described Target axis is a kind of reference axis of the three-dimensional system of coordinate;The objective plane is where the reference axis of the three-dimensional system of coordinate One plane;
The origin of the second central point and the three-dimensional system of coordinate based on second projection, obtains the 4th vector;
4th vector is subtracted into the third vector, obtains the primary vector.
After the first object and the second Object Projection to objective plane, the first projection and the second projection of formation are all a little Collection.
In the present embodiment, the primary vector is constructed for convenience, can respectively obtain the first projection and the second projection Central point constructs third vector based on first nodal point and origin;The third vector be origin to first nodal point to Amount.
The 4th vector is constructed based on the second central point and origin simultaneously, the 4th vector is origin to the second central point Vector.
In the present embodiment, vector operation is carried out based on the 4th vector of third vector sum specifically such as to subtract the 4th vector The third vector obtains the primary vector.
In some embodiments, as shown in figure 3, the step S140 can include:
Step S141: the angle of the primary vector and the secondary vector is determined;
Step S142: control first object rotates the angle along the target axis.
Primary vector and secondary vector are all the projections in objective plane, in this way, if according to primary vector and second to Amount, so that it may simplicity calculate the first object in objective plane towards difference (the i.e. described angle).Obtain the angle it Afterwards, the first object of control rotates the angle along the target axis, is revolving in this way, on the one hand reducing and changing first object In the attitudes vibration of objective plane caused by during turning.
In the present embodiment, pass through the vector operation of step S141 and step S142, available primary vector and second The angle of vector.
In some embodiments, the step S141 includes:
Primary vector described in dot product and the secondary vector, obtain dot-product;
Determine the length product of the primary vector and the secondary vector;
Seek the quotient between the dot-product and the length product;
Based on the quotient, carries out antitrigonometric function operation and obtain the angle.
In the present embodiment, the antitrigonometric function includes described in anti-pre- cosine function (for example, arccos) is calculated Angle.
In some embodiments, the method also includes:
According to the origin of the central point of first object and three-dimensional system of coordinate, obtain the direction of first object to Amount, wherein the target axis is a reference axis of the three-dimensional system of coordinate;The objective plane is the three-dimensional system of coordinate A plane where reference axis.
In the present embodiment, with the central point of first object determine first object towards vector.
In some embodiments, the three-dimensional system of coordinate can be the coordinate system where preset 3D scene;Another In a little embodiments, the three-dimensional system of coordinate can be for according to the coordinate system for the coordinate plane dynamic setting for needing to maintain posture.
In the present embodiment, the method also includes: according to the direction of visual lines of first object, determine described first pair Elephant towards vector.
In some embodiments, if first object is the object for having sight, for example, who object, the vehicles pair As can all there is its direction of visual lines.At this point it is possible to using direction of visual lines as the direction towards vector of first object.
In some embodiments, the length of the direction can be unit vector.
In some embodiments, the step S110 can include:
In extension reality XR scene, the first object is obtained into the first projection along target axial projection to objective plane, and will Second Object Projection obtains the second projection to the objective plane, wherein the XR scene includes: Virtual Reality scene, increases At least one of strong reality AR scene and mixed display MR scene.
In the present embodiment, the rotation control of first object can be applied in various 3D scenes, the 3D scene packet It includes: type of play, social type or other types.In the present embodiment, it can be applied in the XR scene.
As shown in fig. 7, the present embodiment provides a kind of mobile object rotating devices, comprising:
First projection module 110, for the first Object Projection to objective plane to be obtained the first projection;
Primary vector module 120, for obtaining primary vector based on first projection and target direction;
Secondary vector module 130, for first object towards vector projection to the objective plane, to be obtained Two vectors;
Rotary module 140 controls first object along vertical for being based on the primary vector and the secondary vector It is rotated in the target axis of the objective plane.
In some embodiments, first projection module 110, the primary vector module 120, the secondary vector mould Block 130 and rotary module 140 can be program module;After described program module is executed by processor, it can be realized aforementioned any each The function of a module.
In some embodiments, first projection module 110, the primary vector module 120, the secondary vector mould Block 130 and rotary module 140 can be soft or hard binding modules;The soft or hard binding modules include but is not limited to various programmable battle arrays Column;The programmable array includes: field programmable gate array or complex programmable array.
In further embodiments, first projection module 110, the primary vector module 120, described second to It measures module 130 and rotary module 140 can be pure hardware module;The pure hardware module includes but is not limited to specific integrated circuit.
In some embodiments, described device further include:
Second projection module, for the second Object Projection to be obtained the second projection to the objective plane, wherein described Two projections characterize the target direction;
The primary vector module 120, for based on it is described first projection and it is described second projection, obtain described first to Amount.
In some embodiments, the primary vector module 120, specifically for the first center based on first projection The origin of point and three-dimensional system of coordinate, obtains third vector, wherein the target axis is a kind of coordinate of the three-dimensional system of coordinate Axis;The objective plane is a plane where the reference axis of the three-dimensional system of coordinate;Second based on second projection The origin of central point and the three-dimensional system of coordinate obtains the 4th vector;4th vector is subtracted into the third vector, is obtained The primary vector.
In some embodiments, the rotary module 140 is specifically used for determining the primary vector and the secondary vector Angle;It controls first object and rotates the angle along the target axis.
In some embodiments, the rotary module 140, be specifically used for dot product described in primary vector and described second to Amount, obtains dot-product;Determine the length product of the primary vector and the secondary vector;Seek the dot-product and the length Quotient between product;Based on the quotient, carries out antitrigonometric function operation and obtain the angle.
In some embodiments, described device further include:
First towards vector module, for obtaining according to the central point of first object and the origin of three-dimensional system of coordinate First object towards vector, wherein the target axis is a reference axis of the three-dimensional system of coordinate;The target is flat Face is a plane where the reference axis of the three-dimensional system of coordinate;
In some embodiments, described device further include:
Second determines the court of first object for the direction of visual lines according to first object towards vector module To vector.
In some embodiments, first projection module 110 is specifically used in extension reality XR scene, by first Object obtains the first projection along target axial projection to objective plane, and the second Object Projection is obtained second to the objective plane Projection, wherein the XR scene include: Virtual Reality scene, augmented reality AR scene and mixed display MR scene at least One of them.
A specific example is provided below in conjunction with above-mentioned any embodiment:
Example 1:
This example provides a kind of Moving Objects spinning solution, realizes in 3d space, an object is kept (to unite herein below Claim by gig) posture it is constant, turn to another object (be referred to as object herein below, corresponding second pair above-mentioned As), no matter by gig and object towards vector whether in same plane.For example, having one in 3d space by gig, hang down Straight x-z-plane is stood towards z-axis negative direction, and there is a object in the top before its right side.
While the method that this example provides can make to turn to object by gig, keep stance constant, namely vertical The posture that x-z-plane is stood remains unchanged, after because turning to, run-off the straight etc..
When being turned under existing methods by gig, it is easy the run-off the straight in rotary course, so as to cause first The variation of beginning posture, loses consistency.
The method that this example illustrates, by will by gig (i.e. the first object), by gig towards vector, object (i.e. the second object) projects to x-z-plane, passes through serial operation and processing, it is possible to reduce by appearance of the gig in rotary course The change of gesture keeps pose invariant.
To guarantee the not run-off the straight in the course of rotation of A object, A object and B object are projected into x-z-plane, two That the central point of object is projected in x-z-plane is respectively a and b, obtains vectorBy being put down towards vector projection to x-z for A object Face, and by this projection vector to vectorPoint multiplication operation is carried out, operation result carries out result divided by the length product of two vectors Anti- triangle cos operation, obtains the angle theta of two vectors, and A object is rotated in place angle, θ around y-axis in x-z-plane, makes A pairs As towards B object.
Two game role A and B in gaming, one of game role A need the surfaces of revolution to another game role B, need It keeps A game role to keep posture constant in rotary course, prevents A game role posture from changing and tilting.
In three dimensions, there are two object A (y-axis value can arbitrary value, be not limited to 0) and B (it is assumed that B is before the right side of A Side, z-axis value are higher than A), B object holding position is constant, and A object moment direction makes it towards B.If using existing spinning solution, Object a will be rotated to just towards the direction of object b, so as to cause the inclination of object a, posture changes.
Using this example spinning solution, object a will complete to be rotated towards object b around y-axis, still maintain upright after rotation It is constant with posture.
In the related art, target rotation in three-dimensional space, postrotational being pointing directly toward towards vector by gig Object.Because can be occurred by gig, posture changes and unnecessary object can be effectively prevented in inclination, this example technique Posture changes and inclination, and object still maintains original posture after rotation, more intact to meet using needs, realizes object Pose invariant rotation is effectively prevent because object tilts and unnecessary postural change caused by rotation.
This technology utilizes the coordinate projection of object on x-z plane, and finding out object using the method for dot product and anti-triangle needs The angle to be rotated, it is only necessary to which linear algebra, anti-triangulo operation can realize good rotates effe, expeditiously realization pair The constant posture of elephant rotates.
As shown in figure 8, the embodiment of the present application provides a kind of control equipment, comprising:
Memory, for storing information;
Processor is connect with display and the memory respectively, for being stored on the memory by executing Computer executable instructions can be realized the mobile object spinning solution that aforementioned one or more technical solutions provide, for example, such as Fig. 1 is at least one of to mobile object spinning solution shown in Fig. 3.
The memory can be various types of memories, can be random access memory, read-only memory, flash memory etc..It is described to deposit Reservoir can be used for information storage, for example, storage computer executable instructions etc..The computer executable instructions can be various journeys Sequence instruction, for example, objective program instruction and/or source program instruction etc..
The processor can be various types of processors, for example, central processing unit, microprocessor, Digital Signal Processing Device, programmable array, digital signal processor, specific integrated circuit or image processor etc..
The processor can be connect by bus with the memory.The bus can be IC bus etc..
In some embodiments, the terminal device may also include that communication interface, the communication interface can include: network connects Mouthful, for example, lan interfaces, dual-mode antenna etc..The communication interface is equally connected to the processor, and can be used in information receipts Hair.
In some embodiments, the terminal device further includes man-machine interactive interface, for example, the man-machine interactive interface can Including various input-output equipment, for example, keyboard, touch screen etc..
In some embodiments, the control equipment further include: display, the display can rotating through with the first object Journey and/or rotates effe.
The embodiment of the present application provides a kind of computer storage medium, and the computer storage medium is stored with computer can Execute code;After the computer-executable code is performed, the shifting that aforementioned one or more technical solutions provide can be realized Dynamic object spinning solution, for example, at least one of mobile object spinning solution as shown in Figure 1 to Figure 3.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, can be fully integrated into a processing module in each functional unit in each embodiment of the application, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Technical characteristic disclosed in the application any embodiment can be formed new in any combination in the absence of conflict Embodiment of the method or apparatus embodiments.
Embodiment of the method disclosed in the application any embodiment can be formed new in any combination in the absence of conflict Embodiment of the method.
Apparatus embodiments disclosed in the application any embodiment can be formed new in any combination in the absence of conflict Apparatus embodiments.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: movable storage device, it is read-only Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or The various media that can store program code such as person's CD.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (10)

1. a kind of mobile object spinning solution characterized by comprising
First Object Projection to objective plane is obtained into the first projection;
Based on first projection and target direction, primary vector is obtained;
By first object towards vector projection to the objective plane, secondary vector is obtained;
Based on the primary vector and the secondary vector, first object is controlled along the target perpendicular to the objective plane Axis rotation.
2. method according to claim 1, which is characterized in that the method also includes by the second Object Projection to the target Plane obtains the second projection, wherein second projection characterizes the target direction;
It is described to be based on first projection and target direction, obtain primary vector, comprising:
Based on first projection and second projection, the primary vector is obtained.
3. according to the method described in claim 2, it is characterized in that, it is described based on it is described first projection and it is described second projection, Obtain primary vector, comprising:
The origin of first nodal point and three-dimensional system of coordinate based on first projection, obtains third vector, wherein the target Axis is a kind of reference axis of the three-dimensional system of coordinate;The objective plane is one where the reference axis of the three-dimensional system of coordinate Plane;
The origin of the second central point and the three-dimensional system of coordinate based on second projection, obtains the 4th vector;
4th vector is subtracted into the third vector, obtains the primary vector.
4. method according to any one of claims 1 to 3, which is characterized in that described based on the primary vector and described Secondary vector controls first object and rotates along the target axis perpendicular to the objective plane, comprising:
Determine the angle of the primary vector and the secondary vector;
It controls first object and rotates the angle along the target axis.
5. according to the method described in claim 4, it is characterized in that, the determination primary vector and the secondary vector Angle, comprising:
Primary vector described in dot product and the secondary vector, obtain dot-product;
Determine the length product of the primary vector and the secondary vector;
Seek the quotient between the dot-product and the length product;
Based on the quotient, carries out antitrigonometric function operation and obtain the angle.
6. method according to any one of claims 1 to 5, which is characterized in that the method also includes:
According to the origin of the central point of first object and three-dimensional system of coordinate, obtain first object towards vector, In, the target axis is a reference axis of the three-dimensional system of coordinate;The objective plane is the coordinate of the three-dimensional system of coordinate A plane where axis.
7. method according to any one of claims 1 to 6, which is characterized in that the method also includes:
According to the direction of visual lines of first object, determine first object towards vector.
8. a kind of mobile object rotating device characterized by comprising
First projection module, for the first Object Projection to objective plane to be obtained the first projection;
Primary vector module, for obtaining primary vector based on first projection and target direction;
Secondary vector module, for first object towards vector projection to the objective plane, to be obtained secondary vector;
Rotary module controls first object along perpendicular to described for being based on the primary vector and the secondary vector The target axis of objective plane rotates.
9. a kind of control equipment characterized by comprising
Memory;
Processor is connect with the memory, the computer executable instructions for being stored on the memory by execution, It can be realized the method that any one of claim 1 to 7 provides.
10. a kind of computer storage medium, the computer storage medium is stored with computer executable instructions;The computer Executable instruction after being executed by processor, can be realized the method that any one of claim 1 to 7 provides.
CN201910703103.7A 2019-07-31 2019-07-31 Moving object rotating method and device, control equipment and storage medium Active CN110458943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703103.7A CN110458943B (en) 2019-07-31 2019-07-31 Moving object rotating method and device, control equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703103.7A CN110458943B (en) 2019-07-31 2019-07-31 Moving object rotating method and device, control equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110458943A true CN110458943A (en) 2019-11-15
CN110458943B CN110458943B (en) 2021-09-14

Family

ID=68484330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703103.7A Active CN110458943B (en) 2019-07-31 2019-07-31 Moving object rotating method and device, control equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110458943B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112076473A (en) * 2020-09-11 2020-12-15 腾讯科技(深圳)有限公司 Control method and device of virtual prop, electronic equipment and storage medium
CN112327837A (en) * 2020-10-28 2021-02-05 深圳市银星智能科技股份有限公司 Robot traveling method, non-volatile computer-readable storage medium, and robot
CN116797769A (en) * 2023-08-23 2023-09-22 腾讯科技(深圳)有限公司 Data processing method, device, computer equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578127A (en) * 2013-11-13 2014-02-12 北京像素软件科技股份有限公司 Method and device for achieving turn-around operation of object
CN107564089A (en) * 2017-08-10 2018-01-09 腾讯科技(深圳)有限公司 Three dimensional image processing method, device, storage medium and computer equipment
US20180231375A1 (en) * 2016-03-31 2018-08-16 Boe Technology Group Co., Ltd. Imaging device, rotating device, distance measuring device, distance measuring system and distance measuring method
CN108858188A (en) * 2018-06-20 2018-11-23 华南理工大学 A kind of human body swivel and displacement mapping method applied to anthropomorphic robot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103578127A (en) * 2013-11-13 2014-02-12 北京像素软件科技股份有限公司 Method and device for achieving turn-around operation of object
US20180231375A1 (en) * 2016-03-31 2018-08-16 Boe Technology Group Co., Ltd. Imaging device, rotating device, distance measuring device, distance measuring system and distance measuring method
CN107564089A (en) * 2017-08-10 2018-01-09 腾讯科技(深圳)有限公司 Three dimensional image processing method, device, storage medium and computer equipment
CN108858188A (en) * 2018-06-20 2018-11-23 华南理工大学 A kind of human body swivel and displacement mapping method applied to anthropomorphic robot

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112076473A (en) * 2020-09-11 2020-12-15 腾讯科技(深圳)有限公司 Control method and device of virtual prop, electronic equipment and storage medium
CN112327837A (en) * 2020-10-28 2021-02-05 深圳市银星智能科技股份有限公司 Robot traveling method, non-volatile computer-readable storage medium, and robot
CN116797769A (en) * 2023-08-23 2023-09-22 腾讯科技(深圳)有限公司 Data processing method, device, computer equipment and readable storage medium
CN116797769B (en) * 2023-08-23 2023-11-21 腾讯科技(深圳)有限公司 Data processing method, device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN110458943B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN110458943A (en) Mobile object spinning solution and device, control equipment and storage medium
WO2022121640A1 (en) Robot relocalization method and apparatus, and robot and readable storage medium
US7839405B2 (en) Apparatus, method, and program for projection of 3D spatial image into planar images using visual points
CN110057352A (en) A kind of camera attitude angle determines method and device
US20030112281A1 (en) Methods and apparatus for detecting and correcting penetration between objects
CN108364319A (en) Scale determines method, apparatus, storage medium and equipment
CN109074087A (en) Yaw attitude control method, unmanned plane, computer readable storage medium
US10997745B2 (en) Augmented reality based method and apparatus for spatial positioning
CN108427595A (en) The determination method and device of user interface controls display location in virtual reality
CN110648363A (en) Camera posture determining method and device, storage medium and electronic equipment
JPH08315171A (en) Method and device for generating animation data
CN106570923A (en) Frame rendering method and device
CN104769543A (en) Method and system for controlling virtual camera in virtual 3D space and computer-readable recording medium
US20170124753A1 (en) Producing cut-out meshes for generating texture maps for three-dimensional surfaces
CN110120101A (en) Cylindrical body augmented reality method, system, device based on 3D vision
CN109740521A (en) The parking stall location determining method and device of automatic parking, electronic equipment and computer-readable medium
CN110709797A (en) Movable platform control method and device and movable platform
CN111427452A (en) Controller tracking method and VR system
WO2017101780A1 (en) Three-dimensional stereoscopic display processing method and apparatus, storage medium and electronic device
CN106445111A (en) Locking method and device for spatial information of virtual reality equipment
JP6924799B2 (en) Programs, image processing methods and image processing systems
CN107811698A (en) Bone reduction method and device, computer-readable recording medium
CN106408654A (en) Three-dimensional map creation method and system
CN108421256A (en) Object's position display methods and equipment
JP2001307074A (en) Three-dimensional model constitution device

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