CN106933397A - Virtual object control method and device - Google Patents
Virtual object control method and device Download PDFInfo
- Publication number
- CN106933397A CN106933397A CN201511025238.0A CN201511025238A CN106933397A CN 106933397 A CN106933397 A CN 106933397A CN 201511025238 A CN201511025238 A CN 201511025238A CN 106933397 A CN106933397 A CN 106933397A
- Authority
- CN
- China
- Prior art keywords
- virtual objects
- pressure
- touch
- deformation
- event
- 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/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0414—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
-
- 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
- G06F3/0488—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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/041—Indexing scheme relating to G06F3/041 - G06F3/045
- G06F2203/04106—Multi-sensing digitiser, i.e. digitiser using at least two different sensing technologies simultaneously or alternatively, e.g. for detecting pen and finger, for saving power or for improving position detection
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)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure is directed to a kind of virtual object control method and device.Method includes:Create one can deformation virtual objects;The touch event of input is received, and obtains the location parameter and pressure parameter in the touch event;Responding the location parameter in the touch event controls the correspondence position of the virtual objects to deform upon;Pressure parameter according to the touch event controls the virtual objects that the deformation degree of the deformation occurs.The disclosure is based on sensing of the screen to different pressures, location parameter and pressure parameter in touch event, dynamic changes the deformation for being extruded virtual objects, true with pressosensitive extrusion operation so as to simulate so that feedback effects operate more consistent with user.
Description
Technical field
This disclosure relates to human-computer interaction technique field, in particular to a kind of virtual objects controlled
Method and virtual objects controlled device.
Background technology
With the fast development of mobile communication technology, increasing trip is occurred in that on touch control terminal
Play application, one type game is that extruding bubble or balloon are clicked on screen with finger, and simulation is existing
Grow directly from seeds and the process of quick-fried object is pressed in living.In not support pressure control technology, mainly there are following three kinds
Object presses quick-fried application scheme:
For example, finger clicks screen area, corresponding object will be crushed, and feed back one section of object
The animation of rupture, forms the effect damaged and disappear, and feedback object presses quick-fried by finger.With reality scene
Control, general when being extruded in reality all to be reacted with weight, if gently squeezing object, object occurs
Smaller deformation, but can not necessarily be swarmed in, be possible to object pressure when being firmly extruded into a certain degree
It is broken.Before object not to be extruded onto rupture, finger is unclamped, then object can return to original state.
The mode for clicking on just directly rupture at present is more stiff, ignores extrusion process, goes out with actual scene
Enter larger.
Again for example, in game process, setting finger it is long by certain hour after, object is swarmed in.
Constantly deformed upon in the object during long, until when having arrived the time that system specifies, playing
Rupture animation, the process that completion is swarmed in." deformation " of the program to object in extrusion process is carried out
Simulation, user is obtained in that certain sense of reality.But if user is by finger and screen contact,
Be to realize same effect regardless of pressure size, equally with real real scene difference compared with
Greatly.
Again for example, user singly refers to clicks on object on screen, an object, the shape of object are often clicked on
Change degree is deepened, and when certain number of times is clicked, just plays the animation of object crack damage, feedback
Quick-fried effect is pressed by finger.It is very uninteresting operation behavior repeatedly to click on same object, meanwhile,
The object that can be swarmed in reality scene is general all flexible, and the point of identical dynamics seldom occurs
Hit situation about will swarm in several times.
Above-mentioned three kinds of correlation techniques can not be perceived to the pressure sensitivity of user's finger, form difference anti-
Feedback, thus object be extruded the quick-fried process effect of pressure can not be with the operational feedback effect phase one of user
Cause.
It should be noted that information is only used for strengthening to this public affairs disclosed in above-mentioned background section
The understanding of the background opened, therefore can include not constituting to known to persons of ordinary skill in the art existing
There is the information of technology.
The content of the invention
For subproblem of the prior art or whole issue, the disclosure provides a kind of virtual right
As control method and virtual objects controlled device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of virtual object control method, application
In the touch control terminal for being capable of achieving pressure-sensing;The virtual object control method includes:
S10. create one can deformation virtual objects;
S20. receive the touch event of input, and obtain the location parameter in the touch event and
Pressure parameter;
S30. the corresponding position that the location parameter in the touch event controls the virtual objects is responded
Put and deform upon;
S40. the pressure parameter according to the touch event controls the virtual objects that the shape occurs
The deformation degree of change.
In a kind of exemplary embodiment of the disclosure, the virtual object control method also includes:
S41. when the pressure parameter in the touch event exceeds a preset pressure value and persistently presets
Between after, respond touch event duration increase and increase the virtual objects occur it is described
The deformation degree of deformation.
In a kind of exemplary embodiment of the disclosure, the step S40 includes:
Judge that the pressure parameter is in interval first pressure, second pressure interval or the 3rd pressure area
Between;Maximum is less than minimum value, described second in second pressure interval in the first pressure interval
Maximum is less than minimum value in the 3rd pressure range in pressure range;
When the pressure parameter is in first pressure interval, the virtual objects are controlled to carry out
The deformation of the first deformation degree;
When the pressure parameter is in second pressure interval, the virtual objects are controlled to carry out
The deformation of the second deformation degree;The second deformation degree is higher than the first deformation degree;
When the pressure parameter is in three pressure range, the virtual objects are controlled to carry out
The deformation of the 3rd deformation degree;The 3rd deformation degree is higher than the first deformation degree.
In a kind of exemplary embodiment of the disclosure, the virtual object control method also includes:
S410. when the pressure parameter is default beyond the corresponding pressure value of the 3rd pressure range
Between after, with the touch event pressure parameter the 3rd pressure range duration increasing
Plus and increase the deformation degree that the virtual objects occur the deformation.
In a kind of exemplary embodiment of the disclosure, the virtual object control method also includes:
S50. the deformation degree of the virtual objects is calculated, the deformation degree of the virtual objects is judged
Whether exceed a predetermined threshold value, and judge the deformation degree of the virtual objects beyond described pre-
If during threshold value, controlling the virtual objects rupture.
In a kind of exemplary embodiment of the disclosure, the touch event include touch initiation event,
Touch moving event and touch End Event;The virtual object control method also includes:
S60. when the touch End Event occurs, detect whether the virtual objects rupture;
When the virtual objects do not rupture, the virtual objects are controlled to maintain current deformed state, or
The virtual objects are controlled to recover to original state.
In a kind of exemplary embodiment of the disclosure, wherein:
The step S10, step S30 and step S40 are performed by an extruding control module;
The step S20 touches receiver module and performs by one;
The virtual object control method also includes:
S01. the receiver module that touches registers touch event to the operating system of the touch control terminal,
So that the operating system is input into the touch receiver module when the touch event is detected;
S02. the extruding control module registers parameter to the touch receiver module of the touch control terminal
Notification event, so that the touch receiver module is touched when the touch event is received by described
Location parameter and pressure parameter in event is touched to be input into the extruding control module.
According to the second aspect of the embodiment of the present disclosure, a kind of virtual objects controlled device is additionally provided,
It is applied to be capable of achieving the touch control terminal of pressure-sensing;The virtual objects controlled device includes:
Virtual objects creating unit, for create one can deformation virtual objects;
Receiver module is touched, for receiving the touch event of input, and the touch event is obtained
Location parameter and pressure parameter;
First shape control unit, it is described for responding the control of the location parameter in the touch event
The correspondence position of virtual objects is deformed upon;
Second shape control unit, for controlling the void according to the pressure parameter of the touch event
Intend the deformation degree that object occurs the deformation.
In a kind of exemplary embodiment of the disclosure, the virtual objects controlled device also includes:
3rd shape control unit, for the pressure parameter in the touch event beyond a default pressure
After force value and lasting Preset Time, respond the increase of the touch event duration and increase described
There is the deformation degree of the deformation in virtual objects.
It is described to be joined according to the pressure of the touch event in a kind of exemplary embodiment of the disclosure
The deformation degree that virtual objects described in numerical control system occur the deformation includes:
Judge that the pressure parameter is in interval first pressure, second pressure interval or the 3rd pressure area
Between;Maximum is less than minimum value, described second in second pressure interval in the first pressure interval
Maximum is less than minimum value in the 3rd pressure range in pressure range;
When the pressure parameter is in first pressure interval, the virtual objects are controlled to carry out
The deformation of the first deformation degree;
When the pressure parameter is in second pressure interval, the virtual objects are controlled to carry out
The deformation of the second deformation degree;The second deformation degree is higher than the first deformation degree;
When the pressure parameter is in three pressure range, the virtual objects are controlled to carry out
The deformation of the 3rd deformation degree;The 3rd deformation degree is higher than the first deformation degree.
In a kind of exemplary embodiment of the disclosure, the virtual objects controlled device also includes:
4th shape control unit, for exceeding the 3rd pressure range pair in the pressure parameter
After the pressure value Preset Time answered, the pressure parameter of the touch event is responded in the 3rd pressure
The increase of interval duration and increase the deformation degree that the virtual objects occur the deformation.
In a kind of exemplary embodiment of the disclosure, the virtual objects controlled device also includes:
Rupture control unit, the deformation degree for calculating the virtual objects judges described virtual
Whether the deformation degree of object exceeds a predetermined threshold value, and judging the deformation of the virtual objects
When degree exceeds the predetermined threshold value, the virtual objects rupture is controlled.
In a kind of exemplary embodiment of the disclosure, the touch event include touch initiation event,
Touch moving event and touch End Event;The virtual objects controlled device also includes:
Extruding finishing control unit, for when the touch End Event occurs, detecting the void
Intend whether object ruptures;When the virtual objects do not rupture, the virtual objects are controlled to maintain
Current deformed state, or control the virtual objects to recover to original state.
In a kind of exemplary embodiment of the disclosure, wherein:
The virtual objects creating unit, the first shape control unit and the second shape control unit
It is packaged in an extruding control module;
The touch receiver module is additionally operable to, and thing is touched to the operating system registration of the touch control terminal
Part, so that the operating system is input into described touch when the touch event is detected receives mould
Block;
The extruding control module is additionally operable to, and ginseng is registered to the touch receiver module of the touch control terminal
Number notification event, so that the touch receiver module is when the touch event is received, will be described
Location parameter and pressure parameter in touch event are input into the extruding control module.
Virtual object control method and device in a kind of embodiment of the disclosure, based on screen to not
With the sensing of pressure, location parameter and pressure parameter in touch event, dynamic change is squeezed
The deformation of virtual objects is pressed, it is true with pressosensitive extrusion operation so as to simulate, solve squeezing
Extruding dynamics feedback identical problem different in pressure game process, realizes the pressure in extrusion process
Control, so that the preferably actual use scene of simulation so that feedback effects are operated more with user
Unanimously.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary reconciliation
The property released, the disclosure can not be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets
Embodiment of the disclosure, and it is used to explain the principle of the disclosure together with specification.Obviously
Ground, drawings in the following description are only some embodiments of the present disclosure, for the common skill in this area
For art personnel, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Other accompanying drawings.
Fig. 1 schematically shows a kind of stream of virtual object control method in disclosure exemplary embodiment
Cheng Tu.
Fig. 2 schematically shows a kind of operation interface of game application in disclosure exemplary embodiment.
Fig. 3 schematically shows a kind of flow chart of step S40 in disclosure exemplary embodiment.
Fig. 4 schematically shows a kind of stream of virtual object control method in disclosure exemplary embodiment
Cheng Tu.
Fig. 5 schematically shows a kind of side of virtual objects controlled device in disclosure exemplary embodiment
Block diagram.
Fig. 6 schematically shows a kind of side of virtual objects controlled device in disclosure exemplary embodiment
Block diagram.
Specific embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment
Can in a variety of forms implement, and be not understood as limited to example set forth herein;Conversely, carrying
Cause that the disclosure will more fully and completely, and by the structure of example embodiment for these implementation methods
Think of comprehensively conveys to those skilled in the art.Described feature, structure or characteristic can be with
Any suitable mode is combined in one or more implementation methods.In the following description, there is provided
Many details are so as to provide fully understanding for implementation method of this disclosure.However, this area
Technical staff is by, it is realized that can put into practice the technical scheme of the disclosure and omit the specific detail
It is one or more, or can be using other methods, constituent element, device, step etc..At it
In the case of it, it is not shown in detail or describes known solution and this public affairs is caused to avoid that a presumptuous guest usurps the role of the host
The each side opened thickens.
Additionally, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Figure
Middle identical reference represents same or similar part, thus their repetition is retouched by omitting
State.Some block diagrams shown in accompanying drawing are functional entitys, not necessarily must with physically or logically
Independent entity is corresponding.These functional entitys can be realized using software form, or at one
Or realize these functional entitys in multiple hardware modules or integrated circuit, or in heterogeneous networks and/or
These functional entitys are realized in processor device and/or microcontroller device.
With the development of electronic technology, have been realized in that the touch-control end of pressure-sensing can be carried out at present
End, such that it is able to bring new manipulation and input mode for user.For example, Huawei Company and
Apple Inc. issued the touch-control smart mobile phone for possessing pressure-sensing in 2015.Such touch-control end
End can not only sense the touch operation of user as the input of touch control terminal, it is also possible to by pressure
The size of power, position and action time are perceived, so as to by pressure separately as touch control terminal
Input, or pressure and other input modes are combined the input as touch control terminal, be use
The operation at family brings many convenience and interest.
A kind of virtual object control method is provide firstly in this example embodiment, the virtual objects
Control method can apply to the touch control terminal of above-mentioned achievable pressure-sensing.The touch control device is for example
Can possess touch screen for mobile phone, panel computer, notebook computer, game machine, PDA etc. are various
The electronic equipment of curtain.But it should be recognized that being likely in the non-touch-control equipment of part by simulation
Keyboard and mouse action are modeled as touch control operation by the modes such as device, and this mode can equally be considered as
Touch control device described in the disclosure.With reference to shown in Fig. 1 and Fig. 2, the virtual objects control
Method processed may comprise steps of:
S10. create one can deformation virtual objects.
As shown in Fig. 2 the viewing area of touch control device can be controlled to show an operation interface 10,
Operation interface 10 includes created virtual objects 201.
Game application controls the touch-control of touch control device by the application programming interfaces (API) of touch control device
Screen display game operation interface 10, the operation interface 10 in this example embodiment can be tactile
Control equipment all can viewing area, that is, be displayed in full screen;Can also be that the part of touch control device can show
Show that region, i.e. window show.A virtual objects 201 can be included in the operation interface 10.Remove
Outside this, can also be including control button, information panel and explanatory note etc. in operation interface 10
Other parts.Above-mentioned virtual objects 201 can have many forms, for example can for balloon,
Bubble, ball etc. possess the elasticity such as the virtual objects, or plasticine, dough of certain elasticity
Weaker virtual objects.
S20. receive the touch event of input, and obtain the location parameter in the touch event and
Pressure parameter.
Touch event is periodically detected, the touch event can include user in operation interface 1
Carry out simple slide, simple pressing operation and pressed while slide
Operation etc..The difference of the pressure value according to pressing operation, can be divided into multiple by pressing operation
Different grades, for example, can be divided into weight, light pressure and pole light press and (can be considered not
Pressing), according to the sensitivity of pressure sensing module, the other division of more stages can also be carried out.
After touch event such as pressing operation is detected, the location parameter of the pressing operation is obtained
Such as pressing coordinate data and the pressure Value Data of pressure parameter such as pressing, are easy to subsequently be based on
These parameters to virtual objects carry out shape control.
S30. the corresponding position that the location parameter in the touch event controls the virtual objects is responded
Put and deform upon.
There can be multiple virtual objects in operation interface, according to the position ginseng obtained in step S20
Number can determine that the virtual objects and deformation position and deformation direction for needing control.Such as operation interface
On have tens balloons, which the location parameter in touch event can determine that in tens balloons
Individual balloon is current desired to want operational control;Or, the volume of the virtual objects is larger, uses
In certain part for only extruding the virtual objects, then the part of virtual objects can be controlled to deform.
S40. the pressure parameter according to the touch event controls the virtual objects that the shape occurs
The deformation degree of change.
It is determined that need extruding virtual objects after, according in step S20 obtain pressure parameter come
Determine the deformation degree of the virtual objects.For example, if the pressure of pressing is lighter, deformation is less,
If the pressure of pressing is larger, deformation is larger.
S50. the deformation degree of the virtual objects is calculated, the deformation degree of the virtual objects is judged
Whether exceed a predetermined threshold value, and judge the deformation degree of the virtual objects beyond described pre-
If during threshold value, controlling the virtual objects rupture.
One threshold value of deformation degree of advance preset value, with the increasing of deformation degree, when more than this
During threshold value, virtual objects rupture is presented the effect that virtual objects are extruded rupture, and the threshold value is void
Intend the upper limit of the deformation degree that object can bear.But should be noted that for partial virtual
For object, for example, plasticine, dough etc. can not also include the step S50.
When the deformation degree of virtual objects is calculated, virtual objects can be constructed according to squeezing parameter
Model after being extruded, compressional deformation can be simulated based on archetype with the model after being extruded
Process.So that virtual objects are spheroid as an example, its archetype for example can be
The respective initial value of a, b, c and deformation extent pre-set threshold value t are set;And in cartesian coordinate
A spheroid, the volume of the spheroid are drawn in system
It is assumed that being extruded the spheroid from x-axis direction, above-mentioned pressing parameter is corresponding to simulate pressure
Power is f, thenV, c parameter constant, thus using cubature formula can calculate extruding after
'sFinally, the model after using a ', b ', c these three parameters drafting to extrude,
So as to simulate the process of crimp.When a ' is less than deformation extent pre-set threshold value t, spheroid
Rupture.But skilled addressee readily understands that, when the virtual objects are other shapes,
Can also be calculated by corresponding other formula, it is not limited to institute in this example embodiment
The mode for enumerating.
S60. the touch event includes touching initiation event, touches moving event and touch and terminate
Event, when the touch End Event occurs, detects whether the virtual objects rupture;Institute
When stating virtual objects and not rupturing, the virtual objects are controlled to maintain current deformed state, or control
The virtual objects are made to recover to original state.
In game process, the time of user's finger pressing touch-screen and pressure are likely to be random
, touch initiation event and represent that user starts pressing, touch moving event and represent that user presses,
And the movement of position and the change of pressure occur during pressing, End Event table is touched
Show that user terminates pressing operation.As it was previously stated, after deformation degree exceedes threshold value, virtual objects
Rupture, if when user terminates pressing operation, virtual objects do not rupture also, then can maintain this
Deformed state of the virtual objects when user terminates pressing operation, or return to initial state.
Virtual object control method in the embodiment of the present disclosure, the sensing based on screen to different pressures,
Location parameter and pressure parameter in touch event, dynamic change the shape for being extruded virtual objects
Become, it is true with pressosensitive extrusion operation so as to simulate, solve in game process is extruded not
Same extruding dynamics feedback identical problem, realizes the Stress control in extrusion process, so that preferably
The actual use scene of simulation, while feedback effects are consistent with the operating effect of user.
With continued reference to Fig. 1, in disclosure exemplary embodiment, above-mentioned virtual objects controlled side
Method can also include:
S41. when the pressure parameter in the touch event exceeds a preset pressure value and persistently presets
Between after, respond touch event duration increase and increase the virtual objects occur it is described
The deformation degree of deformation.
As it was previously stated, it is determined that after the virtual objects for needing extruding, can be joined according to the pressure for obtaining
Count to determine the deformation degree of the virtual objects.As shown in figure 1, in this embodiment, can be with
A preset pressure value is pre-set, after pressure parameter exceeds the preset pressure value and when continuing
Between more than 1s, duration according to the pressure parameter increases the deformation degree of virtual objects.Example
As preset pressure value be 5 newton, user pressing dynamics more than 5 newton and more than 1s it
Afterwards, the duration of the pressing operation after more than 5 newton is calculated, such as 2s can basis
The 2s times increase the deformation degree of virtual objects.For example become from 3s when the duration of pressing
Into after 4s, deformation degree of the virtual objects 201 in 4s is more than the deformation degree in 3s.
The pressure of pressing with the extension of compressing time, can also be increased, in this case, also increased empty
Intend the deformation degree of object 201, the effect fed back also complies with the practical operation effect of user.
With reference to shown in Fig. 3, the step S40 in Fig. 1 can include:
Step S401, judge the pressure parameter be in that first pressure is interval, second pressure is interval or
3rd pressure range;Minimum value during maximum is interval less than second pressure in the first pressure interval,
Maximum is less than minimum value in the 3rd pressure range in the second pressure interval.First pressure is interval
For example, 0 newton~2.9 newton, it is, for example, 3 newton~4 newton, first pressure that first pressure is interval
Interval is, for example, 4.9 newton~8 newton.
Step S402, when the pressure parameter is in first pressure interval, controls the void
Intending object carries out the deformation of the first deformation degree.
Step S403, when the pressure parameter is in second pressure interval, controls the void
Intending object carries out the deformation of the second deformation degree;The second deformation degree is higher than first deformation
Degree.
Step S404, when the pressure parameter is in three pressure range, controls the void
Intending object carries out the deformation of the 3rd deformation degree;The 3rd deformation degree is higher than first deformation
Degree.
With the increase of pressure, deformation degree also gradually increases.In the present embodiment, although only
Three pressure ranges are distinguished, it should be appreciated that more pressure ranges can be divided into, and also may be used
Not differentiate between pressure range, each pressure value one deformation degree of correspondence for making can also so make
Deformation extent control is more accurate.In the scene of game of some trickle controls of needs, can select
One specific pressure value correspondence, one deformation degree, principle is also with the increase of pressure value, shape
Change degree is consequently increased.
With continued reference to Fig. 3, in the another exemplary embodiment of the disclosure, virtual objects controlled side
Method can also include:
S410. when the pressure parameter is default beyond the corresponding pressure value of the 3rd pressure range
Between after, with the touch event pressure parameter the 3rd pressure range duration increasing
Plus and increase the deformation degree that the virtual objects occur the deformation.
As it was previously stated, when pressure parameter is in three pressure ranges, control virtual objects carry out the
The deformation of three deformation degree.In the present embodiment, can be set for the 3rd pressure range one time
Threshold value is pressure value Preset Time, when the pressing of the press pressure in the 3rd pressure range continues
Between more than after the pressure value Preset Time, the deformation degree of virtual objects can be increased, rather than office
It is limited to the deformation degree of the 3rd deformation degree fixation.For example, default 4.9 newton~8 newton this
The corresponding pressure value Preset Time of three pressure ranges is 2s, if user currently puts on the pressure of touch-screen
Power is 6 newton, when the duration of pressing being 1.5s, the deformation journey of virtual objects such as balloon
Degree be fall in 1/3rd volume, until 2s similarly falls in 1/3rd volumes
Effect, but when the duration of pressing is more than 2s, with the increase of duration, fall in
Volume is increasing, and 1/2nd are become from 1/3rd, also implies that deformation degree increasingly
Greatly.
It should be noted that, the step S10, step S30 and step S40 in Fig. 1 can be by
One extruding control module is performed;The step S20 can touch receiver module and perform by one.Therefore,
With reference to Fig. 4, virtual object control method can also include:
S01. the receiver module that touches registers touch event to the operating system of the touch control terminal,
So that the operating system is input into the touch receiver module when the touch event is detected.
Touch receiver module to shift to an earlier date to operating system registration touch event, touch event can include touching
Beginning event is touched, moving event is touched, is touched End Event, the touch event that will be likely to occur
Operating system is informed in advance, so, when the touch event for having correlation occurs, operating system energy
Detect, and the touch event of the appearance is notified to touch receiver module.
S02. the extruding control module registers parameter to the touch receiver module of the touch control terminal
Notification event, so that the touch receiver module is touched when the touch event is received by described
Location parameter and pressure parameter in event is touched to be input into the extruding control module.
Similarly, extruding control module parameter also required for advance notice touch receiver module oneself,
So, once touching receiver module obtains touch event, related parameter information can be notified to squeeze
Pressure control module, is easy to extruding control module to make corresponding control process.
For example, in game process, touch modules receive the touch event from operating system,
The related touch notification event of game is changed into, extruding control module is notified.
If extruding control module receives touch initiation event, according in the touch initiation event
What is be extruded in the original position parameter selection virtual objects that are extruded of control and virtual objects is specific
Position.
If extruding control module receives touch moving event, according to the pressure touched in moving event
Force parameter controls the deformation degree of virtual objects, and controls deformation direction and position according to location parameter
Put, form the process that virtual objects are extruded.
If extruding control module is completed to End Event, extrusion operation of mark is touched, virtually
Object may be extruded rupture, it is also possible to return to original state, or at the end of resting on
Deformed state.
Further, a kind of virtual objects controlled device is additionally provided in this example embodiment, should
For a touch control device.With reference to shown in Fig. 5, the virtual objects controlled device 1 can include
Virtual objects creating unit 61, touch receiver module 62, the first shape control unit 63 and the
Two deformation control units 64.Wherein:
Virtual objects creating unit 61 be mainly used in create one can deformation virtual objects.
Touch receiver module 62 and be mainly used in receiving the touch event of input, and obtain the touch thing
Location parameter and pressure parameter in part.
First shape control unit 63 is mainly used in responding the location parameter control in the touch event
The correspondence position for making the virtual objects is deformed upon.
Second shape control unit 64 is mainly used in being controlled according to the pressure parameter of the touch event
There is the deformation degree of the deformation in the virtual objects.
In the present exemplary embodiment, with continued reference to Fig. 5, the virtual objects controlled device 6 may be used also
To include:
3rd shape control unit 65, presets for the pressure parameter in the touch event beyond one
After pressure value and lasting Preset Time, respond the increase of the touch event duration and increase institute
State the deformation degree that virtual objects occur the deformation.
Wherein, it is described to control the virtual objects that institute occurs according to the pressure parameter of the touch event
The deformation degree for stating deformation includes:
Judge that the pressure parameter is in interval first pressure, second pressure interval or the 3rd pressure area
Between;Maximum is less than minimum value, described second in second pressure interval in the first pressure interval
Maximum is less than minimum value in the 3rd pressure range in pressure range;
When the pressure parameter is in first pressure interval, the virtual objects are controlled to carry out
The deformation of the first deformation degree;
When the pressure parameter is in second pressure interval, the virtual objects are controlled to carry out
The deformation of the second deformation degree;The second deformation degree is higher than the first deformation degree;
When the pressure parameter is in three pressure range, the virtual objects are controlled to carry out
The deformation of the 3rd deformation degree;The 3rd deformation degree is higher than the first deformation degree.
In the present exemplary embodiment, with continued reference to Fig. 5, virtual objects controlled device 6 can also be wrapped
Include:
4th shape control unit 66, for exceeding the 3rd pressure range in the pressure parameter
After corresponding pressure value Preset Time, the pressure parameter of the touch event is responded in the described 3rd pressure
The increase of power interval duration and increase the deformation degree that the virtual objects occur the deformation.
In the present exemplary embodiment, with continued reference to Fig. 5, the virtual objects controlled device 6 may be used also
To include:
Rupture control unit 67, the deformation degree for calculating the virtual objects judges the void
Whether the deformation degree for intending object exceeds a predetermined threshold value, and judging the shape of the virtual objects
When change degree exceeds the predetermined threshold value, the virtual objects rupture is controlled.
In the present exemplary embodiment, with continued reference to Fig. 5, the touch event includes touching initial thing
Part, touch moving event and touch End Event;The virtual objects controlled device 6 can be with
Including:
Extruding finishing control unit 68, for when the touch End Event occurs, detection to be described
Whether virtual objects rupture;When the virtual objects do not rupture, the virtual objects dimension is controlled
Current deformed state is held, or controls the virtual objects to recover to original state.
With reference to shown in Fig. 6, in the present exemplary embodiment, the virtual objects creating unit 61,
One shape control unit 63 and the second shape control unit 64 are packaged in an extruding control module
71;
The touch receiver module 62 is additionally operable to, and is registered to the operating system of the touch control terminal and touched
Event, so as to the operating system is input into described touch when the touch event is detected receive
Module 62.
The extruding control module 71 is additionally operable to, and is registered to the touch receiver module of the touch control terminal
Parameter notification event, so that the touch receiver module 62 is when the touch event is received, will
Location parameter and pressure parameter in the touch event are input into the extruding control module 71.
The detail of each module is in corresponding virtual objects in above-mentioned virtual objects controlled device
Carry out thinking description in detail in control method, therefore here is omitted.
By the virtual objects controlled device provided using the disclosure, when extruding game is carried out, energy
Enough different pressures put on according to user on touch terminal give different feedback effects, light extruding
When, deformation lesser extent, when extruding again, deformation degree is larger, realizes real extruding feedback
Effect, it is consistent with operating effect expected from user.
Under different scenes, by the dynamic control for compressional deformation degree, can simulate compared with
Many usage scenarios.For example for softer object such as bubble, somewhat firmly extruding just ruptures, and
Larger extruding dynamics is then needed for harder object, solving cannot be to user not in correlation technique
Same pressure sensitivity makes the problem of different feedbacks.
If although it should be noted that being referred to the equipment for action executing in above-detailed
Dry module or unit, but this division is not enforceable.In fact, according to the disclosure
The feature and function of implementation method, above-described two or more modules or unit can be one
Embodied in individual module or unit.Conversely, the feature of an above-described module or unit
Can be further divided into being embodied by multiple modules or unit with function.
Additionally, although each step of method in the disclosure is described with particular order in the accompanying drawings,
But, this does not require that or implies must perform these steps according to the particular order, or
Having to carry out the step shown in whole could realize desired result.It is additional or alternative, can be with
Some steps are omitted, multiple steps are merged into a step is performed, and/or one is walked
Suddenly execution of multiple steps etc. are decomposed into.
Through the above description of the embodiments, those skilled in the art it can be readily appreciated that retouch here
The example embodiment stated can be realized by software, it is also possible to combine necessary hardware by software
Mode realize.Therefore, the technical scheme according to disclosure implementation method can be with software product
Form embody, the software product can be stored (can be with a non-volatile memory medium
Be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are causing one
Platform computing device (can be personal computer, server, touch control terminal or network equipment etc.)
Perform the method according to disclosure implementation method.
Those skilled in the art will easily think after considering specification and putting into practice invention disclosed herein
To other embodiments of the disclosure.The application be intended to any modification of the disclosure, purposes or
Person's adaptations, the generality that these modifications, purposes or adaptations follow the disclosure is former
Manage and including the undocumented common knowledge or conventional techniques in the art of the disclosure.Say
Bright book and embodiment are considered only as exemplary, and the true scope of the disclosure and spirit are by following power
Profit requires to point out.
It should be appreciated that the disclosure is not limited to what is be described above and be shown in the drawings
Precision architecture, and can without departing from the scope carry out various modifications and changes.The model of the disclosure
Enclose and only limited by appended claim.
Claims (14)
1. a kind of virtual object control method, is applied to be capable of achieving the touch control terminal of pressure-sensing;Its
It is characterised by, the virtual object control method includes:
S10. create one can deformation virtual objects;
S20. receive the touch event of input, and obtain the location parameter in the touch event and
Pressure parameter;
S30. the corresponding position that the location parameter in the touch event controls the virtual objects is responded
Put and deform upon;
S40. the pressure parameter according to the touch event controls the virtual objects that the shape occurs
The deformation degree of change.
2. virtual object control method according to claim 1, it is characterised in that the void
Intending object control method also includes:
S41. when the pressure parameter in the touch event exceeds a preset pressure value and persistently presets
Between after, respond touch event duration increase and increase the virtual objects occur it is described
The deformation degree of deformation.
3. virtual object control method according to claim 1, it is characterised in that the step
Rapid S40 includes:
Judge that the pressure parameter is in interval first pressure, second pressure interval or the 3rd pressure area
Between;Maximum is less than minimum value, described second in second pressure interval in the first pressure interval
Maximum is less than minimum value in the 3rd pressure range in pressure range;
When the pressure parameter is in first pressure interval, the virtual objects are controlled to carry out
The deformation of the first deformation degree;
When the pressure parameter is in second pressure interval, the virtual objects are controlled to carry out
The deformation of the second deformation degree;The second deformation degree is higher than the first deformation degree;
When the pressure parameter is in three pressure range, the virtual objects are controlled to carry out
The deformation of the 3rd deformation degree;The 3rd deformation degree is higher than the first deformation degree.
4. virtual object control method according to claim 3, it is characterised in that the void
Intending object control method also includes:
S410. when the pressure parameter is default beyond the corresponding pressure value of the 3rd pressure range
Between after, with the touch event pressure parameter the 3rd pressure range duration increasing
Plus and increase the deformation degree that the virtual objects occur the deformation.
5. the virtual object control method according to Claims 1-4 any one, its feature
It is that the virtual object control method also includes:
S50. the deformation degree of the virtual objects is calculated, the deformation degree of the virtual objects is judged
Whether exceed a predetermined threshold value, and judge the deformation degree of the virtual objects beyond described pre-
If during threshold value, controlling the virtual objects rupture.
6. virtual object control method according to claim 5, it is characterised in that described to touch
Touching event includes touching initiation event, touch moving event and touching End Event;It is described virtual
Object control method also includes:
S60. when the touch End Event occurs, detect whether the virtual objects rupture;
When the virtual objects do not rupture, the virtual objects are controlled to maintain current deformed state, or
The virtual objects are controlled to recover to original state.
7. virtual object control method according to claim 1, it is characterised in that wherein:
The step S10, step S30 and step S40 are performed by an extruding control module;
The step S20 touches receiver module and performs by one;
The virtual object control method also includes:
S01. the receiver module that touches registers touch event to the operating system of the touch control terminal,
So that the operating system is input into the touch receiver module when the touch event is detected;
S02. the extruding control module registers parameter to the touch receiver module of the touch control terminal
Notification event, so that the touch receiver module is touched when the touch event is received by described
Location parameter and pressure parameter in event is touched to be input into the extruding control module.
8. a kind of virtual object control method, is applied to be capable of achieving the touch control terminal of pressure-sensing;Its
It is characterised by, the virtual objects controlled device includes:
Virtual objects creating unit, for create one can deformation virtual objects;
Receiver module is touched, for receiving the touch event of input, and the touch event is obtained
Location parameter and pressure parameter;
First shape control unit, it is described for responding the control of the location parameter in the touch event
The correspondence position of virtual objects is deformed upon;
Second shape control unit, for controlling the void according to the pressure parameter of the touch event
Intend the deformation degree that object occurs the deformation.
9. virtual objects controlled device according to claim 8, it is characterised in that the void
Intending object control device also includes:
3rd shape control unit, for the pressure parameter in the touch event beyond a default pressure
After force value and lasting Preset Time, respond the increase of the touch event duration and increase described
There is the deformation degree of the deformation in virtual objects.
10. virtual objects controlled device according to claim 1, it is characterised in that described
Control the virtual objects that the deformation degree of the deformation occurs according to the pressure parameter of the touch event
Including:
Judge that the pressure parameter is in interval first pressure, second pressure interval or the 3rd pressure area
Between;Maximum is less than minimum value, described second in second pressure interval in the first pressure interval
Maximum is less than minimum value in the 3rd pressure range in pressure range;
When the pressure parameter is in first pressure interval, the virtual objects are controlled to carry out
The deformation of the first deformation degree;
When the pressure parameter is in second pressure interval, the virtual objects are controlled to carry out
The deformation of the second deformation degree;The second deformation degree is higher than the first deformation degree;
When the pressure parameter is in three pressure range, the virtual objects are controlled to carry out
The deformation of the 3rd deformation degree;The 3rd deformation degree is higher than the first deformation degree.
11. virtual objects controlled devices according to claim 10, it is characterised in that described
Virtual objects controlled device also includes:
4th shape control unit, for exceeding the 3rd pressure range pair in the pressure parameter
After the pressure value Preset Time answered, the pressure parameter of the touch event is responded in the 3rd pressure
The increase of interval duration and increase the deformation degree that the virtual objects occur the deformation.
The 12. virtual objects controlled device according to claim 8 to 11 any one, it is special
Levy and be, the virtual objects controlled device also includes:
Rupture control unit, the deformation degree for calculating the virtual objects judges described virtual
Whether the deformation degree of object exceeds a predetermined threshold value, and judging the deformation of the virtual objects
When degree exceeds the predetermined threshold value, the virtual objects rupture is controlled.
13. virtual objects controlled devices according to claim 12, it is characterised in that described
Touch event includes touching initiation event, touch moving event and touching End Event;The void
Intending object control device also includes:
Extruding finishing control unit, for when the touch End Event occurs, detecting the void
Intend whether object ruptures;When the virtual objects do not rupture, the virtual objects are controlled to maintain
Current deformed state, or control the virtual objects to recover to original state.
14. virtual objects controlled devices according to claim 8, it is characterised in that wherein:
The virtual objects creating unit, the first shape control unit and the second shape control unit
It is packaged in an extruding control module;
The touch receiver module is additionally operable to, and thing is touched to the operating system registration of the touch control terminal
Part, so that the operating system is input into described touch when the touch event is detected receives mould
Block;
The extruding control module is additionally operable to, and ginseng is registered to the touch receiver module of the touch control terminal
Number notification event, so that the touch receiver module is when the touch event is received, will be described
Location parameter and pressure parameter in touch event are input into the extruding control module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511025238.0A CN106933397B (en) | 2015-12-30 | 2015-12-30 | Virtual object control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511025238.0A CN106933397B (en) | 2015-12-30 | 2015-12-30 | Virtual object control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106933397A true CN106933397A (en) | 2017-07-07 |
CN106933397B CN106933397B (en) | 2020-06-30 |
Family
ID=59441948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511025238.0A Active CN106933397B (en) | 2015-12-30 | 2015-12-30 | Virtual object control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106933397B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110215710A (en) * | 2019-06-05 | 2019-09-10 | 网易(杭州)网络有限公司 | Event determines method and device, electronic equipment and storage medium in game |
CN111430005A (en) * | 2020-03-04 | 2020-07-17 | 维沃移动通信有限公司 | Control method and electronic equipment |
CN115034052A (en) * | 2022-05-30 | 2022-09-09 | 广东时谛智能科技有限公司 | Sole model elastic display method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101253466A (en) * | 2004-08-02 | 2008-08-27 | 皇家飞利浦电子股份有限公司 | System and method for enabling the modeling of virtual objects |
CN101859227A (en) * | 2010-06-11 | 2010-10-13 | 华为终端有限公司 | Screen display method and device |
CN102693005A (en) * | 2011-02-17 | 2012-09-26 | 微软公司 | Providing an interactive experience using a 3D depth camera and a 3D projector |
CN104834380A (en) * | 2015-05-12 | 2015-08-12 | 东南大学 | Flexible object tactile modeling and expressing method applied to mobile terminal |
-
2015
- 2015-12-30 CN CN201511025238.0A patent/CN106933397B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101253466A (en) * | 2004-08-02 | 2008-08-27 | 皇家飞利浦电子股份有限公司 | System and method for enabling the modeling of virtual objects |
CN101859227A (en) * | 2010-06-11 | 2010-10-13 | 华为终端有限公司 | Screen display method and device |
CN102693005A (en) * | 2011-02-17 | 2012-09-26 | 微软公司 | Providing an interactive experience using a 3D depth camera and a 3D projector |
CN104834380A (en) * | 2015-05-12 | 2015-08-12 | 东南大学 | Flexible object tactile modeling and expressing method applied to mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110215710A (en) * | 2019-06-05 | 2019-09-10 | 网易(杭州)网络有限公司 | Event determines method and device, electronic equipment and storage medium in game |
CN110215710B (en) * | 2019-06-05 | 2023-04-14 | 网易(杭州)网络有限公司 | In-game event determination method and device, electronic equipment and storage medium |
CN111430005A (en) * | 2020-03-04 | 2020-07-17 | 维沃移动通信有限公司 | Control method and electronic equipment |
WO2021175142A1 (en) * | 2020-03-04 | 2021-09-10 | 维沃移动通信有限公司 | Control method and electronic device |
CN115034052A (en) * | 2022-05-30 | 2022-09-09 | 广东时谛智能科技有限公司 | Sole model elastic display method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106933397B (en) | 2020-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10775895B2 (en) | Systems and methods for multi-pressure interaction on touch-sensitive surfaces | |
CN108174612B (en) | For utilizing the device and method for carrying out processing and disambiguation to touch input based on the intensity threshold for being previously entered intensity | |
CN105955641B (en) | For the equipment, method and graphic user interface with object interaction | |
KR101932210B1 (en) | Method, system for implementing operation of mobile terminal according to touching signal and mobile terminal | |
CN104903834B (en) | For equipment, method and the graphic user interface in touch input to transition between display output relation | |
CN104903835B (en) | For abandoning equipment, method and the graphic user interface of generation tactile output for more contact gestures | |
CN105144057B (en) | For moving the equipment, method and graphic user interface of cursor according to the cosmetic variation of the control icon with simulation three-dimensional feature | |
CN104423789B (en) | A kind of information processing method and electronic equipment | |
CN107924277A (en) | For manipulating equipment, method and the graphic user interface of user interface by physical gesture | |
CN106502638A (en) | For providing equipment, method and the graphic user interface of audiovisual feedback | |
CN107250952A (en) | Equipment, method and user interface for handling the intensity for touching contact | |
CN110362245A (en) | The manipulation of touch input cursor | |
CN106797493A (en) | Music user interface | |
CN107430488A (en) | Threshold value and feedback based on activity | |
DE112013002412T5 (en) | Apparatus, method and graphical user interface for providing feedback for changing activation states of a user interface object | |
CN103797442A (en) | Using pressure differences with a touch-sensitive display screen | |
CN107710131A (en) | Content-browsing user interface | |
EP2075671A1 (en) | User interface of portable device and operating method thereof | |
US20180011538A1 (en) | Multimodal haptic effects | |
CN105739855B (en) | Virtual objects motion control method and device | |
TW201604719A (en) | Method and apparatus of controlling a smart device | |
CN106933474A (en) | Image blend processing method and processing device | |
CN106933397A (en) | Virtual object control method and device | |
CN107690614A (en) | Movement between multiple views | |
WO2020147587A1 (en) | Touch operation method and apparatus, terminal, and computer readable 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 |