CN108245890A - The method and apparatus for controlling object of which movement in virtual scene - Google Patents

The method and apparatus for controlling object of which movement in virtual scene Download PDF

Info

Publication number
CN108245890A
CN108245890A CN201810169066.1A CN201810169066A CN108245890A CN 108245890 A CN108245890 A CN 108245890A CN 201810169066 A CN201810169066 A CN 201810169066A CN 108245890 A CN108245890 A CN 108245890A
Authority
CN
China
Prior art keywords
angle
virtual scene
control
movement
control device
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
CN201810169066.1A
Other languages
Chinese (zh)
Other versions
CN108245890B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810169066.1A priority Critical patent/CN108245890B/en
Publication of CN108245890A publication Critical patent/CN108245890A/en
Application granted granted Critical
Publication of CN108245890B publication Critical patent/CN108245890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/428Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving motion or position input signals, e.g. signals representing the rotation of an input controller or a player's arm motions sensed by accelerometers or gyroscopes
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8082Virtual reality

Landscapes

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

Abstract

The invention discloses a kind of method and apparatus for controlling object of which movement in virtual scene.Wherein, this method includes:The first angle of control device rotation is obtained, wherein, control device moves for control targe object in virtual scene;Second angle is determined according to first angle, wherein, in the case where first angle is less than predetermined angle, second angle increases with the increase of first angle, and in the case where first angle is more than or equal to predetermined angle, second angle reduces with the increase of first angle;According to movement speed of the first angle control targe object in virtual scene, and the rotational angle according to second angle control targe object in virtual scene.The present invention solves in the prior art, and the control of object is controlled using straight line based on the handle of 3Dof, can only realize the movement of object and can not realize rotation causes to experience the technical issues of poor.

Description

