CN109529337A - A kind of object's position is towards adaptive approach - Google Patents
A kind of object's position is towards adaptive approach Download PDFInfo
- Publication number
- CN109529337A CN109529337A CN201811105591.3A CN201811105591A CN109529337A CN 109529337 A CN109529337 A CN 109529337A CN 201811105591 A CN201811105591 A CN 201811105591A CN 109529337 A CN109529337 A CN 109529337A
- Authority
- CN
- China
- Prior art keywords
- player
- towards
- spherical rotary
- component
- adaptive approach
- 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.)
- Withdrawn
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing 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
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing 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/428—Processing 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
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/60—Methods for processing data by generating or executing the game program
- A63F2300/66—Methods for processing data by generating or executing the game program for rendering three dimensional images
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
A kind of object's position is put object and is placed into three-dimensional sphere scene towards adaptive approach, including selection;The transformation matrix of player is calculated, and obtains spherical rotary component;The existing spherical rotary component of object, and final spherical rotary component are put described in acquisition;Using the final spherical rotary component rotation process is carried out to described put on object.Towards adaptive approach the position that object is put when object is put in any position of three-dimensional global world and tool may be implemented towards the position and orientation that can adapt to player automatically, placement position and direction are more reasonable in object's position of the invention.
Description
Technical field
The present invention relates to three dimensional virtual technique field, more particularly to a kind of object's position towards adaptive approach.
Background technique
In the three-dimensional spherical variable world, player needs to put object in spherical any position.Simultaneously with player's angle
Observation, puts object and needs position reasonable, and can respond the rotation process of player, and needs after rotating from player visual angle correct.
Summary of the invention
In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a kind of object's positions towards adaptively
Method may be implemented when object is put in any position of global world, and placement position is reasonable.
To achieve the above object, object's position provided by the invention is towards adaptive approach, comprising the following steps:
Selection is put object and is placed into three-dimensional sphere scene;
The transformation matrix of player is calculated, and obtains spherical rotary component;
The existing spherical rotary component of object, and final spherical rotary component are put described in acquisition;
Using the final spherical rotary component rotation process is carried out to described put on object.
Further, the step of transformation matrix for calculating player, including,
By player towards crown direction, right-hand direction is as coordinate system;
Successively using player towards, crown direction, right-hand direction as the first row row vector, the second every trade vector, third every trade
Vector calculates transformation matrix.
Further, described the step of obtaining spherical rotary component is that the transformation matrix of the player is decomposited rotating part
It is allocated as the spherical rotary component for player.
Further, the transformation matrix by the player decomposes, and is the mathematic decomposition method using matrix, removes the object for appreciation
The translational component and scaling component of the transformation matrix of family, extract the spherical rotary component of player.
Further, the step of acquisition final spherical rotary component is using following formula:
R=Rvisual*Rsphere
Wherein, R is final spherical rotary component, RvisualTo put the existing rotational component of object, RsphereFor the spherical surface of player
Rotational component.
To achieve the above object, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer and refer to
It enables, described in any item object's positions as described above is executed when the computer instruction is run and are walked towards adaptive approach
Suddenly.
To achieve the above object, described to deposit the present invention also provides a kind of gaming terminal device, including memory and processor
The computer instruction run on the processor is stored on reservoir, the processor executes when running the computer instruction
Object's position as described above is towards adaptive approach step.
A kind of object's position of the invention has the advantages that towards adaptive approach
1) when object is put in any position of global world, the direction and position for putting object have reasonability.
2) player exercises can be responded, player's expected reasonable impression in gaming is provided.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, and with it is of the invention
Embodiment together, is used to explain the present invention, and is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is object's position according to the present invention towards adaptive approach flow chart;
Fig. 2 is object's position according to the present invention towards one schematic diagram of adaptive approach embodiment.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is object's position according to the present invention towards adaptive approach flow chart, below with reference to Fig. 1, to the present invention
Object's position be described in detail towards adaptive approach.
Firstly, any position in three-dimensional global world selects to put object towards a direction in step 101.
In this step, the direction for putting object may be mistake from the angle of player, need to change by calculating and applying pendulum
The direction for putting object, which makes this put the position and orientation of object, has reasonability from the angular observation of player.
Step 102, calculate and obtain the transformation matrix of player.Use player's face direction Vlookat, crown direction VupThe right side and
Hand direction VrightEstablish coordinate system;By MsphereIt is set as unit matrix, then successively by Vlookat、Vup、VrightIt is set as Msphere's
The first row row vector, the second every trade vector, the third line row vector calculate the transformation matrix M of playersphere;
In step 103, the transformation matrix M of the player is obtainedsphereDecomposite spherical rotary component.Wherein, from transformation matrix
MsphereIn decomposite rotating part as spherical rotary components Rsphere, decomposition method is the mathematic decomposition method using matrix, is moved
Except transformation matrix MsphereTranslational component and scaling component, extract spherical rotary components Rsphere.Use the mathematics side of matrix
Method obtains the rotational component of transformation matrix, and method is simple, easy to operate;Rotational component is decomposited, in order to revolve the spherical surface
Turn components RsphereApplied to putting object.It realizes and puts the reasonability of object's position and direction from player's angular observation.
In step 104, by spherical rotary components RsphereIt is applied to and puts on object, carry out rotation process to object is put.
The application method is that the existing spherical rotary components R of object is put in extractionvisual(extracting method and said extracted spherical rotary point
Measure RsphereIt is identical), calculate final rotational component R=Rvisual * Rsphere, R is set to put the new spherical rotary of object
Component carries out rotation process to object is put.Rotation process is carried out to object is put, so that this puts the position of object and direction
With reasonability.It is correctly, to provide player's sight in terms of player's angle in this way, putting position and the direction of object after modification
Expected reasonable impression when survey.
Fig. 2 is a kind of object's position according to the present invention towards one schematic diagram of adaptive approach embodiment.
As shown in Fig. 2, can be changed in the world in three-dimensional spherical shape, left figure is using before the present invention, and player's trial is put one and stood
Cube, cube direction in global scope is consistent with sphere, but from the point of view of player's angle, cube is inclination mistake.
Smiling face in figure represent player position present in three-dimensional global world and towards direction, firstly, using player in ball
On face towards Vlookat, overhead is to Vup, right-hand direction VrightAs coordinate system, the transformation matrix of player is calculated
MsphereIf the transformation matrix MsphereFor unit matrix, if VlookatFor MsphereThe first row row vector, if VupFor MphereThe
Two every trade vectors, if VlookatFor MsphereThe third line row vector calculates the transformation matrix M of playersphereAfterwards, remove player's
Transformation matrix MsphereTranslational component and scaling component, extract the rotational component R of playersphere.Secondly, using on cube
Main view Dlookat, overhead is to Dup, right direction DrightAs coordinate system, the transformation matrix M of cube is calculatedvisualIf
The transformation matrix MvisualFor unit matrix, if DlookatFor MvisualThe first row row vector, if DupFor MvisualSecond every trade to
Amount, if DlookatFor MvisualThe third line row vector calculates the transformation matrix M of cubevisualAfterwards, the transformation square of cube is removed
Battle array MvisualTranslational component and scaling component, extract the existing spherical rotary components R of cubevisual.Finally, calculating cube
Final spherical rotary components R=R of bodyvisual*Rspher, player according to the final rotational component rotation process cube of cube,
Keep direction that cube is last and position as shown on the right, is correctly, to provide player in gaming from the point of view of player
It is expected that reasonable impression.
Preferably, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, the meter
Described in any item object's positions as described above are executed towards adaptive approach step when the instruction operation of calculation machine.
Preferably, it the present invention also provides a kind of gaming terminal device, including memory and processor, is stored up on the memory
There is the computer instruction run on the processor, the processor executes when running the computer instruction such as institute above
The object's position stated is towards adaptive approach step.
Those of ordinary skill in the art will appreciate that: the foregoing is only a preferred embodiment of the present invention, and does not have to
In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art
For, still can to foregoing embodiments record technical solution modify, or to part of technical characteristic into
Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include
Within protection scope of the present invention.
Claims (7)
1. a kind of object's position is towards adaptive approach characterized by comprising
Selection is put object and is placed into three-dimensional sphere scene;
The transformation matrix of player is calculated, and obtains spherical rotary component;
The existing spherical rotary component of object, and final spherical rotary component are put described in acquisition;
Using the final spherical rotary component rotation process is carried out to described put on object.
2. object's position according to claim 1 is towards adaptive approach, which is characterized in that the transformation for calculating player
The step of matrix, including,
By player towards crown direction, right-hand direction is as coordinate system;
Successively using player towards, crown direction, right-hand direction as the first row row vector, the second every trade vector, third every trade
Vector calculates transformation matrix.
3. object's position according to claim 1 is towards adaptive approach, which is characterized in that described to obtain spherical rotary point
The step of amount is the spherical rotary component that the transformation matrix of the player is decomposited rotating part as player.
4. object's position according to claim 3 is towards adaptive approach, which is characterized in that the change by the player
Matrix decomposition is changed, is the mathematic decomposition method using matrix, removes the translational component and scaling component of the transformation matrix of the player,
Extract the spherical rotary component of player.
5. object's position according to claim 4 is towards adaptive approach, which is characterized in that described to obtain final spherical surface rotation
The step of turning component is using following formula:
R=Rvisual*Rsphere
Wherein, R is final spherical rotary component, RvisualTo put the existing rotational component of object, RsphereFor the spherical surface of player
Rotational component.
6. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction fortune
Perform claim requires 1 to 5 described in any item object's positions towards adaptive approach step when row.
7. a kind of gaming terminal device, which is characterized in that including memory and processor, store on the memory described
The computer instruction run on processor, perform claim requires any one of 1 to 5 when the processor runs the computer instruction
The object's position is towards adaptive approach step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811105591.3A CN109529337A (en) | 2018-09-21 | 2018-09-21 | A kind of object's position is towards adaptive approach |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811105591.3A CN109529337A (en) | 2018-09-21 | 2018-09-21 | A kind of object's position is towards adaptive approach |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109529337A true CN109529337A (en) | 2019-03-29 |
Family
ID=65841444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811105591.3A Withdrawn CN109529337A (en) | 2018-09-21 | 2018-09-21 | A kind of object's position is towards adaptive approach |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109529337A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070060345A1 (en) * | 2005-06-28 | 2007-03-15 | Samsung Electronics Co., Ltd. | Video gaming system and method |
CN103403766A (en) * | 2011-02-16 | 2013-11-20 | 史克威尔·艾尼克斯有限公司 | Object movement device, method, and program |
CN104136085A (en) * | 2012-02-08 | 2014-11-05 | 科乐美游戏股份有限公司 | Game machine, and, control method of controlling computer and computer program used therein |
CN104268920A (en) * | 2014-09-05 | 2015-01-07 | 无锡梵天信息技术股份有限公司 | Method for utilizing cloth doll physical system for simulating death of character role |
CN108031118A (en) * | 2017-12-12 | 2018-05-15 | 苏州蜗牛数字科技股份有限公司 | One kind establishes surface model interaction body-sensing interfacial process |
-
2018
- 2018-09-21 CN CN201811105591.3A patent/CN109529337A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070060345A1 (en) * | 2005-06-28 | 2007-03-15 | Samsung Electronics Co., Ltd. | Video gaming system and method |
CN103403766A (en) * | 2011-02-16 | 2013-11-20 | 史克威尔·艾尼克斯有限公司 | Object movement device, method, and program |
CN104136085A (en) * | 2012-02-08 | 2014-11-05 | 科乐美游戏股份有限公司 | Game machine, and, control method of controlling computer and computer program used therein |
CN104268920A (en) * | 2014-09-05 | 2015-01-07 | 无锡梵天信息技术股份有限公司 | Method for utilizing cloth doll physical system for simulating death of character role |
CN108031118A (en) * | 2017-12-12 | 2018-05-15 | 苏州蜗牛数字科技股份有限公司 | One kind establishes surface model interaction body-sensing interfacial process |
Non-Patent Citations (1)
Title |
---|
小草的趣味生活: "unity3d围绕物体旋转,围绕某个点旋转", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/624E74597A4EB434E8BA5AD8.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762495B (en) | Virtual reality driving method based on arm motion capture and virtual reality system | |
CN108401461A (en) | Three-dimensional mapping method, device and system, cloud platform, electronic equipment and computer program product | |
CN104835144B (en) | The method for solving camera intrinsic parameter using the picture and orthogonality of the centre of sphere of a ball | |
CN105094335B (en) | Situation extracting method, object positioning method and its system | |
CN104748746B (en) | Intelligent machine attitude determination and virtual reality loaming method | |
CN104981846B (en) | For the device and method of sensing movement sphere | |
CN106826833A (en) | Independent navigation robot system based on 3D solid cognition technologies | |
CN108876910A (en) | A kind of three-dimensional modeling method, device, equipment and computer readable storage medium | |
JP6483832B2 (en) | Method and system for scanning an object using an RGB-D sensor | |
CN110120101B (en) | Cylinder augmented reality method, system and device based on three-dimensional vision | |
CN109035327A (en) | Panorama camera Attitude estimation method based on deep learning | |
CN107705355A (en) | A kind of 3D human body modeling methods and device based on plurality of pictures | |
CN105869214A (en) | Virtual reality device based view frustum cutting method and apparatus | |
CN104331924B (en) | Three-dimensional rebuilding method based on single camera SFS algorithms | |
CN110823214A (en) | Method for estimating relative pose and inertia of space complete non-cooperative target | |
Crow | The origins of the teapot | |
CN108170940B (en) | Method for calculating basic physical quantity of ship body | |
CN106504320A (en) | A kind of based on GPU and the real-time three-dimensional reconstructing method towards depth image | |
CN110243390A (en) | The determination method, apparatus and odometer of pose | |
CN109806595A (en) | Labeling method, device, storage medium, processor and the terminal in orientation | |
CN108734772A (en) | High accuracy depth image acquisition methods based on Kinect fusion | |
CN107590858A (en) | Medical sample methods of exhibiting and computer equipment, storage medium based on AR technologies | |
CN109529337A (en) | A kind of object's position is towards adaptive approach | |
CN108961393A (en) | A kind of human body modeling method and device based on point cloud data stream | |
Prakoonwit et al. | 3D surface point and wireframe reconstruction from multiview photographic images |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190329 |