CN106933397B - Virtual object control method and device - Google Patents

Virtual object control method and device Download PDF

Info

Publication number
CN106933397B
CN106933397B CN201511025238.0A CN201511025238A CN106933397B CN 106933397 B CN106933397 B CN 106933397B CN 201511025238 A CN201511025238 A CN 201511025238A CN 106933397 B CN106933397 B CN 106933397B
Authority
CN
China
Prior art keywords
virtual object
touch
pressure
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.)
Active
Application number
CN201511025238.0A
Other languages
Chinese (zh)
Other versions
CN106933397A (en
Inventor
龙娉婷
邢晓勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201511025238.0A priority Critical patent/CN106933397B/en
Publication of CN106933397A publication Critical patent/CN106933397A/en
Application granted granted Critical
Publication of CN106933397B publication Critical patent/CN106933397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04106Multi-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

Abstract

The disclosure relates to a virtual object control method and device. The method comprises the following steps: creating a deformable virtual object; receiving an input touch event, and acquiring a position parameter and a pressure parameter in the touch event; responding to the position parameter in the touch event to control the corresponding position of the virtual object to deform; and controlling the deformation degree of the deformation of the virtual object according to the pressure parameter of the touch event. The deformation of the extruded virtual object is dynamically changed based on the induction of the screen to different pressures according to the position parameters and the pressure parameters in the touch event, so that the real extrusion operation with pressure feeling is simulated, and the feedback effect is more consistent with the user operation.

Description

Virtual object control method and device
Technical Field
The present disclosure relates to the field of human-computer interaction technologies, and in particular, to a virtual object control method and a virtual object control apparatus.
Background
With the rapid development of mobile communication technology, more and more game applications appear on touch terminals, wherein one type of game is to use fingers to click and squeeze bubbles or balloons on a screen to simulate the process of popping objects in real life. When the pressure control technology is not supported, the following three application schemes for body pressure explosion are mainly adopted:
for example, when a finger clicks a screen area, a corresponding object can be crushed, a section of animation of object breakage is fed back, the effect of damage disappearance is formed, and the object is fed back to be crushed by the finger. Compared with the real scene, the extrusion is generally accompanied with light and heavy reactions in reality, if the object is extruded lightly, the object is deformed slightly, but the object is not necessarily extruded and exploded, and the object can be crushed by force to a certain degree. The object is returned to its original state by releasing the finger before it is squeezed to break. At present, the mode of direct rupture by clicking is relatively rigid, the extrusion process is ignored, and the actual scene is greatly changed.
For another example, in the game process, after the finger is pressed for a certain time, the object is exploded. And continuously deforming the object in the long-time pressing process until the specified time of the system is reached, playing the fracture animation and finishing the extrusion explosion process. The scheme simulates the deformation of an object in the extrusion process, and a user can obtain certain sense of reality. However, as long as the user brings the finger into contact with the screen, the same effect is achieved regardless of the magnitude of the pressure, and the difference from the real scene is large.
For another example, a user clicks an object on the screen with a single finger, the deformation degree of the object deepens every time the user clicks the object, when the user clicks the object for a certain number of times, an animation that the object is broken and damaged is played, and the effect of the finger pressure explosion is fed back. Clicking the same object for multiple times is a very boring operation behavior, and meanwhile, objects which can be extruded and exploded in a real scene are generally elastic, and the situation that the objects can be extruded and exploded by clicking for multiple times with the same strength rarely occurs.
The three related technologies cannot sense the pressure of the fingers of the user to form differential feedback, so that the effect of the process of extruding and blasting the object cannot be consistent with the operation feedback effect of the user.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
In order to solve some or all of the problems in the prior art, the present disclosure provides a virtual object control method and a virtual object control apparatus.
According to a first aspect of the embodiments of the present disclosure, a virtual object control method is provided, which is applied to a touch terminal capable of implementing pressure sensing; the virtual object control method includes:
s10, creating a deformable virtual object;
s20, receiving an input touch event, and acquiring a position parameter and a pressure parameter in the touch event;
s30, responding to the position parameters in the touch event to control the corresponding position of the virtual object to deform;
and S40, controlling the deformation degree of the deformation of the virtual object according to the pressure parameter of the touch event.
In an exemplary embodiment of the present disclosure, the virtual object control method further includes:
s41, after the pressure parameter of the touch event exceeds a preset pressure value and lasts for a preset time, responding to the increase of the duration time of the touch event to increase the deformation degree of the virtual object.
In an exemplary embodiment of the present disclosure, the step S40 includes:
judging whether the pressure parameter is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
when the pressure parameter is in the first pressure interval, controlling the virtual object to deform to a first deformation degree;
when the pressure parameter is in the second pressure interval, controlling the virtual object to deform in a second deformation degree; the second degree of deformation is higher than the first degree of deformation;
when the pressure parameter is in the third pressure interval, controlling the virtual object to deform in a third deformation degree; the third degree of deformation is higher than the first degree of deformation.
In an exemplary embodiment of the present disclosure, the virtual object control method further includes:
s410, after the pressure parameter exceeds the preset time of the pressure value corresponding to the third pressure interval, increasing the deformation degree of the virtual object along with the increase of the duration time of the pressure parameter of the touch event in the third pressure interval.
In an exemplary embodiment of the present disclosure, the virtual object control method further includes:
s50, calculating the deformation degree of the virtual object, judging whether the deformation degree of the virtual object exceeds a preset threshold value, and controlling the virtual object to break when the deformation degree of the virtual object exceeds the preset threshold value.
In an exemplary embodiment of the present disclosure, the touch event includes a touch start event, a touch move event, and a touch end event; the virtual object control method further includes:
s60, when the touch end event occurs, detecting whether the virtual object is broken or not; and when the virtual object is not broken, controlling the virtual object to maintain the current deformation state or controlling the virtual object to recover to the initial state.
In an exemplary embodiment of the present disclosure, wherein:
the steps S10, S30 and S40 are executed by a squeeze control module;
the step S20 is executed by a touch receiving module;
the virtual object control method further includes:
s01, the touch receiving module registers a touch event to an operating system of the touch terminal so that the operating system inputs the touch event to the touch receiving module when detecting the touch event;
s02, the extrusion control module registers a parameter notification event to a touch receiving module of the touch terminal, so that the touch receiving module inputs a position parameter and a pressure parameter in the touch event to the extrusion control module when receiving the touch event.
According to a second aspect of the embodiments of the present disclosure, there is also provided a virtual object control apparatus, which is applied to a touch terminal capable of implementing pressure sensing; the virtual object control apparatus includes:
a virtual object creating unit for creating a deformable virtual object;
the touch receiving module is used for receiving an input touch event and acquiring a position parameter and a pressure parameter in the touch event;
the first deformation control unit is used for responding to the position parameter in the touch event to control the corresponding position of the virtual object to deform;
and the second deformation control unit is used for controlling the deformation degree of the deformation of the virtual object according to the pressure parameter of the touch event.
In an exemplary embodiment of the present disclosure, the virtual object control apparatus further includes:
and the third deformation control unit is used for responding to the increase of the duration time of the touch event and increasing the deformation degree of the virtual object when the pressure parameter of the touch event exceeds a preset pressure value and lasts for a preset time.
In an exemplary embodiment of the present disclosure, the controlling a deformation degree of the virtual object to be deformed according to the pressure parameter of the touch event includes:
judging whether the pressure parameter is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
when the pressure parameter is in the first pressure interval, controlling the virtual object to deform to a first deformation degree;
when the pressure parameter is in the second pressure interval, controlling the virtual object to deform in a second deformation degree; the second degree of deformation is higher than the first degree of deformation;
when the pressure parameter is in the third pressure interval, controlling the virtual object to deform in a third deformation degree; the third degree of deformation is higher than the first degree of deformation.
In an exemplary embodiment of the present disclosure, the virtual object control apparatus further includes:
and the fourth deformation control unit is used for responding to the increase of the duration time of the pressure parameter of the touch event in the third pressure interval to increase the deformation degree of the virtual object, which is deformed, after the pressure parameter exceeds the pressure value corresponding to the third pressure interval for a preset time.
In an exemplary embodiment of the present disclosure, the virtual object control apparatus further includes:
and the fracture control unit is used for calculating the deformation degree of the virtual object, judging whether the deformation degree of the virtual object exceeds a preset threshold value or not, and controlling the virtual object to fracture when the deformation degree of the virtual object is judged to exceed the preset threshold value.
In an exemplary embodiment of the present disclosure, the touch event includes a touch start event, a touch move event, and a touch end event; the virtual object control apparatus further includes:
a pressing end control unit for detecting whether the virtual object is broken when the touch end event occurs; and when the virtual object is not broken, controlling the virtual object to maintain the current deformation state or controlling the virtual object to recover to the initial state.
In an exemplary embodiment of the present disclosure, wherein:
the virtual object creating unit, the first deformation control unit and the second deformation control unit are packaged in an extrusion control module;
the touch receiving module is further configured to register a touch event with an operating system of the touch terminal, so that the operating system inputs the touch event to the touch receiving module when detecting the touch event;
the extrusion control module is further configured to register a parameter notification event with a touch receiving module of the touch terminal, so that the touch receiving module inputs a position parameter and a pressure parameter in the touch event to the extrusion control module when receiving the touch event.
According to the virtual object control method and device in the embodiment of the disclosure, based on the sensing of the screen to different pressures, the deformation of the extruded virtual object is dynamically changed according to the position parameter and the pressure parameter in the touch event, so that the real extrusion operation with pressure feeling is simulated, the problem that different extrusion force degrees are fed back in the extrusion game process to be the same is solved, the pressure control in the extrusion process is realized, the actual use situation is better simulated, and the feedback effect is more consistent with the user operation.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 schematically illustrates a flowchart of a virtual object control method in an exemplary embodiment of the present disclosure.
Fig. 2 schematically illustrates an operation interface of a game application in an exemplary embodiment of the present disclosure.
Fig. 3 schematically shows a flowchart of step S40 in an exemplary embodiment of the present disclosure.
Fig. 4 schematically illustrates a flowchart of a virtual object control method in an exemplary embodiment of the present disclosure.
Fig. 5 schematically illustrates a block diagram of a virtual object control apparatus in an exemplary embodiment of the present disclosure.
Fig. 6 schematically illustrates a block diagram of a virtual object control apparatus in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
With the development of electronic technology, a touch terminal capable of performing pressure sensing has been implemented, so that a new operation and input mode can be provided for a user. For example, hua corporation and apple corporation both released touch-sensitive smart phones with pressure sensing in 2015. The touch terminal can sense the touch operation of a user to serve as the input of the touch terminal, and can sense the pressure, the position and the acting time, so that the pressure is independently used as the input of the touch terminal, or the pressure and other input modes are combined to serve as the input of the touch terminal, and a lot of convenience and interestingness are brought to the operation of the user.
First, the present exemplary embodiment provides a virtual object control method, which may be applied to the touch terminal capable of implementing pressure sensing. The touch device may be various electronic devices having a touch screen, such as a mobile phone, a tablet computer, a notebook computer, a game machine, and a PDA. However, it should be noted that, in some non-touch devices, it is also possible to simulate the keyboard and mouse operations as touch operations by means of a simulator or the like, and such a manner may also be regarded as a touch device described in this disclosure. Referring to fig. 1 and 2, the virtual object control method may include the steps of:
s10, creating a deformable virtual object.
As shown in fig. 2, the display area of the touch device may be controlled to display an operation interface 10, and the created virtual object 201 is included in the operation interface 10.
The game application controls a touch screen of the touch device to display the game operation interface 10 through an Application Program Interface (API) of the touch device, and the operation interface 10 in the present exemplary embodiment may be the whole displayable area of the touch device, i.e. full screen display; or may be a part of a displayable area of the touch device, i.e., a window display. The operation interface 10 may include a virtual object 201. In addition, the operation interface 10 may include other parts such as control buttons, an information panel, and a text description. The virtual object 201 may have various expressions, and may be a virtual object having a certain elasticity such as a balloon, a bubble, or a ball, or a virtual object having a weak elasticity such as plasticine or a dough.
S20, receiving an input touch event, and acquiring a position parameter and a pressure parameter in the touch event.
The touch event is periodically detected, and the touch event may include a simple sliding operation, a simple pressing operation, a pressing operation performed simultaneously with the sliding operation, and the like performed by the user in the operation interface 1. The pressing operation may be classified into a plurality of different levels according to the pressure value of the pressing operation, for example, it may be classified into a heavy press, a light press, and an extremely light press (which may be regarded as not-pressed), and further levels may be classified according to the sensitivity of the pressure sensing module.
After a touch event such as a pressing operation is detected, position parameters such as pressing coordinate data and pressure parameters such as pressing pressure value data of the pressing operation are acquired, and deformation control of the virtual object based on the parameters is facilitated subsequently.
And S30, responding to the position parameter in the touch event to control the corresponding position of the virtual object to deform.
There may be a plurality of virtual objects on the operation interface, and the virtual object to be controlled and the deformation position and the deformation direction may be determined according to the position parameters obtained in step S20. For example, dozens of balloons are arranged on the operation interface, and which balloon of the dozens of balloons is required to be operated and controlled currently can be determined according to the position parameter in the touch event; alternatively, the volume of the virtual object is larger, and only a certain part of the virtual object is pressed, so that the deformation of the part of the virtual object can be controlled.
And S40, controlling the deformation degree of the deformation of the virtual object according to the pressure parameter of the touch event.
After determining the virtual object that needs to be pressed, the degree of deformation of the virtual object is determined according to the pressure parameter acquired in step S20. For example, if the pressing pressure is light, the deformation is small, and if the pressing pressure is large, the deformation is large.
S50, calculating the deformation degree of the virtual object, judging whether the deformation degree of the virtual object exceeds a preset threshold value, and controlling the virtual object to break when the deformation degree of the virtual object exceeds the preset threshold value.
A threshold value of the deformation degree is preset in advance, along with the increase of the deformation degree, when the deformation degree is larger than the threshold value, the virtual object is broken, the effect that the virtual object is broken by extrusion is presented, and the threshold value is the upper limit of the deformation degree which can be born by the virtual object. It should be noted that, for a part of the virtual object, for example, plasticine, dough, etc. may not include the step S50.
When the deformation degree of the virtual object is calculated, a model of the extruded virtual object can be constructed according to the extrusion parameters, and the process of extrusion deformation can be simulated based on the original model and the extruded model. Taking the example where the virtual object is an ellipsoid, the original model may be, for example
Figure BDA0000896654230000081
Setting initial values of a, b and c and a preset threshold t of the deformation degree;and drawing an ellipsoid, the volume of which is in the Cartesian coordinate system
Figure BDA0000896654230000082
Assuming that the ellipsoid is extruded from the x-axis direction and the simulated pressure corresponding to the pressing parameter is f, the ellipsoid is pressed by the pressing parameter
Figure BDA0000896654230000083
The v and c parameters are unchanged, so that the extruded product can be calculated by using a volume formula
Figure BDA0000896654230000091
Finally, the three parameters of a ', b' and c are used for drawing a model after extrusion, thereby simulating the process of extrusion deformation. When a' is smaller than a preset threshold value t of the deformation degree, the ellipsoid is broken. However, it is easily understood by those skilled in the art that when the virtual object has other shapes, the virtual object can be calculated by other corresponding formulas, and is not limited to the exemplary embodiment.
S60, the touch event comprises a touch starting event, a touch moving event and a touch ending event, and when the touch ending event occurs, whether the virtual object is broken or not is detected; and when the virtual object is not broken, controlling the virtual object to maintain the current deformation state or controlling the virtual object to recover to the initial state.
During the game, the time and the pressure of the finger of the user pressing the touch screen are possibly random, a touch starting event indicates that the user starts pressing, a touch moving event indicates that the user is pressing, the position is moved and the pressure changes during the pressing process, and a touch ending event indicates that the user ends the pressing operation. As described above, when the degree of deformation exceeds the threshold value, the virtual object is broken, and when the virtual object is not yet broken when the user ends the pressing operation, the state of deformation of the virtual object when the user ends the pressing operation can be maintained or restored to the original state.
According to the virtual object control method in the embodiment of the disclosure, based on the sensing of the screen to different pressures, the deformation of the extruded virtual object is dynamically changed according to the position parameter and the pressure parameter in the touch event, so that the real extrusion operation with pressure feeling is simulated, the problem that different extrusion force degrees are fed back in the extrusion game process to be the same is solved, the pressure control in the extrusion process is realized, the actual use scene is better simulated, and meanwhile, the feedback effect is consistent with the operation effect of a user.
With continued reference to fig. 1, in an exemplary embodiment of the present disclosure, the virtual object control method may further include:
s41, after the pressure parameter of the touch event exceeds a preset pressure value and lasts for a preset time, responding to the increase of the duration time of the touch event to increase the deformation degree of the virtual object.
As described above, after the virtual object to be squeezed is determined, the degree of deformation of the virtual object can be determined according to the acquired pressure parameter. As shown in fig. 1, in this embodiment, a preset pressure value may also be preset, and after the pressure parameter exceeds the preset pressure value and the duration time exceeds 1s, the deformation degree of the virtual object is increased according to the duration time of the pressure parameter. For example, the preset pressure value is 5 newton, and after the pressing force of the user is greater than 5 newton and exceeds 1s, the duration of the pressing operation after being greater than 5 newton is calculated, for example, 2s, and the degree of deformation of the virtual object may be increased according to the 2s time. For example, after the duration of the pressing changes from 3s to 4s, the degree of deformation of the virtual object 201 at 4s is greater than that at 3 s. The pressing pressure may be increased as the pressing time is longer, and in this case, the degree of deformation of the virtual object 201 is also increased, and the feedback effect also corresponds to the actual operation effect of the user.
Referring to fig. 3, step S40 in fig. 1 may include:
step S401, judging that the pressure parameter is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in the second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in the third pressure interval. The first pressure range is, for example, 0 to 2.9 newtons, the first pressure range is, for example, 3 to 4 newtons, and the first pressure range is, for example, 4.9 to 8 newtons.
Step S402, when the pressure parameter is in the first pressure interval, controlling the virtual object to deform by a first deformation degree.
Step S403, when the pressure parameter is in the second pressure interval, controlling the virtual object to perform deformation with a second deformation degree; the second degree of deformation is higher than the first degree of deformation.
Step S404, when the pressure parameter is in the third pressure interval, controlling the virtual object to deform in a third deformation degree; the third degree of deformation is higher than the first degree of deformation.
As the pressure increases, the degree of deformation gradually increases. In this embodiment, although only three pressure intervals are distinguished, it should be understood that more pressure intervals may be distinguished, and the pressure intervals may not be distinguished, so that each pressure value corresponds to one deformation degree, and thus, the control of the deformation degree may be more accurate. In some game scenes needing fine control, a specific pressure value can be selected to correspond to a deformation degree, and the deformation degree is increased along with the increase of the pressure value.
With continued reference to fig. 3, in another exemplary embodiment of the present disclosure, the virtual object control method may further include:
s410, after the pressure parameter exceeds the preset time of the pressure value corresponding to the third pressure interval, increasing the deformation degree of the virtual object along with the increase of the duration time of the pressure parameter of the touch event in the third pressure interval.
As described above, when the pressure parameter is in the third pressure interval, the virtual object is controlled to deform by the third deformation degree. In this embodiment, a time threshold, that is, a preset time of the pressure value, may be set for the third pressure interval, and after the pressing duration of the pressing pressure in the third pressure interval is longer than the preset time of the pressure value, the deformation degree of the virtual object may be increased, instead of being limited to the fixed deformation degree of the third deformation degree. For example, the preset time of the pressure value corresponding to the third pressure interval of 4.9 newton to 8 newton is set to 2s, if the current pressure applied to the touch screen by the user is 6 newtons, when the duration of the pressing is 1.5s, the deformation degree of the virtual object, such as a balloon, is a recessed volume of one third, and the effect of the recessed volume is also the same up to 2s, but when the duration of the pressing exceeds 2s, the recessed volume becomes larger and larger along with the increase of the duration, and changes from one third to one half, that is, the deformation degree becomes larger and larger.
It should be noted that the steps S10, S30 and S40 in fig. 1 can be executed by a squeeze control module; the step S20 can be executed by a touch receiving module. Therefore, referring to fig. 4, the virtual object control method may further include:
and S01, the touch receiving module registers a touch event to an operating system of the touch terminal so that the operating system inputs the touch event to the touch receiving module when detecting the touch event.
The touch receiving module registers a touch event to the operating system in advance, and the touch event may include a touch start event, a touch move event, and a touch end event, and informs the operating system of a possible touch event in advance, so that once an associated touch event occurs, the operating system can detect the touch event and inform the touch receiving module of the occurred touch event.
S02, the extrusion control module registers a parameter notification event to a touch receiving module of the touch terminal, so that the touch receiving module inputs a position parameter and a pressure parameter in the touch event to the extrusion control module when receiving the touch event.
Similarly, the extrusion control module also informs the touch receiving module of the required parameters in advance, so that once the touch receiving module acquires the touch event, the extrusion control module can be informed of the relevant parameter information, and the extrusion control module can conveniently perform corresponding control processing.
For example, during a game, the touch module receives a touch event from an operating system, converts the touch event into a game-related touch notification event, and notifies the squeeze control module.
And if the extrusion control module receives the touch initial event, selecting and controlling the extruded virtual object and the extruded specific part in the virtual object according to the initial position parameter in the touch initial event.
And if the extrusion control module receives the touch movement event, controlling the deformation degree of the virtual object according to the pressure parameter in the touch movement event, and controlling the deformation direction and position according to the position parameter to form the process that the virtual object is extruded.
If the control module is pressed to the touch ending event, the completion of one pressing operation is marked, and the virtual object can be pressed and broken, or can be restored to the initial state, or can be stopped in the deformation state at the end.
Further, the present exemplary embodiment provides a virtual object control apparatus, which is applied to a touch device. Referring to fig. 5, the virtual object control apparatus 1 may include a virtual object creation unit 61, a touch reception module 62, a first deformation control unit 63, and a second deformation control unit 64. Wherein:
the virtual object creating unit 61 is mainly used to create a deformable virtual object.
The touch receiving module 62 is mainly used for receiving an input touch event and acquiring a position parameter and a pressure parameter of the touch event.
The first deformation control unit 63 is mainly configured to respond to the position parameter in the touch event to control the corresponding position of the virtual object to deform.
The second deformation control unit 64 is mainly configured to control a deformation degree of the virtual object, which is deformed according to the pressure parameter of the touch event.
In the present exemplary embodiment, with continued reference to fig. 5, the virtual object control apparatus 6 may further include:
a third deformation control unit 65, configured to increase a deformation degree of the virtual object, which is deformed in response to an increase of the duration time of the touch event, after the pressure parameter of the touch event exceeds a preset pressure value and lasts for a preset time.
Wherein the controlling of the degree of deformation of the virtual object by the pressure parameter of the touch event comprises:
judging whether the pressure parameter is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
when the pressure parameter is in the first pressure interval, controlling the virtual object to deform to a first deformation degree;
when the pressure parameter is in the second pressure interval, controlling the virtual object to deform in a second deformation degree; the second degree of deformation is higher than the first degree of deformation;
when the pressure parameter is in the third pressure interval, controlling the virtual object to deform in a third deformation degree; the third degree of deformation is higher than the first degree of deformation.
In the present exemplary embodiment, with continued reference to fig. 5, the virtual object control apparatus 6 may further include:
and a fourth deformation control unit 66, configured to increase a deformation degree of the virtual object, which is deformed in response to an increase of the duration of the pressure parameter of the touch event in the third pressure interval, after the pressure parameter exceeds the pressure value corresponding to the third pressure interval for a preset time.
In the present exemplary embodiment, with continued reference to fig. 5, the virtual object control apparatus 6 may further include:
the fracture control unit 67 is configured to calculate a deformation degree of the virtual object, determine whether the deformation degree of the virtual object exceeds a preset threshold, and control the virtual object to fracture when the deformation degree of the virtual object is determined to exceed the preset threshold.
In the present exemplary embodiment, with continued reference to fig. 5, the touch events include a touch start event, a touch move event, and a touch end event; the virtual object control apparatus 6 may further include:
a pressing end control unit 68 for detecting whether the virtual object is broken when the touch end event occurs; and when the virtual object is not broken, controlling the virtual object to maintain the current deformation state or controlling the virtual object to recover to the initial state.
Referring to fig. 6, in the present exemplary embodiment, the virtual object creation unit 61, the first deformation control unit 63, and the second deformation control unit 64 are packaged in a squeeze control module 71;
the touch receiving module 62 is further configured to register a touch event with an operating system of the touch terminal, so that the operating system inputs the touch event to the touch receiving module 62 when detecting the touch event.
The squeezing control module 71 is further configured to register a parameter notification event with a touch receiving module of the touch terminal, so that the touch receiving module 62 inputs a position parameter and a pressure parameter in the touch event to the squeezing control module 71 when receiving the touch event.
The details of each module in the virtual object control apparatus have been described in detail in the corresponding virtual object control method, and therefore are not described herein again.
Through adopting the virtual object controlling means that this disclosure provided, when carrying out the extrusion recreation, can give different feedback effects according to the different pressures that the user exerted on touch terminal, when light extrusion, the deformation degree is lighter, and when heavy extrusion, the deformation degree is great, has realized real extrusion feedback effect, and is unanimous with the operation effect that the user expects.
Under different scenes, more use scenes can be simulated through the dynamic control on the extrusion deformation degree. For example, for softer objects such as air bubbles, the pressure is slightly strong to break, and for harder objects, a larger degree of pressure is needed, so that the problem that different feedbacks cannot be made to different pressure feelings of users in the related art is solved.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A virtual object control method is applied to a touch terminal capable of realizing pressure sensing; the virtual object control method is characterized by comprising the following steps:
s10, creating a deformable virtual object;
s20, receiving an input touch event, and acquiring a position parameter and a pressure parameter in the touch event;
s30, responding to the position parameters in the touch event to control the corresponding position of the virtual object to deform;
s40, controlling the deformation degree of the virtual object which deforms according to the pressure parameter of the touch event, wherein the deformation degree of the virtual object which deforms is controlled in response to the increase of the duration time of the touch event after the pressure parameter exceeds a preset pressure value and lasts for a preset time;
wherein the virtual object control method further comprises:
calculating the deformation degree of the virtual object, judging whether the deformation degree of the virtual object exceeds a preset threshold value, and controlling the virtual object to break when the deformation degree of the virtual object exceeds the preset threshold value.
2. The virtual object control method according to claim 1, wherein the S40 includes:
judging whether the pressure parameter is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
when the pressure parameter is in the first pressure interval, controlling the virtual object to deform to a first deformation degree;
when the pressure parameter is in the second pressure interval, controlling the virtual object to deform in a second deformation degree; the second degree of deformation is higher than the first degree of deformation;
when the pressure parameter is in the third pressure interval, controlling the virtual object to deform in a third deformation degree; the third degree of deformation is higher than the first degree of deformation.
3. The virtual object control method according to claim 2, characterized in that the virtual object control method further comprises:
s410, after the pressure parameter exceeds the preset time of the pressure value corresponding to the third pressure interval, increasing the deformation degree of the virtual object along with the increase of the duration time of the pressure parameter of the touch event in the third pressure interval.
4. The virtual object control method according to claim 1, wherein the touch event includes a touch start event, a touch move event, and a touch end event; the virtual object control method further includes:
s60, when the touch end event occurs, detecting whether the virtual object is broken or not; and when the virtual object is not broken, controlling the virtual object to maintain the current deformation state or controlling the virtual object to recover to the initial state.
5. The virtual object control method according to claim 1, wherein:
the S10, S30, and S40 are performed by a squeeze control module;
the step S20 is executed by a touch receiving module;
the virtual object control method further includes:
s01, the touch receiving module registers a touch event to an operating system of the touch terminal so that the operating system inputs the touch event to the touch receiving module when detecting the touch event;
s02, the extrusion control module registers a parameter notification event to a touch receiving module of the touch terminal, so that the touch receiving module inputs a position parameter and a pressure parameter in the touch event to the extrusion control module when receiving the touch event.
6. A virtual object control device is applied to a touch terminal capable of realizing pressure sensing; characterized in that the virtual object control device comprises:
a virtual object creating unit for creating a deformable virtual object;
the touch receiving module is used for receiving an input touch event and acquiring a position parameter and a pressure parameter in the touch event;
the first deformation control unit is used for responding to the position parameter in the touch event to control the corresponding position of the virtual object to deform;
the second deformation control unit is used for controlling the deformation degree of the deformation of the virtual object according to the pressure parameter of the touch event;
the third deformation control unit is used for responding to the increase of the duration time of the touch event to control the deformation degree of the virtual object to deform after the pressure parameter exceeds a preset pressure value and lasts for a preset time;
and the fracture control unit is used for calculating the deformation degree of the virtual object, judging whether the deformation degree of the virtual object exceeds a preset threshold value or not, and controlling the virtual object to fracture when the deformation degree of the virtual object is judged to exceed the preset threshold value.
7. The virtual object control apparatus according to claim 6, wherein the controlling a degree of deformation of the virtual object by the deformation according to the pressure parameter of the touch event comprises:
judging whether the pressure parameter is in a first pressure interval, a second pressure interval or a third pressure interval; the maximum value in the first pressure interval is smaller than the minimum value in a second pressure interval, and the maximum value in the second pressure interval is smaller than the minimum value in a third pressure interval;
when the pressure parameter is in the first pressure interval, controlling the virtual object to deform to a first deformation degree;
when the pressure parameter is in the second pressure interval, controlling the virtual object to deform in a second deformation degree; the second degree of deformation is higher than the first degree of deformation;
when the pressure parameter is in the third pressure interval, controlling the virtual object to deform in a third deformation degree; the third degree of deformation is higher than the first degree of deformation.
8. The virtual object control apparatus according to claim 7, further comprising:
and the fourth deformation control unit is used for responding to the increase of the duration time of the pressure parameter of the touch event in the third pressure interval to increase the deformation degree of the virtual object, which is deformed, after the pressure parameter exceeds the pressure value corresponding to the third pressure interval for a preset time.
9. The virtual object control apparatus of claim 6, wherein the touch event comprises a touch start event, a touch move event, and a touch end event; the virtual object control apparatus further includes:
a pressing end control unit for detecting whether the virtual object is broken when the touch end event occurs; and when the virtual object is not broken, controlling the virtual object to maintain the current deformation state or controlling the virtual object to recover to the initial state.
10. The virtual object control apparatus of claim 6, wherein:
the virtual object creating unit, the first deformation control unit and the second deformation control unit are packaged in an extrusion control module;
the touch receiving module is further configured to register a touch event with an operating system of the touch terminal, so that the operating system inputs the touch event to the touch receiving module when detecting the touch event;
the extrusion control module is further configured to register a parameter notification event with a touch receiving module of the touch terminal, so that the touch receiving module inputs a position parameter and a pressure parameter in the touch event to the extrusion control module when receiving the touch event.
CN201511025238.0A 2015-12-30 2015-12-30 Virtual object control method and device Active CN106933397B (en)

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 CN106933397A (en) 2017-07-07
CN106933397B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115034052A (en) * 2022-05-30 2022-09-09 广东时谛智能科技有限公司 Sole model elastic display method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN106933397A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
KR101932210B1 (en) Method, system for implementing operation of mobile terminal according to touching signal and mobile terminal
Oakley et al. Putting the feel in’look and feel ‘
US9710105B2 (en) Touchscreen testing
CN109445600B (en) Haptic feedback method, haptic feedback device, haptic feedback terminal, and computer-readable storage medium
CN102402286B (en) Dynamic gesture parameters
CN105641927B (en) Virtual objects rotating direction control method and device
CN107297073B (en) Method and device for simulating peripheral input signal and electronic equipment
US10572017B2 (en) Systems and methods for providing dynamic haptic playback for an augmented or virtual reality environments
CN103797442A (en) Using pressure differences with a touch-sensitive display screen
US20090167715A1 (en) User interface of portable device and operating method thereof
CN103827785A (en) Using pressure differences with a touch-sensitive display screen
CN104461323A (en) Information processing method and electronic equipment
US20170038800A1 (en) Method for controlling electronic device and electronic device
CN104423789A (en) Information processing method and electronic equipment
CN106933397B (en) Virtual object control method and device
WO2019076238A1 (en) Floating action button display method and terminal device
US10930023B2 (en) Method and apparatus for imitating original graphic, computing device, and storage medium
CN106933474B (en) Image mixing processing method and device
CN104898880A (en) Control method and electronic equipment
WO2020147587A1 (en) Touch operation method and apparatus, terminal, and computer readable storage medium
CN106569708B (en) Method and terminal for realizing pressing simulation display
JP6205043B1 (en) Keyboard, information processing apparatus, feedback method, and program
CN103761041A (en) Information processing method and electronic device
KR102164853B1 (en) A method for controlling a kit by generating a command for controlling the kit on the kit control terminal
CN102981771A (en) Control method and input device of touch screen terminal

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