The method and apparatus for controlling object of which movement in virtual scene
Technical field
The present invention relates to software technology field, in particular to a kind of method for controlling object of which movement in virtual scene And device.
Background technology
VR (Virtual Reality, i.e. virtual reality, abbreviation VR) is by VPL companies of U.S. founder Lanier (Jaron Lanier) is proposed in early 1980s.Its specific intension is:Comprehensively utilize computer graphics system and each The interface equipments such as reality and control are planted, the technology for immersing feeling is provided in three-dimensional environment generating on computers, can interacting. Wherein, computer generation, the three-dimensional environment that can interact be known as virtual environment (i.e. Virtual Environment, abbreviation VE). Virtual reality technology is a kind of technology that can be created with the computer simulation system in the experiencing virtual world.It is given birth to using computer Into a kind of simulated environment, make user using the interactive three-dimensional dynamic vision of Multi-source Information Fusion and the system emulation of entity behavior It is immersed in the environment.
At this stage mobile terminal VR controllers be mainly using rotation 3DOF handle, i.e., respectively deflection (Yaw), Pitch angle (Pitch) and inclination angle (Roll), as shown in Figure 1.This 3 angles are assured that operation handle (i.e. VR controllers) Space be directed toward.Although all big enterprises both provide arm simulation model in the mobile terminal VR development kits of oneself, to simulate Spatial position of the operation handle when this 3 angles change, but these all only simple simulations, can not realize PC ends (for example, HTC Vive, PSVR etc.) the accurately handle position of 6DOF, attitude orientation, therefore thus generate one and ask How topic is interacted and how in various organs using the handle of a 3DOF with the object in virtual scene Dragging, the rotation control of object are carried out using handle, becomes urgent problem to be solved.
In for the above-mentioned prior art, the control of object using straight line is controlled based on the handle of 3Dof, can only realize object The movement of body and can not realize that rotation causes to experience the problem of poor, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of method and apparatus for controlling object of which movement in virtual scene, existing at least to solve Have in technology, the control of object using straight line is controlled based on the handle of 3Dof, the movement of object can only be realized and can not realize Rotation causes to experience the technical issues of poor.
One side according to embodiments of the present invention provides a kind of method for controlling object of which movement in virtual scene, packet It includes:The first angle of control device rotation is obtained, wherein, control device moves for control targe object in virtual scene; Second angle is determined according to first angle, wherein, in the case where first angle is less than predetermined angle, second angle is with first The increase of angle and increase, first angle be more than or equal to predetermined angle in the case of, second angle with first angle increase And reduce;According to movement speed of the first angle control targe object in virtual scene, and according to second angle control targe Rotational angle of the object in virtual scene.
Further, the first angle of control device rotation is obtained, including:Determine the first court before control device rotation To;The second direction after control device rotation is obtained, and first angle is determined according to the second direction and the first direction.
Further, movement speed is directly proportional to first angle, and rotational angle is equal to second angle.
Further, second angle is determined by equation below:B=Arcsin (Sin (a) * k);Wherein, a is first jiao Degree, b are second angle, and k is constant, 0<k<1.
Further, the value range of first angle is 0≤a≤180 degree, and the value range of second angle is 0≤b≤90 Degree, predetermined angle are 90 degree.
Further, based on movement of the Bezier Bezier curve control targe object three times in virtual scene and/or Rotation.
Another aspect according to embodiments of the present invention additionally provides a kind of device for controlling object of which movement in virtual scene, Including:Acquiring unit, for obtaining the first angle of control device rotation, wherein, control device exists for control targe object It is moved in virtual scene;Determination unit, for determining second angle according to first angle, wherein, it is less than pre- in first angle If in the case of angle, second angle increases with the increase of first angle, it is more than or equal to the feelings of predetermined angle in first angle Under condition, second angle reduces with the increase of first angle;Control unit, for according to first angle control targe object in void Intend the movement speed moved in scene, and the rotational angle rotated in virtual scene according to second angle control targe object.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage medium, and the storage medium includes storage Program, wherein, equipment where the storage medium is controlled when described program is run performs arbitrary in above method embodiment The method of object of which movement in the control virtual scene of one.
Another aspect according to embodiments of the present invention additionally provides a kind of processor, and the processor is used to run program, Wherein, the side of object of which movement in the control virtual scene of any one in above method embodiment is performed when described program is run Method.
According to embodiments of the present invention, a kind of terminal is additionally provided, including:One or more processors, memory, display dress It puts and one or more program, wherein, one or more of programs are stored in the memory, and are configured as It is performed by one or more of processors, one or more of programs include arbitrary in above method embodiment for performing The method of object of which movement in the control virtual scene of one.
In embodiments of the present invention, the first angle rotated by obtaining control device, wherein, control device is used to control Target object moves in virtual scene;Second angle is determined according to first angle, wherein, it is less than preset angle in first angle In the case of degree, second angle increases with the increase of first angle, in the case where first angle is more than or equal to predetermined angle, Second angle reduces with the increase of first angle;According to mobile speed of the first angle control targe object in virtual scene Degree, and the rotational angle according to second angle control targe object in virtual scene have reached and have controlled three by control device Object is moved or is rotated and to the purpose that the moving curve of object is more realistically simulated in dimension virtual scene, so as to real The technique effect for improving the user experience that user is immersed in three-dimensional virtual scene is showed, and then has solved in the prior art, be based on The handle of 3Dof controls the control of object using straight line, can only realize the movement of object and can not realize rotation cause experience compared with The technical issues of poor.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of optionally by the schematic diagram of the handle controller of 3DOF control object according to prior art;
Fig. 2 is the method flow diagram of object of which movement in a kind of control virtual scene according to embodiments of the present invention;
Fig. 3 is the method flow diagram of object of which movement in a kind of optional control virtual scene according to embodiments of the present invention;
Fig. 4 is a kind of optional three bezier curve schematic diagram according to prior art;
Fig. 5 is a kind of optional three bezier curve schematic diagram according to the embodiment of the present application;
Fig. 6 is a kind of signal for optionally object being controlled to move by three bezier curve according to the embodiment of the present application Figure;
Fig. 7 is the schematic device of object of which movement in a kind of control virtual scene according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
According to embodiments of the present invention, a kind of embodiment of the method for controlling object of which movement in virtual scene is provided, is needed Bright, step shown in the flowchart of the accompanying drawings can be held in the computer system of such as a group of computer-executable instructions Row, although also, show logical order in flow charts, it in some cases, can be to be different from sequence herein Perform shown or described step.
Fig. 2 is the method flow diagram of object of which movement in a kind of control virtual scene according to embodiments of the present invention, such as Fig. 2 institutes Show, this method comprises the following steps:
Step S202 obtains the first angle of control device rotation, wherein, control device is for control targe object in void Intend moving in scene.
As a kind of optional embodiment, above-mentioned target object can be three-dimensional virtual scene (for example, VR scene of game) In dummy object to be controlled, personage, the flying object of including but not limited to various game roles etc.;Above-mentioned control device include but The interactive device (for example, the helmet, 3D mouse, glasses, bracelet, handle etc.) being not limited in VR game, optionally, can also be Interactive device in AR game.Above-mentioned first angle can be the target pair in user controls virtual scene by control device During as movement, the angle of control device rotation.
Step S204 determines second angle according to first angle, wherein, it is the situation less than predetermined angle in first angle Under, second angle increases with the increase of first angle, in the case where first angle is more than or equal to predetermined angle, second angle Reduce with the increase of first angle.
Specifically, above-mentioned second angle can be the angle that the first angle rotated according to control device obtains, In, in the case that first angle is less than predetermined angle, second angle increases with the increase of first angle;When first angle is big In the case of equal to predetermined angle, second angle reduces with the increase of first angle.
In a kind of optional embodiment, the value range of above-mentioned first angle can be 0≤a≤180 degree, above-mentioned second jiao The value range of degree can be 0≤b≤90 degree, and predetermined angle can be 90 degree.As can be seen that first angle can be acute angle, May also be obtuse angle, and second angle is always acute angle, and when first angle is acute angle, second angle with first angle increase And increase;When first angle is obtuse angle, second angle reduces with the increase of first angle.
Step S206, according to movement speed of the first angle control targe object in virtual scene, and according to second jiao Spend rotational angle of the control targe object in virtual scene.
Specifically, after the first angle for the control device of control targe object is got, according to first angle control Movement speed of the target object processed in three-dimensional virtual scene, according to second angle control targe object in three-dimensional virtual scene Rotational angle, since second angle is always acute angle, and reduce with the increase of first angle, can cause entire curve It is maintained at a same shape of the similar fishing rod being bent rather than a curve in big arch so that simulation dragging object hydraulically Curve seem more have strength sense.
From the foregoing, it will be observed that in the above-mentioned implementation of the application, will be used to control in three-dimensional virtual scene to hand over target object Movement speed of angle (i.e. first angle) the control targe object of mutual control device rotation in three-dimensional virtual scene, and will Rotational angle of the second angle control targe object determined according to first angle in three-dimensional virtual scene, easily pays attention to It is that in the case that first angle is less than predetermined angle, second angle increases with the increase of first angle;Work as first angle In the case of predetermined angle, second angle reduces with the increase of first angle, has reached and has been controlled by control device Object is moved or is rotated and to the purpose that the moving curve of object is more realistically simulated in three-dimensional virtual scene, thus The technique effect for improving the user experience that user is immersed in three-dimensional virtual scene is realized, and then is solved in the prior art, base The control of object using straight line is controlled in the handle of 3Dof, can only realize the movement of object and can not realize rotation causes to experience The technical issues of poor.
In a kind of optional embodiment, as shown in figure 3, obtaining the first angle of control device rotation, it can include such as Lower step:
Step S302 determines the first direction before control device rotation;
Step S304, obtains the second direction after control device rotation, and according to the second direction and first towards determining the One angle.
Specifically, in the above-described embodiments, when user controls the object in three-dimensional virtual scene to move by control device When, it first has to choose target object to be moved, and determine the position (i.e. first position) of target object to be moved, it is general to use Which object family controls by control device, and control device can be towards which object, therefore, it is possible to according to target object in three-dimensional First position in virtual scene determines first direction of the control device before the movement of control targe object, when user passes through control During control equipment control targe object moves, certain angle can be rotated by control device, is stopped according to control device Direction (the second direction) during rotation, it may be determined that the angle rotated during the entire process of the movement of control device control targe object Degree, i.e. first angle, to determine the direction of object movement or distance in three-dimensional virtual scene according to the first angle.
Optionally, as a kind of optional embodiment, movement speed of the target object in three-dimensional virtual scene can be with First angle is directly proportional, and the angle that target object rotates in three-dimensional virtual scene in moving process is equal to second angle.
Based on any one above-mentioned optional embodiment, the curve movement of above-mentioned target object can meet Bezier three times Bezier curve.
Easily it is noted that when being interacted by the object in control device and three-dimensional virtual scene, pass through acquisition The azimuth information of handle controller in space determines object in three-dimensional scenic according to the azimuth information of handle controller Movement.Since object in space has six-freedom degree, i.e., along the one-movement-freedom-degree of three rectangular co-ordinate axis directions of x, y, z and Around the rotational freedom of these three reference axis.Movement of the target object in virtual scene not only includes the shifting to all directions It is dynamic, the rotation of itself is further included, and the existing control device interacted with three-dimensional virtual scene generally uses the handle control of 3DOF Device processed controls the control of object in three-dimensional virtual scene using straight line, straight line dragging, cash get up it is very stiff, and It can not embody and pull strength sense, only object be allowed simply to be moved, and can not realize rotation.As a kind of optional implementation Mode, the application can simulate dragging curve using 3 rank Bezier curves, assign curve elasticity, embody and pull strength sense.Root According to the movement of the angle dynamic control object of Bezier curve, rotary speed, allow player that can intuitively find out that oneself pulls object The strength of body.
It is briefly described below for Bezier curve, Bezier curve is the number applied to X-Y scheme application program Curve is learned, wherein 3 rank Bezier curves are the smooth curves drawn out according to four arbitrary point coordinates in position.P0、P1、 Tetra- points of P2, P3 define three bezier curve in plane or in three dimensions.Curve originates in P0 and moves towards P1, and from P2 Direction come P3.Generally without going past P1 or P2;The two points only provide directional information there.Between between P0 and P1 Away from determining that curve is transferring to become into before P3, move towards " length how long have " in P2 directions.The parameter shape of 3 rank Bezier curves Formula can be with formula (1) Suo Shi:
B (t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)+P3t3,t∈[0,1] (1)
The application is as follows using the thinking of 3 rank Bezier curves:Using P0 points as handle point, by P3 to need to control Object where point, P1 points be according to handle towards calculate a point, P2 is according to vectorial P0->P3 and vector p0->P1 Between angle a calculate an angle b, and by P3->P0 Vector rotation angles b is obtained, by adjusting wherein a, b angle pair It should be related to and P0->p1、p3->P2 vector lengths obtain 3 rank Bezier curve of different shapes, so as to more preferable simulation The curve shown assigns curve elasticity, so as to obtain preferably strength sense.Easily it is noted that P0->p1、p3->P2 to The length of amount can self-defined setting, user can voluntarily be adjusted to the best length of effect as needed.
Easily it is noted that three-dimensional based on 3 rank Bezier curves (simulation pulls the dragging curve of target object) control (during mobile and/or rotation, above-mentioned angle a and b cannot be simple direct ratio or anti-for target object movement in virtual scene Than relationship, this is because when a by acute angle increases obtuse angle with pulling always, if being simple direct ratio or inverse ratio according to a and b Relationship, then b can also become obtuse angle, then it is exactly shape as shown in Figure 4 that curve, which is drawn,.
As a kind of optional embodiment, the magnitude relationship of first angle and second angle is defined to formula by the application (2) relationship shown in:
B=Arcsin (Sin (a) * k); (2)
Wherein, a is first angle, and b is second angle, and k is constant, 0<k<1.
Specifically, it after first angle of the control device in spatial rotational is got, can be calculated by above-mentioned formula (2) To corresponding second angle.Due to working as the value range of first angle in the case of 0≤a≤180 degree, Sin (a) is greater than 0, then the b (i.e. second angle) being calculated by arcsin ensures that clock as acute angle, and can become in a angles To after obtuse angle, reduce with the increase of a angles so that the fishing rod that entire curve one is maintained at a similar bending is the same Shape, as shown in figure 5, a rather than curve in big arch as shown in Figure 4.
Obviously, the dragging strength sense that Fig. 5 is presented it can be seen from curve shown in Fig. 4 and Fig. 5 is more sufficient.
Based on above-described embodiment, in order to realize the movement of object in three-dimensional virtual scene, rotation, in specific implementation process In, direction can be oriented with handle and emit a ray, ray collides the collision body of object, so since handle position Object is chosen by pinning a button on handle afterwards, then starts to drag object, into following process:Such as Fig. 6 institutes Show, using P0 as handle point, P3 be by control object where point, vectorial P0->P1 is the direction of handle, by Fig. 4 and Fig. 5 Shown content it is found that angle P1P0P3 (i.e. first angle) changes with the direction of handle and is changed, so be 0~180 degree it Between change, angle P0P3P2 (i.e. second angle) is always acute angle, and when angle P1P0P3 (i.e. first angle) be acute angle when, angle P0P3P2 (i.e. second angle) increases with the increase of angle P1P0P3 (i.e. first angle);When angle P1P0P3 (i.e. first angle) is During obtuse angle, angle P0P3P2 (i.e. second angle) is reduced with the increase of angle P1P0P3, thus obtains two kinds of change type angles, The two angles can be respectively intended to the different motion of operation object.
Wherein, in the target object movement in controlling three-dimensional virtual scene, since angle P1P0P3 follows handle to change, and Bigger with the angle for setting about rotational handle, angle P1P0P3 is also increasing, this angle can be used for controlling the movement of object, most It is simply operating speed and the proportional movement of angle, it is assumed that the angle value of angle P1P0P3 is a, then the movement speed of object can be with It is expressed as:V=a*k, (k is constant, value range 0<k<1).Easily it is noted that the moving direction of target object is according to need It asks different variable, in the case that target object can move freely, can directly use vector P3->The direction of P2 is as mesh Mark the moving direction of object.And if target object there are one fixed tracks to limit, i.e., there are one fixed movement sides To, then it can be by judging vector P3->P2 plane (it is parallel with its moving direction and with straight line P0->P3 is vertical to be put down Face) on projection v, v and target object moving direction angle be less than certain value when can allow the target object along it The moving direction movement of setting.
In controlling three-dimensional virtual scene target object movement when, it is different from the movement of control targe object, rotation when Change in location will not be occurred by waiting object, if the angle that can be become larger always in this way using angle P1P0P3 controls rotational angle Words, then object can handle be moved to towards rear i.e. angle P1P0P be obtuse angle when, object can be still in the change with angle P1P0P3 It rotates greatly or even will appear the faster situation of speed, in order to solve this problem, the application is controlled using angle P0P3P2 System, when angle P0P3P2 becomes larger since 0, when angle P1P0P3 is acute angle, angle P0P3P2 becomes larger and becomes larger with angle P1P0P3's, object Body rotational angle also increases therewith, and when angle P1P0P3 obtuse angle, angle P0P3P2 reduces with the increase of P1P0P3, object rotation Angle also becomes smaller therewith, visually seems more normal in this way.
By the above embodiments of the present application, the movement of object and rotation are controlled using the different angle of Bezier curve, The movement of object, rotation can be made to be more in line with the cognition of people, more there is the sense of reality.It is simulated using 3 rank Bezier curves and pulls song Line assigns curve elasticity, curve is made to seem more strong sense, can increase feeling of immersion of the player in VR.
According to embodiments of the present invention, a kind of method for being used to implement object of which movement in above-mentioned control virtual scene is additionally provided Device embodiment, Fig. 7 is the schematic device of object of which movement in a kind of control virtual scene according to embodiments of the present invention, such as Shown in Fig. 7, which includes:Acquiring unit 701, determination unit 703 and control unit 705.
Wherein, acquiring unit 701, for obtaining the first angle of control device rotation, wherein, control device is used to control Target object moves in virtual scene;
Determination unit 703, for determining second angle according to first angle, wherein, it is less than preset angle in first angle In the case of degree, second angle increases with the increase of first angle, in the case where first angle is more than or equal to predetermined angle, Second angle reduces with the increase of first angle;
Control unit 705, for the movement speed moved in virtual scene according to first angle control targe object, and The rotational angle rotated in virtual scene according to second angle control targe object.
Herein it should be noted that above-mentioned acquiring unit 701, determination unit 703 and control unit 705 correspond to method reality Apply the step S202 to S206 in example, the example and application scenarios that above-mentioned module and corresponding step are realized are identical but unlimited In above method embodiment disclosure of that.It should be noted that above-mentioned module can be such as a part of of device It is performed in the computer system of a group of computer-executable instructions.
From the foregoing, it will be observed that in the above-mentioned implementation of the application, will be used to control in three-dimensional virtual scene to hand over target object Movement speed of angle (i.e. first angle) the control targe object of mutual control device rotation in three-dimensional virtual scene, and will Rotational angle of the second angle control targe object determined according to first angle in three-dimensional virtual scene, easily pays attention to It is that in the case that first angle is less than predetermined angle, second angle increases with the increase of first angle;Work as first angle In the case of predetermined angle, second angle reduces with the increase of first angle, has reached and has been controlled by control device Object is moved or is rotated and to the purpose that the moving curve of object is more realistically simulated in three-dimensional virtual scene, thus The technique effect for improving the user experience that user is immersed in three-dimensional virtual scene is realized, and then is solved in the prior art, base The control of object using straight line is controlled in the handle of 3Dof, can only realize the movement of object and can not realize rotation causes to experience The technical issues of poor.
In a kind of optional embodiment, above-mentioned acquiring unit can include:First determining module, for determining that control is set The first direction before standby rotation;Second determining module, for obtaining the second direction after control device rotation, and according to the second court First angle is determined to the first direction.
In a kind of optional embodiment, above-mentioned movement speed is directly proportional to first angle, and rotational angle is equal to second jiao Degree.
In a kind of optional embodiment, above-mentioned determination unit is additionally operable to determine second angle by equation below:B= Arcsin(Sin(a)*k);Wherein, a is first angle, and b is second angle, and k is constant, 0<k<1.
In a kind of optional embodiment, the value range of above-mentioned first angle is 0≤a≤180 degree, and second angle takes Value ranging from 0≤b≤90 degree, predetermined angle are 90 degree.
It is above-mentioned based on shellfish plug three times in a kind of optional embodiment based on any one above-mentioned optional device embodiment Movement and/or rotation of that Bezier curve control targe object in virtual scene.
According to embodiments of the present invention, a kind of storage medium is additionally provided, the storage medium includes the program of storage, In, it is optional that equipment where the storage medium is controlled when described program is run performs any one in above method embodiment Or the preferred method for controlling object of which movement in virtual scene.
According to embodiments of the present invention, a kind of processor is additionally provided, the processor is used to run program, wherein, it is described Any one in above method embodiment is performed when program is run and optionally or preferably controls object of which movement in virtual scene Method.
According to embodiments of the present invention, a kind of terminal is additionally provided, including:One or more processors, memory, display dress It puts and one or more program, wherein, one or more of programs are stored in the memory, and are configured as It is performed by one or more of processors, one or more of programs include arbitrary in above method embodiment for performing The method of object of which movement in one optional or preferred control virtual scene.
This application provides Bezier curve control object rotation and moving method is used in a kind of VR, first angle is utilized The speed of object movement is controlled, the angle gone to using second angle control object, wherein, first angle is rotated with handle The increase of angle and it is increasing, second angle is increasing with the increase of angle of handle rotation when in acute angle, It is less and less with the increase of the angle of handle rotation when in obtuse angle, thus the curve that preferably simulative display comes out, Curve elasticity is assigned, so as to obtain preferably strength sense.
Above-mentioned device can include processor and memory, and said units can be stored in storage as program unit In device, above procedure unit stored in memory is performed by processor to realize corresponding function.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
The sequence of above-mentioned the embodiment of the present application does not represent the quality of embodiment.
In above-described embodiment of the application, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.In several embodiments provided herein, it should be appreciated that It arrives, disclosed technology contents can be realized by another way.
Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, can be one Kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or It is desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses When, it can be stored in a computer read/write memory medium.Based on such understanding, the technical solution of the application is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the application whole or Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art For member, under the premise of the application principle is not departed from, several improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (10)

  1. A kind of 1. method for controlling object of which movement in virtual scene, which is characterized in that including:
    The first angle of control device rotation is obtained, wherein, the control device is for control targe object in virtual scene Movement;
    Second angle is determined according to the first angle, wherein, in the case where the first angle is less than predetermined angle, institute It states second angle with the increase of the first angle to increase, is more than or equal to the situation of the predetermined angle in the first angle Under, the second angle reduces with the increase of the first angle;
    Movement speed of the target object in the virtual scene is controlled, and according to described second according to the first angle Angle controls rotational angle of the target object in the virtual scene.
  2. 2. according to the method described in claim 1, it is characterized in that, obtain control device rotation first angle, including:
    Determine the first direction before the control device rotation;
    The second direction after the control device rotation is obtained, and according to determining second direction and first direction First angle.
  3. 3. according to the method described in claim 1, it is characterized in that, the movement speed is directly proportional to the first angle, institute Rotational angle is stated equal to the second angle.
  4. 4. according to the method described in claim 1, it is characterized in that, second angle is determined by equation below:
    B=Arcsin (Sin (a) * k);
    Wherein, a is first angle, and b is second angle, and k is constant, 0<k<1.
  5. 5. according to the method described in claim 4, it is characterized in that, the value range of the first angle be 0≤a≤180 degree, The value range of the second angle is 0≤b≤90 degree, and the predetermined angle is 90 degree.
  6. 6. method as claimed in any of claims 1 to 5, which is characterized in that based on the songs of Bezier Bezier three times Movement and/or rotation of the target object described in line traffic control in the virtual scene.
  7. 7. a kind of device for controlling object of which movement in virtual scene, which is characterized in that including:
    Acquiring unit, for obtaining the first angle of control device rotation, wherein, the control device is used for control targe object It is moved in virtual scene;
    Determination unit, for determining second angle according to the first angle, wherein, it is less than preset angle in the first angle In the case of degree, the second angle increases with the increase of the first angle, is more than or equal in the first angle described In the case of predetermined angle, the second angle reduces with the increase of the first angle;
    Control unit, for the movement speed moved in the virtual scene according to the first angle control targe object, And the rotational angle rotated in the virtual scene according to the second angle control target object.
  8. 8. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein, it is run in described program When control the storage medium where equipment perform claim object in control virtual scene described in 1 to 7 any one is required to transport Dynamic method.
  9. 9. a kind of processor, which is characterized in that the processor is used to run program, wherein, right of execution when described program is run Profit requires the method for controlling object of which movement in virtual scene described in any one in 1 to 7.
  10. 10. a kind of terminal, which is characterized in that including:
    One or more processors, memory, display device and one or more programs, wherein, one or more of journeys Sequence is stored in the memory, and is configured as being performed by one or more of processors, one or more of Program is included for the method for object of which movement in the control virtual scene described in any one in perform claim requirement 1 to 7.
CN201810169066.1A 2018-02-28 2018-02-28 Method and device for controlling movement of object in virtual scene Active CN108245890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810169066.1A CN108245890B (en) 2018-02-28 2018-02-28 Method and device for controlling movement of object in virtual scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810169066.1A CN108245890B (en) 2018-02-28 2018-02-28 Method and device for controlling movement of object in virtual scene

Publications (2)

Publication Number Publication Date
CN108245890A true CN108245890A (en) 2018-07-06
CN108245890B CN108245890B (en) 2021-04-27

Family

ID=62745630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810169066.1A Active CN108245890B (en) 2018-02-28 2018-02-28 Method and device for controlling movement of object in virtual scene

Country Status (1)

Country Link
CN (1) CN108245890B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109200580A (en) * 2018-07-17 2019-01-15 派视觉虚拟现实(深圳)软件技术有限公司 A kind of method, device and equipment that control game role moves at a distance
CN109542222A (en) * 2018-11-13 2019-03-29 深圳市创凯智能股份有限公司 Three-dimensional view angle control method, device, equipment and readable storage medium storing program for executing
CN109847349A (en) * 2019-02-19 2019-06-07 网易(杭州)网络有限公司 Technical ability method for releasing, device and storage medium in game
CN110755847A (en) * 2019-10-30 2020-02-07 腾讯科技(深圳)有限公司 Virtual operation object generation method and device, storage medium and electronic device
CN112328154A (en) * 2020-11-11 2021-02-05 维沃移动通信有限公司 Equipment control method and device and electronic equipment
US11380037B2 (en) 2019-10-30 2022-07-05 Tencent Technology (Shenzhen) Company Limited Method and apparatus for generating virtual operating object, storage medium, and electronic device
CN118296581A (en) * 2024-06-06 2024-07-05 暨南大学 VR limb interaction-based continuous identity authentication method and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060040740A1 (en) * 2004-08-23 2006-02-23 Brain Box Concepts, Inc. Video game controller
CN102226880A (en) * 2011-06-03 2011-10-26 北京新岸线网络技术有限公司 Somatosensory operation method and system based on virtual reality
CN104090465A (en) * 2014-06-17 2014-10-08 福建水立方三维数字科技有限公司 Three-dimensional interactive projection imaging method
CN105359054A (en) * 2013-06-10 2016-02-24 微软技术许可有限责任公司 Locating and orienting device in space
CN106095103A (en) * 2016-06-16 2016-11-09 世源科技工程有限公司 The display control method of virtual reality, device and relevant device
CN106293070A (en) * 2016-07-27 2017-01-04 网易(杭州)网络有限公司 Virtual role view directions control method and device
CN106873767A (en) * 2016-12-30 2017-06-20 深圳超多维科技有限公司 The progress control method and device of a kind of virtual reality applications
CN106911891A (en) * 2017-02-15 2017-06-30 惠州Tcl移动通信有限公司 The method and system that a kind of VR auxiliary is taken photo by plane
CN107045389A (en) * 2017-04-14 2017-08-15 腾讯科技(深圳)有限公司 A kind of method and device for realizing the fixed controlled thing of control
CN107198879A (en) * 2017-04-20 2017-09-26 网易(杭州)网络有限公司 Control method for movement, device and terminal device in virtual reality scenario
CN107247512A (en) * 2017-05-05 2017-10-13 北京凌宇智控科技有限公司 A kind of rotating direction control method, apparatus and system
CN107577345A (en) * 2017-09-04 2018-01-12 苏州英诺迈医学创新服务有限公司 A kind of method and device for controlling virtual portrait roaming

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060040740A1 (en) * 2004-08-23 2006-02-23 Brain Box Concepts, Inc. Video game controller
CN102226880A (en) * 2011-06-03 2011-10-26 北京新岸线网络技术有限公司 Somatosensory operation method and system based on virtual reality
CN105359054A (en) * 2013-06-10 2016-02-24 微软技术许可有限责任公司 Locating and orienting device in space
CN104090465A (en) * 2014-06-17 2014-10-08 福建水立方三维数字科技有限公司 Three-dimensional interactive projection imaging method
CN106095103A (en) * 2016-06-16 2016-11-09 世源科技工程有限公司 The display control method of virtual reality, device and relevant device
CN106293070A (en) * 2016-07-27 2017-01-04 网易(杭州)网络有限公司 Virtual role view directions control method and device
CN106873767A (en) * 2016-12-30 2017-06-20 深圳超多维科技有限公司 The progress control method and device of a kind of virtual reality applications
CN106911891A (en) * 2017-02-15 2017-06-30 惠州Tcl移动通信有限公司 The method and system that a kind of VR auxiliary is taken photo by plane
CN107045389A (en) * 2017-04-14 2017-08-15 腾讯科技(深圳)有限公司 A kind of method and device for realizing the fixed controlled thing of control
CN107198879A (en) * 2017-04-20 2017-09-26 网易(杭州)网络有限公司 Control method for movement, device and terminal device in virtual reality scenario
CN107247512A (en) * 2017-05-05 2017-10-13 北京凌宇智控科技有限公司 A kind of rotating direction control method, apparatus and system
CN107577345A (en) * 2017-09-04 2018-01-12 苏州英诺迈医学创新服务有限公司 A kind of method and device for controlling virtual portrait roaming

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109200580A (en) * 2018-07-17 2019-01-15 派视觉虚拟现实(深圳)软件技术有限公司 A kind of method, device and equipment that control game role moves at a distance
CN109542222A (en) * 2018-11-13 2019-03-29 深圳市创凯智能股份有限公司 Three-dimensional view angle control method, device, equipment and readable storage medium storing program for executing
CN109542222B (en) * 2018-11-13 2021-12-14 深圳市创凯智能股份有限公司 Three-dimensional visual angle control method, device and equipment and readable storage medium
CN109847349A (en) * 2019-02-19 2019-06-07 网易(杭州)网络有限公司 Technical ability method for releasing, device and storage medium in game
CN110755847A (en) * 2019-10-30 2020-02-07 腾讯科技(深圳)有限公司 Virtual operation object generation method and device, storage medium and electronic device
CN110755847B (en) * 2019-10-30 2021-03-16 腾讯科技(深圳)有限公司 Virtual operation object generation method and device, storage medium and electronic device
US11380037B2 (en) 2019-10-30 2022-07-05 Tencent Technology (Shenzhen) Company Limited Method and apparatus for generating virtual operating object, storage medium, and electronic device
CN112328154A (en) * 2020-11-11 2021-02-05 维沃移动通信有限公司 Equipment control method and device and electronic equipment
CN112328154B (en) * 2020-11-11 2022-08-30 维沃移动通信有限公司 Equipment control method and device and electronic equipment
CN118296581A (en) * 2024-06-06 2024-07-05 暨南大学 VR limb interaction-based continuous identity authentication method and system

Also Published As

Publication number Publication date
CN108245890B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN108245890A (en) The method and apparatus for controlling object of which movement in virtual scene
US6529210B1 (en) Indirect object manipulation in a simulation
US20140078144A1 (en) Systems and methods for avatar creation
CN105913471B (en) The method and apparatus of picture processing
CN111028317B (en) Animation generation method, device and equipment for virtual object and storage medium
WO1996036945A1 (en) Picture processing device, picture processing method, game device using same, and memory medium
Henry et al. Environment-aware real-time crowd control
CN108837510A (en) Methods of exhibiting and device, storage medium, the electronic device of information
CN106952340A (en) The method and device of three-dimensional modeling
Ho et al. A finite state machine based on topology coordinates for wrestling games
CN105243268B (en) A kind of map localization method, device and user terminal
Chen et al. A heuristic approach to the simulation of water drops and flows on glass panes
Thorn Learn unity for 2d game development
CN108290071A (en) For determining program, electronic device, system and method for executing the resource allocation drawn in the case of the intention of forecasting game person
CN108734774A (en) Virtual limbs construction method and device, man-machine interaction method
He et al. Real-time crowd formation control in virtual scenes
CN114254501B (en) Large-scale grassland rendering and simulating method
JPH11509009A (en) Weather phenomenon effect simulation method and apparatus
Chen et al. Real-time continuum grass
Jeon et al. A sketch interface to empower novices to create 3D animations
O'Sullivan et al. Metropolis: multisensory simulation of a populated city
CN109116990B (en) A kind of method, apparatus, equipment and the computer readable storage medium of mobile control
Balcomb et al. The Effects of Hand Representation on Experience and Performance for 3D Interactions in Virtual Reality Games
Kang et al. Real-time cloud modelling and rendering approach based on L-system for flight simulation
JP2009251887A (en) Image generation system, program, and information storage medium

Legal Events

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