CN106896940A - Virtual objects are presented effect control method and device - Google Patents
Virtual objects are presented effect control method and device Download PDFInfo
- Publication number
- CN106896940A CN106896940A CN201710110536.2A CN201710110536A CN106896940A CN 106896940 A CN106896940 A CN 106896940A CN 201710110536 A CN201710110536 A CN 201710110536A CN 106896940 A CN106896940 A CN 106896940A
- Authority
- CN
- China
- Prior art keywords
- axis
- virtual objects
- camera
- presented
- acceleration
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present invention proposes that a kind of virtual objects are presented effect control method and device, is related to virtual reality/augmented reality field.By the acceleration for obtaining the X-axis of three axle accelerators, Y-axis, Z axis respectively, and according to the X-axis, Y-axis, Z axis acceleration calculate respectively X-axis, Y-axis, Z axis displacement increment, the effect for controlling the virtual objects to be zoomed in or out in the shootings interface presentation of the camera.The virtual objects that the present invention is provided are presented effect control method and device data acquisition speed is fast, computational methods simple and effective, the degree of accuracy is high, the three axle accelerators carried by electronic equipment are capable of achieving virtual objects and the effect for zooming in or out are presented in camera shooting interface, presence is enhanced, Consumer's Experience is preferable.
Description
Technical field
The present invention relates to virtual reality/augmented reality field, effect is presented in particular to a kind of virtual objects
Control method and device.
Background technology
The calculating of change of adjusting the distance in the prior art is typically using external infrared equipment, radar equipment or utilizing satellite
Alignment system realizes that these modes are all based on the direction and location that the two-dimensional coordinate of longitude and latitude foundation is carried out, when being applied to void
It is when under electronic equipment and virtual scene when fitting under the scene of augmented reality, it is impossible to which realization is interacted with virtual objects
When distance between virtual objects changes, the size that the virtual objects are presented under the camera lens of camera is not changed in, virtually
The effect that article is presented is not true enough, and the experience sense of user is not high.
Therefore, in the prior art the distance change of virtual objects and camera when, it is presented effect and does not change, shadow
Cognition of the user to augmented reality is rung, this problem how is solved, is the emphasis of those skilled in the art's concern.
The content of the invention
In view of this, effect control method and device is presented it is an object of the invention to provide a kind of virtual objects, to solve
Certainly in the prior art the distance change of virtual objects and camera when, it is presented effect and does not change, and Consumer's Experience is not good
Problem.
To achieve these goals, the technical scheme that the embodiment of the present invention is used is as follows:
In a first aspect, the embodiment of the present invention proposes that a kind of virtual objects are presented effect control method, it is applied to that there is shooting
The electronic equipment of head and three axle accelerators, the virtual objects are presented effect control method to be included:Three axle accelerators are obtained respectively
X-axis, Y-axis, the acceleration of Z axis;According to the X-axis, Y-axis, Z axis acceleration calculate respectively X-axis, Y-axis, Z axis displacement
Increment;Control the virtual objects that the effect for zooming in or out is presented at the shooting interface of the camera.
Second aspect, the embodiment of the present invention also proposes that a kind of virtual objects are presented effect control device, is applied to have and takes the photograph
As head and the electronic equipment of three axle accelerators, the virtual objects are presented effect control device to be included:Acceleration acquisition module, uses
In the acceleration for obtaining the X-axis of three axle accelerators, Y-axis, Z axis respectively;Displacement increment computing module, for according to the X-axis, Y
Axle, the acceleration of Z axis calculate respectively X-axis, Y-axis, Z axis displacement increment;Control module, for controlling the virtual objects to exist
The shooting interface of the camera is presented the effect for zooming in or out.
Compared with the prior art, the invention has the advantages that:The virtual objects that the present invention is provided are presented effect control
Method and device, obtains X-axis, Y-axis, the acceleration of Z axis of three axle accelerators respectively, and according to the X-axis, Y-axis, Z axis plus
Speed calculate respectively X-axis, Y-axis, Z axis displacement increment, control the virtual objects to be at the shooting interface of the camera
The effect for now zooming in or out.The virtual objects that the present invention is provided are presented effect control method and device data acquisition speed
Hurry up, computational methods simple and effective, the degree of accuracy is high, the three axle accelerators carried by electronic equipment are capable of achieving virtual objects and taken the photograph
The effect for zooming in or out is presented as head is shot in interface, presence is enhanced, Consumer's Experience is preferable.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows that virtual objects of the invention are presented the schematic diagram that effect control device is applied to electronic equipment.
Fig. 2 shows that the virtual objects that first embodiment of the invention is provided are presented the structured flowchart of effect control device.
Fig. 3 shows the three-dimensional system of coordinate figure in the embodiment of the present invention.
Fig. 4 shows that the virtual objects that second embodiment of the invention is provided are presented the schematic flow sheet of effect control method.
Icon:10- electronic equipments;100- virtual objects are presented effect control device;200- memories;300- storage controls
Device;400- processors;500- Peripheral Interfaces;600- display units;700- cameras;The axle accelerators of 800- tri-;900- gyroscopes;
110- acceleration acquisition modules;120- displacement increment computing modules;130- coordinate obtaining modules;140- visual angles direction vector is obtained
Module;150- judge modules;160- control modules.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Present invention implementation generally described and illustrated in accompanying drawing herein
The component of example can be arranged and designed with a variety of configurations.
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.Meanwhile, of the invention
In description, in addition it is also necessary to explanation, unless otherwise clearly defined and limited, term " connected ", " connection " should be interpreted broadly,
For example, it may be being fixedly connected, or being detachably connected, or it is integrally connected;Can mechanically connect, or electricity
Connection;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be two connections of element internal.For
For one of ordinary skill in the art, above-mentioned term concrete meaning in the present invention can be understood with concrete condition.Tie below
Accompanying drawing is closed, some embodiments of the present invention are elaborated.In the case where not conflicting, following embodiment and embodiment
In feature can be mutually combined.
Fig. 1 is refer to, is that virtual objects are presented the signal that effect control device 100 is applied to electronic equipment 10 in the present invention
Figure, the electronic equipment 10 can be but not limited to, mobile phone, panel computer, personal digital assistant (personal digital
Assistant, PDA), the portable electron device such as mobile internet surfing equipment (mobile Internet device, MID).The electricity
Sub- equipment 10 includes memory 200, storage control 300, processor 400, Peripheral Interface 500, display unit 600, camera
700th, three axle accelerators 800 and gyroscope 900.
The memory 200, storage control 300, processor 400, Peripheral Interface 500, display unit 600, camera
700th, be directly or indirectly electrically connected between three axle accelerators 800 and each element of gyroscope 900, with realize data transmission or
Person interacts.For example, these elements can realize typical case's connection by one or more communication bus or holding wire each other.The void
Plan article presentation effect control device 100 can be stored in this and deposit including at least one in the form of software or firmware (firmware)
In reservoir 200 or the software function module that is solidificated in the operating system of the electronic equipment 10 (operating system, OS).
The processor 400 is used to perform the executable module stored in the memory 200, and such as virtual objects are presented effect control dress
Put software function module and computer program included by 100 etc..
Wherein, the memory 200 can be but not limited to, random access memory (Random Access Memory,
RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Memory 200 is used for storage program, and processor 400 is used for after execute instruction is received, and performs the program.The processor 400
And access of other possible components to memory 200 can be carried out under the control of storage control 300.
The processor 400 is probably a kind of IC chip, with signal handling capacity.The processor 400 can be with
It is general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;Can also be digital signal processor (DSP)), application specific integrated circuit (ASIC), ready-made programmable gate
Array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components.
The Peripheral Interface 500 is by various input/output devices (such as camera 700, display unit 600) coupled to this
Processor 400 and the memory 200.In certain embodiments, Peripheral Interface 500, processor 400 and storage control
300 can realize in one single chip.In some other example, they can be realized by independent chip respectively.
The display unit 600 is used to provide an interactive interface or for display image data.
The camera 700 is used to shoot video or image to provide a shooting interface.
The three axles accelerator 800 is used to obtain three acceleration of axial direction in three dimensions of the electronic equipment 10.
The gyroscope 900 is used to obtain the view directions of the electronic equipment 10.
First embodiment
Fig. 2 is refer to, the structure of effect control device 100 is presented by the virtual objects that first embodiment of the invention is provided
Block diagram.The virtual objects are presented effect control device 100 includes acceleration acquisition module 110, displacement increment computing module
120th, coordinate obtaining module 130, visual angle direction vector acquisition module 140, judge module 150 and control module 160.
The acceleration acquisition module 110 is used to obtain respectively X-axis, Y-axis, the acceleration of Z axis of three axle accelerators 800.
In the present embodiment, can be set up automatically by the three axle accelerators 800 and gyroscope 900 in the electronic equipment 10
Three-dimensional system of coordinate, as shown in figure 3, base when can set X-axis with the 10 upright placement of electronic equipment is parallel, the side of Y-axis
To upward perpendicular to the ground, screen when Z axis are perpendicular to the 10 upright placement of electronic equipment.When the electronic equipment 10 is moved
When, by three axle accelerators 800 can get in real time the electronic equipment 10 X-axis, Y-axis, Z axis acceleration axi, ayi,
azi, wherein axi, ayi, aziRepresent ith sample point acceleration respectively on X-axis, Y-axis, Z axis.
The displacement increment computing module 120 is used to be calculated respectively in X-axis, Y according to the acceleration of the X-axis, Y-axis, Z axis
The displacement increment of axle, Z axis.
In the present embodiment, the displacement increment computing module 120 can be according to formula Δ Lxi=0.5 × axi×Δti 2, Δ
Lyi=0.5 × (ayi-g)×Δti 2, Δ Lzi=0.5 × azi×Δti 2The electronic equipment 10 is calculated respectively in X-axis, Y-axis, Z
Displacement increment on axle.Wherein, Δ tiIt is the time interval of ith sample point, g is acceleration of gravity, Δ Lxi、ΔLyi、ΔLzi
It is ith sample point displacement increment respectively on X-axis, Y-axis, Z axis.
The coordinate obtaining module 130 is used to obtain the coordinate of the virtual objects.
In the present embodiment, when the camera 700 of the electronic equipment 10 is opened, by the camera 700
Shoot and a 3D model is superimposed in interface, that is, obtain the virtual objects in the present embodiment, and the virtual objects in institute
The coordinate stated under three-dimensional system of coordinate has determined.In the present embodiment, it will be assumed that the virtual objects are located at coordinate (1,0,0).
The visual angle direction vector acquisition module 140 is used to obtain the visual angle direction vector of the camera 700.
In the present embodiment, the visual angle direction vector of the camera 700 can be understood as the camera 700 in three-dimensional
Position and view directions under coordinate system, the view directions of the camera 700 can be calculated by gyroscope 900.When beating
When opening camera 700, the changing coordinates and view directions of the camera 700 are determined that.For example, in the present embodiment, can
Assuming that the initial coordinate (0,0,0) of the camera 700.When the view directions of the camera 700 are the positive directions of Z axis,
Now can't see the virtual objects in the shooting interface of the camera 700, with the electronic equipment 10 movement or
Person changes the direction of the electronic equipment 10, and the view directions of the camera 700 can also change therewith.
The judge module 150 is used to be taken the photograph according to described in the judgement of the X-axis, Y-axis, the displacement increment of Z axis and acceleration
Become greatly or diminish with the distance of the virtual objects as first 700.
For example, in the present embodiment, the coordinate of virtual objects is (1,0,0), and the initial coordinate of the camera 700 is
(0,0,0), and assume that the view directions of the camera 700 are X-axis positive direction, it will be understood that now the virtual objects are being just
Benefit is in the shooting interface of the camera 700.Now in the moving process of electronic equipment 10, according to the acceleration for obtaining
axi, ayi, aziAnd the displacement increment Δ L being calculatedxi、ΔLyi、ΔLziCan determine whether out camera 700 with the virtual objects
Distance become big or diminish, when the camera 700 becomes big with the distance of the virtual objects, the camera 700 is remote
From the virtual objects;When the camera 700 becomes hour with the distance of the virtual objects, the camera 700 is near institute
State virtual objects.
The control module 160 is used to control the virtual objects that amplification is presented at the shooting interface of the camera 700
Or the effect for reducing.
In the present embodiment, the control module 160 includes rendering module, and the rendering module is used for according to the seat
Mark, visual angle direction vector, X-axis, Y-axis, the acceleration of Z axis, in X-axis, Y-axis, the displacement increment of Z axis and default scaling
Render the virtual objects.
It is appreciated that the default scaling is the actual distance change in moving process of the electronic equipment 10 turning
Turn to set up three-dimensional system of coordinate under distance change scaling, can strengthen the sense of reality of the user under virtual scene and
Experience sense.In the present embodiment, the scaling can be set as 0.8, but not limited to this.In the present embodiment, 3D engines root
According to the acceleration a for obtainingxi, ayi, azi, displacement increment Δ Lxi、ΔLyi、ΔLzi, default scaling and virtual objects
The visual angle direction vector of coordinate and camera 700 renders the virtual objects, make the virtual objects near or away from
In the camera 700, it is correspondingly presented the effect for zooming in or out in shooting interface.When the camera 700
During away from the virtual objects, shoot effect that interface be presented diminution of the virtual objects in the camera 700;When described
When camera 700 is near the virtual objects, shoot effect that interface be presented amplification of the virtual objects in the camera 700
Really, give user one good visual experience.
Second embodiment
Fig. 4 is refer to, is shown by the flow that the virtual objects that second embodiment of the invention is provided are presented effect control method
It is intended to.It should be noted that virtual objects of the present invention are presented effect control method not with Fig. 4 and as described below
Particular order is to limit, and the technique effect of its general principle and generation is identical with first embodiment, is to briefly describe, the present embodiment
In do not refer to part, refer to the corresponding contents in first embodiment.It should be appreciated that in other embodiments, it is of the present invention
Virtual objects the order of effect control method which part step is presented can be exchanged with each other according to actual needs, or wherein
Part steps can also omit or delete.The idiographic flow shown in Fig. 4 will be described in detail below.
Step S101, obtains X-axis, Y-axis, the acceleration of Z axis of three axle accelerators 800 respectively.
In the present embodiment, when the electronic equipment 10 is moved, institute can in real time be got by three axle accelerators 800
State electronic equipment 10 X-axis, Y-axis, Z axis acceleration axi, ayi, azi, wherein axi, ayi, aziRepresent that ith sample point exists respectively
Acceleration on X-axis, Y-axis, Z axis.
It is appreciated that step S101 can be performed by above-mentioned acceleration acquisition module 110.
Step S102, according to the X-axis, Y-axis, Z axis acceleration calculate respectively X-axis, Y-axis, Z axis displacement increment.
In the present embodiment, can be by displacement increment computing module 120 described above according to formula Δ Lxi=0.5 × axi
×Δti 2, Δ Lyi=0.5 × (ayi-g)×Δti 2, Δ Lzi=0.5 × azi×Δti 2The electronic equipment 10 is calculated respectively in X
Displacement increment on axle, Y-axis, Z axis.Wherein, Δ tiIt is the time interval of ith sample point, g is acceleration of gravity, Δ Lxi、Δ
Lyi、ΔLziIt is ith sample point displacement increment respectively on X-axis, Y-axis, Z axis.
It is appreciated that step S102 can be performed by above-mentioned displacement increment computing module 120.
Step S103, obtains the coordinate of the virtual objects.
In the present embodiment, when the camera 700 of the electronic equipment 10 is opened, by the camera 700
Shoot and a 3D model is superimposed in interface, that is, obtain the virtual objects in the present embodiment, and the virtual objects in institute
The coordinate stated under three-dimensional system of coordinate has determined.In the present embodiment, it will be assumed that the virtual objects are located at coordinate (1,0,0).
It is appreciated that step S103 can be performed by above-mentioned coordinate obtaining module 130.
Step S104, obtains the visual angle direction vector of the camera 700.
In the present embodiment, the visual angle direction vector is the coordinate and view directions of the camera 700.May be assumed that institute
State the initial coordinate (0,0,0) of camera 700.When the view directions of the camera 700 are the positive directions of Z axis, now exist
Can't see the virtual objects in the shooting interface of the camera 700, with the electronic equipment 10 movement or
Change the direction of the electronic equipment 10, the view directions of the camera 700 can also change therewith.
It is appreciated that step S104 can be performed by above-mentioned visual angle direction vector acquisition module 140.
Step S105, foundation judges the camera 700 and institute in the X-axis, Y-axis, the displacement increment of Z axis and acceleration
The distance for stating virtual objects becomes big or diminishes.
For example, in the present embodiment, the coordinate of virtual objects is (1,0,0), and the initial coordinate of the camera 700 is
(0,0,0), and assume that the view directions of the camera 700 are X-axis positive direction, it will be understood that now the virtual objects are being just
Benefit is in the shooting interface of the camera 700.Now in the moving process of electronic equipment 10, according to the acceleration for obtaining
axi, ayi, aziAnd the displacement increment Δ L being calculatedxi、ΔLyi、ΔLziCan determine whether out camera 700 with the virtual objects
Distance become big or diminish, when the camera 700 becomes big with the distance of the virtual objects, the camera 700 is remote
From the virtual objects;When the camera 700 becomes hour with the distance of the virtual objects, the camera 700 is near institute
State virtual objects.
It is appreciated that step S105 can be performed by above-mentioned judge module 150.
Step S106, controls the virtual objects to be presented what is zoomed in or out at the shooting interface of the camera 700
Effect.
It is appreciated that step S106 can be performed by above-mentioned control module 160.
In the present embodiment, step S106 includes following sub-step:According to the coordinate, visual angle direction vector, in X-axis, Y
Axle, the acceleration of Z axis, render the virtual objects in X-axis, Y-axis, the displacement increment of Z axis and default scaling.
In the present embodiment, 3D engines are according to the acceleration a for obtainingxi, ayi, azi, displacement increment Δ Lxi、ΔLyi、ΔLzi、
The visual angle direction vector of the coordinate and camera 700 of default scaling and virtual objects renders the virtual objects,
Make the virtual objects near or during away from the camera 700, its shoot correspondingly presented in interface amplify or
The effect that person reduces.When the camera 700 is away from the virtual objects, the virtual objects are in the camera 700
Shoot interface and the effect for reducing is presented;When the camera 700 is near the virtual objects, the virtual objects are taken the photograph described
As first 700 interface that shoots is presented the effect amplified, give user one good visual experience.
It should be noted that effect control method is presented for the virtual objects that above-described embodiment is provided and device can be applied to void
Fit under the scene of augmented reality, but not limited to this.
In sum, the virtual objects that the present invention is provided are presented effect control method and device, by obtaining three axles respectively
The X-axis of accelerator, Y-axis, the acceleration of Z axis, and acceleration according to the X-axis, Y-axis, Z axis calculates in X-axis, Y-axis, Z respectively
The displacement increment of axle, 3D engines foundation is in the X-axis, Y-axis, the acceleration of Z axis, displacement increment, default scaling, then ties
The visual angle direction vector of camera and the coordinate of virtual objects for closing acquisition render the virtual objects, make the camera remote
During the virtual objects, shoot effect that interface be presented diminution of the virtual objects in the camera;And
The camera during the virtual objects, the virtual objects at the shooting interface of the camera correspondingly
The effect amplified is presented.Data acquisition speed of the present invention is fast, and computational methods simple and effective, the degree of accuracy is high, by electronic equipment certainly
The three axle accelerators and gyroscope of band are to be capable of achieving camera during near virtual objects, and the virtual objects are shooting
The effect amplified is presented in interface, and camera is during away from virtual objects, the virtual objects are shooting interface
It is interior that the effect for reducing is presented, presence is enhanced, Consumer's Experience is preferable.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it
Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to
Cover including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include those
Key element, but also other key elements including being not expressly set out, or also include for this process, method, article or set
Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in the process including the key element, method, article or equipment.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
Claims (10)
1. a kind of virtual objects are presented effect control method, are applied to the electronic equipment with camera and three axle accelerators, its
It is characterised by, the virtual objects are presented effect control method to be included:
X-axis, Y-axis, the acceleration of Z axis of three axle accelerators are obtained respectively;
According to the X-axis, Y-axis, Z axis acceleration calculate respectively X-axis, Y-axis, Z axis displacement increment;
Control the virtual objects that the effect for zooming in or out is presented at the shooting interface of the camera.
2. virtual objects as claimed in claim 1 are presented effect control method, it is characterised in that the virtual objects are presented effect
Fruit control method also includes:
Obtain the coordinate of the virtual objects;
Obtain the visual angle direction vector of the camera;
The control virtual objects include the step of the shooting interface of the camera zooms in or out:
According to the coordinate, visual angle direction vector, X-axis, Y-axis, the acceleration of Z axis, X-axis, Y-axis, the displacement increment of Z axis and
Default scaling renders the virtual objects.
3. virtual objects as claimed in claim 1 are presented effect control method, it is characterised in that when the camera with it is described
When the distance of virtual objects becomes big, the camera controls the virtual objects in the camera away from the virtual objects
Shoot interface present reduce effect;When the camera becomes hour with the distance of the virtual objects, the camera is leaned on
The nearly virtual objects, control the virtual objects in the effect that interface is presented amplification that shoots of the camera.
4. virtual objects as claimed in claim 3 are presented effect control method, it is characterised in that the virtual objects are presented effect
Fruit control method also includes:
According to the distance that the camera and the virtual objects are judged in the X-axis, Y-axis, the displacement increment of Z axis and acceleration
Become big or diminish.
5. virtual objects as claimed in claim 1 are presented effect control method, it is characterised in that described in X-axis, Y-axis, Z axis
On the computing formula of displacement increment be respectively:ΔLxi=0.5 × axi×Δti 2, Δ Lyi=0.5 × (ayi-g)×Δti 2, Δ
Lzi=0.5 × azi×Δti 2;Wherein, Δ tiIt is the time interval of ith sample point, axi, ayi, aziIt is ith sample point minute
Acceleration not on X-axis, Y-axis, Z axis, g is acceleration of gravity, Δ Lxi、ΔLyi、ΔLziIt is ith sample point respectively in X
Displacement increment on axle, Y-axis, Z axis.
6. a kind of virtual objects are presented effect control device, are applied to the electronic equipment with camera and three axle accelerators, its
It is characterised by, the virtual objects are presented effect control device to be included:
Acceleration acquisition module, the acceleration for obtaining the X-axis of three axle accelerators, Y-axis, Z axis respectively;
Displacement increment computing module, for according to the X-axis, Y-axis, Z axis acceleration calculate respectively X-axis, Y-axis, Z axis position
Move increment;
Control module, for controlling the virtual objects that the effect for zooming in or out is presented at the shooting interface of the camera
Really.
7. virtual objects as claimed in claim 6 are presented effect control device, it is characterised in that the virtual objects are presented effect
Fruit control device also includes:
Coordinate obtaining module, the coordinate for obtaining the virtual objects;
Visual angle direction vector acquisition module, the visual angle direction vector for obtaining the camera;
The control module includes:
Rendering module, for according to the coordinate, visual angle direction vector, X-axis, Y-axis, the acceleration of Z axis, in X-axis, Y-axis, Z
The displacement increment of axle and default scaling render the virtual objects.
8. virtual objects as claimed in claim 6 are presented effect control device, it is characterised in that when the camera with it is described
When the distance of virtual objects becomes big, the camera controls the virtual objects in the camera away from the virtual objects
Shoot interface present reduce effect;When the camera becomes hour with the distance of the virtual objects, the camera is leaned on
The nearly virtual objects, control the virtual objects in the effect that interface is presented amplification that shoots of the camera.
9. virtual objects as claimed in claim 8 are presented effect control device, it is characterised in that the virtual objects are presented effect
Fruit control device also includes:
Judge module, for foundation the X-axis, Y-axis, the displacement increment of Z axis and acceleration judge the camera with it is described
The distance of virtual objects becomes big or diminishes.
10. virtual objects as claimed in claim 6 are presented effect control device, it is characterised in that the displacement increment is calculated
Module is used for according to formula Δ Lxi=0.5 × axi×Δti 2, Δ Lyi=0.5 × (ayi-g)×Δti 2, Δ Lzi=0.5 × azi
×Δti 2The displacement increment on X-axis, Y-axis, Z axis is calculated respectively;Wherein, Δ tiIt is the time interval of ith sample point, axi,
ayi, aziIt is ith sample point acceleration respectively on X-axis, Y-axis, Z axis, g is acceleration of gravity, Δ Lxi、ΔLyi、ΔLzi
It is ith sample point displacement increment respectively on X-axis, Y-axis, Z axis.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710110536.2A CN106896940B (en) | 2017-02-28 | 2017-02-28 | Virtual article presentation effect control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710110536.2A CN106896940B (en) | 2017-02-28 | 2017-02-28 | Virtual article presentation effect control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106896940A true CN106896940A (en) | 2017-06-27 |
CN106896940B CN106896940B (en) | 2020-01-07 |
Family
ID=59184986
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710110536.2A Active CN106896940B (en) | 2017-02-28 | 2017-02-28 | Virtual article presentation effect control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106896940B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107329671A (en) * | 2017-07-05 | 2017-11-07 | 北京京东尚科信息技术有限公司 | Model display methods and device |
CN108090969A (en) * | 2018-01-08 | 2018-05-29 | 北京小米移动软件有限公司 | Object display methods and device |
CN108537889A (en) * | 2018-03-26 | 2018-09-14 | 广东欧珀移动通信有限公司 | Method of adjustment, device, storage medium and the electronic equipment of augmented reality model |
CN109472873A (en) * | 2018-11-02 | 2019-03-15 | 北京微播视界科技有限公司 | Generation method, device, the hardware device of threedimensional model |
CN110070600A (en) * | 2018-11-02 | 2019-07-30 | 北京微播视界科技有限公司 | Generation method, device, the hardware device of threedimensional model |
CN111741287A (en) * | 2020-07-10 | 2020-10-02 | 南京新研协同定位导航研究院有限公司 | Method for triggering content by using position information of MR glasses |
CN111738797A (en) * | 2020-06-19 | 2020-10-02 | 深圳市酷开网络科技有限公司 | Virtual reality shopping method and system, VR equipment, server and storage medium |
CN112051961A (en) * | 2020-09-04 | 2020-12-08 | 脸萌有限公司 | Virtual interaction method and device, electronic equipment and computer readable storage medium |
CN113781657A (en) * | 2021-08-06 | 2021-12-10 | 北京视据科技有限公司 | Method and device for realizing virtual model and real scene superposition based on orientation |
CN113805701A (en) * | 2021-09-16 | 2021-12-17 | 北京百度网讯科技有限公司 | Method for determining virtual image display range, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881128A (en) * | 2015-06-18 | 2015-09-02 | 北京国承万通信息科技有限公司 | Method and system for displaying target image in virtual reality scene based on real object |
CN105847578A (en) * | 2016-04-28 | 2016-08-10 | 努比亚技术有限公司 | Information display type parameter adjusting method and head mounted device |
CN105898346A (en) * | 2016-04-21 | 2016-08-24 | 联想(北京)有限公司 | Control method, electronic equipment and control system |
CN105955467A (en) * | 2016-04-26 | 2016-09-21 | 四川川大智胜软件股份有限公司 | Multi-man man-machine interaction method based on mobile terminal |
EP2402850B1 (en) * | 2007-01-07 | 2017-07-19 | Apple Inc. | Document scaling on a touch-screen display |
-
2017
- 2017-02-28 CN CN201710110536.2A patent/CN106896940B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2402850B1 (en) * | 2007-01-07 | 2017-07-19 | Apple Inc. | Document scaling on a touch-screen display |
CN104881128A (en) * | 2015-06-18 | 2015-09-02 | 北京国承万通信息科技有限公司 | Method and system for displaying target image in virtual reality scene based on real object |
CN105898346A (en) * | 2016-04-21 | 2016-08-24 | 联想(北京)有限公司 | Control method, electronic equipment and control system |
CN105955467A (en) * | 2016-04-26 | 2016-09-21 | 四川川大智胜软件股份有限公司 | Multi-man man-machine interaction method based on mobile terminal |
CN105847578A (en) * | 2016-04-28 | 2016-08-10 | 努比亚技术有限公司 | Information display type parameter adjusting method and head mounted device |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107329671B (en) * | 2017-07-05 | 2020-06-30 | 北京京东尚科信息技术有限公司 | Model display method and device |
CN107329671A (en) * | 2017-07-05 | 2017-11-07 | 北京京东尚科信息技术有限公司 | Model display methods and device |
CN108090969A (en) * | 2018-01-08 | 2018-05-29 | 北京小米移动软件有限公司 | Object display methods and device |
CN108537889A (en) * | 2018-03-26 | 2018-09-14 | 广东欧珀移动通信有限公司 | Method of adjustment, device, storage medium and the electronic equipment of augmented reality model |
CN110070600B (en) * | 2018-11-02 | 2023-09-15 | 北京微播视界科技有限公司 | Three-dimensional model generation method, device and hardware device |
CN109472873A (en) * | 2018-11-02 | 2019-03-15 | 北京微播视界科技有限公司 | Generation method, device, the hardware device of threedimensional model |
CN110070600A (en) * | 2018-11-02 | 2019-07-30 | 北京微播视界科技有限公司 | Generation method, device, the hardware device of threedimensional model |
CN109472873B (en) * | 2018-11-02 | 2023-09-19 | 北京微播视界科技有限公司 | Three-dimensional model generation method, device and hardware device |
CN111738797A (en) * | 2020-06-19 | 2020-10-02 | 深圳市酷开网络科技有限公司 | Virtual reality shopping method and system, VR equipment, server and storage medium |
CN111741287A (en) * | 2020-07-10 | 2020-10-02 | 南京新研协同定位导航研究院有限公司 | Method for triggering content by using position information of MR glasses |
CN111741287B (en) * | 2020-07-10 | 2022-05-17 | 南京新研协同定位导航研究院有限公司 | Method for triggering content by using position information of MR glasses |
CN112051961A (en) * | 2020-09-04 | 2020-12-08 | 脸萌有限公司 | Virtual interaction method and device, electronic equipment and computer readable storage medium |
CN113781657A (en) * | 2021-08-06 | 2021-12-10 | 北京视据科技有限公司 | Method and device for realizing virtual model and real scene superposition based on orientation |
CN113805701A (en) * | 2021-09-16 | 2021-12-17 | 北京百度网讯科技有限公司 | Method for determining virtual image display range, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106896940B (en) | 2020-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106896940A (en) | Virtual objects are presented effect control method and device | |
CN110689585B (en) | Multi-phase external parameter combined calibration method, device, equipment and medium | |
CN112489121B (en) | Video fusion method, device, equipment and storage medium | |
WO2019184889A1 (en) | Method and apparatus for adjusting augmented reality model, storage medium, and electronic device | |
CN102754060B (en) | Method and apparatus for determining information for display | |
CN108573530B (en) | Augmented reality AR interaction method and system | |
CN110148178B (en) | Camera positioning method, device, terminal and storage medium | |
CN108520552A (en) | Image processing method, device, storage medium and electronic equipment | |
CN107589963B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN108921795A (en) | A kind of image interfusion method, device and storage medium | |
CN103577789B (en) | Detection method and device | |
CN107450841A (en) | interactive object control method and device | |
CN112017133B (en) | Image display method and device and electronic equipment | |
CN106909223A (en) | Camera orientation amendment method and device based on 3D scenes | |
CN107741814A (en) | A kind of display control method and mobile terminal | |
CN112907652A (en) | Camera pose acquisition method, video processing method, display device and storage medium | |
CN113703519A (en) | Method and device for determining posture of folding screen and storage medium | |
CN112432637A (en) | Positioning method and device, electronic equipment and storage medium | |
Cheng et al. | AR-based positioning for mobile devices | |
CN117474988A (en) | Image acquisition method and related device based on camera | |
CN113485660B (en) | Folding screen picture display method and device | |
WO2023160445A1 (en) | Simultaneous localization and mapping method and apparatus, electronic device, and readable storage medium | |
CN115713616A (en) | Room source space model generation method and device, terminal device and storage medium | |
CN115494951A (en) | Interaction method and device and display equipment | |
CN115278064A (en) | Panoramic image generation method and device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Control method and device of virtual object presentation effect Effective date of registration: 20210127 Granted publication date: 20200107 Pledgee: Hangzhou United Rural Commercial Bank Limited by Share Ltd. Baoshan Branch Pledgor: HANGZHOU LEJIAN TECHNOLOGY Co.,Ltd. Registration number: Y2021330000100 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |